2023-11-01 23:58:09 +00:00
|
|
|
<template>
|
2023-11-05 21:57:50 +00:00
|
|
|
<span>Eingabemodus: </span>
|
2023-11-01 23:58:09 +00:00
|
|
|
<BulmaButton
|
2023-11-05 21:57:50 +00:00
|
|
|
v-bind="$attrs"
|
2023-11-01 23:58:09 +00:00
|
|
|
:icon="
|
|
|
|
|
'fa-solid fa-' +
|
|
|
|
|
(store.is_touch_device ? 'hand-pointer' : 'arrow-pointer')
|
|
|
|
|
"
|
2023-11-05 21:57:50 +00:00
|
|
|
:text="store.is_touch_device ? 'Touch' : 'Desktop'"
|
2023-11-01 23:58:09 +00:00
|
|
|
@click.left="store.toggle_touch_device"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2024-08-23 16:38:04 +00:00
|
|
|
import { advent22Store } from "@/lib/store";
|
2023-11-01 23:58:09 +00:00
|
|
|
import { Options, Vue } from "vue-class-component";
|
|
|
|
|
|
|
|
|
|
import BulmaButton from "./bulma/Button.vue";
|
|
|
|
|
|
|
|
|
|
@Options({
|
|
|
|
|
components: {
|
|
|
|
|
BulmaButton,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
export default class extends Vue {
|
|
|
|
|
public readonly store = advent22Store();
|
|
|
|
|
}
|
|
|
|
|
</script>
|