Revert "wip"

This reverts commit f83bd31fd5.
This commit is contained in:
syuilo
2022-12-19 13:54:35 +09:00
parent f83bd31fd5
commit 52cbe07a78
143 changed files with 306 additions and 311 deletions

View File

@@ -86,7 +86,7 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.abuseReports,
icon: 'ti ti-exclamation-circle',
icon: 'fas fa-exclamation-circle',
});
</script>

View File

@@ -38,7 +38,7 @@
</MkTextarea>
<div class="buttons _formBlock">
<MkButton class="button" inline primary style="margin-right: 12px;" @click="save(ad)"><i class="fas fa-save"></i> {{ i18n.ts.save }}</MkButton>
<MkButton class="button" inline danger @click="remove(ad)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
<MkButton class="button" inline danger @click="remove(ad)"><i class="fas fa-trash-alt"></i> {{ i18n.ts.remove }}</MkButton>
</div>
</div>
</div>
@@ -106,7 +106,7 @@ function save(ad) {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
text: i18n.ts.add,
handler: add,
}]);

View File

@@ -17,7 +17,7 @@
<p v-if="announcement.reads">{{ i18n.t('nUsersRead', { n: announcement.reads }) }}</p>
<div class="buttons">
<MkButton class="button" inline primary @click="save(announcement)"><i class="fas fa-save"></i> {{ i18n.ts.save }}</MkButton>
<MkButton class="button" inline @click="remove(announcement)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
<MkButton class="button" inline @click="remove(announcement)"><i class="fas fa-trash-alt"></i> {{ i18n.ts.remove }}</MkButton>
</div>
</div>
</section>
@@ -92,7 +92,7 @@ function save(announcement) {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
text: i18n.ts.add,
handler: add,
}]);

View File

@@ -112,7 +112,7 @@ const headerActions = $computed(() => [{
handler: testEmail,
}, {
asFullButton: true,
icon: 'ti ti-check',
icon: 'fas fa-check',
text: i18n.ts.save,
handler: save,
}]);

View File

@@ -22,7 +22,7 @@
<template #label>{{ i18n.ts.tags }}</template>
<template #caption>{{ i18n.ts.setMultipleBySeparatingWithSpace }}</template>
</MkInput>
<MkButton danger @click="del()"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
<MkButton danger @click="del()"><i class="fas fa-trash-alt"></i> {{ i18n.ts.delete }}</MkButton>
</div>
</div>
</XModalWindow>

View File

@@ -6,7 +6,7 @@
<div class="ogwlenmc">
<div v-if="tab === 'local'" class="local">
<MkInput v-model="query" :debounce="true" type="search">
<template #prefix><i class="ti ti-search"></i></template>
<template #prefix><i class="fas fa-search"></i></template>
<template #label>{{ i18n.ts.search }}</template>
</MkInput>
<MkSwitch v-model="selectMode" style="margin: 8px 0;">
@@ -39,7 +39,7 @@
<div v-else-if="tab === 'remote'" class="remote">
<FormSplit>
<MkInput v-model="queryRemote" :debounce="true" type="search">
<template #prefix><i class="ti ti-search"></i></template>
<template #prefix><i class="fas fa-search"></i></template>
<template #label>{{ i18n.ts.search }}</template>
</MkInput>
<MkInput v-model="host" :debounce="true">
@@ -164,7 +164,7 @@ const remoteMenu = (emoji, ev: MouseEvent) => {
text: ':' + emoji.name + ':',
}, {
text: i18n.ts.import,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
action: () => { im(emoji); },
}], ev.currentTarget ?? ev.target);
};
@@ -273,11 +273,11 @@ const delBulk = async () => {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
text: i18n.ts.addEmoji,
handler: add,
}, {
icon: 'ti ti-dots',
icon: 'fas fa-ellipsis-h',
handler: menu,
}]);

View File

@@ -97,11 +97,11 @@ async function find() {
const headerActions = $computed(() => [{
text: i18n.ts.lookup,
icon: 'ti ti-search',
icon: 'fas fa-search',
handler: find,
}, {
text: i18n.ts.clearCachedFiles,
icon: 'ti ti-trash',
icon: 'fas fa-trash-alt',
handler: clear,
}]);
@@ -109,7 +109,7 @@ const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({
title: i18n.ts.files,
icon: 'ti ti-cloud',
icon: 'fas fa-cloud',
})));
</script>

View File

@@ -40,7 +40,7 @@ const router = useRouter();
const indexInfo = {
title: i18n.ts.controlPanel,
icon: 'ti ti-settings',
icon: 'fas fa-cog',
hideHeader: true,
};
@@ -75,7 +75,7 @@ const menuDef = $computed(() => [{
title: i18n.ts.quickAction,
items: [{
type: 'button',
icon: 'ti ti-search',
icon: 'fas fa-search',
text: i18n.ts.lookup,
action: lookup,
}, ...(instance.disableRegistration ? [{
@@ -102,7 +102,7 @@ const menuDef = $computed(() => [{
to: '/admin/emojis',
active: currentPage?.route.name === 'emojis',
}, {
icon: 'ti ti-world',
icon: 'fas fa-globe',
text: i18n.ts.federation,
to: '/about#federation',
active: currentPage?.route.name === 'federation',
@@ -112,7 +112,7 @@ const menuDef = $computed(() => [{
to: '/admin/queue',
active: currentPage?.route.name === 'queue',
}, {
icon: 'ti ti-cloud',
icon: 'fas fa-cloud',
text: i18n.ts.files,
to: '/admin/files',
active: currentPage?.route.name === 'files',
@@ -127,7 +127,7 @@ const menuDef = $computed(() => [{
to: '/admin/ads',
active: currentPage?.route.name === 'ads',
}, {
icon: 'ti ti-exclamation-circle',
icon: 'fas fa-exclamation-circle',
text: i18n.ts.abuseReports,
to: '/admin/abuses',
active: currentPage?.route.name === 'abuses',
@@ -135,7 +135,7 @@ const menuDef = $computed(() => [{
}, {
title: i18n.ts.settings,
items: [{
icon: 'ti ti-settings',
icon: 'fas fa-cog',
text: i18n.ts.general,
to: '/admin/settings',
active: currentPage?.route.name === 'settings',
@@ -145,7 +145,7 @@ const menuDef = $computed(() => [{
to: '/admin/email-settings',
active: currentPage?.route.name === 'email-settings',
}, {
icon: 'ti ti-cloud',
icon: 'fas fa-cloud',
text: i18n.ts.objectStorage,
to: '/admin/object-storage',
active: currentPage?.route.name === 'object-storage',
@@ -155,12 +155,12 @@ const menuDef = $computed(() => [{
to: '/admin/security',
active: currentPage?.route.name === 'security',
}, {
icon: 'ti ti-world',
icon: 'fas fa-globe',
text: i18n.ts.relays,
to: '/admin/relays',
active: currentPage?.route.name === 'relays',
}, {
icon: 'ti ti-share',
icon: 'fas fa-share-alt',
text: i18n.ts.integration,
to: '/admin/integrations',
active: currentPage?.route.name === 'integrations',
@@ -175,7 +175,7 @@ const menuDef = $computed(() => [{
to: '/admin/proxy-account',
active: currentPage?.route.name === 'proxy-account',
}, {
icon: 'ti ti-adjustments',
icon: 'fas fa-cogs',
text: i18n.ts.other,
to: '/admin/other-settings',
active: currentPage?.route.name === 'other-settings',
@@ -246,13 +246,13 @@ const lookup = (ev) => {
},
}, {
text: i18n.ts.file,
icon: 'ti ti-cloud',
icon: 'fas fa-cloud',
action: () => {
alert('TODO');
},
}, {
text: i18n.ts.instance,
icon: 'ti ti-world',
icon: 'fas fa-globe',
action: () => {
alert('TODO');
},

View File

@@ -52,6 +52,6 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.integration,
icon: 'ti ti-share',
icon: 'fas fa-share-alt',
});
</script>

View File

@@ -134,7 +134,7 @@ function save() {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-check',
icon: 'fas fa-check',
text: i18n.ts.save,
handler: save,
}]);
@@ -143,6 +143,6 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.objectStorage,
icon: 'ti ti-cloud',
icon: 'fas fa-cloud',
});
</script>

View File

@@ -30,7 +30,7 @@ function save() {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-check',
icon: 'fas fa-check',
text: i18n.ts.save,
handler: save,
}]);
@@ -39,6 +39,6 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.other,
icon: 'ti ti-adjustments',
icon: 'fas fa-cogs',
});
</script>

View File

@@ -5,12 +5,12 @@
<div v-for="relay in relays" :key="relay.inbox" class="relaycxt _panel _block" style="padding: 16px;">
<div>{{ relay.inbox }}</div>
<div class="status">
<i v-if="relay.status === 'accepted'" class="ti ti-check icon accepted"></i>
<i v-if="relay.status === 'accepted'" class="fas fa-check icon accepted"></i>
<i v-else-if="relay.status === 'rejected'" class="fas fa-ban icon rejected"></i>
<i v-else class="fas fa-clock icon requesting"></i>
<span>{{ $t(`_relayStatus.${relay.status}`) }}</span>
</div>
<MkButton class="button" inline danger @click="remove(relay.inbox)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
<MkButton class="button" inline danger @click="remove(relay.inbox)"><i class="fas fa-trash-alt"></i> {{ i18n.ts.remove }}</MkButton>
</div>
</MkSpacer>
</MkStickyContainer>
@@ -68,7 +68,7 @@ refresh();
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
text: i18n.ts.addRelay,
handler: addRelay,
}]);
@@ -77,7 +77,7 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.relays,
icon: 'ti ti-world',
icon: 'fas fa-globe',
});
</script>

View File

@@ -88,7 +88,7 @@
<div class="_formRoot">
<FormInput v-model="summalyProxy" class="_formBlock">
<template #prefix><i class="ti ti-link"></i></template>
<template #prefix><i class="fas fa-link"></i></template>
<template #label>Summaly Proxy URL</template>
</FormInput>

View File

@@ -14,7 +14,7 @@
</FormTextarea>
<FormInput v-model="tosUrl" class="_formBlock">
<template #prefix><i class="ti ti-link"></i></template>
<template #prefix><i class="fas fa-link"></i></template>
<template #label>{{ i18n.ts.tosUrl }}</template>
</FormInput>
@@ -54,17 +54,17 @@
<template #label>{{ i18n.ts.theme }}</template>
<FormInput v-model="iconUrl" class="_formBlock">
<template #prefix><i class="ti ti-link"></i></template>
<template #prefix><i class="fas fa-link"></i></template>
<template #label>{{ i18n.ts.iconUrl }}</template>
</FormInput>
<FormInput v-model="bannerUrl" class="_formBlock">
<template #prefix><i class="ti ti-link"></i></template>
<template #prefix><i class="fas fa-link"></i></template>
<template #label>{{ i18n.ts.bannerUrl }}</template>
</FormInput>
<FormInput v-model="backgroundImageUrl" class="_formBlock">
<template #prefix><i class="ti ti-link"></i></template>
<template #prefix><i class="fas fa-link"></i></template>
<template #label>{{ i18n.ts.backgroundImageUrl }}</template>
</FormInput>
@@ -248,7 +248,7 @@ function save() {
const headerActions = $computed(() => [{
asFullButton: true,
icon: 'ti ti-check',
icon: 'fas fa-check',
text: i18n.ts.save,
handler: save,
}]);
@@ -257,6 +257,6 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.general,
icon: 'ti ti-settings',
icon: 'fas fa-cog',
});
</script>

View File

@@ -115,17 +115,17 @@ function show(user) {
}
const headerActions = $computed(() => [{
icon: 'ti ti-search',
icon: 'fas fa-search',
text: i18n.ts.search,
handler: searchUser,
}, {
asFullButton: true,
icon: 'ti ti-plus',
icon: 'fas fa-plus',
text: i18n.ts.addUser,
handler: addUser,
}, {
asFullButton: true,
icon: 'ti ti-search',
icon: 'fas fa-search',
text: i18n.ts.lookup,
handler: lookupUser,
}]);