summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/aiscript
diff options
context:
space:
mode:
authorFineArchs <133759614+FineArchs@users.noreply.github.com>2023-09-19 16:53:43 +0900
committerGitHub <noreply@github.com>2023-09-19 16:53:43 +0900
commit578b0ebe0cb8fd4a983cf620d600e3f8149ed908 (patch)
treee6e97005489a5e73934d4737851e380d9eadb358 /packages/frontend/src/scripts/aiscript
parentrefactor(frontend): use ESM (diff)
downloadsharkey-578b0ebe0cb8fd4a983cf620d600e3f8149ed908.tar.gz
sharkey-578b0ebe0cb8fd4a983cf620d600e3f8149ed908.tar.bz2
sharkey-578b0ebe0cb8fd4a983cf620d600e3f8149ed908.zip
Scratchpadに非同期のエラーを処理する機能を追加 (#11850)
* opts.callをtopCallに置換 * AiScriptのエラーコールバックをscratchpadに導入 * lint * Update CHANGELOG.md
Diffstat (limited to 'packages/frontend/src/scripts/aiscript')
-rw-r--r--packages/frontend/src/scripts/aiscript/ui.ts26
1 files changed, 13 insertions, 13 deletions
diff --git a/packages/frontend/src/scripts/aiscript/ui.ts b/packages/frontend/src/scripts/aiscript/ui.ts
index 7e17563ec8..d326b956e8 100644
--- a/packages/frontend/src/scripts/aiscript/ui.ts
+++ b/packages/frontend/src/scripts/aiscript/ui.ts
@@ -551,55 +551,55 @@ export function registerAsUiLib(components: Ref<AsUiComponent>[], done: (root: R
}),
'Ui:C:container': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('container', def, id, getContainerOptions, opts.call);
+ return createComponentInstance('container', def, id, getContainerOptions, opts.topCall);
}),
'Ui:C:text': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('text', def, id, getTextOptions, opts.call);
+ return createComponentInstance('text', def, id, getTextOptions, opts.topCall);
}),
'Ui:C:mfm': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('mfm', def, id, getMfmOptions, opts.call);
+ return createComponentInstance('mfm', def, id, getMfmOptions, opts.topCall);
}),
'Ui:C:textarea': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('textarea', def, id, getTextareaOptions, opts.call);
+ return createComponentInstance('textarea', def, id, getTextareaOptions, opts.topCall);
}),
'Ui:C:textInput': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('textInput', def, id, getTextInputOptions, opts.call);
+ return createComponentInstance('textInput', def, id, getTextInputOptions, opts.topCall);
}),
'Ui:C:numberInput': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('numberInput', def, id, getNumberInputOptions, opts.call);
+ return createComponentInstance('numberInput', def, id, getNumberInputOptions, opts.topCall);
}),
'Ui:C:button': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('button', def, id, getButtonOptions, opts.call);
+ return createComponentInstance('button', def, id, getButtonOptions, opts.topCall);
}),
'Ui:C:buttons': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('buttons', def, id, getButtonsOptions, opts.call);
+ return createComponentInstance('buttons', def, id, getButtonsOptions, opts.topCall);
}),
'Ui:C:switch': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('switch', def, id, getSwitchOptions, opts.call);
+ return createComponentInstance('switch', def, id, getSwitchOptions, opts.topCall);
}),
'Ui:C:select': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('select', def, id, getSelectOptions, opts.call);
+ return createComponentInstance('select', def, id, getSelectOptions, opts.topCall);
}),
'Ui:C:folder': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('folder', def, id, getFolderOptions, opts.call);
+ return createComponentInstance('folder', def, id, getFolderOptions, opts.topCall);
}),
'Ui:C:postFormButton': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('postFormButton', def, id, getPostFormButtonOptions, opts.call);
+ return createComponentInstance('postFormButton', def, id, getPostFormButtonOptions, opts.topCall);
}),
'Ui:C:postForm': values.FN_NATIVE(([def, id], opts) => {
- return createComponentInstance('postForm', def, id, getPostFormOptions, opts.call);
+ return createComponentInstance('postForm', def, id, getPostFormOptions, opts.topCall);
}),
};
}