mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 23:05:11 +00:00
enhance: Play の「ソースを表示」にシンタックスハイライトを当てる (#10107)
* シンタックスハイライトを当てる * fix
This commit is contained in:
parent
17d0bde50e
commit
c63447e194
1 changed files with 3 additions and 3 deletions
|
@ -27,11 +27,11 @@
|
|||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
<MkFolder class="_margin">
|
||||
<MkFolder :default-open="false" :max-height="280" class="_margin">
|
||||
<template #icon><i class="ti ti-code"></i></template>
|
||||
<template #label>{{ i18n.ts._play.viewSource }}</template>
|
||||
|
||||
<MkTextarea :model-value="flash.script" readonly tall class="_monospace" spellcheck="false"></MkTextarea>
|
||||
<MkCode :code="flash.script" :inline="false" class="_monospace"/>
|
||||
</MkFolder>
|
||||
<div :class="$style.footer">
|
||||
<Mfm :text="`By @${flash.user.username}`"/>
|
||||
|
@ -62,7 +62,7 @@ import MkAsUi from '@/components/MkAsUi.vue';
|
|||
import { AsUiComponent, AsUiRoot, registerAsUiLib } from '@/scripts/aiscript/ui';
|
||||
import { createAiScriptEnv } from '@/scripts/aiscript/api';
|
||||
import MkFolder from '@/components/MkFolder.vue';
|
||||
import MkTextarea from '@/components/MkTextarea.vue';
|
||||
import MkCode from '@/components/MkCode.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
id: string;
|
||||
|
|
Loading…
Reference in a new issue