formatting
This commit is contained in:
parent
980bf31ce0
commit
4210c35a5a
|
@ -1,19 +1,32 @@
|
|||
<template>
|
||||
<img v-if="customEmoji" class="mk-emoji custom" :class="{ normal, noStyle }" :src="url" :alt="alt" :title="alt" decoding="async"/>
|
||||
<img v-else-if="char && !useOsNativeEmojis" class="mk-emoji"
|
||||
<img
|
||||
v-if="customEmoji"
|
||||
class="mk-emoji custom"
|
||||
:class="{ normal, noStyle }"
|
||||
:src="url"
|
||||
:alt="alt"
|
||||
:title="alt"
|
||||
decoding="async"
|
||||
/>
|
||||
<img
|
||||
v-else-if="char && !useOsNativeEmojis"
|
||||
class="mk-emoji"
|
||||
:src="char2filePath(char) || url"
|
||||
:alt="alt" :title="alt" decoding="async"/>
|
||||
:alt="alt"
|
||||
:title="alt"
|
||||
decoding="async"
|
||||
/>
|
||||
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
||||
<span v-else>{{ emoji }}</span>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { CustomEmoji } from 'calckey-js/built/entities';
|
||||
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
||||
import { char2filePath } from '@/scripts/twemoji-base';
|
||||
import { defaultStore } from '@/store';
|
||||
import { instance } from '@/instance';
|
||||
import { computed, ref, watch } from "vue";
|
||||
import { CustomEmoji } from "calckey-js/built/entities";
|
||||
import { getStaticImageUrl } from "@/scripts/get-static-image-url";
|
||||
import { char2filePath } from "@/scripts/twemoji-base";
|
||||
import { defaultStore } from "@/store";
|
||||
import { instance } from "@/instance";
|
||||
import { url as instanceUrl } from "@/config";
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -10,15 +10,15 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import XEntrance from './welcome.entrance.a.vue';
|
||||
import XEntrance from "./welcome.entrance.a.vue";
|
||||
// #v-ifdef VITE_CAPACITOR
|
||||
//...
|
||||
// #v-else
|
||||
import { computed } from 'vue';
|
||||
import XSetup from './welcome.setup.vue';
|
||||
import { instanceName } from '@/config';
|
||||
import * as os from '@/os';
|
||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||
import { computed } from "vue";
|
||||
import XSetup from "./welcome.setup.vue";
|
||||
import { instanceName } from "@/config";
|
||||
import * as os from "@/os";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
|
||||
let meta = $ref(null);
|
||||
|
||||
|
@ -30,9 +30,11 @@ const headerActions = $computed(() => []);
|
|||
|
||||
const headerTabs = $computed(() => []);
|
||||
|
||||
definePageMetadata(computed(() => ({
|
||||
definePageMetadata(
|
||||
computed(() => ({
|
||||
title: instanceName,
|
||||
icon: null,
|
||||
})));
|
||||
}))
|
||||
);
|
||||
// #v-endif
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue