2020-02-09 22:25:32 +09:00
|
|
|
<template>
|
|
|
|
<div class="_card tbkwesmv">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faInfoCircle"/> {{ $ts._tutorial.title }}</div>
|
2020-02-09 22:25:32 +09:00
|
|
|
<div class="_content" v-if="tutorial === 0">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step1_1 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step1_2 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step1_3 }}</div>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 1">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step2_1 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step2_2 }}</div>
|
|
|
|
<MkA class="_link" to="/settings/profile">{{ $ts.editProfile }}</MkA>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 2">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step3_1 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step3_2 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step3_3 }}</div>
|
|
|
|
<small>{{ $ts._tutorial.step3_4 }}</small>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 3">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step4_1 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step4_2 }}</div>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 4">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step5_1 }}</div>
|
|
|
|
<I18n :src="$ts._tutorial.step5_2" tag="div">
|
2020-10-17 20:12:00 +09:00
|
|
|
<template #featured>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkA class="_link" to="/featured">{{ $ts.featured }}</MkA>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
|
|
|
<template #explore>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkA class="_link" to="/explore">{{ $ts.explore }}</MkA>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
2020-12-26 10:01:32 +09:00
|
|
|
</I18n>
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step5_3 }}</div>
|
|
|
|
<small>{{ $ts._tutorial.step5_4 }}</small>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 5">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step6_1 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step6_2 }}</div>
|
|
|
|
<div>{{ $ts._tutorial.step6_3 }}</div>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content" v-else-if="tutorial === 6">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step7_1 }}</div>
|
|
|
|
<I18n :src="$ts._tutorial.step7_2" tag="div">
|
2020-10-17 20:12:00 +09:00
|
|
|
<template #help>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkA class="_link" to="/docs">{{ $ts.help }}</MkA>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
2020-12-26 10:01:32 +09:00
|
|
|
</I18n>
|
2020-12-26 10:47:36 +09:00
|
|
|
<div>{{ $ts._tutorial.step7_3 }}</div>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="_footer navigation">
|
|
|
|
<div class="step">
|
|
|
|
<button class="arrow _button" @click="tutorial--" :disabled="tutorial === 0">
|
2020-10-17 20:12:00 +09:00
|
|
|
<Fa :icon="faChevronLeft"/>
|
2020-02-09 22:25:32 +09:00
|
|
|
</button>
|
|
|
|
<span>{{ tutorial + 1 }} / 7</span>
|
|
|
|
<button class="arrow _button" @click="tutorial++" :disabled="tutorial === 6">
|
2020-10-17 20:12:00 +09:00
|
|
|
<Fa :icon="faChevronRight"/>
|
2020-02-09 22:25:32 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton class="ok" @click="tutorial = -1" primary v-if="tutorial === 6"><Fa :icon="faCheck"/> {{ $ts.gotIt }}</MkButton>
|
|
|
|
<MkButton class="ok" @click="tutorial++" primary v-else><Fa :icon="faCheck"/> {{ $ts.next }}</MkButton>
|
2020-02-09 22:25:32 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 20:12:00 +09:00
|
|
|
import { defineComponent } from 'vue';
|
2020-02-09 22:25:32 +09:00
|
|
|
import { faInfoCircle, faChevronLeft, faChevronRight, faCheck } from '@fortawesome/free-solid-svg-icons'
|
2020-10-17 20:12:00 +09:00
|
|
|
import MkButton from '@/components/ui/button.vue';
|
2020-02-09 22:25:32 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
export default defineComponent({
|
2020-02-09 22:25:32 +09:00
|
|
|
components: {
|
|
|
|
MkButton,
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faInfoCircle, faChevronLeft, faChevronRight, faCheck
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
tutorial: {
|
2020-12-19 10:55:52 +09:00
|
|
|
get() { return this.$store.reactiveState.tutorial.value || 0; },
|
|
|
|
set(value) { this.$store.set('tutorial', value); }
|
2020-02-09 22:25:32 +09:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.tbkwesmv {
|
|
|
|
> ._content {
|
|
|
|
> small {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .navigation {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: baseline;
|
|
|
|
|
|
|
|
> .step {
|
|
|
|
> .arrow {
|
|
|
|
padding: 4px;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .ok {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|