replaced ti-upload

This commit is contained in:
dakkar 2024-06-21 17:23:04 +01:00
parent 8f60c6d7e1
commit 99d7ba8bbc
5 changed files with 14 additions and 13 deletions

View file

@ -623,7 +623,7 @@ function getMenu() {
type: 'label',
}, {
text: i18n.ts.upload,
icon: 'ph-upload ph-bold ph-lg',
icon: 'ti ti-upload',
action: () => { selectLocalFile(); },
}, {
text: i18n.ts.fromUrl,

View file

@ -206,7 +206,7 @@ const menu = (ev: MouseEvent) => {
});
},
}, {
icon: 'ph-upload ph-bold ph-lg',
icon: 'ti ti-upload',
text: i18n.ts.import,
action: async () => {
const file = await selectFile(ev.currentTarget ?? ev.target);

View file

@ -62,11 +62,11 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="$i && !$i.movedTo">
<template #label>{{ i18n.ts.import }}</template>
<template #icon><i class="ph-upload ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-upload"></i></template>
<MkSwitch v-model="withReplies">
{{ i18n.ts._exportOrImport.withReplies }}
</MkSwitch>
<MkButton primary :class="$style.button" inline @click="importFollowing($event)"><i class="ph-upload ph-bold ph-lg"></i> {{ i18n.ts.import }}</MkButton>
<MkButton primary :class="$style.button" inline @click="importFollowing($event)"><i class="ti ti-upload"></i> {{ i18n.ts.import }}</MkButton>
</MkFolder>
</div>
</FormSection>
@ -80,8 +80,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="$i && !$i.movedTo">
<template #label>{{ i18n.ts.import }}</template>
<template #icon><i class="ph-upload ph-bold ph-lg"></i></template>
<MkButton primary :class="$style.button" inline @click="importUserLists($event)"><i class="ph-upload ph-bold ph-lg"></i> {{ i18n.ts.import }}</MkButton>
<template #icon><i class="ti ti-upload"></i></template>
<MkButton primary :class="$style.button" inline @click="importUserLists($event)"><i class="ti ti-upload"></i> {{ i18n.ts.import }}</MkButton>
</MkFolder>
</div>
</FormSection>
@ -95,8 +95,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="$i && !$i.movedTo">
<template #label>{{ i18n.ts.import }}</template>
<template #icon><i class="ph-upload ph-bold ph-lg"></i></template>
<MkButton primary :class="$style.button" inline @click="importMuting($event)"><i class="ph-upload ph-bold ph-lg"></i> {{ i18n.ts.import }}</MkButton>
<template #icon><i class="ti ti-upload"></i></template>
<MkButton primary :class="$style.button" inline @click="importMuting($event)"><i class="ti ti-upload"></i> {{ i18n.ts.import }}</MkButton>
</MkFolder>
</div>
</FormSection>
@ -110,8 +110,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="$i && !$i.movedTo">
<template #label>{{ i18n.ts.import }}</template>
<template #icon><i class="ph-upload ph-bold ph-lg"></i></template>
<MkButton primary :class="$style.button" inline @click="importBlocking($event)"><i class="ph-upload ph-bold ph-lg"></i> {{ i18n.ts.import }}</MkButton>
<template #icon><i class="ti ti-upload"></i></template>
<MkButton primary :class="$style.button" inline @click="importBlocking($event)"><i class="ti ti-upload"></i> {{ i18n.ts.import }}</MkButton>
</MkFolder>
</div>
</FormSection>
@ -125,8 +125,8 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="$i && !$i.movedTo">
<template #label>{{ i18n.ts.import }}</template>
<template #icon><i class="ph-upload ph-bold ph-lg"></i></template>
<MkButton primary :class="$style.button" inline @click="importAntennas($event)"><i class="ph-upload ph-bold ph-lg"></i> {{ i18n.ts.import }}</MkButton>
<template #icon><i class="ti ti-upload"></i></template>
<MkButton primary :class="$style.button" inline @click="importAntennas($event)"><i class="ti ti-upload"></i> {{ i18n.ts.import }}</MkButton>
</MkFolder>
</div>
</FormSection>

View file

@ -93,7 +93,7 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Miss
ref: keepOriginal,
}, {
text: i18n.ts.upload,
icon: 'ph-upload ph-bold ph-lg',
icon: 'ti ti-upload',
action: () => chooseFileFromPc(multiple, keepOriginal.value).then(files => res(files)),
}, {
text: i18n.ts.fromDrive,

View file

@ -183,6 +183,7 @@ export function getConfig(): UserConfig {
'ti ti-trash': 'ph-trash ph-bold ph-lg',
'ti ti-id': 'ph-identification-card ph-bold ph-lg',
'ti ti-cloud': 'ph-cloud ph-bold ph-lg',
'ti ti-upload': 'ph-upload ph-bold ph-lg',
},
}),
...process.env.NODE_ENV === 'production'