2023-05-25 17:33:30 +09:00
|
|
|
<template>
|
|
|
|
<div class="_gaps">
|
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.theseSettingsCanEditLater }}</MkInfo>
|
|
|
|
|
2023-05-30 17:54:11 +09:00
|
|
|
<div :class="$style.preview" class="_panel">
|
2023-06-02 20:28:34 +09:00
|
|
|
<div v-if="advancedMfm && animatedMfm" style="margin: 0 0 8px; font-size: 1.5em;">
|
|
|
|
<Mfm :key="emojiStyle" text="$[jelly 🍮] $[spin 🍪] $[shake 🍭]"/>
|
|
|
|
</div>
|
|
|
|
<div v-else style="margin: 0 0 8px; font-size: 1.5em;">
|
|
|
|
<Mfm :key="emojiStyle" text="🍮 🍪 🍭"/>
|
2023-05-30 17:54:11 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-05-25 17:33:30 +09:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.enableAdvancedMfm }}</template>
|
|
|
|
<template #icon><i class="ti ti-markdown"></i></template>
|
|
|
|
<template #suffix>{{ advancedMfm ? i18n.ts.on : i18n.ts.off }}</template>
|
|
|
|
|
|
|
|
<MkSwitch v-model="advancedMfm">{{ i18n.ts.enableAdvancedMfm }}<template #caption>{{ i18n.ts.enableAdvancedMfmDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkFolder v-if="advancedMfm">
|
|
|
|
<template #label>{{ i18n.ts.enableAnimatedMfm }}</template>
|
|
|
|
<template #icon><i class="ti ti-code-asterix"></i></template>
|
|
|
|
<template #suffix>{{ animatedMfm ? i18n.ts.on : i18n.ts.off }}</template>
|
|
|
|
|
|
|
|
<MkInfo v-if="animatedMfm" style="margin-bottom: 15px;" warn>{{ i18n.ts.photosensitiveSeizuresWarning }}</MkInfo>
|
|
|
|
<MkSwitch v-model="animatedMfm">{{ i18n.ts.enableAnimatedMfm }}<template #caption>{{ i18n.ts.enableAnimatedMfmDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.disableShowingAnimatedImages }}</template>
|
|
|
|
<template #icon><i class="ti ti-confetti"></i></template>
|
|
|
|
<template #suffix>{{ disableShowingAnimatedImages ? i18n.ts.on : i18n.ts.off }}</template>
|
|
|
|
|
|
|
|
<MkInfo v-if="!disableShowingAnimatedImages" style="margin-bottom: 15px;" warn>{{ i18n.ts.photosensitiveSeizuresWarning }}</MkInfo>
|
|
|
|
<MkSwitch v-model="disableShowingAnimatedImages">{{ i18n.ts.disableShowingAnimatedImages }}<template #caption>{{ i18n.ts.disableShowingAnimatedImagesDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.youCanEditMoreSettingsInSettingsPageLater }}</MkInfo>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed, ref, watch } from 'vue';
|
|
|
|
import { instance } from '@/instance';
|
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
import * as os from '@/os';
|
|
|
|
import { $i } from '@/account';
|
2023-05-30 17:54:11 +09:00
|
|
|
import { defaultStore } from '@/store';
|
2023-05-25 17:33:30 +09:00
|
|
|
|
|
|
|
const animatedMfm = computed(defaultStore.makeGetterSetter('animatedMfm'));
|
|
|
|
const advancedMfm = computed(defaultStore.makeGetterSetter('advancedMfm'));
|
|
|
|
const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('disableShowingAnimatedImages'));
|
2023-05-30 17:54:11 +09:00
|
|
|
const emojiStyle = computed(defaultStore.makeGetterSetter('emojiStyle'));
|
2023-05-25 17:33:30 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
2023-05-30 17:54:11 +09:00
|
|
|
.preview {
|
|
|
|
padding: 20px;
|
|
|
|
border-radius: 6px;
|
|
|
|
text-align: center;
|
|
|
|
background: var(--bg);
|
|
|
|
}
|
2023-05-25 17:33:30 +09:00
|
|
|
</style>
|