Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d70b33894 | ||
|
|
44ea1be930 | ||
|
|
a1bf54fe16 | ||
|
|
88c57359b3 | ||
|
|
050564f717 | ||
|
|
75d59a9c9b | ||
|
|
9139c863bf | ||
|
|
84a1ec01bc | ||
|
|
36e59c5b5f | ||
|
|
5389b16c59 | ||
|
|
da3008af1c | ||
|
|
6637766554 |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,6 +1,21 @@
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
12.34.0 (2020/4/17)
|
||||||
|
-------------------
|
||||||
|
### ✨Improvements
|
||||||
|
* Pagesでrectメソッドを追加
|
||||||
|
* AiScriptのバージョンアップ
|
||||||
|
|
||||||
|
12.33.0 (2020/4/16)
|
||||||
|
-------------------
|
||||||
|
### ✨Improvements
|
||||||
|
* Pagesで円を書くメソッドを追加
|
||||||
|
* AiScriptのバージョンアップ
|
||||||
|
|
||||||
|
### 🐛Fixes
|
||||||
|
* PagesでAiScript変数があると編集が機能しなくなる問題を修正
|
||||||
|
|
||||||
12.32.0 (2020/4/16)
|
12.32.0 (2020/4/16)
|
||||||
-------------------
|
-------------------
|
||||||
### ✨Improvements
|
### ✨Improvements
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ administrator: "Administrator"
|
|||||||
token: "Token"
|
token: "Token"
|
||||||
twoStepAuthentication: "Zwei-Faktor-Authentifizierung"
|
twoStepAuthentication: "Zwei-Faktor-Authentifizierung"
|
||||||
moderator: "Moderator"
|
moderator: "Moderator"
|
||||||
nUsersMentioned: "{n} Benutzer erwähnt"
|
nUsersMentioned: "{n} Benutzer reden darüber"
|
||||||
securityKey: "Sicherheitsschlüssel"
|
securityKey: "Sicherheitsschlüssel"
|
||||||
securityKeyName: "Schlüsselname"
|
securityKeyName: "Schlüsselname"
|
||||||
registerSecurityKey: "Sicherheitsschlüssel registrieren"
|
registerSecurityKey: "Sicherheitsschlüssel registrieren"
|
||||||
@@ -770,6 +770,11 @@ _pages:
|
|||||||
name: "Variablenname"
|
name: "Variablenname"
|
||||||
text: "Titel"
|
text: "Titel"
|
||||||
default: "Standardwert"
|
default: "Standardwert"
|
||||||
|
canvas: "Leinwand"
|
||||||
|
_canvas:
|
||||||
|
id: "Leinwand-ID"
|
||||||
|
width: "Breite"
|
||||||
|
height: "Höhe"
|
||||||
switch: "Fallunterscheidung"
|
switch: "Fallunterscheidung"
|
||||||
_switch:
|
_switch:
|
||||||
name: "Variablenname"
|
name: "Variablenname"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <syuilotan@yahoo.co.jp>",
|
"author": "syuilo <syuilotan@yahoo.co.jp>",
|
||||||
"version": "12.32.0",
|
"version": "12.34.0",
|
||||||
"codename": "indigo",
|
"codename": "indigo",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"@koa/cors": "3.0.0",
|
"@koa/cors": "3.0.0",
|
||||||
"@koa/multer": "2.0.2",
|
"@koa/multer": "2.0.2",
|
||||||
"@koa/router": "8.0.8",
|
"@koa/router": "8.0.8",
|
||||||
"@syuilo/aiscript": "0.3.0",
|
"@syuilo/aiscript": "0.3.2",
|
||||||
"@types/bcryptjs": "2.4.2",
|
"@types/bcryptjs": "2.4.2",
|
||||||
"@types/bull": "3.12.1",
|
"@types/bull": "3.12.1",
|
||||||
"@types/cbor": "5.0.0",
|
"@types/cbor": "5.0.0",
|
||||||
|
|||||||
@@ -157,6 +157,10 @@ export default Vue.extend({
|
|||||||
&.reacted {
|
&.reacted {
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<x-container @remove="() => $emit('remove')" :draggable="true">
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
||||||
<template #header><fa :icon="faQuestion"/> {{ $t('_pages.blocks.if') }}</template>
|
<template #header><fa :icon="faQuestion"/> {{ $t('_pages.blocks.if') }}</template>
|
||||||
<template #func>
|
<template #func>
|
||||||
<button @click="add()">
|
<button @click="add()" class="_button">
|
||||||
<fa :icon="faPlus"/>
|
<fa :icon="faPlus"/>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
<x-container @remove="() => $emit('remove')" :draggable="true">
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
||||||
<template #header><fa :icon="faStickyNote"/> {{ value.title }}</template>
|
<template #header><fa :icon="faStickyNote"/> {{ value.title }}</template>
|
||||||
<template #func>
|
<template #func>
|
||||||
<button @click="rename()">
|
<button @click="rename()" class="_button">
|
||||||
<fa :icon="faPencilAlt"/>
|
<fa :icon="faPencilAlt"/>
|
||||||
</button>
|
</button>
|
||||||
<button @click="add()">
|
<button @click="add()" class="_button">
|
||||||
<fa :icon="faPlus"/>
|
<fa :icon="faPlus"/>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<p v-show="showBody" class="error" v-if="error != null">{{ $t('_pages.script.typeError', { slot: error.arg + 1, expect: $t(`script.types.${error.expect}`), actual: $t(`script.types.${error.actual}`) }) }}</p>
|
<p v-show="showBody" class="error" v-if="error != null">{{ $t('_pages.script.typeError', { slot: error.arg + 1, expect: $t(`script.types.${error.expect}`), actual: $t(`script.types.${error.actual}`) }) }}</p>
|
||||||
<p v-show="showBody" class="warn" v-if="warn != null">{{ $t('_pages.script.thereIsEmptySlot', { slot: warn.slot + 1 }) }}</p>
|
<p v-show="showBody" class="warn" v-if="warn != null">{{ $t('_pages.script.thereIsEmptySlot', { slot: warn.slot + 1 }) }}</p>
|
||||||
<div v-show="showBody">
|
<div v-show="showBody" class="body">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -148,5 +148,17 @@ export default Vue.extend({
|
|||||||
padding: 16px 16px 0 16px;
|
padding: 16px 16px 0 16px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .body {
|
||||||
|
::v-deep .juejbjww, ::v-deep .eiipwacr {
|
||||||
|
&:not(.inline):first-child {
|
||||||
|
margin-top: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(.inline):last-child {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import * as XDraggable from 'vuedraggable';
|
import * as XDraggable from 'vuedraggable';
|
||||||
import "prismjs";
|
import "prismjs";
|
||||||
import "prismjs/themes/prism.css";
|
import 'prismjs/themes/prism-okaidia.css';
|
||||||
import PrismEditor from 'vue-prism-editor';
|
import PrismEditor from 'vue-prism-editor';
|
||||||
import { faICursor, faPlus, faMagic, faCog, faCode, faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
|
import { faICursor, faPlus, faMagic, faCog, faCode, 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';
|
||||||
|
|||||||
@@ -118,7 +118,8 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.xcukqgmh {
|
.xcukqgmh {
|
||||||
> ._card > .banner {
|
> ._card {
|
||||||
|
> .banner {
|
||||||
> img {
|
> img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -126,5 +127,12 @@ export default Vue.extend({
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> ._footer {
|
||||||
|
> * {
|
||||||
|
margin: 0 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faTerminal, faPlay } from '@fortawesome/free-solid-svg-icons';
|
import { faTerminal, faPlay } from '@fortawesome/free-solid-svg-icons';
|
||||||
import "prismjs";
|
import "prismjs";
|
||||||
import "prismjs/themes/prism.css";
|
import 'prismjs/themes/prism-okaidia.css';
|
||||||
import PrismEditor from 'vue-prism-editor';
|
import PrismEditor from 'vue-prism-editor';
|
||||||
import { AiScript, parse, utils, values } from '@syuilo/aiscript';
|
import { AiScript, parse, utils, values } from '@syuilo/aiscript';
|
||||||
import i18n from '../i18n';
|
import i18n from '../i18n';
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ export class ASEvaluator {
|
|||||||
['close_path', values.FN_NATIVE(() => { ctx.closePath() })],
|
['close_path', values.FN_NATIVE(() => { ctx.closePath() })],
|
||||||
['move_to', values.FN_NATIVE(([x, y]) => { ctx.moveTo(x.value, y.value) })],
|
['move_to', values.FN_NATIVE(([x, y]) => { ctx.moveTo(x.value, y.value) })],
|
||||||
['line_to', values.FN_NATIVE(([x, y]) => { ctx.lineTo(x.value, y.value) })],
|
['line_to', values.FN_NATIVE(([x, y]) => { ctx.lineTo(x.value, y.value) })],
|
||||||
|
['arc', values.FN_NATIVE(([x, y, radius, startAngle, endAngle]) => { ctx.arc(x.value, y.value, radius.value, startAngle.value, endAngle.value) })],
|
||||||
|
['rect', values.FN_NATIVE(([x, y, width, height]) => { ctx.rect(x.value, y.value, width.value, height.value) })],
|
||||||
['fill', values.FN_NATIVE(() => { ctx.fill() })],
|
['fill', values.FN_NATIVE(() => { ctx.fill() })],
|
||||||
['stroke', values.FN_NATIVE(() => { ctx.stroke() })],
|
['stroke', values.FN_NATIVE(() => { ctx.stroke() })],
|
||||||
]));
|
]));
|
||||||
@@ -76,7 +78,6 @@ export class ASEvaluator {
|
|||||||
},
|
},
|
||||||
log: (type, params) => {
|
log: (type, params) => {
|
||||||
},
|
},
|
||||||
maxStep: 16384
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ export class ASTypeChecker {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (v.type === 'aiScriptVar') return null;
|
||||||
if (v.type === 'fn') return null; // todo
|
if (v.type === 'fn') return null; // todo
|
||||||
if (v.type.startsWith('fn:')) return null; // todo
|
if (v.type.startsWith('fn:')) return null; // todo
|
||||||
|
|
||||||
|
|||||||
@@ -144,10 +144,10 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
type-detect "4.0.8"
|
type-detect "4.0.8"
|
||||||
|
|
||||||
"@syuilo/aiscript@0.3.0":
|
"@syuilo/aiscript@0.3.2":
|
||||||
version "0.3.0"
|
version "0.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/@syuilo/aiscript/-/aiscript-0.3.0.tgz#cb0645df40ae97a54eb7e318abef2ccb8045aa14"
|
resolved "https://registry.yarnpkg.com/@syuilo/aiscript/-/aiscript-0.3.2.tgz#c22f745ded968f24279fbce2d717a20db1e70359"
|
||||||
integrity sha512-jjtcFqnp5ryzAU3mxP25YJEJH/FmIrMycnFwSer/q1BVsAIqHOIhnRTWjxjVI3n1YHIO5DSD4yG/Em6I3bxJow==
|
integrity sha512-fKA0dq7yKq2HpbDTjn61sbqMuD+ArD7J/HZXtL/0BHVWL6WnzXDbWOW/jxyABvEksmOsJbMf2LHmsikDwE612w==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/seedrandom" "2.4.28"
|
"@types/seedrandom" "2.4.28"
|
||||||
autobind-decorator "2.4.0"
|
autobind-decorator "2.4.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user