enhance: Play の「ソースを表示」にシンタックスハイライトを当てる (#10107)

* シンタックスハイライトを当てる

* fix
This commit is contained in:
牛蒡 2023-02-28 17:38:43 +09:00 committed by GitHub
parent 17d0bde50e
commit c63447e194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;