mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	replaced ti-copy
This commit is contained in:
		
							parent
							
								
									582f4b01ce
								
							
						
					
					
						commit
						232bbd20e3
					
				
					 11 changed files with 14 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
<template>
 | 
			
		||||
<div :class="$style.codeBlockRoot">
 | 
			
		||||
	<button :class="$style.codeBlockCopyButton" class="_button" @click="copy">
 | 
			
		||||
		<i class="ph-copy ph-bold ph-lg"></i>
 | 
			
		||||
		<i class="ti ti-copy"></i>
 | 
			
		||||
	</button>
 | 
			
		||||
	<Suspense>
 | 
			
		||||
		<template #fallback>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
		<div :class="$style.buttons">
 | 
			
		||||
			<MkButton v-if="!invite.used && !isExpired" primary rounded @click="copyInviteCode()"><i class="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
			<MkButton v-if="!invite.used && !isExpired" primary rounded @click="copyInviteCode()"><i class="ti ti-copy"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
			<MkButton v-if="!invite.used || moderator" danger rounded @click="deleteCode()"><i class="ph-trash ph-bold ph-lg"></i> {{ i18n.ts.delete }}</MkButton>
 | 
			
		||||
		</div>
 | 
			
		||||
	</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
	</div>
 | 
			
		||||
	<div :class="$style.value">
 | 
			
		||||
		<slot name="value"></slot>
 | 
			
		||||
		<button v-if="copy" v-tooltip="i18n.ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="ph-copy ph-bold ph-lg"></i></button>
 | 
			
		||||
		<button v-if="copy" v-tooltip="i18n.ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="ti ti-copy"></i></button>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
</template>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,7 +91,7 @@ function onClick(ev: MouseEvent) {
 | 
			
		|||
			text: `:${props.name}:`,
 | 
			
		||||
		}, {
 | 
			
		||||
			text: i18n.ts.copy,
 | 
			
		||||
			icon: 'ph-copy ph-bold ph-lg',
 | 
			
		||||
			icon: 'ti ti-copy',
 | 
			
		||||
			action: () => {
 | 
			
		||||
				copyToClipboard(`:${props.name}:`);
 | 
			
		||||
				os.success();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ function onClick(ev: MouseEvent) {
 | 
			
		|||
			text: props.emoji,
 | 
			
		||||
		}, {
 | 
			
		||||
			text: i18n.ts.copy,
 | 
			
		||||
			icon: 'ph-copy ph-bold ph-lg',
 | 
			
		||||
			icon: 'ti ti-copy',
 | 
			
		||||
			action: () => {
 | 
			
		||||
				copyToClipboard(props.emoji);
 | 
			
		||||
				os.success();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ function menu(ev) {
 | 
			
		|||
		text: ':' + props.emoji.name + ':',
 | 
			
		||||
	}, {
 | 
			
		||||
		text: i18n.ts.copy,
 | 
			
		||||
		icon: 'ph-copy ph-bold ph-lg',
 | 
			
		||||
		icon: 'ti ti-copy',
 | 
			
		||||
		action: () => {
 | 
			
		||||
			copyToClipboard(`:${props.emoji.name}:`);
 | 
			
		||||
			os.success();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
		<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="!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="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.duplicate }}</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="ph-trash ph-bold ph-lg"></i> {{ i18n.ts.delete }}</MkButton>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
			<div class="_buttons">
 | 
			
		||||
				<MkButton inline @click="previewReaction"><i class="ti ti-eye"></i> {{ i18n.ts.preview }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="setDefaultReaction"><i class="ti ti-reload"></i> {{ i18n.ts.default }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="overwriteFromPinnedEmojis"><i class="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.overwriteFromPinnedEmojis }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="overwriteFromPinnedEmojis"><i class="ti ti-copy"></i> {{ i18n.ts.overwriteFromPinnedEmojis }}</MkButton>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	</MkFolder>
 | 
			
		||||
| 
						 | 
				
			
			@ -80,7 +80,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
			<div class="_buttons">
 | 
			
		||||
				<MkButton inline @click="previewEmoji"><i class="ti ti-eye"></i> {{ i18n.ts.preview }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="setDefaultEmoji"><i class="ti ti-reload"></i> {{ i18n.ts.default }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="overwriteFromPinnedEmojisForReaction"><i class="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.overwriteFromPinnedEmojisForReaction }}</MkButton>
 | 
			
		||||
				<MkButton inline danger @click="overwriteFromPinnedEmojisForReaction"><i class="ti ti-copy"></i> {{ i18n.ts.overwriteFromPinnedEmojisForReaction }}</MkButton>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	</MkFolder>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
 | 
			
		||||
					<div class="_gaps_s">
 | 
			
		||||
						<div class="_buttons">
 | 
			
		||||
							<MkButton inline @click="copy(pluginLogs.get(plugin.id)?.join('\n'))"><i class="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
							<MkButton inline @click="copy(pluginLogs.get(plugin.id)?.join('\n'))"><i class="ti ti-copy"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
						<MkCode :code="pluginLogs.get(plugin.id)?.join('\n') ?? ''"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
 | 
			
		||||
					<div class="_gaps_s">
 | 
			
		||||
						<div class="_buttons">
 | 
			
		||||
							<MkButton inline @click="copy(plugin.src)"><i class="ph-copy ph-bold ph-lg"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
							<MkButton inline @click="copy(plugin.src)"><i class="ti ti-copy"></i> {{ i18n.ts.copy }}</MkButton>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
						<MkCode :code="plugin.src ?? ''" lang="is"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -327,7 +327,7 @@ export function getNoteMenu(props: {
 | 
			
		|||
				text: i18n.ts.details,
 | 
			
		||||
				action: openDetail,
 | 
			
		||||
			}, {
 | 
			
		||||
				icon: 'ph-copy ph-bold ph-lg',
 | 
			
		||||
				icon: 'ti ti-copy',
 | 
			
		||||
				text: i18n.ts.copyContent,
 | 
			
		||||
				action: copyContent,
 | 
			
		||||
			}, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)
 | 
			
		||||
| 
						 | 
				
			
			@ -476,7 +476,7 @@ export function getNoteMenu(props: {
 | 
			
		|||
			text: i18n.ts.details,
 | 
			
		||||
			action: openDetail,
 | 
			
		||||
		}, {
 | 
			
		||||
			icon: 'ph-copy ph-bold ph-lg',
 | 
			
		||||
			icon: 'ti ti-copy',
 | 
			
		||||
			text: i18n.ts.copyContent,
 | 
			
		||||
			action: copyContent,
 | 
			
		||||
		}, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -170,6 +170,7 @@ export function getConfig(): UserConfig {
 | 
			
		|||
					'ti ti-minus': 'ph-minus ph-bold ph-lg',
 | 
			
		||||
					'ti ti-device-tv': 'ph-television ph-bold ph-lg',
 | 
			
		||||
					'ti ti-cookie': 'ph-cookie ph-bold ph-lg',
 | 
			
		||||
					'ti ti-copy': 'ph-copy ph-bold ph-lg',
 | 
			
		||||
				},
 | 
			
		||||
			}),
 | 
			
		||||
			...process.env.NODE_ENV === 'production'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue