Raw instance info only for moderators
This commit is contained in:
parent
3fd86bbe33
commit
38f33b3354
3 changed files with 39 additions and 19 deletions
|
@ -40,6 +40,7 @@
|
||||||
- Mark as read from notifications widget
|
- Mark as read from notifications widget
|
||||||
- Better welcome screen (not logged in)
|
- Better welcome screen (not logged in)
|
||||||
- Ability to turn off "Connection lost" message
|
- Ability to turn off "Connection lost" message
|
||||||
|
- Raw instance info only for moderators
|
||||||
- Spinner instead of "Loading..."
|
- Spinner instead of "Loading..."
|
||||||
- SearchX instead of Google
|
- SearchX instead of Google
|
||||||
- Spacing on group items
|
- Spacing on group items
|
||||||
|
|
|
@ -155,7 +155,7 @@ definePageMetadata(computed(() => ({
|
||||||
> .name {
|
> .name {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
color: #fff;
|
color: #e0def4;
|
||||||
text-shadow: 0 0 8px #000;
|
text-shadow: 0 0 8px #000;
|
||||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<template #value><MkTime v-if="instance.latestRequestReceivedAt" :time="instance.latestRequestReceivedAt"/><span v-else>N/A</span></template>
|
<template #value><MkTime v-if="instance.latestRequestReceivedAt" :time="instance.latestRequestReceivedAt"/><span v-else>N/A</span></template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection>
|
||||||
<MkKeyValue oneline style="margin: 1em 0;">
|
<MkKeyValue oneline style="margin: 1em 0;">
|
||||||
<template #key>Following (Pub)</template>
|
<template #key>Following (Pub)</template>
|
||||||
|
@ -198,23 +198,42 @@ const headerActions = $computed(() => [{
|
||||||
},
|
},
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
const headerTabs = $computed(() => [{
|
let headerTabs;
|
||||||
key: 'overview',
|
|
||||||
title: i18n.ts.overview,
|
if (iAmModerator) {
|
||||||
icon: 'fas fa-info-circle',
|
headerTabs = $computed(() => [{
|
||||||
}, {
|
key: 'overview',
|
||||||
key: 'chart',
|
title: i18n.ts.overview,
|
||||||
title: i18n.ts.charts,
|
icon: 'fas fa-info-circle',
|
||||||
icon: 'fas fa-chart-simple',
|
}, {
|
||||||
}, {
|
key: 'chart',
|
||||||
key: 'users',
|
title: i18n.ts.charts,
|
||||||
title: i18n.ts.users,
|
icon: 'fas fa-chart-simple',
|
||||||
icon: 'fas fa-users',
|
}, {
|
||||||
}, {
|
key: 'users',
|
||||||
key: 'raw',
|
title: i18n.ts.users,
|
||||||
title: 'Raw',
|
icon: 'fas fa-users',
|
||||||
icon: 'fas fa-code',
|
}, {
|
||||||
}]);
|
key: 'raw',
|
||||||
|
title: 'Raw',
|
||||||
|
icon: 'fas fa-code',
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
headerTabs = $computed(() => [{
|
||||||
|
key: 'overview',
|
||||||
|
title: i18n.ts.overview,
|
||||||
|
icon: 'fas fa-info-circle',
|
||||||
|
}, {
|
||||||
|
key: 'chart',
|
||||||
|
title: i18n.ts.charts,
|
||||||
|
icon: 'fas fa-chart-simple',
|
||||||
|
}, {
|
||||||
|
key: 'users',
|
||||||
|
title: i18n.ts.users,
|
||||||
|
icon: 'fas fa-users',
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
|
||||||
definePageMetadata({
|
definePageMetadata({
|
||||||
title: props.host,
|
title: props.host,
|
||||||
|
|
Loading…
Reference in a new issue