🎨
This commit is contained in:
parent
a9fc176c3c
commit
76f37671b4
8 changed files with 23 additions and 22 deletions
|
@ -3,7 +3,7 @@
|
||||||
<template #header><fa :icon="faBolt"/> {{ $t('blocks.numberInput') }}</template>
|
<template #header><fa :icon="faBolt"/> {{ $t('blocks.numberInput') }}</template>
|
||||||
|
|
||||||
<section style="padding: 0 16px 0 16px;">
|
<section style="padding: 0 16px 0 16px;">
|
||||||
<ui-input v-model="value.name"><template #prefix><fa :icon="faSquareRootAlt"/></template><span>{{ $t('blocks._numberInput.name') }}</span></ui-input>
|
<ui-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('blocks._numberInput.name') }}</span></ui-input>
|
||||||
<ui-input v-model="value.text"><span>{{ $t('blocks._numberInput.text') }}</span></ui-input>
|
<ui-input v-model="value.text"><span>{{ $t('blocks._numberInput.text') }}</span></ui-input>
|
||||||
<ui-input v-model="value.default" type="number"><span>{{ $t('blocks._numberInput.default') }}</span></ui-input>
|
<ui-input v-model="value.default" type="number"><span>{{ $t('blocks._numberInput.default') }}</span></ui-input>
|
||||||
</section>
|
</section>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faBolt, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faBolt, faMagic } from '@fortawesome/free-solid-svg-icons';
|
||||||
import i18n from '../../../../../i18n';
|
import i18n from '../../../../../i18n';
|
||||||
import XContainer from '../page-editor.container.vue';
|
import XContainer from '../page-editor.container.vue';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
faBolt, faSquareRootAlt
|
faBolt, faMagic
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #header><fa :icon="faBolt"/> {{ $t('blocks.switch') }}</template>
|
<template #header><fa :icon="faBolt"/> {{ $t('blocks.switch') }}</template>
|
||||||
|
|
||||||
<section class="kjuadyyj">
|
<section class="kjuadyyj">
|
||||||
<ui-input v-model="value.name"><template #prefix><fa :icon="faSquareRootAlt"/></template><span>{{ $t('blocks._switch.name') }}</span></ui-input>
|
<ui-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('blocks._switch.name') }}</span></ui-input>
|
||||||
<ui-input v-model="value.text"><span>{{ $t('blocks._switch.text') }}</span></ui-input>
|
<ui-input v-model="value.text"><span>{{ $t('blocks._switch.text') }}</span></ui-input>
|
||||||
<ui-switch v-model="value.default"><span>{{ $t('blocks._switch.default') }}</span></ui-switch>
|
<ui-switch v-model="value.default"><span>{{ $t('blocks._switch.default') }}</span></ui-switch>
|
||||||
</section>
|
</section>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faBolt, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faBolt, faMagic } from '@fortawesome/free-solid-svg-icons';
|
||||||
import i18n from '../../../../../i18n';
|
import i18n from '../../../../../i18n';
|
||||||
import XContainer from '../page-editor.container.vue';
|
import XContainer from '../page-editor.container.vue';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
faBolt, faSquareRootAlt
|
faBolt, faMagic
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #header><fa :icon="faBolt"/> {{ $t('blocks.textInput') }}</template>
|
<template #header><fa :icon="faBolt"/> {{ $t('blocks.textInput') }}</template>
|
||||||
|
|
||||||
<section style="padding: 0 16px 0 16px;">
|
<section style="padding: 0 16px 0 16px;">
|
||||||
<ui-input v-model="value.name"><template #prefix><fa :icon="faSquareRootAlt"/></template><span>{{ $t('blocks._textInput.name') }}</span></ui-input>
|
<ui-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('blocks._textInput.name') }}</span></ui-input>
|
||||||
<ui-input v-model="value.text"><span>{{ $t('blocks._textInput.text') }}</span></ui-input>
|
<ui-input v-model="value.text"><span>{{ $t('blocks._textInput.text') }}</span></ui-input>
|
||||||
<ui-input v-model="value.default" type="text"><span>{{ $t('blocks._textInput.default') }}</span></ui-input>
|
<ui-input v-model="value.default" type="text"><span>{{ $t('blocks._textInput.default') }}</span></ui-input>
|
||||||
</section>
|
</section>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faBolt, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faBolt, faMagic } from '@fortawesome/free-solid-svg-icons';
|
||||||
import i18n from '../../../../../i18n';
|
import i18n from '../../../../../i18n';
|
||||||
import XContainer from '../page-editor.container.vue';
|
import XContainer from '../page-editor.container.vue';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
faBolt, faSquareRootAlt
|
faBolt, faMagic
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template #header><fa :icon="faBolt"/> {{ $t('blocks.textareaInput') }}</template>
|
<template #header><fa :icon="faBolt"/> {{ $t('blocks.textareaInput') }}</template>
|
||||||
|
|
||||||
<section style="padding: 0 16px 16px 16px;">
|
<section style="padding: 0 16px 16px 16px;">
|
||||||
<ui-input v-model="value.name"><template #prefix><fa :icon="faSquareRootAlt"/></template><span>{{ $t('blocks._textareaInput.name') }}</span></ui-input>
|
<ui-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('blocks._textareaInput.name') }}</span></ui-input>
|
||||||
<ui-input v-model="value.text"><span>{{ $t('blocks._textareaInput.text') }}</span></ui-input>
|
<ui-input v-model="value.text"><span>{{ $t('blocks._textareaInput.text') }}</span></ui-input>
|
||||||
<ui-textarea v-model="value.default"><span>{{ $t('blocks._textareaInput.default') }}</span></ui-textarea>
|
<ui-textarea v-model="value.default"><span>{{ $t('blocks._textareaInput.default') }}</span></ui-textarea>
|
||||||
</section>
|
</section>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faBolt, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faBolt, faMagic } from '@fortawesome/free-solid-svg-icons';
|
||||||
import i18n from '../../../../../i18n';
|
import i18n from '../../../../../i18n';
|
||||||
import XContainer from '../page-editor.container.vue';
|
import XContainer from '../page-editor.container.vue';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
faBolt, faSquareRootAlt
|
faBolt, faMagic
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import i18n from '../../../../i18n';
|
import i18n from '../../../../i18n';
|
||||||
import XContainer from './page-editor.container.vue';
|
import XContainer from './page-editor.container.vue';
|
||||||
import { faSuperscript, faPencilAlt, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faPencilAlt } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { isLiteralBlock, funcDefs, blockDefs } from '../../../../../../misc/aiscript/index';
|
import { isLiteralBlock, funcDefs, blockDefs } from '../../../../../../misc/aiscript/index';
|
||||||
import * as uuid from 'uuid';
|
import * as uuid from 'uuid';
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ export default Vue.extend({
|
||||||
error: null,
|
error: null,
|
||||||
warn: null,
|
warn: null,
|
||||||
slots: '',
|
slots: '',
|
||||||
faSuperscript, faPencilAlt, faSquareRootAlt
|
faPencilAlt
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ui-container :body-togglable="true">
|
<ui-container :body-togglable="true">
|
||||||
<template #header><fa :icon="faSquareRootAlt"/> {{ $t('variables') }}</template>
|
<template #header><fa :icon="faMagic"/> {{ $t('variables') }}</template>
|
||||||
<div class="qmuvgica">
|
<div class="qmuvgica">
|
||||||
<div class="variables" v-show="variables.length > 0">
|
<div class="variables" v-show="variables.length > 0">
|
||||||
<template v-for="variable in variables">
|
<template v-for="variable in variables">
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import i18n from '../../../../i18n';
|
import i18n from '../../../../i18n';
|
||||||
import { faICursor, faPlus, faSquareRootAlt, faCog, faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faICursor, faPlus, faMagic, faCog, faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faSave, faStickyNote, faTrashAlt } from '@fortawesome/free-regular-svg-icons';
|
import { faSave, faStickyNote, faTrashAlt } from '@fortawesome/free-regular-svg-icons';
|
||||||
import XVariable from './page-editor.script-block.vue';
|
import XVariable from './page-editor.script-block.vue';
|
||||||
import XBlock from './page-editor.block.vue';
|
import XBlock from './page-editor.block.vue';
|
||||||
|
@ -134,7 +134,7 @@ export default Vue.extend({
|
||||||
showOptions: false,
|
showOptions: false,
|
||||||
moreDetails: false,
|
moreDetails: false,
|
||||||
url,
|
url,
|
||||||
faPlus, faICursor, faSave, faStickyNote, faSquareRootAlt, faCog, faTrashAlt, faExternalLinkSquareAlt
|
faPlus, faICursor, faSave, faStickyNote, faMagic, faCog, faTrashAlt, faExternalLinkSquareAlt
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import i18n from '../../../../i18n';
|
import i18n from '../../../../i18n';
|
||||||
import { faICursor, faPlus, faSquareRootAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faICursor, faPlus } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faSave, faStickyNote } from '@fortawesome/free-regular-svg-icons';
|
import { faSave, faStickyNote } from '@fortawesome/free-regular-svg-icons';
|
||||||
import XBlock from './page.block.vue';
|
import XBlock from './page.block.vue';
|
||||||
import { ASEvaluator } from '../../../../../../misc/aiscript/evaluator';
|
import { ASEvaluator } from '../../../../../../misc/aiscript/evaluator';
|
||||||
|
@ -75,7 +75,7 @@ export default Vue.extend({
|
||||||
return {
|
return {
|
||||||
page: null,
|
page: null,
|
||||||
script: null,
|
script: null,
|
||||||
faPlus, faICursor, faSave, faStickyNote, faSquareRootAlt
|
faPlus, faICursor, faSave, faStickyNote
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import {
|
||||||
faSuperscript,
|
faMagic,
|
||||||
|
faSquareRootAlt,
|
||||||
faAlignLeft,
|
faAlignLeft,
|
||||||
faShareAlt,
|
faShareAlt,
|
||||||
faPlus,
|
faPlus,
|
||||||
|
@ -86,8 +87,8 @@ export const literalDefs: Record<string, { out: any; category: string; icon: any
|
||||||
multiLineText: { out: 'string', category: 'value', icon: faAlignLeft, },
|
multiLineText: { out: 'string', category: 'value', icon: faAlignLeft, },
|
||||||
textList: { out: 'stringArray', category: 'value', icon: faList, },
|
textList: { out: 'stringArray', category: 'value', icon: faList, },
|
||||||
number: { out: 'number', category: 'value', icon: faSortNumericUp, },
|
number: { out: 'number', category: 'value', icon: faSortNumericUp, },
|
||||||
ref: { out: null, category: 'value', icon: faSuperscript, },
|
ref: { out: null, category: 'value', icon: faMagic, },
|
||||||
fn: { out: 'function', category: 'value', icon: faSuperscript, },
|
fn: { out: 'function', category: 'value', icon: faSquareRootAlt, },
|
||||||
};
|
};
|
||||||
|
|
||||||
export const blockDefs = [
|
export const blockDefs = [
|
||||||
|
|
Loading…
Reference in a new issue