a
This commit is contained in:
parent
1947a53af6
commit
b40ecc6159
6 changed files with 252 additions and 326 deletions
|
|
@ -5,20 +5,24 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<template>
|
||||
<MkContainer :showHeader="widgetProps.showHeader" class="mkw-clicker">
|
||||
<template #icon><img :class="[$style.icon,{[$style.dark]:darkMode}]" alt="Cosaque daihuku"
|
||||
src="https://media.discordapp.net/attachments/1153099592863334431/1162139796647448576/AfovawbDhjHYAAAAAElFTkSuQmCC.png"/></template>
|
||||
<template #icon>
|
||||
<img
|
||||
:class="[$style.icon,{[$style.dark]:darkMode}]" alt="Cosaque daihuku"
|
||||
src="https://files.prismisskey.space/misskey/59731116-9616-4161-82b3-7eff6c48ea72.apng"
|
||||
/>
|
||||
</template>
|
||||
<template #header>Clicker</template>
|
||||
<MkClickerGame/>
|
||||
</MkContainer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { useWidgetPropsManager, WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget.js';
|
||||
import { GetFormResultType } from '@/scripts/form.js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
import MkClickerGame from '@/components/MkClickerGame.vue';
|
||||
import {computed} from "vue";
|
||||
import {defaultStore} from "@/store.js";
|
||||
import { defaultStore } from '@/store.js';
|
||||
const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
|
||||
const name = 'clicker';
|
||||
|
||||
|
|
@ -47,7 +51,6 @@ defineExpose<WidgetComponentExpose>({
|
|||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss" module>
|
||||
.icon {
|
||||
width: 1.3em;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue