client: remove unused header tabs and actions

This commit is contained in:
Johann150 2022-10-03 20:15:29 +02:00
parent 8ccc22bb35
commit c0b6b3f273
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
82 changed files with 57 additions and 342 deletions

View file

@ -1,5 +1,5 @@
<template> <template>
<div v-if="show" ref="el" class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick"> <div v-if="show" ref="el" class="fdidabkb" :class="{ slim: narrow, thin }" :style="{ background: bg }" @click="onClick">
<template v-if="metadata"> <template v-if="metadata">
<div v-if="!hideTitle" class="titleContainer" @click="showTabsPopup"> <div v-if="!hideTitle" class="titleContainer" @click="showTabsPopup">
<MkAvatar v-if="metadata.avatar" class="avatar" :user="metadata.avatar" :disable-preview="true" :show-indicator="true"/> <MkAvatar v-if="metadata.avatar" class="avatar" :user="metadata.avatar" :disable-preview="true" :show-indicator="true"/>
@ -49,7 +49,7 @@ type Tab = {
onClick?: (ev: MouseEvent) => void; onClick?: (ev: MouseEvent) => void;
}; };
const props = defineProps<{ const props = withDefaults(defineProps<{
tabs?: Tab[]; tabs?: Tab[];
tab?: string; tab?: string;
actions?: { actions?: {
@ -58,7 +58,11 @@ const props = defineProps<{
handler: (ev: MouseEvent) => void; handler: (ev: MouseEvent) => void;
}[]; }[];
thin?: boolean; thin?: boolean;
}>(); }>(), {
actions: () => [],
tabs: () => [],
thin: () => inject('shouldHeaderThin', false),
});
const emit = defineEmits<{ const emit = defineEmits<{
(ev: 'update:tab', key: string); (ev: 'update:tab', key: string);
@ -67,7 +71,6 @@ const emit = defineEmits<{
const metadata = injectPageMetadata(); const metadata = injectPageMetadata();
const hideTitle = inject('shouldOmitHeaderTitle', false); const hideTitle = inject('shouldOmitHeaderTitle', false);
const thin_ = props.thin || inject('shouldHeaderThin', false);
const el = $ref<HTMLElement | null>(null); const el = $ref<HTMLElement | null>(null);
const tabRefs = {}; const tabRefs = {};
@ -75,8 +78,8 @@ const tabHighlightEl = $ref<HTMLElement | null>(null);
const bg = ref(null); const bg = ref(null);
let narrow = $ref(false); let narrow = $ref(false);
const height = ref(0); const height = ref(0);
const hasTabs = $computed(() => props.tabs && props.tabs.length > 0); const hasTabs = $computed(() => props.tabs.length > 0);
const hasActions = $computed(() => props.actions && props.actions.length > 0); const hasActions = $computed(() => props.actions.length > 0);
const show = $computed(() => { const show = $computed(() => {
return !hideTitle || hasTabs || hasActions; return !hideTitle || hasTabs || hasActions;
}); });

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<div style="overflow: clip;"> <div style="overflow: clip;">
<MkSpacer :content-max="600" :margin-min="20"> <MkSpacer :content-max="600" :margin-min="20">
<div class="_formRoot znqjceqz"> <div class="_formRoot znqjceqz">
@ -91,10 +91,6 @@ onBeforeUnmount(() => {
easterEggEngine?.stop(); easterEggEngine?.stop();
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.aboutMisskey, title: i18n.ts.aboutMisskey,
icon: null, icon: null,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader v-model:tab="tab" :tabs="headerTabs"/></template>
<MkSpacer v-if="tab === 'overview'" :content-max="600" :margin-min="20"> <MkSpacer v-if="tab === 'overview'" :content-max="600" :margin-min="20">
<div class="_formRoot"> <div class="_formRoot">
<div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }"> <div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }">
@ -126,8 +126,6 @@ const initStats = async (): Promise<void> => {
stats = await os.api('stats', {}); stats = await os.api('stats', {});
}; };
const headerActions = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.instanceInfo, title: i18n.ts.instanceInfo,
icon: 'fas fa-info-circle', icon: 'fas fa-info-circle',

View file

@ -17,12 +17,10 @@
</div> </div>
</template> </template>
<div class="buttons right"> <div class="buttons right">
<template v-if="actions">
<template v-for="action in actions"> <template v-for="action in actions">
<MkButton v-if="action.asFullButton" class="fullButton" primary @click.stop="action.handler"><i :class="action.icon" style="margin-right: 6px;"></i>{{ action.text }}</MkButton> <MkButton v-if="action.asFullButton" class="fullButton" primary @click.stop="action.handler"><i :class="action.icon" style="margin-right: 6px;"></i>{{ action.text }}</MkButton>
<button v-else v-tooltip="action.text" class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag"><i :class="action.icon"></i></button> <button v-else v-tooltip="action.text" class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag"><i :class="action.icon"></i></button>
</template> </template>
</template>
</div> </div>
</div> </div>
</template> </template>
@ -44,7 +42,7 @@ type Tab = {
onClick?: (ev: MouseEvent) => void; onClick?: (ev: MouseEvent) => void;
}; };
const props = defineProps<{ const props = withDefaults(defineProps<{
tabs?: Tab[]; tabs?: Tab[];
tab?: string; tab?: string;
actions?: { actions?: {
@ -53,8 +51,10 @@ const props = defineProps<{
asFullButton?: boolean; asFullButton?: boolean;
handler: (ev: MouseEvent) => void; handler: (ev: MouseEvent) => void;
}[]; }[];
thin?: boolean; }>(), {
}>(); actions: () => [],
tabs: () => [],
});
const emit = defineEmits<{ const emit = defineEmits<{
(ev: 'update:tab', key: string); (ev: 'update:tab', key: string);
@ -66,9 +66,7 @@ const el = ref<HTMLElement>(null);
const tabRefs = {}; const tabRefs = {};
const tabHighlightEl = $ref<HTMLElement | null>(null); const tabHighlightEl = $ref<HTMLElement | null>(null);
const bg = ref(null); const bg = ref(null);
const hasTabs = computed(() => { const hasTabs = computed(() => props.tabs.length > 0);
return props.tabs && props.tabs.length > 0;
});
const showTabsPopup = (ev: MouseEvent) => { const showTabsPopup = (ev: MouseEvent) => {
if (!hasTabs.value) return; if (!hasTabs.value) return;

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader/></template>
<MkSpacer :content-max="900"> <MkSpacer :content-max="900">
<div class="lcixvhis"> <div class="lcixvhis">
<div class="_section reports"> <div class="_section reports">
@ -67,10 +67,6 @@ function resolved(reportId) {
reports.removeItem(item => item.id === reportId); reports.removeItem(item => item.id === reportId);
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.abuseReports, title: i18n.ts.abuseReports,
icon: 'fas fa-exclamation-circle', icon: 'fas fa-exclamation-circle',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="900"> <MkSpacer :content-max="900">
<div class="ztgjmzrw"> <div class="ztgjmzrw">
<section v-for="announcement in announcements" class="_card _gap announcements"> <section v-for="announcement in announcements" class="_card _gap announcements">
@ -96,8 +96,6 @@ const headerActions = $computed(() => [{
handler: add, handler: add,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.announcements, title: i18n.ts.announcements,
icon: 'fas fa-broadcast-tower', icon: 'fas fa-broadcast-tower',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
<FormSuspense v-slot="{ result: database }" :p="databasePromiseFactory"> <FormSuspense v-slot="{ result: database }" :p="databasePromiseFactory">
<MkKeyValue v-for="table in database" :key="table[0]" oneline style="margin: 1em 0;"> <MkKeyValue v-for="table in database" :key="table[0]" oneline style="margin: 1em 0;">
@ -23,10 +23,6 @@ import { definePageMetadata } from '@/scripts/page-metadata';
const databasePromiseFactory = () => os.api('admin/get-table-stats').then(res => Object.entries(res).sort((a, b) => b[1].size - a[1].size)); const databasePromiseFactory = () => os.api('admin/get-table-stats').then(res => Object.entries(res).sort((a, b) => b[1].size - a[1].size));
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.database, title: i18n.ts.database,
icon: 'fas fa-database', icon: 'fas fa-database',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<div class="_formRoot"> <div class="_formRoot">
@ -116,8 +116,6 @@ const headerActions = $computed(() => [{
handler: save, handler: save,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.emailServer, title: i18n.ts.emailServer,
icon: 'fas fa-envelope', icon: 'fas fa-envelope',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<FormTextarea v-model="blockedHosts" class="_formBlock"> <FormTextarea v-model="blockedHosts" class="_formBlock">
@ -39,10 +39,6 @@ function save() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.instanceBlocking, title: i18n.ts.instanceBlocking,
icon: 'fas fa-ban', icon: 'fas fa-ban',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<FormFolder class="_formBlock"> <FormFolder class="_formBlock">
@ -47,10 +47,6 @@ async function init() {
enableDiscordIntegration = meta.enableDiscordIntegration; enableDiscordIntegration = meta.enableDiscordIntegration;
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.integration, title: i18n.ts.integration,
icon: 'fas fa-share-alt', icon: 'fas fa-share-alt',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<div class="_formRoot"> <div class="_formRoot">
@ -138,8 +138,6 @@ const headerActions = $computed(() => [{
handler: save, handler: save,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.objectStorage, title: i18n.ts.objectStorage,
icon: 'fas fa-cloud', icon: 'fas fa-cloud',

View file

@ -112,10 +112,6 @@ onBeforeUnmount(() => {
queueStatsConnection.dispose(); queueStatsConnection.dispose();
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.dashboard, title: i18n.ts.dashboard,
icon: 'fas fa-tachometer-alt', icon: 'fas fa-tachometer-alt',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<MkInfo class="_formBlock">{{ i18n.ts.proxyAccountDescription }}</MkInfo> <MkInfo class="_formBlock">{{ i18n.ts.proxyAccountDescription }}</MkInfo>
@ -52,10 +52,6 @@ function save() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.proxyAccount, title: i18n.ts.proxyAccount,
icon: 'fas fa-ghost', icon: 'fas fa-ghost',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<XQueue :connection="connection" domain="inbox"> <XQueue :connection="connection" domain="inbox">
<template #title>In</template> <template #title>In</template>
@ -60,8 +60,6 @@ const headerActions = $computed(() => [{
}, },
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.jobQueue, title: i18n.ts.jobQueue,
icon: 'fas fa-clipboard-list', icon: 'fas fa-clipboard-list',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div v-for="relay in relays" :key="relay.inbox" class="relaycxt _panel _block" style="padding: 16px;"> <div v-for="relay in relays" :key="relay.inbox" class="relaycxt _panel _block" style="padding: 16px;">
<div>{{ relay.inbox }}</div> <div>{{ relay.inbox }}</div>
@ -72,8 +72,6 @@ const headerActions = $computed(() => [{
handler: addRelay, handler: addRelay,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.relays, title: i18n.ts.relays,
icon: 'fas fa-globe', icon: 'fas fa-globe',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<div class="_formRoot"> <div class="_formRoot">
@ -66,10 +66,6 @@ function save() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.security, title: i18n.ts.security,
icon: 'fas fa-lock', icon: 'fas fa-lock',

View file

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="700" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<div class="_formRoot"> <div class="_formRoot">
@ -252,8 +252,6 @@ const headerActions = $computed(() => [{
handler: save, handler: save,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.general, title: i18n.ts.general,
icon: 'fas fa-cog', icon: 'fas fa-cog',

View file

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<MkStickyContainer> <MkStickyContainer>
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><XHeader :actions="headerActions"/></template>
<MkSpacer :content-max="900"> <MkSpacer :content-max="900">
<div class="lknzcolw"> <div class="lknzcolw">
<div class="users"> <div class="users">
@ -130,8 +130,6 @@ const headerActions = $computed(() => [{
handler: lookupUser, handler: lookupUser,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.users, title: i18n.ts.users,
icon: 'fas fa-users', icon: 'fas fa-users',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<MkPagination v-slot="{items}" :pagination="pagination" class="ruryvtyk _content"> <MkPagination v-slot="{items}" :pagination="pagination" class="ruryvtyk _content">
<section v-for="(announcement, i) in items" :key="announcement.id" class="_card announcement"> <section v-for="(announcement, i) in items" :key="announcement.id" class="_card announcement">
@ -39,10 +39,6 @@ function read(items, announcement, i) {
os.api('i/read-announcement', { announcementId: announcement.id }); os.api('i/read-announcement', { announcementId: announcement.id });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.announcements, title: i18n.ts.announcements,
icon: 'fas fa-broadcast-tower', icon: 'fas fa-broadcast-tower',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader :actions="headerActions"/></template>
<div ref="rootEl" v-hotkey.global="keymap" v-size="{ min: [800] }" class="tqmomfks"> <div ref="rootEl" v-hotkey.global="keymap" v-size="{ min: [800] }" class="tqmomfks">
<div v-if="queue > 0" class="new"><button class="_buttonPrimary" @click="top()">{{ i18n.ts.newNoteRecived }}</button></div> <div v-if="queue > 0" class="new"><button class="_buttonPrimary" @click="top()">{{ i18n.ts.newNoteRecived }}</button></div>
<div class="tl _block"> <div class="tl _block">
@ -81,8 +81,6 @@ const headerActions = $computed(() => antenna ? [{
handler: settings, handler: settings,
}] : []); }] : []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => antenna ? { definePageMetadata(computed(() => antenna ? {
title: antenna.name, title: antenna.name,
icon: 'fas fa-satellite', icon: 'fas fa-satellite',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="_formRoot"> <div class="_formRoot">
<div class="_formBlock"> <div class="_formBlock">
@ -78,10 +78,6 @@ function onEndpointChange(): void {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'API console', title: 'API console',
icon: 'fas fa-terminal', icon: 'fas fa-terminal',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="_formRoot"> <div class="_formRoot">
<MkInput v-model="name" class="_formBlock"> <MkInput v-model="name" class="_formBlock">
@ -104,10 +104,6 @@ function removeBannerImage() {
bannerId = null; bannerId = null;
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => props.channelId ? { definePageMetadata(computed(() => props.channelId ? {
title: i18n.ts._channel.edit, title: i18n.ts._channel.edit,
icon: 'fas fa-satellite-dish', icon: 'fas fa-satellite-dish',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader :actions="headerActions"/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div v-if="channel"> <div v-if="channel">
<div class="wpgynlbz _panel _gap" :class="{ hide: !showBanner }"> <div class="wpgynlbz _panel _gap" :class="{ hide: !showBanner }">
@ -75,8 +75,6 @@ const headerActions = $computed(() => channel && channel.userId ? [{
handler: edit, handler: edit,
}] : null); }] : null);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => channel ? { definePageMetadata(computed(() => channel ? {
title: channel.name, title: channel.name,
icon: 'fas fa-satellite-dish', icon: 'fas fa-satellite-dish',

View file

@ -13,10 +13,6 @@ import { definePageMetadata } from '@/scripts/page-metadata';
let folder = $ref(null); let folder = $ref(null);
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: folder ? folder.name : i18n.ts.drive, title: folder ? folder.name : i18n.ts.drive,
icon: 'fas fa-cloud', icon: 'fas fa-cloud',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader v-model:tab="tab" :tabs="headerTabs"/></template>
<div class="lznhrdub"> <div class="lznhrdub">
<div v-if="tab === 'featured'"> <div v-if="tab === 'featured'">
<XFeatured/> <XFeatured/>
@ -66,8 +66,6 @@ const searchPagination = {
} : null), } : null),
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'featured', key: 'featured',
icon: 'fas fa-bolt', icon: 'fas fa-bolt',

View file

@ -58,10 +58,6 @@ function reject(user) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.followRequests, title: i18n.ts.followRequests,
icon: 'fas fa-user-clock', icon: 'fas fa-user-clock',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<FormInput v-model="title"> <FormInput v-model="title">
@ -117,10 +117,6 @@ watch(() => props.postId, () => {
}) : Promise.resolve(null); }) : Promise.resolve(null);
}, { immediate: true }); }, { immediate: true });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => props.postId ? { definePageMetadata(computed(() => props.postId ? {
title: i18n.ts.edit, title: i18n.ts.edit,
icon: 'fas fa-pencil-alt', icon: 'fas fa-pencil-alt',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader :actions="headerActions"/></template>
<MkSpacer :content-max="1000" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="1000" :margin-min="16" :margin-max="32">
<div class="_root"> <div class="_root">
<transition :name="defaultStore.state.animation ? 'fade' : ''" mode="out-in"> <transition :name="defaultStore.state.animation ? 'fade' : ''" mode="out-in">
@ -145,8 +145,6 @@ const headerActions = $computed(() => [{
handler: edit, handler: edit,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => post ? { definePageMetadata(computed(() => post ? {
title: post.title, title: post.title,
avatar: post.user, avatar: post.user,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div v-size="{ max: [400] }" class="yweeujhr"> <div v-size="{ max: [400] }" class="yweeujhr">
<MkButton primary class="start" @click="start"><i class="fas fa-plus"></i> {{ i18n.ts.startMessaging }}</MkButton> <MkButton primary class="start" @click="start"><i class="fas fa-plus"></i> {{ i18n.ts.startMessaging }}</MkButton>
@ -152,10 +152,6 @@ onUnmounted(() => {
if (connection) connection.dispose(); if (connection) connection.dispose();
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.messaging, title: i18n.ts.messaging,
icon: 'fas fa-comments', icon: 'fas fa-comments',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="ieepwinx"> <div class="ieepwinx">
<MkButton :link="true" to="/my/antennas/create" primary class="add"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton> <MkButton :link="true" to="/my/antennas/create" primary class="add"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton>
@ -28,10 +28,6 @@ const pagination = {
limit: 10, limit: 10,
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.manageAntennas, title: i18n.ts.manageAntennas,
icon: 'fas fa-satellite', icon: 'fas fa-satellite',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="qtcaoidl"> <div class="qtcaoidl">
<MkButton primary class="add" @click="create"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton> <MkButton primary class="add" @click="create"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton>
@ -63,10 +63,6 @@ function onClipDeleted() {
pagingComponent.reload(); pagingComponent.reload();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.clip, title: i18n.ts.clip,
icon: 'fas fa-paperclip', icon: 'fas fa-paperclip',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="qkcjvfiv"> <div class="qkcjvfiv">
<MkButton primary class="add" @click="create"><i class="fas fa-plus"></i> {{ i18n.ts.createList }}</MkButton> <MkButton primary class="add" @click="create"><i class="fas fa-plus"></i> {{ i18n.ts.createList }}</MkButton>
@ -40,10 +40,6 @@ async function create() {
pagingComponent.reload(); pagingComponent.reload();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.manageLists, title: i18n.ts.manageLists,
icon: 'fas fa-list-ul', icon: 'fas fa-list-ul',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="700"> <MkSpacer :content-max="700">
<div class="mk-list-page"> <div class="mk-list-page">
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in"> <transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
@ -116,10 +116,6 @@ async function deleteList() {
watch(() => props.listId, fetchList, { immediate: true }); watch(() => props.listId, fetchList, { immediate: true });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => list ? { definePageMetadata(computed(() => list ? {
title: list.name, title: list.name,
icon: 'fas fa-list-ul', icon: 'fas fa-list-ul',

View file

@ -11,10 +11,6 @@
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.notFound, title: i18n.ts.notFound,
icon: 'fas fa-exclamation-triangle', icon: 'fas fa-exclamation-triangle',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div class="fcuexfpr"> <div class="fcuexfpr">
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in"> <transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
@ -121,10 +121,6 @@ watch(() => props.noteId, fetchNote, {
immediate: true, immediate: true,
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => note ? { definePageMetadata(computed(() => note ? {
title: i18n.ts.note, title: i18n.ts.note,
subtitle: new Date(note.createdAt).toLocaleString(), subtitle: new Date(note.createdAt).toLocaleString(),

View file

@ -141,10 +141,6 @@ function pin(pin) {
watch(() => path, fetchPage, { immediate: true }); watch(() => path, fetchPage, { immediate: true });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => page ? { definePageMetadata(computed(() => page ? {
title: computed(() => page.title || page.name), title: computed(() => page.title || page.name),
avatar: page.user, avatar: page.user,

View file

@ -10,10 +10,6 @@ import MkSample from '@/components/sample.vue';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.preview, title: i18n.ts.preview,
icon: 'fas fa-eye', icon: 'fas fa-eye',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer v-if="token" :content-max="700" :margin-min="16" :margin-max="32"> <MkSpacer v-if="token" :content-max="700" :margin-min="16" :margin-max="32">
<div class="_formRoot"> <div class="_formRoot">
<FormInput v-model="password" type="password" class="_formBlock"> <FormInput v-model="password" type="password" class="_formBlock">
@ -44,10 +44,6 @@ onMounted(() => {
} }
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.resetPassword, title: i18n.ts.resetPassword,
icon: 'fas fa-lock', icon: 'fas fa-lock',

View file

@ -106,10 +106,6 @@ function highlighter(code) {
return highlight(code, languages.js, 'javascript'); return highlight(code, languages.js, 'javascript');
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.scratchpad, title: i18n.ts.scratchpad,
icon: 'fas fa-terminal', icon: 'fas fa-terminal',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<XNotes ref="notes" :pagination="pagination"/> <XNotes ref="notes" :pagination="pagination"/>
</MkSpacer> </MkSpacer>
@ -27,10 +27,6 @@ const pagination = {
})), })),
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.t('searchWith', { q: props.query }), title: i18n.t('searchWith', { q: props.query }),
icon: 'fas fa-search', icon: 'fas fa-search',

View file

@ -147,10 +147,6 @@ onMounted(() => {
}); });
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.accountInfo, title: i18n.ts.accountInfo,
icon: 'fas fa-info-circle', icon: 'fas fa-info-circle',

View file

@ -102,10 +102,6 @@ function switchAccountWithToken(token: string) {
login(token); login(token);
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.accounts, title: i18n.ts.accounts,
icon: 'fas fa-users', icon: 'fas fa-users',

View file

@ -35,10 +35,6 @@ function generateToken() {
}, 'closed'); }, 'closed');
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'API', title: 'API',
icon: 'fas fa-key', icon: 'fas fa-key',

View file

@ -60,10 +60,6 @@ function revoke(token) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.installedApps, title: i18n.ts.installedApps,
icon: 'fas fa-plug', icon: 'fas fa-plug',

View file

@ -35,10 +35,6 @@ watch(localCustomCss, async () => {
await apply(); await apply();
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.customCss, title: i18n.ts.customCss,
icon: 'fas fa-code', icon: 'fas fa-code',

View file

@ -66,10 +66,6 @@ async function setProfile() {
unisonReload(); unisonReload();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.deck, title: i18n.ts.deck,
icon: 'fas fa-columns', icon: 'fas fa-columns',

View file

@ -41,10 +41,6 @@ async function deleteAccount() {
await signout(); await signout();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts._accountDelete.accountDelete, title: i18n.ts._accountDelete.accountDelete,
icon: 'fas fa-exclamation-triangle', icon: 'fas fa-exclamation-triangle',

View file

@ -94,10 +94,6 @@ function chooseUploadFolder() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.drive, title: i18n.ts.drive,
icon: 'fas fa-cloud', icon: 'fas fa-cloud',

View file

@ -100,10 +100,6 @@ onMounted(() => {
}); });
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.email, title: i18n.ts.email,
icon: 'fas fa-envelope', icon: 'fas fa-envelope',

View file

@ -148,10 +148,6 @@ const importBlocking = async (ev) => {
os.api('i/import-blocking', { fileId: file.id }).then(onImportSuccess).catch(onError); os.api('i/import-blocking', { fileId: file.id }).then(onImportSuccess).catch(onError);
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.importAndExport, title: i18n.ts.importAndExport,
icon: 'fas fa-boxes', icon: 'fas fa-boxes',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="900" :margin-min="20" :margin-max="32"> <MkSpacer :content-max="900" :margin-min="20" :margin-max="32">
<div ref="el" class="vvcocwet" :class="{ wide: !narrow }"> <div ref="el" class="vvcocwet" :class="{ wide: !narrow }">
<div class="body"> <div class="body">
@ -274,10 +274,6 @@ provideMetadataReceiver((info) => {
} }
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(INFO); definePageMetadata(INFO);
</script> </script>

View file

@ -42,10 +42,6 @@ watch(instanceMutes, () => {
changed.value = true; changed.value = true;
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.instanceMute, title: i18n.ts.instanceMute,
icon: 'fas fa-volume-mute', icon: 'fas fa-volume-mute',

View file

@ -88,10 +88,6 @@ onMounted(() => {
}); });
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.integration, title: i18n.ts.integration,
icon: 'fas fa-share-alt', icon: 'fas fa-share-alt',

View file

@ -76,10 +76,6 @@ watch(menuDisplay, async () => {
await reloadAsk(); await reloadAsk();
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.menu, title: i18n.ts.menu,
icon: 'fas fa-list-ul', icon: 'fas fa-list-ul',

View file

@ -49,10 +49,6 @@ const blockingPagination = {
limit: 10, limit: 10,
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.muteAndBlock, title: i18n.ts.muteAndBlock,
icon: 'fas fa-ban', icon: 'fas fa-ban',

View file

@ -49,10 +49,6 @@ function configure() {
}, 'closed'); }, 'closed');
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.notifications, title: i18n.ts.notifications,
icon: 'fas fa-bell', icon: 'fas fa-bell',

View file

@ -26,10 +26,6 @@ function onChangeInjectFeaturedNote(v) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.other, title: i18n.ts.other,
icon: 'fas fa-ellipsis-h', icon: 'fas fa-ellipsis-h',

View file

@ -113,10 +113,6 @@ async function install() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts._plugin.install, title: i18n.ts._plugin.install,
icon: 'fas fa-download', icon: 'fas fa-download',

View file

@ -83,10 +83,6 @@ function changeActive(plugin, active) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.plugins, title: i18n.ts.plugins,
icon: 'fas fa-plug', icon: 'fas fa-plug',

View file

@ -86,10 +86,6 @@ function save() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.privacy, title: i18n.ts.privacy,
icon: 'fas fa-lock-open', icon: 'fas fa-lock-open',

View file

@ -176,10 +176,6 @@ function changeBanner(ev) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.profile, title: i18n.ts.profile,
icon: 'fas fa-user', icon: 'fas fa-user',

View file

@ -120,10 +120,6 @@ watch($$(reactions), () => {
deep: true, deep: true,
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.reaction, title: i18n.ts.reaction,
icon: 'fas fa-laugh', icon: 'fas fa-laugh',

View file

@ -101,10 +101,6 @@ function regenerateToken() {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.security, title: i18n.ts.security,
icon: 'fas fa-lock', icon: 'fas fa-lock',

View file

@ -126,10 +126,6 @@ function reset() {
} }
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.sounds, title: i18n.ts.sounds,
icon: 'fas fa-music', icon: 'fas fa-music',

View file

@ -68,10 +68,6 @@ async function install(code: string): Promise<void> {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts._theme.install, title: i18n.ts._theme.install,
icon: 'fas fa-download', icon: 'fas fa-download',

View file

@ -67,10 +67,6 @@ function uninstall() {
os.success(); os.success();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts._theme.manage, title: i18n.ts._theme.manage,
icon: 'fas fa-folder-open', icon: 'fas fa-folder-open',

View file

@ -145,10 +145,6 @@ function setWallpaper(event) {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.theme, title: i18n.ts.theme,
icon: 'fas fa-palette', icon: 'fas fa-palette',

View file

@ -78,10 +78,6 @@ async function save(): Promise<void> {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'Edit webhook', title: 'Edit webhook',
icon: 'fas fa-bolt', icon: 'fas fa-bolt',

View file

@ -70,10 +70,6 @@ async function create(): Promise<void> {
}); });
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'Create new webhook', title: 'Create new webhook',
icon: 'fas fa-bolt', icon: 'fas fa-bolt',

View file

@ -41,10 +41,6 @@ const pagination = {
limit: 10, limit: 10,
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'Webhook', title: 'Webhook',
icon: 'fas fa-bolt', icon: 'fas fa-bolt',

View file

@ -117,10 +117,6 @@ async function save() {
changed.value = false; changed.value = false;
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.wordMute, title: i18n.ts.wordMute,
icon: 'fas fa-comment-slash', icon: 'fas fa-comment-slash',

View file

@ -152,10 +152,6 @@ function close(): void {
}, 100); }, 100);
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.share, title: i18n.ts.share,
icon: 'fas fa-share-alt', icon: 'fas fa-share-alt',

View file

@ -26,10 +26,6 @@ onMounted(async () => {
login(res.i, '/'); login(res.i, '/');
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.signup, title: i18n.ts.signup,
icon: 'fas fa-user', icon: 'fas fa-user',

View file

@ -21,10 +21,6 @@ const pagination = {
})), })),
}; };
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: props.tag, title: props.tag,
icon: 'fas fa-hashtag', icon: 'fas fa-hashtag',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader :actions="headerActions"/></template>
<MkSpacer :content-max="800" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
<div class="cwepdizn _formRoot"> <div class="cwepdizn _formRoot">
<FormFolder :default-open="true" class="_formBlock"> <FormFolder :default-open="true" class="_formBlock">
@ -220,8 +220,6 @@ const headerActions = $computed(() => [{
handler: saveAs, handler: saveAs,
}]); }]);
const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: i18n.ts.themeEditor, title: i18n.ts.themeEditor,
icon: 'fas fa-palette', icon: 'fas fa-palette',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-model:tab="src" :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader v-model:tab="src" :tabs="headerTabs"/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div ref="rootEl" v-hotkey.global="keymap" class="cmuxhskf"> <div ref="rootEl" v-hotkey.global="keymap" class="cmuxhskf">
<XTutorial v-if="$store.reactiveState.tutorial.value != -1" class="tutorial _block"/> <XTutorial v-if="$store.reactiveState.tutorial.value != -1" class="tutorial _block"/>
@ -109,8 +109,6 @@ function focus(): void {
tlComponent.focus(); tlComponent.focus();
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'home', key: 'home',
title: i18n.ts._timelines.home, title: i18n.ts._timelines.home,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader v-model:tab="tab" :tabs="headerTabs"/></template>
<MkSpacer :content-max="500" :margin-min="16" :margin-max="32"> <MkSpacer :content-max="500" :margin-min="16" :margin-max="32">
<FormSuspense :p="init"> <FormSuspense :p="init">
<div v-if="tab === 'overview'" class="_formRoot"> <div v-if="tab === 'overview'" class="_formRoot">
@ -274,8 +274,6 @@ watch(() => user, () => {
}); });
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'overview', key: 'overview',
title: i18n.ts.overview, title: i18n.ts.overview,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader :actions="headerActions"/></template>
<div ref="rootEl" v-size="{ min: [800] }" class="eqqrhokj"> <div ref="rootEl" v-size="{ min: [800] }" class="eqqrhokj">
<div v-if="queue > 0" class="new"><button class="_buttonPrimary" @click="top()">{{ i18n.ts.newNoteRecived }}</button></div> <div v-if="queue > 0" class="new"><button class="_buttonPrimary" @click="top()">{{ i18n.ts.newNoteRecived }}</button></div>
<div class="tl _block"> <div class="tl _block">
@ -74,8 +74,6 @@ const headerActions = $computed(() => list ? [{
handler: settings, handler: settings,
}] : []); }] : []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => list ? { definePageMetadata(computed(() => list ? {
title: list.name, title: list.name,
icon: 'fas fa-list-ul', icon: 'fas fa-list-ul',

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="1000"> <MkSpacer :content-max="1000">
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div v-if="user"> <div v-if="user">
@ -44,10 +44,6 @@ watch(() => props.acct, fetchUser, {
immediate: true, immediate: true,
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => user ? { definePageMetadata(computed(() => user ? {
icon: 'fas fa-user', icon: 'fas fa-user',
title: user.name ? `${user.name} (@${user.username})` : `@${user.username}`, title: user.name ? `${user.name} (@${user.username})` : `@${user.username}`,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader/></template>
<MkSpacer :content-max="1000"> <MkSpacer :content-max="1000">
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div v-if="user"> <div v-if="user">
@ -44,10 +44,6 @@ watch(() => props.acct, fetchUser, {
immediate: true, immediate: true,
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => user ? { definePageMetadata(computed(() => user ? {
icon: 'fas fa-user', icon: 'fas fa-user',
title: user.name ? `${user.name} (@${user.username})` : `@${user.username}`, title: user.name ? `${user.name} (@${user.username})` : `@${user.username}`,

View file

@ -1,6 +1,6 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template> <template #header><MkPageHeader v-model:tab="tab" :tabs="headerTabs"/></template>
<div> <div>
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div v-if="user"> <div v-if="user">
@ -66,8 +66,6 @@ function menu(ev) {
os.popupMenu(getUserMenu(user), ev.currentTarget ?? ev.target); os.popupMenu(getUserMenu(user), ev.currentTarget ?? ev.target);
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => user ? [{ const headerTabs = $computed(() => user ? [{
key: 'home', key: 'home',
title: i18n.ts.overview, title: i18n.ts.overview,

View file

@ -19,10 +19,6 @@ os.api('meta', { detail: true }).then(res => {
meta = res; meta = res;
}); });
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: instanceName, title: instanceName,
icon: null, icon: null,