mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
wip: migrate backend to new game package
This commit is contained in:
1 parent
1d843f7355
commit
1616f62755
94 files changed
+263
-3055
No files matched your search
@@ -28,6 +28,10 @@ const right = () => {
|
||||
current.value += 1
|
||||
}
|
||||
}
|
||||
|
||||
const response = computed(() => {
|
||||
return sessionStore.session?.responses[current.value]
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -69,21 +73,19 @@ const right = () => {
|
||||
<div id="hint" class="bg-bg p-8 overflow-y-auto">
|
||||
<ul>
|
||||
<li
|
||||
v-for="response in sessionStore.session?.responses[current]"
|
||||
v-if="response"
|
||||
:key="response.type"
|
||||
class="text-text font-xl whitespace-pre-wrap"
|
||||
>
|
||||
<div v-for="content in response.content" :key="content">
|
||||
<MarkdownText :content="content" />
|
||||
</div>
|
||||
<MarkdownText :content="response.content" />
|
||||
</li>
|
||||
<li
|
||||
v-for="hint in sessionStore.session?.hints[current]"
|
||||
<!-- <li
|
||||
v-for="hint in response?.hints"
|
||||
:key="hint"
|
||||
class="text-text-primary font-xl whitespace-pre-wrap"
|
||||
>
|
||||
<MarkdownText :content="hint" />
|
||||
</li>
|
||||
</li> -->
|
||||
</ul>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user