fix: improve help pages

This commit is contained in:
2025-04-19 11:44:16 +00:00
parent f7e9d7d7db
commit 7084f40404
2 changed files with 32 additions and 4 deletions

View File

@ -1,3 +1,11 @@
## 0.11.1
- Improved help pages
## 0.11.0
- Added help pages
## 0.10.1 ## 0.10.1
- Fixed the order of cells in the CHUNITHM keyboard - Fixed the order of cells in the CHUNITHM keyboard

View File

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { ComputedRef, computed, onMounted } from 'vue'; import { ComputedRef, computed, onMounted, ref } from 'vue';
import Button from 'primevue/button'; import Button from 'primevue/button';
import Carousel from 'primevue/carousel'; import Carousel from 'primevue/carousel';
import Dialog from 'primevue/dialog'; import Dialog from 'primevue/dialog';
@ -11,7 +11,7 @@ import { VueMarkdownIt } from '@f3ve/vue-markdown-it';
const prf = usePrfStore(); const prf = usePrfStore();
const client = useClientStore(); const client = useClientStore();
defineProps({ const props = defineProps({
visible: Boolean, visible: Boolean,
firstTime: Boolean, firstTime: Boolean,
onFinish: Function, onFinish: Function,
@ -101,6 +101,14 @@ onMounted(async () => {
image: '/help-finale-chunithm.png', image: '/help-finale-chunithm.png',
}; };
}); });
const counter = ref(0);
const exitLabel = computed(() => {
return props.firstTime === true && counter.value < data.value.length - 1
? 'Skip'
: 'Close';
});
</script> </script>
<template> <template>
@ -115,7 +123,13 @@ onMounted(async () => {
" "
:style="{ width: '760px', scale: client.scaleValue }" :style="{ width: '760px', scale: client.scaleValue }"
> >
<Carousel :value="data" :num-visible="1" :num-scroll="1"> <Carousel
:value="data"
:num-visible="1"
:num-scroll="1"
:page="counter"
v-on:update:page="(p) => (counter = p)"
>
<template #item="slotProps"> <template #item="slotProps">
<div class="md-container markdown"> <div class="md-container markdown">
<vue-markdown-it <vue-markdown-it
@ -135,9 +149,15 @@ onMounted(async () => {
</template> </template>
</Carousel> </Carousel>
<div style="width: 100%; text-align: center"> <div style="width: 100%; text-align: center">
<Button
v-if="counter < data.length - 1"
class="m-auto mr-4"
label="Next"
@click="() => (counter += 1)"
/>
<Button <Button
class="m-auto" class="m-auto"
label="OK" :label="exitLabel"
@click="() => onFinish && onFinish()" @click="() => onFinish && onFinish()"
/> />
</div> </div>