refactor
This commit is contained in:
parent
0041ad3e69
commit
736d8283c1
3 changed files with 10 additions and 12 deletions
|
@ -41,7 +41,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSpacer :marginMin="14" :marginMax="22">
|
<MkSpacer :marginMin="14" :marginMax="22">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
<div v-if="withFooter" :class="$style.footer">
|
<div v-if="$slots.footer" :class="$style.footer">
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,11 +59,9 @@ import { defaultStore } from '@/store.js';
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
defaultOpen?: boolean;
|
defaultOpen?: boolean;
|
||||||
maxHeight?: number | null;
|
maxHeight?: number | null;
|
||||||
withFooter?: boolean;
|
|
||||||
}>(), {
|
}>(), {
|
||||||
defaultOpen: false,
|
defaultOpen: false,
|
||||||
maxHeight: null,
|
maxHeight: null,
|
||||||
withFooter: false,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const getBgColor = (el: HTMLElement) => {
|
const getBgColor = (el: HTMLElement) => {
|
||||||
|
|
|
@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MkFolder :defaultOpen="true" :withFooter="true">
|
<MkFolder :defaultOpen="true">
|
||||||
<template #icon><i class="ti ti-bolt"></i></template>
|
<template #icon><i class="ti ti-bolt"></i></template>
|
||||||
<template #label>Misskey® Fan-out Timeline Technology™ (FTT)</template>
|
<template #label>Misskey® Fan-out Timeline Technology™ (FTT)</template>
|
||||||
<template v-if="enableFanoutTimeline" #suffix>Enabled</template>
|
<template v-if="enableFanoutTimeline" #suffix>Enabled</template>
|
||||||
|
@ -78,7 +78,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :defaultOpen="true" :withFooter="true">
|
<MkFolder :defaultOpen="true">
|
||||||
<template #icon><i class="ti ti-bolt"></i></template>
|
<template #icon><i class="ti ti-bolt"></i></template>
|
||||||
<template #label>Misskey® Reactions Boost Technology™ (RBT)<span class="_beta">{{ i18n.ts.beta }}</span></template>
|
<template #label>Misskey® Reactions Boost Technology™ (RBT)<span class="_beta">{{ i18n.ts.beta }}</span></template>
|
||||||
<template v-if="enableReactionsBuffering" #suffix>Enabled</template>
|
<template v-if="enableReactionsBuffering" #suffix>Enabled</template>
|
||||||
|
|
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSpacer :contentMax="700" :marginMin="16" :marginMax="32">
|
<MkSpacer :contentMax="700" :marginMin="16" :marginMax="32">
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_gaps_m">
|
<div class="_gaps_m">
|
||||||
<MkFolder :defaultOpen="true" :withFooter="true">
|
<MkFolder :defaultOpen="true">
|
||||||
<template #icon><i class="ti ti-info-circle"></i></template>
|
<template #icon><i class="ti ti-info-circle"></i></template>
|
||||||
<template #label>{{ i18n.ts.info }}</template>
|
<template #label>{{ i18n.ts.info }}</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -76,7 +76,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :withFooter="true">
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-user-star"></i></template>
|
<template #icon><i class="ti ti-user-star"></i></template>
|
||||||
<template #label>{{ i18n.ts.pinnedUsers }}</template>
|
<template #label>{{ i18n.ts.pinnedUsers }}</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -89,7 +89,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkTextarea>
|
</MkTextarea>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :withFooter="true">
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-cloud"></i></template>
|
<template #icon><i class="ti ti-cloud"></i></template>
|
||||||
<template #label>{{ i18n.ts.files }}</template>
|
<template #label>{{ i18n.ts.files }}</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -111,7 +111,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :withFooter="true">
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-world-cog"></i></template>
|
<template #icon><i class="ti ti-world-cog"></i></template>
|
||||||
<template #label>ServiceWorker</template>
|
<template #label>ServiceWorker</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -138,7 +138,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :withFooter="true">
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-ad"></i></template>
|
<template #icon><i class="ti ti-ad"></i></template>
|
||||||
<template #label>{{ i18n.ts._ad.adsSettings }}</template>
|
<template #label>{{ i18n.ts._ad.adsSettings }}</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -158,7 +158,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder :withFooter="true">
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-world-search"></i></template>
|
<template #icon><i class="ti ti-world-search"></i></template>
|
||||||
<template #label>{{ i18n.ts._urlPreviewSetting.title }}</template>
|
<template #label>{{ i18n.ts._urlPreviewSetting.title }}</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -232,6 +232,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
|
import * as Misskey from 'misskey-js';
|
||||||
import XHeader from './_header_.vue';
|
import XHeader from './_header_.vue';
|
||||||
import MkSwitch from '@/components/MkSwitch.vue';
|
import MkSwitch from '@/components/MkSwitch.vue';
|
||||||
import MkInput from '@/components/MkInput.vue';
|
import MkInput from '@/components/MkInput.vue';
|
||||||
|
@ -247,7 +248,6 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import MkFolder from '@/components/MkFolder.vue';
|
import MkFolder from '@/components/MkFolder.vue';
|
||||||
import MkSelect from '@/components/MkSelect.vue';
|
import MkSelect from '@/components/MkSelect.vue';
|
||||||
import * as Misskey from 'misskey-js';
|
|
||||||
import MkKeyValue from '@/components/MkKeyValue.vue';
|
import MkKeyValue from '@/components/MkKeyValue.vue';
|
||||||
|
|
||||||
const proxyAccount = ref<Misskey.entities.UserDetailed | null>(null);
|
const proxyAccount = ref<Misskey.entities.UserDetailed | null>(null);
|
||||||
|
|
Loading…
Reference in a new issue