diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 21:04:37 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 21:04:37 +0900 |
| commit | ce858a676be7ec70566f186e1a061273975b04e1 (patch) | |
| tree | 00269a9c0691707ed40c76c0e16f024c2ab7927b /packages/frontend/src/pages/scratchpad.vue | |
| parent | follow up of 1fd87bd2e46eb50f718f95f94d844fe694e43a53 (diff) | |
| download | misskey-ce858a676be7ec70566f186e1a061273975b04e1.tar.gz misskey-ce858a676be7ec70566f186e1a061273975b04e1.tar.bz2 misskey-ce858a676be7ec70566f186e1a061273975b04e1.zip | |
refactor(frontend): use PageWithHeader instead of MkStickyContainer+MkPageHeader combination
Diffstat (limited to 'packages/frontend/src/pages/scratchpad.vue')
| -rw-r--r-- | packages/frontend/src/pages/scratchpad.vue | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/packages/frontend/src/pages/scratchpad.vue b/packages/frontend/src/pages/scratchpad.vue index b0d3b5bbd2..f89e2dd776 100644 --- a/packages/frontend/src/pages/scratchpad.vue +++ b/packages/frontend/src/pages/scratchpad.vue @@ -4,9 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<MkStickyContainer> - <template #header><MkPageHeader/></template> - +<PageWithHeader> <MkSpacer :contentMax="800"> <div :class="$style.root"> <div class="_gaps_s"> @@ -53,13 +51,15 @@ SPDX-License-Identifier: AGPL-3.0-only </div> </div> </MkSpacer> -</MkStickyContainer> +</PageWithHeader> </template> <script lang="ts" setup> import { onDeactivated, onUnmounted, ref, watch, computed } from 'vue'; -import type { Ref } from 'vue'; import { Interpreter, Parser, utils } from '@syuilo/aiscript'; +import type { Ref } from 'vue'; +import type { AsUiComponent } from '@/aiscript/ui.js'; +import type { AsUiRoot } from '@/aiscript/ui.js'; import MkContainer from '@/components/MkContainer.vue'; import MkButton from '@/components/MkButton.vue'; import MkTextarea from '@/components/MkTextarea.vue'; @@ -70,13 +70,10 @@ import { $i } from '@/i.js'; import { i18n } from '@/i18n.js'; import { definePage } from '@/page.js'; import { registerAsUiLib } from '@/aiscript/ui.js'; -import type { AsUiComponent } from '@/aiscript/ui.js'; import MkAsUi from '@/components/MkAsUi.vue'; import { miLocalStorage } from '@/local-storage.js'; import { claimAchievement } from '@/utility/achievements.js'; -import type { AsUiRoot } from '@/aiscript/ui.js'; - const parser = new Parser(); let aiscript: Interpreter; const code = ref(''); @@ -103,7 +100,7 @@ function stringifyUiProps(uiProps) { return JSON.stringify( { ...uiProps, type: undefined, id: undefined }, (k, v) => typeof v === 'function' ? '<function>' : v, - 2 + 2, ); } |