From 2ee0e07bb6346d29bc5e57ec8aac348143e2d50f Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Apr 2020 21:35:27 +0900 Subject: refactor(client): :sparkles: --- .../pages/page-editor/page-editor.script-block.vue | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/client/pages/page-editor/page-editor.script-block.vue') diff --git a/src/client/pages/page-editor/page-editor.script-block.vue b/src/client/pages/page-editor/page-editor.script-block.vue index 7e3bbf0c88..9eafd5daa0 100644 --- a/src/client/pages/page-editor/page-editor.script-block.vue +++ b/src/client/pages/page-editor/page-editor.script-block.vue @@ -24,15 +24,15 @@
@@ -44,13 +44,13 @@ {{ $t('_pages.script.blocks._fn.slots') }} - +
- +
- +
@@ -62,7 +62,7 @@ import { v4 as uuid } from 'uuid'; import i18n from '../../i18n'; import XContainer from './page-editor.container.vue'; import MkTextarea from '../../components/ui/textarea.vue'; -import { isLiteralBlock, funcDefs, blockDefs } from '../../scripts/aoiscript/index'; +import { isLiteralBlock, funcDefs, blockDefs } from '../../scripts/hpml/index'; export default Vue.extend({ i18n, @@ -88,7 +88,7 @@ export default Vue.extend({ required: false, default: false }, - aoiScript: { + hpml: { required: true, }, name: { @@ -156,7 +156,7 @@ export default Vue.extend({ if (this.value.type && this.value.type.startsWith('fn:')) { const fnName = this.value.type.split(':')[1]; - const fn = this.aoiScript.getVarByName(fnName); + const fn = this.hpml.getVarByName(fnName); const empties = []; for (let i = 0; i < fn.value.slots.length; i++) { @@ -202,9 +202,9 @@ export default Vue.extend({ deep: true }); - this.$watch('aoiScript.variables', () => { + this.$watch('hpml.variables', () => { if (this.type != null && this.value) { - this.error = this.aoiScript.typeCheck(this.value); + this.error = this.hpml.typeCheck(this.value); } }, { deep: true @@ -226,7 +226,7 @@ export default Vue.extend({ }, _getExpectedType(slot: number) { - return this.aoiScript.getExpectedType(this.value, slot); + return this.hpml.getExpectedType(this.value, slot); } } }); -- cgit v1.2.3-freya