mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	replaced ti-external-link
This commit is contained in:
		
							parent
							
								
									48d29fa1ae
								
							
						
					
					
						commit
						0b72513ce5
					
				
					 12 changed files with 15 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
	@click.stop
 | 
			
		||||
>
 | 
			
		||||
	<slot></slot>
 | 
			
		||||
	<i v-if="target === '_blank'" class="ph-arrow-square-out ph-bold ph-lg" :class="$style.icon"></i>
 | 
			
		||||
	<i v-if="target === '_blank'" class="ti ti-external-link" :class="$style.icon"></i>
 | 
			
		||||
</component>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -121,7 +121,7 @@ const contextmenu = computed(() => ([{
 | 
			
		|||
	text: i18n.ts.popout,
 | 
			
		||||
	action: popout,
 | 
			
		||||
}, {
 | 
			
		||||
	icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
	icon: 'ti ti-external-link',
 | 
			
		||||
	text: i18n.ts.openInNewTab,
 | 
			
		||||
	action: () => {
 | 
			
		||||
		window.open(url + windowRouter.getCurrentPath(), '_blank', 'noopener');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,8 +34,8 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
				<template #label>{{ tosPrivacyPolicyLabel }}</template>
 | 
			
		||||
				<template #suffix><i v-if="agreeTosAndPrivacyPolicy" class="ti ti-check" style="color: var(--success)"></i></template>
 | 
			
		||||
				<div class="_gaps_s">
 | 
			
		||||
					<div v-if="availableTos"><a :href="instance.tosUrl ?? undefined" class="_link" target="_blank">{{ i18n.ts.termsOfService }} <i class="ph-arrow-square-out ph-bold ph-lg"></i></a></div>
 | 
			
		||||
					<div v-if="availablePrivacyPolicy"><a :href="instance.privacyPolicyUrl ?? undefined" class="_link" target="_blank">{{ i18n.ts.privacyPolicy }} <i class="ph-arrow-square-out ph-bold ph-lg"></i></a></div>
 | 
			
		||||
					<div v-if="availableTos"><a :href="instance.tosUrl ?? undefined" class="_link" target="_blank">{{ i18n.ts.termsOfService }} <i class="ti ti-external-link"></i></a></div>
 | 
			
		||||
					<div v-if="availablePrivacyPolicy"><a :href="instance.privacyPolicyUrl ?? undefined" class="_link" target="_blank">{{ i18n.ts.privacyPolicy }} <i class="ti ti-external-link"></i></a></div>
 | 
			
		||||
				</div>
 | 
			
		||||
 | 
			
		||||
				<MkSwitch :modelValue="agreeTosAndPrivacyPolicy" style="margin-top: 16px;" @update:modelValue="updateAgreeTosAndPrivacyPolicy">{{ i18n.ts.agree }}</MkSwitch>
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
				<template #label>{{ i18n.ts.basicNotesBeforeCreateAccount }}</template>
 | 
			
		||||
				<template #suffix><i v-if="agreeNote" class="ti ti-check" style="color: var(--success)"></i></template>
 | 
			
		||||
 | 
			
		||||
				<a href="https://activitypub.software/TransFem-org/Sharkey/-/blob/stable/IMPORTANT_NOTES.md" class="_link" target="_blank">{{ i18n.ts.basicNotesBeforeCreateAccount }} <i class="ph-arrow-square-out ph-bold ph-lg"></i></a>
 | 
			
		||||
				<a href="https://activitypub.software/TransFem-org/Sharkey/-/blob/stable/IMPORTANT_NOTES.md" class="_link" target="_blank">{{ i18n.ts.basicNotesBeforeCreateAccount }} <i class="ti ti-external-link"></i></a>
 | 
			
		||||
 | 
			
		||||
				<MkSwitch :modelValue="agreeNote" style="margin-top: 16px;" data-cy-signup-rules-notes-agree @update:modelValue="updateAgreeNote">{{ i18n.ts.agree }}</MkSwitch>
 | 
			
		||||
			</MkFolder>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
		<span :class="$style.text"><slot></slot></span>
 | 
			
		||||
		<span :class="$style.suffix">
 | 
			
		||||
			<span :class="$style.suffixText"><slot name="suffix"></slot></span>
 | 
			
		||||
			<i class="ph-arrow-square-out ph-bold ph-lg"></i>
 | 
			
		||||
			<i class="ti ti-external-link"></i>
 | 
			
		||||
		</span>
 | 
			
		||||
	</a>
 | 
			
		||||
	<a v-else-if="onClick" :class="[$style.main, { [$style.active]: active }]" class="_button" :behavior="behavior" @click="onClick">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,7 +67,7 @@ function onContextmenu(ev) {
 | 
			
		|||
			router.push(props.to, 'forcePage');
 | 
			
		||||
		},
 | 
			
		||||
	}, { type: 'divider' }, {
 | 
			
		||||
		icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
		icon: 'ti ti-external-link',
 | 
			
		||||
		text: i18n.ts.openInNewTab,
 | 
			
		||||
		action: () => {
 | 
			
		||||
			window.open(props.to, '_blank', 'noopener');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
	<span v-if="pathname != ''" :class="$style.pathname">{{ self ? pathname.substring(1) : pathname }}</span>
 | 
			
		||||
	<span :class="$style.query">{{ query }}</span>
 | 
			
		||||
	<span :class="$style.hash">{{ hash }}</span>
 | 
			
		||||
	<i v-if="target === '_blank'" :class="$style.icon" class="ph-arrow-square-out ph-bold ph-lg"></i>
 | 
			
		||||
	<i v-if="target === '_blank'" :class="$style.icon" class="ti ti-external-link"></i>
 | 
			
		||||
</component>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -120,7 +120,7 @@ async function toggleIsSensitive(v) {
 | 
			
		|||
 | 
			
		||||
const headerActions = computed(() => [{
 | 
			
		||||
	text: i18n.ts.openInNewTab,
 | 
			
		||||
	icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
	icon: 'ti ti-external-link',
 | 
			
		||||
	handler: () => {
 | 
			
		||||
		window.open(file.value.url, '_blank', 'noopener');
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,7 +53,7 @@ function promoteAllQueues() {
 | 
			
		|||
 | 
			
		||||
const headerActions = computed(() => [{
 | 
			
		||||
	asFullButton: true,
 | 
			
		||||
	icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
	icon: 'ti ti-external-link',
 | 
			
		||||
	text: i18n.ts.dashboard,
 | 
			
		||||
	handler: () => {
 | 
			
		||||
		window.open(config.url + '/queue', '_blank', 'noopener');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -261,7 +261,7 @@ fetch();
 | 
			
		|||
 | 
			
		||||
const headerActions = computed(() => [{
 | 
			
		||||
	text: `https://${props.host}`,
 | 
			
		||||
	icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
	icon: 'ti ti-external-link',
 | 
			
		||||
	handler: () => {
 | 
			
		||||
		window.open(`https://${props.host}`, '_blank', 'noopener');
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
	<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
 | 
			
		||||
	<MkSpacer :contentMax="700">
 | 
			
		||||
		<div class="jqqmcavi">
 | 
			
		||||
			<MkButton v-if="pageId" class="button" inline link :to="`/@${ author.username }/pages/${ currentName }`"><i class="ph-arrow-square-out ph-bold ph-lg"></i> {{ i18n.ts._pages.viewPage }}</MkButton>
 | 
			
		||||
			<MkButton v-if="pageId" class="button" inline link :to="`/@${ author.username }/pages/${ currentName }`"><i class="ti ti-external-link"></i> {{ i18n.ts._pages.viewPage }}</MkButton>
 | 
			
		||||
			<MkButton v-if="!readonly" inline primary class="button" @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
 | 
			
		||||
			<MkButton v-if="pageId" inline class="button" @click="duplicate"><i class="ti ti-copy"></i> {{ i18n.ts.duplicate }}</MkButton>
 | 
			
		||||
			<MkButton v-if="pageId && !readonly" inline class="button" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -335,7 +335,7 @@ export function getNoteMenu(props: {
 | 
			
		|||
				getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)')
 | 
			
		||||
			: undefined,
 | 
			
		||||
			(appearNote.url || appearNote.uri) ? {
 | 
			
		||||
				icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
				icon: 'ti ti-external-link',
 | 
			
		||||
				text: i18n.ts.showOnRemote,
 | 
			
		||||
				action: () => {
 | 
			
		||||
					window.open(appearNote.url ?? appearNote.uri, '_blank', 'noopener');
 | 
			
		||||
| 
						 | 
				
			
			@ -484,7 +484,7 @@ export function getNoteMenu(props: {
 | 
			
		|||
			getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)')
 | 
			
		||||
		: undefined,
 | 
			
		||||
		(appearNote.url || appearNote.uri) ? {
 | 
			
		||||
			icon: 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
			icon: 'ti ti-external-link',
 | 
			
		||||
			text: i18n.ts.showOnRemote,
 | 
			
		||||
			action: () => {
 | 
			
		||||
				window.open(appearNote.url ?? appearNote.uri, '_blank', 'noopener');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -212,6 +212,7 @@ export function getConfig(): UserConfig {
 | 
			
		|||
					'ti ti-hash': 'ph-hash ph-bold ph-lg',
 | 
			
		||||
					'ti ti-hourglass-empty': 'ph-hourglass ph-bold ph-lg',
 | 
			
		||||
					'ti ti-search': 'ph-magnifying-glass ph-bold ph-lg',
 | 
			
		||||
					'ti ti-external-link': 'ph-arrow-square-out ph-bold ph-lg',
 | 
			
		||||
				},
 | 
			
		||||
			}),
 | 
			
		||||
			...process.env.NODE_ENV === 'production'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue