From 6da6c4dd45a5500dbcb56e562282bad9dfecb5ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 15 Mar 2023 18:26:59 +0900 Subject: enhance(client): update AiScript to 0.13.0 --- packages/frontend/package.json | 2 +- packages/frontend/src/pages/flash/flash-edit.vue | 10 +++++----- packages/frontend/src/pages/settings/plugin.install.vue | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/frontend') diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 9c8afb9aed..2192553a5f 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -15,7 +15,7 @@ "@rollup/plugin-alias": "4.0.3", "@rollup/plugin-json": "6.0.0", "@rollup/pluginutils": "5.0.2", - "@syuilo/aiscript": "0.12.4", + "@syuilo/aiscript": "0.13.0", "@tabler/icons-webfont": "2.2.0", "@vitejs/plugin-vue": "4.0.0", "@vue/compiler-sfc": "3.2.47", diff --git a/packages/frontend/src/pages/flash/flash-edit.vue b/packages/frontend/src/pages/flash/flash-edit.vue index 2b7fcf74e1..242ca5e897 100644 --- a/packages/frontend/src/pages/flash/flash-edit.vue +++ b/packages/frontend/src/pages/flash/flash-edit.vue @@ -33,7 +33,7 @@ import MkTextarea from '@/components/MkTextarea.vue'; import MkInput from '@/components/MkInput.vue'; import { useRouter } from '@/router'; -const PRESET_DEFAULT = `/// @ 0.12.4 +const PRESET_DEFAULT = `/// @ 0.13.0 var name = "" @@ -51,7 +51,7 @@ Ui:render([ ]) `; -const PRESET_OMIKUJI = `/// @ 0.12.4 +const PRESET_OMIKUJI = `/// @ 0.13.0 // ユーザーごとに日替わりのおみくじのプリセット // 選択肢 @@ -94,7 +94,7 @@ Ui:render([ ]) `; -const PRESET_SHUFFLE = `/// @ 0.12.4 +const PRESET_SHUFFLE = `/// @ 0.13.0 // 巻き戻し可能な文字シャッフルのプリセット let string = "ペペロンチーノ" @@ -173,7 +173,7 @@ var cursor = 0 do() `; -const PRESET_QUIZ = `/// @ 0.12.4 +const PRESET_QUIZ = `/// @ 0.13.0 let title = '地理クイズ' let qas = [{ @@ -286,7 +286,7 @@ qaEls.push(Ui:C:container({ Ui:render(qaEls) `; -const PRESET_TIMELINE = `/// @ 0.12.4 +const PRESET_TIMELINE = `/// @ 0.13.0 // APIリクエストを行いローカルタイムラインを表示するプリセット @fetch() { diff --git a/packages/frontend/src/pages/settings/plugin.install.vue b/packages/frontend/src/pages/settings/plugin.install.vue index f23a338179..98063d6ff8 100644 --- a/packages/frontend/src/pages/settings/plugin.install.vue +++ b/packages/frontend/src/pages/settings/plugin.install.vue @@ -49,7 +49,7 @@ async function install() { text: 'No language version annotation found :(', }); return; - } else if (!lv.startsWith('0.12.')) { + } else if (!(lv.startsWith('0.12.') || lv.startsWith('0.13.'))) { os.alert({ type: 'error', text: `aiscript version '${lv}' is not supported :(`, -- cgit v1.2.3-freya