* add application (client) name to statuses fixes another thing in #6 * add domain blocking (#496) * add domain blocking fixes another thing from #6 * show "domain blocking" on profile page * fix stuff
		
			
				
	
	
		
			45 lines
		
	
	
		
			No EOL
		
	
	
		
			1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			No EOL
		
	
	
		
			1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<a rel="nofollow noopener"
 | 
						|
   target="_blank"
 | 
						|
   {href}
 | 
						|
   aria-label={ariaLabel}
 | 
						|
   class={computedClass}>
 | 
						|
  <slot></slot>{#if showIcon}
 | 
						|
    <svg class="external-link-svg">
 | 
						|
      <use xlink:href="#fa-external-link" />
 | 
						|
    </svg>
 | 
						|
  {/if}</a>
 | 
						|
<style>
 | 
						|
  .external-link-with-icon {
 | 
						|
    display: inline-flex;
 | 
						|
    align-items: center;
 | 
						|
  }
 | 
						|
  .external-link-with-icon .external-link-svg {
 | 
						|
    margin-left: 4px;
 | 
						|
    width: 14px;
 | 
						|
    height: 14px;
 | 
						|
    fill: var(--deemphasized-text-color);
 | 
						|
  }
 | 
						|
  .external-link-with-icon.normal-icon-color .external-link-svg {
 | 
						|
    fill: var(--body-text-color);
 | 
						|
  }
 | 
						|
</style>
 | 
						|
<script>
 | 
						|
  import { classname } from '../_utils/classname'
 | 
						|
 | 
						|
  export default {
 | 
						|
    data: () => ({
 | 
						|
      className: void 0,
 | 
						|
      normalIconColor: false,
 | 
						|
      ariaLabel: '',
 | 
						|
      showIcon: false
 | 
						|
    }),
 | 
						|
    computed: {
 | 
						|
      computedClass: ({ className, showIcon, normalIconColor }) => (classname(
 | 
						|
        'external-link',
 | 
						|
        className,
 | 
						|
        showIcon && 'external-link-with-icon',
 | 
						|
        normalIconColor && 'normal-icon-color'
 | 
						|
      ))
 | 
						|
    }
 | 
						|
  }
 | 
						|
</script> |