2020-02-09 15:25:32 +02:00
|
|
|
<template>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div :class="$style.container">
|
|
|
|
<div :class="$style.title">
|
2022-12-19 12:01:30 +02:00
|
|
|
<div :class="$style.titleText"><i class="ti ti-info-circle"></i> {{ i18n.ts._tutorial.title }}</div>
|
2022-12-17 18:59:59 +02:00
|
|
|
<div :class="$style.step">
|
|
|
|
<button class="_button" :class="$style.stepArrow" :disabled="tutorial === 0" @click="tutorial--">
|
2022-12-19 12:01:30 +02:00
|
|
|
<i class="ti ti-chevron-left"></i>
|
2022-12-17 18:59:59 +02:00
|
|
|
</button>
|
|
|
|
<span :class="$style.stepNumber">{{ tutorial + 1 }} / {{ tutorialsNumber }}</span>
|
|
|
|
<button class="_button" :class="$style.stepArrow" :disabled="tutorial === tutorialsNumber - 1" @click="tutorial++">
|
2022-12-19 12:01:30 +02:00
|
|
|
<i class="ti ti-chevron-right"></i>
|
2022-12-17 18:59:59 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-if="tutorial === 0" :class="$style.body">
|
2022-07-20 16:24:26 +03: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 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 1" :class="$style.body">
|
2022-07-20 16:24:26 +03: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 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 2" :class="$style.body">
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step3_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step3_2 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step3_3 }}</div>
|
2022-12-17 18:59:59 +02:00
|
|
|
<small :class="$style.small">{{ i18n.ts._tutorial.step3_4 }}</small>
|
2020-02-09 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 3" :class="$style.body">
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step4_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step4_2 }}</div>
|
2020-02-09 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 4" :class="$style.body">
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step5_1 }}</div>
|
|
|
|
<I18n :src="i18n.ts._tutorial.step5_2" tag="div">
|
2020-10-17 14:12:00 +03:00
|
|
|
<template #featured>
|
2023-01-02 06:19:32 +02:00
|
|
|
<MkA class="_link" to="/explore">{{ i18n.ts.featured }}</MkA>
|
2020-10-17 14:12:00 +03:00
|
|
|
</template>
|
|
|
|
<template #explore>
|
2023-01-02 06:19:32 +02:00
|
|
|
<MkA class="_link" to="/explore#users">{{ i18n.ts.explore }}</MkA>
|
2020-10-17 14:12:00 +03:00
|
|
|
</template>
|
2020-12-26 03:01:32 +02:00
|
|
|
</I18n>
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step5_3 }}</div>
|
2022-12-17 18:59:59 +02:00
|
|
|
<small :class="$style.small">{{ i18n.ts._tutorial.step5_4 }}</small>
|
2020-02-09 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 5" :class="$style.body">
|
2022-07-20 16:24:26 +03: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 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 6" :class="$style.body">
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step7_1 }}</div>
|
|
|
|
<I18n :src="i18n.ts._tutorial.step7_2" tag="div">
|
2020-10-17 14:12:00 +03:00
|
|
|
<template #help>
|
2022-07-20 16:24:26 +03:00
|
|
|
<a href="https://misskey-hub.net/help.html" target="_blank" class="_link">{{ i18n.ts.help }}</a>
|
2020-10-17 14:12:00 +03:00
|
|
|
</template>
|
2020-12-26 03:01:32 +02:00
|
|
|
</I18n>
|
2022-07-20 16:24:26 +03:00
|
|
|
<div>{{ i18n.ts._tutorial.step7_3 }}</div>
|
2020-02-09 15:25:32 +02:00
|
|
|
</div>
|
2023-01-01 02:45:27 +02:00
|
|
|
<div v-else-if="tutorial === 7" :class="$style.body">
|
2022-12-17 18:59:59 +02:00
|
|
|
<div>{{ i18n.ts._tutorial.step8_1 }}</div>
|
|
|
|
<div>{{ i18n.ts._tutorial.step8_2 }}</div>
|
|
|
|
<small :class="$style.small">{{ i18n.ts._tutorial.step8_3 }}</small>
|
|
|
|
</div>
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2023-01-01 02:45:27 +02:00
|
|
|
<div :class="$style.footer">
|
2022-12-17 18:59:59 +02:00
|
|
|
<template v-if="tutorial === tutorialsNumber - 1">
|
2023-01-01 02:45:27 +02:00
|
|
|
<MkPushNotificationAllowButton :class="$style.footerItem" primary show-only-to-register @click="tutorial = -1"/>
|
2022-12-17 18:59:59 +02:00
|
|
|
<MkButton :class="$style.footerItem" :primary="false" @click="tutorial = -1">{{ i18n.ts.noThankYou }}</MkButton>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
2022-12-19 12:01:30 +02:00
|
|
|
<MkButton :class="$style.footerItem" primary @click="tutorial++"><i class="ti ti-check"></i> {{ i18n.ts.next }}</MkButton>
|
2022-12-17 18:59:59 +02:00
|
|
|
</template>
|
2020-02-09 15:25:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-12 19:36:51 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2022-09-06 12:21:49 +03:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2022-12-17 18:59:59 +02:00
|
|
|
import MkPushNotificationAllowButton from '@/components/MkPushNotificationAllowButton.vue';
|
2022-01-12 19:36:51 +02:00
|
|
|
import { defaultStore } from '@/store';
|
2022-07-20 16:24:26 +03:00
|
|
|
import { i18n } from '@/i18n';
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
const tutorialsNumber = 8;
|
|
|
|
|
2022-01-12 19:36:51 +02:00
|
|
|
const tutorial = computed({
|
|
|
|
get() { return defaultStore.reactiveState.tutorial.value || 0; },
|
2022-07-20 16:24:26 +03:00
|
|
|
set(value) { defaultStore.set('tutorial', value); },
|
2020-02-09 15:25:32 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
<style lang="scss" module>
|
|
|
|
.small {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2023-01-01 02:45:27 +02:00
|
|
|
.container {
|
|
|
|
border: solid 2px var(--accent);
|
|
|
|
}
|
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
.title {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2023-01-01 02:45:27 +02:00
|
|
|
padding: 22px 32px;
|
|
|
|
font-weight: bold;
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
&Text {
|
|
|
|
margin: 4px 0;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
.step {
|
|
|
|
margin-left: auto;
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
&Arrow {
|
|
|
|
padding: 4px;
|
|
|
|
&:disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
&:first-child {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
&Number {
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 4px;
|
|
|
|
}
|
|
|
|
}
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2023-01-01 02:45:27 +02:00
|
|
|
.body {
|
|
|
|
padding: 0 32px;
|
|
|
|
}
|
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
.footer {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: right;
|
2023-01-01 02:45:27 +02:00
|
|
|
padding: 22px 32px;
|
2020-02-09 15:25:32 +02:00
|
|
|
|
2022-12-17 18:59:59 +02:00
|
|
|
&Item {
|
|
|
|
margin: 4px;
|
2020-02-09 15:25:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|