This commit is contained in:
parent
d40666b878
commit
303b96d8e7
1 changed files with 5 additions and 3 deletions
|
|
@ -4,7 +4,8 @@ import { ref, onMounted, watch } from 'vue'
|
||||||
const { t } = useLocale()
|
const { t } = useLocale()
|
||||||
|
|
||||||
const parsedHtml = ref('')
|
const parsedHtml = ref('')
|
||||||
let markedParser: { parse: (text: string) => string | Promise<string>, use: (plugin: unknown) => void } | null = null
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
let markedParser: any = null
|
||||||
|
|
||||||
const baseRules = ref<Array<{ id: string, name: string }>>([])
|
const baseRules = ref<Array<{ id: string, name: string }>>([])
|
||||||
const gameRules = ref<Array<{ id: string, name: string, version: string }>>([])
|
const gameRules = ref<Array<{ id: string, name: string, version: string }>>([])
|
||||||
|
|
@ -197,14 +198,15 @@ watch(selectedCategory, (newId) => {
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div
|
<div
|
||||||
v-if="isDocLoading"
|
v-show="isDocLoading"
|
||||||
class="loader-container"
|
class="loader-container"
|
||||||
>
|
>
|
||||||
<div class="spinner" />
|
<div class="spinner" />
|
||||||
<p>{{ t.policies?.loading }}</p>
|
<p>{{ t.policies?.loading }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<div
|
<div
|
||||||
v-else
|
v-show="!isDocLoading"
|
||||||
class="markdown-body"
|
class="markdown-body"
|
||||||
v-html="parsedHtml"
|
v-html="parsedHtml"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue