mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:53:08 +02:00
client: change url /instance -> /admin
This commit is contained in:
parent
967c655de0
commit
81a0ee4b2d
36 changed files with 34 additions and 34 deletions
|
@ -7,8 +7,8 @@
|
||||||
<img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
<img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MkInfo v-if="noMaintainerInformation" warn class="info">{{ $ts.noMaintainerInformationWarning }} <MkA to="/instance/settings" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
<MkInfo v-if="noMaintainerInformation" warn class="info">{{ $ts.noMaintainerInformationWarning }} <MkA to="/admin/settings" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
||||||
<MkInfo v-if="noBotProtection" warn class="info">{{ $ts.noBotProtectionWarning }} <MkA to="/instance/bot-protection" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
<MkInfo v-if="noBotProtection" warn class="info">{{ $ts.noBotProtectionWarning }} <MkA to="/admin/bot-protection" class="_link">{{ $ts.configure }}</MkA></MkInfo>
|
||||||
|
|
||||||
<MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu>
|
<MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu>
|
||||||
</div>
|
</div>
|
||||||
|
@ -93,47 +93,47 @@ export default defineComponent({
|
||||||
items: [{
|
items: [{
|
||||||
icon: 'fas fa-tachometer-alt',
|
icon: 'fas fa-tachometer-alt',
|
||||||
text: i18n.locale.dashboard,
|
text: i18n.locale.dashboard,
|
||||||
to: '/instance/overview',
|
to: '/admin/overview',
|
||||||
active: page.value === 'overview',
|
active: page.value === 'overview',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-users',
|
icon: 'fas fa-users',
|
||||||
text: i18n.locale.users,
|
text: i18n.locale.users,
|
||||||
to: '/instance/users',
|
to: '/admin/users',
|
||||||
active: page.value === 'users',
|
active: page.value === 'users',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-laugh',
|
icon: 'fas fa-laugh',
|
||||||
text: i18n.locale.customEmojis,
|
text: i18n.locale.customEmojis,
|
||||||
to: '/instance/emojis',
|
to: '/admin/emojis',
|
||||||
active: page.value === 'emojis',
|
active: page.value === 'emojis',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-globe',
|
icon: 'fas fa-globe',
|
||||||
text: i18n.locale.federation,
|
text: i18n.locale.federation,
|
||||||
to: '/instance/federation',
|
to: '/admin/federation',
|
||||||
active: page.value === 'federation',
|
active: page.value === 'federation',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-clipboard-list',
|
icon: 'fas fa-clipboard-list',
|
||||||
text: i18n.locale.jobQueue,
|
text: i18n.locale.jobQueue,
|
||||||
to: '/instance/queue',
|
to: '/admin/queue',
|
||||||
active: page.value === 'queue',
|
active: page.value === 'queue',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
text: i18n.locale.files,
|
text: i18n.locale.files,
|
||||||
to: '/instance/files',
|
to: '/admin/files',
|
||||||
active: page.value === 'files',
|
active: page.value === 'files',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-broadcast-tower',
|
icon: 'fas fa-broadcast-tower',
|
||||||
text: i18n.locale.announcements,
|
text: i18n.locale.announcements,
|
||||||
to: '/instance/announcements',
|
to: '/admin/announcements',
|
||||||
active: page.value === 'announcements',
|
active: page.value === 'announcements',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-audio-description',
|
icon: 'fas fa-audio-description',
|
||||||
text: i18n.locale.ads,
|
text: i18n.locale.ads,
|
||||||
to: '/instance/ads',
|
to: '/admin/ads',
|
||||||
active: page.value === 'ads',
|
active: page.value === 'ads',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-exclamation-circle',
|
icon: 'fas fa-exclamation-circle',
|
||||||
text: i18n.locale.abuseReports,
|
text: i18n.locale.abuseReports,
|
||||||
to: '/instance/abuses',
|
to: '/admin/abuses',
|
||||||
active: page.value === 'abuses',
|
active: page.value === 'abuses',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
|
@ -141,57 +141,57 @@ export default defineComponent({
|
||||||
items: [{
|
items: [{
|
||||||
icon: 'fas fa-cog',
|
icon: 'fas fa-cog',
|
||||||
text: i18n.locale.general,
|
text: i18n.locale.general,
|
||||||
to: '/instance/settings',
|
to: '/admin/settings',
|
||||||
active: page.value === 'settings',
|
active: page.value === 'settings',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
text: i18n.locale.files,
|
text: i18n.locale.files,
|
||||||
to: '/instance/files-settings',
|
to: '/admin/files-settings',
|
||||||
active: page.value === 'files-settings',
|
active: page.value === 'files-settings',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-envelope',
|
icon: 'fas fa-envelope',
|
||||||
text: i18n.locale.emailServer,
|
text: i18n.locale.emailServer,
|
||||||
to: '/instance/email-settings',
|
to: '/admin/email-settings',
|
||||||
active: page.value === 'email-settings',
|
active: page.value === 'email-settings',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
text: i18n.locale.objectStorage,
|
text: i18n.locale.objectStorage,
|
||||||
to: '/instance/object-storage',
|
to: '/admin/object-storage',
|
||||||
active: page.value === 'object-storage',
|
active: page.value === 'object-storage',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-lock',
|
icon: 'fas fa-lock',
|
||||||
text: i18n.locale.security,
|
text: i18n.locale.security,
|
||||||
to: '/instance/security',
|
to: '/admin/security',
|
||||||
active: page.value === 'security',
|
active: page.value === 'security',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-bolt',
|
icon: 'fas fa-bolt',
|
||||||
text: 'ServiceWorker',
|
text: 'ServiceWorker',
|
||||||
to: '/instance/service-worker',
|
to: '/admin/service-worker',
|
||||||
active: page.value === 'service-worker',
|
active: page.value === 'service-worker',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-globe',
|
icon: 'fas fa-globe',
|
||||||
text: i18n.locale.relays,
|
text: i18n.locale.relays,
|
||||||
to: '/instance/relays',
|
to: '/admin/relays',
|
||||||
active: page.value === 'relays',
|
active: page.value === 'relays',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-share-alt',
|
icon: 'fas fa-share-alt',
|
||||||
text: i18n.locale.integration,
|
text: i18n.locale.integration,
|
||||||
to: '/instance/integrations',
|
to: '/admin/integrations',
|
||||||
active: page.value === 'integrations',
|
active: page.value === 'integrations',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-ban',
|
icon: 'fas fa-ban',
|
||||||
text: i18n.locale.instanceBlocking,
|
text: i18n.locale.instanceBlocking,
|
||||||
to: '/instance/instance-block',
|
to: '/admin/instance-block',
|
||||||
active: page.value === 'instance-block',
|
active: page.value === 'instance-block',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-ghost',
|
icon: 'fas fa-ghost',
|
||||||
text: i18n.locale.proxyAccount,
|
text: i18n.locale.proxyAccount,
|
||||||
to: '/instance/proxy-account',
|
to: '/admin/proxy-account',
|
||||||
active: page.value === 'proxy-account',
|
active: page.value === 'proxy-account',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-cogs',
|
icon: 'fas fa-cogs',
|
||||||
text: i18n.locale.other,
|
text: i18n.locale.other,
|
||||||
to: '/instance/other-settings',
|
to: '/admin/other-settings',
|
||||||
active: page.value === 'other-settings',
|
active: page.value === 'other-settings',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
|
@ -199,12 +199,12 @@ export default defineComponent({
|
||||||
items: [{
|
items: [{
|
||||||
icon: 'fas fa-database',
|
icon: 'fas fa-database',
|
||||||
text: i18n.locale.database,
|
text: i18n.locale.database,
|
||||||
to: '/instance/database',
|
to: '/admin/database',
|
||||||
active: page.value === 'database',
|
active: page.value === 'database',
|
||||||
}, {
|
}, {
|
||||||
icon: 'fas fa-stream',
|
icon: 'fas fa-stream',
|
||||||
text: i18n.locale.logs,
|
text: i18n.locale.logs,
|
||||||
to: '/instance/logs',
|
to: '/admin/logs',
|
||||||
active: page.value === 'logs',
|
active: page.value === 'logs',
|
||||||
}],
|
}],
|
||||||
}]);
|
}]);
|
|
@ -1,15 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<FormBase>
|
<FormBase>
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<FormLink to="/instance/integrations/twitter">
|
<FormLink to="/admin/integrations/twitter">
|
||||||
<i class="fab fa-twitter"></i> Twitter
|
<i class="fab fa-twitter"></i> Twitter
|
||||||
<template #suffix>{{ enableTwitterIntegration ? $ts.enabled : $ts.disabled }}</template>
|
<template #suffix>{{ enableTwitterIntegration ? $ts.enabled : $ts.disabled }}</template>
|
||||||
</FormLink>
|
</FormLink>
|
||||||
<FormLink to="/instance/integrations/github">
|
<FormLink to="/admin/integrations/github">
|
||||||
<i class="fab fa-github"></i> GitHub
|
<i class="fab fa-github"></i> GitHub
|
||||||
<template #suffix>{{ enableGithubIntegration ? $ts.enabled : $ts.disabled }}</template>
|
<template #suffix>{{ enableGithubIntegration ? $ts.enabled : $ts.disabled }}</template>
|
||||||
</FormLink>
|
</FormLink>
|
||||||
<FormLink to="/instance/integrations/discord">
|
<FormLink to="/admin/integrations/discord">
|
||||||
<i class="fab fa-discord"></i> Discord
|
<i class="fab fa-discord"></i> Discord
|
||||||
<template #suffix>{{ enableDiscordIntegration ? $ts.enabled : $ts.disabled }}</template>
|
<template #suffix>{{ enableDiscordIntegration ? $ts.enabled : $ts.disabled }}</template>
|
||||||
</FormLink>
|
</FormLink>
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<FormBase>
|
<FormBase>
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<FormLink to="/instance/bot-protection">
|
<FormLink to="/admin/bot-protection">
|
||||||
<i class="fas fa-shield-alt"></i> {{ $ts.botProtection }}
|
<i class="fas fa-shield-alt"></i> {{ $ts.botProtection }}
|
||||||
<template #suffix v-if="enableHcaptcha">hCaptcha</template>
|
<template #suffix v-if="enableHcaptcha">hCaptcha</template>
|
||||||
<template #suffix v-else-if="enableRecaptcha">reCAPTCHA</template>
|
<template #suffix v-else-if="enableRecaptcha">reCAPTCHA</template>
|
|
@ -149,7 +149,7 @@ import * as os from '@client/os';
|
||||||
import number from '@client/filters/number';
|
import number from '@client/filters/number';
|
||||||
import bytes from '@client/filters/bytes';
|
import bytes from '@client/filters/bytes';
|
||||||
import * as symbols from '@client/symbols';
|
import * as symbols from '@client/symbols';
|
||||||
import MkInstanceInfo from '@client/pages/instance/instance.vue';
|
import MkInstanceInfo from '@client/pages/admin/instance.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -70,8 +70,8 @@ const defaultRoutes = [
|
||||||
{ path: '/my/antennas/:antennaId', component: page('my-antennas/edit'), props: true },
|
{ path: '/my/antennas/:antennaId', component: page('my-antennas/edit'), props: true },
|
||||||
{ path: '/my/clips', component: page('my-clips/index') },
|
{ path: '/my/clips', component: page('my-clips/index') },
|
||||||
{ path: '/scratchpad', component: page('scratchpad') },
|
{ path: '/scratchpad', component: page('scratchpad') },
|
||||||
{ path: '/instance/:page(.*)?', component: page('instance/index'), props: route => ({ initialPage: route.params.page || null }) },
|
{ path: '/admin/:page(.*)?', component: page('admin/index'), props: route => ({ initialPage: route.params.page || null }) },
|
||||||
{ path: '/instance', component: page('instance/index') },
|
{ path: '/admin', component: page('admin/index') },
|
||||||
{ path: '/notes/:note', name: 'note', component: page('note'), props: route => ({ noteId: route.params.note }) },
|
{ path: '/notes/:note', name: 'note', component: page('note'), props: route => ({ noteId: route.params.note }) },
|
||||||
{ path: '/tags/:tag', component: page('tag'), props: route => ({ tag: route.params.tag }) },
|
{ path: '/tags/:tag', component: page('tag'), props: route => ({ tag: route.params.tag }) },
|
||||||
{ path: '/user-info/:user', component: page('user-info'), props: route => ({ userId: route.params.user }) },
|
{ path: '/user-info/:user', component: page('user-info'), props: route => ({ userId: route.params.user }) },
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/instance" v-click-anime>
|
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/admin" v-click-anime>
|
||||||
<i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span>
|
<i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span>
|
||||||
</MkA>
|
</MkA>
|
||||||
<button class="item _button" @click="more" v-click-anime>
|
<button class="item _button" @click="more" v-click-anime>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/instance" :behavior="settingsWindowed ? 'modalWindow' : null" v-click-anime v-tooltip="$ts.instance">
|
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/admin" :behavior="settingsWindowed ? 'modalWindow' : null" v-click-anime v-tooltip="$ts.instance">
|
||||||
<i class="fas fa-server fa-fw"></i>
|
<i class="fas fa-server fa-fw"></i>
|
||||||
</MkA>
|
</MkA>
|
||||||
<button class="item _button" @click="more" v-click-anime>
|
<button class="item _button" @click="more" v-click-anime>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/instance" :behavior="settingsWindowed ? 'modalWindow' : null" v-click-anime>
|
<MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/admin" :behavior="settingsWindowed ? 'modalWindow' : null" v-click-anime>
|
||||||
<i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span>
|
<i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span>
|
||||||
</MkA>
|
</MkA>
|
||||||
<button class="item _button" @click="more" v-click-anime>
|
<button class="item _button" @click="more" v-click-anime>
|
||||||
|
|
Loading…
Reference in a new issue