From 81a0ee4b2d089b9266d79595707a28f655f5cb27 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Oct 2021 17:37:51 +0900 Subject: [PATCH] client: change url /instance -> /admin --- .../pages/{instance => admin}/abuses.vue | 0 src/client/pages/{instance => admin}/ads.vue | 0 .../{instance => admin}/announcements.vue | 0 .../{instance => admin}/bot-protection.vue | 0 .../pages/{instance => admin}/database.vue | 0 .../{instance => admin}/email-settings.vue | 0 .../{instance => admin}/emoji-edit-dialog.vue | 0 .../pages/{instance => admin}/emojis.vue | 0 .../pages/{instance => admin}/file-dialog.vue | 0 .../{instance => admin}/files-settings.vue | 0 .../pages/{instance => admin}/files.vue | 0 .../pages/{instance => admin}/index.vue | 48 +++++++++---------- .../{instance => admin}/instance-block.vue | 0 .../pages/{instance => admin}/instance.vue | 0 .../integrations-discord.vue | 0 .../integrations-github.vue | 0 .../integrations-twitter.vue | 0 .../{instance => admin}/integrations.vue | 6 +-- src/client/pages/{instance => admin}/logs.vue | 0 .../pages/{instance => admin}/metrics.vue | 0 .../{instance => admin}/object-storage.vue | 0 .../{instance => admin}/other-settings.vue | 0 .../pages/{instance => admin}/overview.vue | 0 .../{instance => admin}/proxy-account.vue | 0 .../pages/{instance => admin}/queue.chart.vue | 0 .../pages/{instance => admin}/queue.vue | 0 .../pages/{instance => admin}/relays.vue | 0 .../pages/{instance => admin}/security.vue | 2 +- .../{instance => admin}/service-worker.vue | 0 .../pages/{instance => admin}/settings.vue | 0 .../pages/{instance => admin}/users.vue | 0 src/client/pages/instance-info.vue | 2 +- src/client/router.ts | 4 +- src/client/ui/_common_/sidebar.vue | 2 +- src/client/ui/default.header.vue | 2 +- src/client/ui/default.sidebar.vue | 2 +- 36 files changed, 34 insertions(+), 34 deletions(-) rename src/client/pages/{instance => admin}/abuses.vue (100%) rename src/client/pages/{instance => admin}/ads.vue (100%) rename src/client/pages/{instance => admin}/announcements.vue (100%) rename src/client/pages/{instance => admin}/bot-protection.vue (100%) rename src/client/pages/{instance => admin}/database.vue (100%) rename src/client/pages/{instance => admin}/email-settings.vue (100%) rename src/client/pages/{instance => admin}/emoji-edit-dialog.vue (100%) rename src/client/pages/{instance => admin}/emojis.vue (100%) rename src/client/pages/{instance => admin}/file-dialog.vue (100%) rename src/client/pages/{instance => admin}/files-settings.vue (100%) rename src/client/pages/{instance => admin}/files.vue (100%) rename src/client/pages/{instance => admin}/index.vue (91%) rename src/client/pages/{instance => admin}/instance-block.vue (100%) rename src/client/pages/{instance => admin}/instance.vue (100%) rename src/client/pages/{instance => admin}/integrations-discord.vue (100%) rename src/client/pages/{instance => admin}/integrations-github.vue (100%) rename src/client/pages/{instance => admin}/integrations-twitter.vue (100%) rename src/client/pages/{instance => admin}/integrations.vue (93%) rename src/client/pages/{instance => admin}/logs.vue (100%) rename src/client/pages/{instance => admin}/metrics.vue (100%) rename src/client/pages/{instance => admin}/object-storage.vue (100%) rename src/client/pages/{instance => admin}/other-settings.vue (100%) rename src/client/pages/{instance => admin}/overview.vue (100%) rename src/client/pages/{instance => admin}/proxy-account.vue (100%) rename src/client/pages/{instance => admin}/queue.chart.vue (100%) rename src/client/pages/{instance => admin}/queue.vue (100%) rename src/client/pages/{instance => admin}/relays.vue (100%) rename src/client/pages/{instance => admin}/security.vue (98%) rename src/client/pages/{instance => admin}/service-worker.vue (100%) rename src/client/pages/{instance => admin}/settings.vue (100%) rename src/client/pages/{instance => admin}/users.vue (100%) diff --git a/src/client/pages/instance/abuses.vue b/src/client/pages/admin/abuses.vue similarity index 100% rename from src/client/pages/instance/abuses.vue rename to src/client/pages/admin/abuses.vue diff --git a/src/client/pages/instance/ads.vue b/src/client/pages/admin/ads.vue similarity index 100% rename from src/client/pages/instance/ads.vue rename to src/client/pages/admin/ads.vue diff --git a/src/client/pages/instance/announcements.vue b/src/client/pages/admin/announcements.vue similarity index 100% rename from src/client/pages/instance/announcements.vue rename to src/client/pages/admin/announcements.vue diff --git a/src/client/pages/instance/bot-protection.vue b/src/client/pages/admin/bot-protection.vue similarity index 100% rename from src/client/pages/instance/bot-protection.vue rename to src/client/pages/admin/bot-protection.vue diff --git a/src/client/pages/instance/database.vue b/src/client/pages/admin/database.vue similarity index 100% rename from src/client/pages/instance/database.vue rename to src/client/pages/admin/database.vue diff --git a/src/client/pages/instance/email-settings.vue b/src/client/pages/admin/email-settings.vue similarity index 100% rename from src/client/pages/instance/email-settings.vue rename to src/client/pages/admin/email-settings.vue diff --git a/src/client/pages/instance/emoji-edit-dialog.vue b/src/client/pages/admin/emoji-edit-dialog.vue similarity index 100% rename from src/client/pages/instance/emoji-edit-dialog.vue rename to src/client/pages/admin/emoji-edit-dialog.vue diff --git a/src/client/pages/instance/emojis.vue b/src/client/pages/admin/emojis.vue similarity index 100% rename from src/client/pages/instance/emojis.vue rename to src/client/pages/admin/emojis.vue diff --git a/src/client/pages/instance/file-dialog.vue b/src/client/pages/admin/file-dialog.vue similarity index 100% rename from src/client/pages/instance/file-dialog.vue rename to src/client/pages/admin/file-dialog.vue diff --git a/src/client/pages/instance/files-settings.vue b/src/client/pages/admin/files-settings.vue similarity index 100% rename from src/client/pages/instance/files-settings.vue rename to src/client/pages/admin/files-settings.vue diff --git a/src/client/pages/instance/files.vue b/src/client/pages/admin/files.vue similarity index 100% rename from src/client/pages/instance/files.vue rename to src/client/pages/admin/files.vue diff --git a/src/client/pages/instance/index.vue b/src/client/pages/admin/index.vue similarity index 91% rename from src/client/pages/instance/index.vue rename to src/client/pages/admin/index.vue index 7b07bf2dd..7094f2d4b 100644 --- a/src/client/pages/instance/index.vue +++ b/src/client/pages/admin/index.vue @@ -7,8 +7,8 @@ - {{ $ts.noMaintainerInformationWarning }} {{ $ts.configure }} - {{ $ts.noBotProtectionWarning }} {{ $ts.configure }} + {{ $ts.noMaintainerInformationWarning }} {{ $ts.configure }} + {{ $ts.noBotProtectionWarning }} {{ $ts.configure }} @@ -93,47 +93,47 @@ export default defineComponent({ items: [{ icon: 'fas fa-tachometer-alt', text: i18n.locale.dashboard, - to: '/instance/overview', + to: '/admin/overview', active: page.value === 'overview', }, { icon: 'fas fa-users', text: i18n.locale.users, - to: '/instance/users', + to: '/admin/users', active: page.value === 'users', }, { icon: 'fas fa-laugh', text: i18n.locale.customEmojis, - to: '/instance/emojis', + to: '/admin/emojis', active: page.value === 'emojis', }, { icon: 'fas fa-globe', text: i18n.locale.federation, - to: '/instance/federation', + to: '/admin/federation', active: page.value === 'federation', }, { icon: 'fas fa-clipboard-list', text: i18n.locale.jobQueue, - to: '/instance/queue', + to: '/admin/queue', active: page.value === 'queue', }, { icon: 'fas fa-cloud', text: i18n.locale.files, - to: '/instance/files', + to: '/admin/files', active: page.value === 'files', }, { icon: 'fas fa-broadcast-tower', text: i18n.locale.announcements, - to: '/instance/announcements', + to: '/admin/announcements', active: page.value === 'announcements', }, { icon: 'fas fa-audio-description', text: i18n.locale.ads, - to: '/instance/ads', + to: '/admin/ads', active: page.value === 'ads', }, { icon: 'fas fa-exclamation-circle', text: i18n.locale.abuseReports, - to: '/instance/abuses', + to: '/admin/abuses', active: page.value === 'abuses', }], }, { @@ -141,57 +141,57 @@ export default defineComponent({ items: [{ icon: 'fas fa-cog', text: i18n.locale.general, - to: '/instance/settings', + to: '/admin/settings', active: page.value === 'settings', }, { icon: 'fas fa-cloud', text: i18n.locale.files, - to: '/instance/files-settings', + to: '/admin/files-settings', active: page.value === 'files-settings', }, { icon: 'fas fa-envelope', text: i18n.locale.emailServer, - to: '/instance/email-settings', + to: '/admin/email-settings', active: page.value === 'email-settings', }, { icon: 'fas fa-cloud', text: i18n.locale.objectStorage, - to: '/instance/object-storage', + to: '/admin/object-storage', active: page.value === 'object-storage', }, { icon: 'fas fa-lock', text: i18n.locale.security, - to: '/instance/security', + to: '/admin/security', active: page.value === 'security', }, { icon: 'fas fa-bolt', text: 'ServiceWorker', - to: '/instance/service-worker', + to: '/admin/service-worker', active: page.value === 'service-worker', }, { icon: 'fas fa-globe', text: i18n.locale.relays, - to: '/instance/relays', + to: '/admin/relays', active: page.value === 'relays', }, { icon: 'fas fa-share-alt', text: i18n.locale.integration, - to: '/instance/integrations', + to: '/admin/integrations', active: page.value === 'integrations', }, { icon: 'fas fa-ban', text: i18n.locale.instanceBlocking, - to: '/instance/instance-block', + to: '/admin/instance-block', active: page.value === 'instance-block', }, { icon: 'fas fa-ghost', text: i18n.locale.proxyAccount, - to: '/instance/proxy-account', + to: '/admin/proxy-account', active: page.value === 'proxy-account', }, { icon: 'fas fa-cogs', text: i18n.locale.other, - to: '/instance/other-settings', + to: '/admin/other-settings', active: page.value === 'other-settings', }], }, { @@ -199,12 +199,12 @@ export default defineComponent({ items: [{ icon: 'fas fa-database', text: i18n.locale.database, - to: '/instance/database', + to: '/admin/database', active: page.value === 'database', }, { icon: 'fas fa-stream', text: i18n.locale.logs, - to: '/instance/logs', + to: '/admin/logs', active: page.value === 'logs', }], }]); diff --git a/src/client/pages/instance/instance-block.vue b/src/client/pages/admin/instance-block.vue similarity index 100% rename from src/client/pages/instance/instance-block.vue rename to src/client/pages/admin/instance-block.vue diff --git a/src/client/pages/instance/instance.vue b/src/client/pages/admin/instance.vue similarity index 100% rename from src/client/pages/instance/instance.vue rename to src/client/pages/admin/instance.vue diff --git a/src/client/pages/instance/integrations-discord.vue b/src/client/pages/admin/integrations-discord.vue similarity index 100% rename from src/client/pages/instance/integrations-discord.vue rename to src/client/pages/admin/integrations-discord.vue diff --git a/src/client/pages/instance/integrations-github.vue b/src/client/pages/admin/integrations-github.vue similarity index 100% rename from src/client/pages/instance/integrations-github.vue rename to src/client/pages/admin/integrations-github.vue diff --git a/src/client/pages/instance/integrations-twitter.vue b/src/client/pages/admin/integrations-twitter.vue similarity index 100% rename from src/client/pages/instance/integrations-twitter.vue rename to src/client/pages/admin/integrations-twitter.vue diff --git a/src/client/pages/instance/integrations.vue b/src/client/pages/admin/integrations.vue similarity index 93% rename from src/client/pages/instance/integrations.vue rename to src/client/pages/admin/integrations.vue index 6964ae570..bdc2cec4d 100644 --- a/src/client/pages/instance/integrations.vue +++ b/src/client/pages/admin/integrations.vue @@ -1,15 +1,15 @@
- +