mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	replaced ti-photo
This commit is contained in:
		
							parent
							
								
									99d7ba8bbc
								
							
						
					
					
						commit
						834e449978
					
				
					 6 changed files with 22 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
<template>
 | 
			
		||||
<div ref="thumbnail" :class="$style.root">
 | 
			
		||||
	<ImgWithBlurhash v-if="isThumbnailAvailable" :hash="file.blurhash" :src="file.thumbnailUrl" :alt="file.name" :title="file.name" :cover="fit !== 'contain'"/>
 | 
			
		||||
	<i v-else-if="is === 'image'" class="ph-image-square ph-bold ph-lg" :class="$style.icon"></i>
 | 
			
		||||
	<i v-else-if="is === 'image'" class="ti ti-photo" :class="$style.icon"></i>
 | 
			
		||||
	<i v-else-if="is === 'video'" class="ph-video ph-bold ph-lg" :class="$style.icon"></i>
 | 
			
		||||
	<i v-else-if="is === 'audio' || is === 'midi'" class="ph-file-audio ph-bold ph-lg" :class="$style.icon"></i>
 | 
			
		||||
	<i v-else-if="is === 'csv'" class="ph-file-text ph-bold ph-lg" :class="$style.icon"></i>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
		<div :class="$style.hiddenText">
 | 
			
		||||
			<div :class="$style.hiddenTextWrapper">
 | 
			
		||||
				<b v-if="image.isSensitive" style="display: block;"><i class="ph-eye-closed ph-bold ph-lg"></i> {{ i18n.ts.sensitive }}{{ defaultStore.state.dataSaver.media ? ` (${i18n.ts.image}${image.size ? ' ' + bytes(image.size) : ''})` : '' }}</b>
 | 
			
		||||
				<b v-else style="display: block;"><i class="ph-image-square ph-bold ph-lg"></i> {{ defaultStore.state.dataSaver.media && image.size ? bytes(image.size) : i18n.ts.image }}</b>
 | 
			
		||||
				<b v-else style="display: block;"><i class="ti ti-photo"></i> {{ defaultStore.state.dataSaver.media && image.size ? bytes(image.size) : i18n.ts.image }}</b>
 | 
			
		||||
				<span v-if="controls" style="display: block;">{{ i18n.ts.clickToShow }}</span>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -111,7 +111,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
 | 
			
		||||
						<div>
 | 
			
		||||
							<MkButton v-if="iAmModerator" inline danger style="margin-right: 8px;" @click="unsetUserAvatar"><i class="ph-user-circle ph-bold ph-lg"></i> {{ i18n.ts.unsetUserAvatar }}</MkButton>
 | 
			
		||||
							<MkButton v-if="iAmModerator" inline danger style="margin-right: 8px;" @click="unsetUserBanner"><i class="ph-image ph-bold ph-lg"></i> {{ i18n.ts.unsetUserBanner }}</MkButton>
 | 
			
		||||
							<MkButton v-if="iAmModerator" inline danger style="margin-right: 8px;" @click="unsetUserBanner"><i class="ti ti-photo"></i> {{ i18n.ts.unsetUserBanner }}</MkButton>
 | 
			
		||||
							<MkButton v-if="iAmModerator" inline danger @click="deleteAllFiles"><i class="ph-cloud ph-bold ph-lg"></i> {{ i18n.ts.deleteAllFiles }}</MkButton>
 | 
			
		||||
						</div>
 | 
			
		||||
						<MkButton v-if="$i.isAdmin" inline danger @click="deleteAccount">{{ i18n.ts.deleteAccount }}</MkButton>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
<template>
 | 
			
		||||
<!-- eslint-disable vue/no-mutating-props -->
 | 
			
		||||
<XContainer :draggable="true" @remove="() => $emit('remove')">
 | 
			
		||||
	<template #header><i class="ph-image-square ph-bold ph-lg"></i> {{ i18n.ts._pages.blocks.image }}</template>
 | 
			
		||||
	<template #header><i class="ti ti-photo"></i> {{ i18n.ts._pages.blocks.image }}</template>
 | 
			
		||||
	<template #func>
 | 
			
		||||
		<button @click="choose()">
 | 
			
		||||
			<i class="ti ti-folder"></i>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
 | 
			
		||||
<template>
 | 
			
		||||
<MkContainer :max-height="300" :foldable="true">
 | 
			
		||||
	<template #icon><i class="ph-image-square ph-bold ph-lg"></i></template>
 | 
			
		||||
	<template #icon><i class="ti ti-photo"></i></template>
 | 
			
		||||
	<template #header>{{ i18n.ts.files }}</template>
 | 
			
		||||
	<div :class="$style.root">
 | 
			
		||||
		<MkLoading v-if="fetching"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -126,7 +126,23 @@ export function getConfig(): UserConfig {
 | 
			
		|||
					'**/pages/flash/flash.*',
 | 
			
		||||
				],
 | 
			
		||||
			}),
 | 
			
		||||
		iconsReplace({
 | 
			
		||||
			iconsReplace({
 | 
			
		||||
				values: {
 | 
			
		||||
					'ti ti-photo': 'ph-image-square ph-bold ph-lg',
 | 
			
		||||
				},
 | 
			
		||||
				exclude: [
 | 
			
		||||
					'**/pages/admin-user.*',
 | 
			
		||||
				],
 | 
			
		||||
			}),
 | 
			
		||||
			iconsReplace({
 | 
			
		||||
				values: {
 | 
			
		||||
					'ti ti-photo': 'ph-image ph-bold ph-lg',
 | 
			
		||||
				},
 | 
			
		||||
				include: [
 | 
			
		||||
					'**/pages/admin-user.*',
 | 
			
		||||
				],
 | 
			
		||||
			}),
 | 
			
		||||
			iconsReplace({
 | 
			
		||||
				values: {
 | 
			
		||||
					'ti ti-terminal-2': 'ph-terminal-window ph-bold ph-lg',
 | 
			
		||||
					'ti ti-download': 'ph-download ph-bold ph-lg',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue