1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 07:24:16 +02:00
This commit is contained in:
syuilo
2020-07-24 20:14:08 +09:00
parent a02bd7061a
commit 8d049fd498
115 changed files with 539 additions and 539 deletions

View File

@@ -3,24 +3,24 @@
<template #header><fa :icon="faBolt"/> {{ $t('_pages.blocks.button') }}</template>
<section class="xfhsjczc">
<mk-input v-model="value.text"><span>{{ $t('_pages.blocks._button.text') }}</span></mk-input>
<mk-switch v-model="value.primary"><span>{{ $t('_pages.blocks._button.colored') }}</span></mk-switch>
<mk-input v-model="value.text"><span v-t="'_pages.blocks._button.text'"></span></mk-input>
<mk-switch v-model="value.primary"><span v-t="'_pages.blocks._button.colored'"></span></mk-switch>
<mk-select v-model="value.action">
<template #label>{{ $t('_pages.blocks._button.action') }}</template>
<option value="dialog">{{ $t('_pages.blocks._button._action.dialog') }}</option>
<option value="resetRandom">{{ $t('_pages.blocks._button._action.resetRandom') }}</option>
<option value="pushEvent">{{ $t('_pages.blocks._button._action.pushEvent') }}</option>
<option value="callAiScript">{{ $t('_pages.blocks._button._action.callAiScript') }}</option>
<template #label v-t="'_pages.blocks._button.action'"></template>
<option value="dialog" v-t="'_pages.blocks._button._action.dialog'"></option>
<option value="resetRandom" v-t="'_pages.blocks._button._action.resetRandom'"></option>
<option value="pushEvent" v-t="'_pages.blocks._button._action.pushEvent'"></option>
<option value="callAiScript" v-t="'_pages.blocks._button._action.callAiScript'"></option>
</mk-select>
<template v-if="value.action === 'dialog'">
<mk-input v-model="value.content"><span>{{ $t('_pages.blocks._button._action._dialog.content') }}</span></mk-input>
<mk-input v-model="value.content"><span v-t="'_pages.blocks._button._action._dialog.content'"></span></mk-input>
</template>
<template v-else-if="value.action === 'pushEvent'">
<mk-input v-model="value.event"><span>{{ $t('_pages.blocks._button._action._pushEvent.event') }}</span></mk-input>
<mk-input v-model="value.message"><span>{{ $t('_pages.blocks._button._action._pushEvent.message') }}</span></mk-input>
<mk-input v-model="value.event"><span v-t="'_pages.blocks._button._action._pushEvent.event'"></span></mk-input>
<mk-input v-model="value.message"><span v-t="'_pages.blocks._button._action._pushEvent.message'"></span></mk-input>
<mk-select v-model="value.var">
<template #label>{{ $t('_pages.blocks._button._action._pushEvent.variable') }}</template>
<option :value="null">{{ $t('_pages.blocks._button._action._pushEvent.no-variable') }}</option>
<template #label v-t="'_pages.blocks._button._action._pushEvent.variable'"></template>
<option :value="null" v-t="'_pages.blocks._button._action._pushEvent.no-variable'"></option>
<option v-for="v in hpml.getVarsByType()" :value="v.name">{{ v.name }}</option>
<optgroup :label="$t('_pages.script.pageVariables')">
<option v-for="v in hpml.getPageVarsByType()" :value="v">{{ v }}</option>
@@ -31,7 +31,7 @@
</mk-select>
</template>
<template v-else-if="value.action === 'callAiScript'">
<mk-input v-model="value.fn"><span>{{ $t('_pages.blocks._button._action._callAiScript.functionName') }}</span></mk-input>
<mk-input v-model="value.fn"><span v-t="'_pages.blocks._button._action._callAiScript.functionName'"></span></mk-input>
</template>
</section>
</x-container>