2020-02-09 13:25:32 +00:00
|
|
|
<template>
|
|
|
|
<div class="_card tbkwesmv">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div class="_title"><i class="fas fa-info-circle"></i> {{ i18n.ts._tutorial.title }}</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-if="tutorial === 0" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step1_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step1_2 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step1_3 }}</div>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 1" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step2_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step2_2 }}</div>
|
|
|
|
<MkA class="_link" to="/settings/profile">{{ i18n.ts.editProfile }}</MkA>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 2" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step3_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step3_2 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step3_3 }}</div>
|
|
|
|
<small>{{ i18n.ts._tutorial.step3_4 }}</small>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 3" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step4_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step4_2 }}</div>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 4" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step5_1 }}</div>
|
|
|
|
<I18n :src="i18n.ts._tutorial.step5_2" tag="div">
|
2020-10-17 11:12:00 +00:00
|
|
|
<template #featured>
|
2022-07-20 13:24:26 +00:00
|
|
|
<MkA class="_link" to="/featured">{{ i18n.ts.featured }}</MkA>
|
2020-10-17 11:12:00 +00:00
|
|
|
</template>
|
|
|
|
<template #explore>
|
2022-07-20 13:24:26 +00:00
|
|
|
<MkA class="_link" to="/explore">{{ i18n.ts.explore }}</MkA>
|
2020-10-17 11:12:00 +00:00
|
|
|
</template>
|
2020-12-26 01:01:32 +00:00
|
|
|
</I18n>
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step5_3 }}</div>
|
|
|
|
<small>{{ i18n.ts._tutorial.step5_4 }}</small>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 5" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step6_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step6_2 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step6_3 }}</div>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
2021-11-19 10:36:12 +00:00
|
|
|
<div v-else-if="tutorial === 6" class="_content">
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step7_1 }}</div>
|
|
|
|
<I18n :src="i18n.ts._tutorial.step7_2" tag="div">
|
2020-10-17 11:12:00 +00:00
|
|
|
<template #help>
|
2022-07-20 13:24:26 +00:00
|
|
|
<a href="https://misskey-hub.net/help.html" target="_blank" class="_link">{{ i18n.ts.help }}</a>
|
2020-10-17 11:12:00 +00:00
|
|
|
</template>
|
2020-12-26 01:01:32 +00:00
|
|
|
</I18n>
|
2022-07-20 13:24:26 +00:00
|
|
|
<div>{{ i18n.ts._tutorial.step7_3 }}</div>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="_footer navigation">
|
|
|
|
<div class="step">
|
2021-11-19 10:36:12 +00:00
|
|
|
<button class="arrow _button" :disabled="tutorial === 0" @click="tutorial--">
|
2021-04-20 14:22:59 +00:00
|
|
|
<i class="fas fa-chevron-left"></i>
|
2020-02-09 13:25:32 +00:00
|
|
|
</button>
|
|
|
|
<span>{{ tutorial + 1 }} / 7</span>
|
2021-11-19 10:36:12 +00:00
|
|
|
<button class="arrow _button" :disabled="tutorial === 6" @click="tutorial++">
|
2021-04-20 14:22:59 +00:00
|
|
|
<i class="fas fa-chevron-right"></i>
|
2020-02-09 13:25:32 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2022-07-20 13:24:26 +00:00
|
|
|
<MkButton v-if="tutorial === 6" class="ok" primary @click="tutorial = -1"><i class="fas fa-check"></i> {{ i18n.ts.gotIt }}</MkButton>
|
|
|
|
<MkButton v-else class="ok" primary @click="tutorial++"><i class="fas fa-check"></i> {{ i18n.ts.next }}</MkButton>
|
2020-02-09 13:25:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-12 17:36:51 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2022-09-06 09:21:49 +00:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2022-01-12 17:36:51 +00:00
|
|
|
import { defaultStore } from '@/store';
|
2022-07-20 13:24:26 +00:00
|
|
|
import { i18n } from '@/i18n';
|
2020-02-09 13:25:32 +00:00
|
|
|
|
2022-01-12 17:36:51 +00:00
|
|
|
const tutorial = computed({
|
|
|
|
get() { return defaultStore.reactiveState.tutorial.value || 0; },
|
2022-07-20 13:24:26 +00:00
|
|
|
set(value) { defaultStore.set('tutorial', value); },
|
2020-02-09 13:25:32 +00: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>
|