difk
This commit is contained in:
parent
79876ab3ac
commit
120efff6c1
5 changed files with 59 additions and 21 deletions
|
|
@ -5,7 +5,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<template>
|
||||
<MkContainer :showHeader="widgetProps.showHeader" class="mkw-clicker">
|
||||
<template #icon><i class="ti ti-cookie"></i></template>
|
||||
<template #icon><img :class="[$style.icon,{[$style.dark]:darkMode}]" alt="Cosaque daihuku"
|
||||
src="https://media.discordapp.net/attachments/1153099592863334431/1162139796647448576/AfovawbDhjHYAAAAAElFTkSuQmCC.png"/></template>
|
||||
<template #header>Clicker</template>
|
||||
<MkClickerGame/>
|
||||
</MkContainer>
|
||||
|
|
@ -16,7 +17,9 @@ import { useWidgetPropsManager, Widget, WidgetComponentEmits, WidgetComponentExp
|
|||
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";
|
||||
const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
|
||||
const name = 'clicker';
|
||||
|
||||
const widgetPropsDef = {
|
||||
|
|
@ -43,3 +46,15 @@ defineExpose<WidgetComponentExpose>({
|
|||
id: props.widget ? props.widget.id : null,
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss" module>
|
||||
.icon {
|
||||
width: 1.3em;
|
||||
vertical-align: -24%;
|
||||
}
|
||||
|
||||
.dark {
|
||||
filter: invert(1);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue