mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: remove unnecessary operator and imports
This commit is contained in:
1 parent
6a097c02ed
commit
5e8d3f275d
3 files changed
+2
-6
No files matched your search
@@ -5,7 +5,6 @@ import { useToast } from 'vue-toastification'
|
|||||||
import { ref, defineProps, onMounted } from 'vue'
|
import { ref, defineProps, onMounted } from 'vue'
|
||||||
import MarkdownText from './MarkdownText.vue'
|
import MarkdownText from './MarkdownText.vue'
|
||||||
import { trpc } from '../utils/trpc'
|
import { trpc } from '../utils/trpc'
|
||||||
import { SUPPORTED_LOCALES } from '../../../packages/constants'
|
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
@@ -91,7 +90,7 @@ onMounted(async () => {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
@click="handleQuests(questId)"
|
@click="handleQuests(questId)"
|
||||||
:style="{ backgroundColor: questColor, color: questTextColor }"
|
:style="{ backgroundColor: questColor, color: questTextColor }"
|
||||||
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full text-lg"
|
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full"
|
||||||
>
|
>
|
||||||
{{ t('quest.start') }}
|
{{ t('quest.start') }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { ref, onMounted, watch, computed } from 'vue'
|
import { ref, onMounted, watch, computed } from 'vue'
|
||||||
import { useToast } from 'vue-toastification'
|
import { useToast } from 'vue-toastification'
|
||||||
import { SUPPORTED_LOCALES } from '../../../packages/constants'
|
|
||||||
import { DAG } from '../../../packages/utils'
|
import { DAG } from '../../../packages/utils'
|
||||||
import { trpc } from '../utils/trpc'
|
import { trpc } from '../utils/trpc'
|
||||||
import useUserProfile from '../store/userProfile'
|
import useUserProfile from '../store/userProfile'
|
||||||
@@ -121,8 +120,7 @@ onMounted(async () => {
|
|||||||
watch(() => store.progress, computeGraphData, { deep: true })
|
watch(() => store.progress, computeGraphData, { deep: true })
|
||||||
watch(locale, () => {
|
watch(locale, () => {
|
||||||
opened.value = null
|
opened.value = null
|
||||||
// eslint-disable-next-line no-void
|
computeGraphData()
|
||||||
void computeGraphData()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const curvedPath = computed(() => {
|
const curvedPath = computed(() => {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import { useToast } from 'vue-toastification'
|
import { useToast } from 'vue-toastification'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useSession } from '../../store/session'
|
import { useSession } from '../../store/session'
|
||||||
import { SUPPORTED_LOCALES } from '../../../../packages/constants'
|
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user