mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-15 15:18:18 +09:00
Merge branch 'develop'
This commit is contained in:
commit
8836bd4f3b
@ -42,6 +42,12 @@ mongodb:
|
|||||||
8. master ブランチに戻す
|
8. master ブランチに戻す
|
||||||
9. enjoy
|
9. enjoy
|
||||||
|
|
||||||
|
11.5.1 (2019/04/29)
|
||||||
|
-------------------
|
||||||
|
### Fixes
|
||||||
|
* MisskeyPagesで環境変数を別の変数内で使えない問題を修正
|
||||||
|
* MisskeyPagesで値が0の変数が表示されない問題を修正
|
||||||
|
|
||||||
11.5.0 (2019/04/29)
|
11.5.0 (2019/04/29)
|
||||||
-------------------
|
-------------------
|
||||||
### 注意
|
### 注意
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "11.5.0",
|
"version": "11.5.1",
|
||||||
"codename": "daybreak",
|
"codename": "daybreak",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -316,8 +316,10 @@ export class AiScript {
|
|||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
private interpolate(str: string, values: { name: string, value: any }[]) {
|
private interpolate(str: string, values: { name: string, value: any }[]) {
|
||||||
return str.replace(/\{(.+?)\}/g, match =>
|
return str.replace(/\{(.+?)\}/g, match => {
|
||||||
(this.getVariableValue(match.slice(1, -1).trim(), values) || '').toString());
|
const v = this.getVariableValue(match.slice(1, -1).trim(), values);
|
||||||
|
return v == null ? 'NULL' : v.toString();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
@ -445,7 +447,7 @@ export class AiScript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (AiScript.envVarsDef[name]) {
|
if (AiScript.envVarsDef[name]) {
|
||||||
return this.envVars[name].value;
|
return this.envVars[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(`Script: No such variable '${name}'`);
|
throw new Error(`Script: No such variable '${name}'`);
|
||||||
|
@ -38,8 +38,10 @@ class Script {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public interpolate(str: string) {
|
public interpolate(str: string) {
|
||||||
return str.replace(/\{(.+?)\}/g, match =>
|
return str.replace(/\{(.+?)\}/g, match => {
|
||||||
(this.vars.find(x => x.name === match.slice(1, -1).trim()).value || '').toString());
|
const v = this.vars.find(x => x.name === match.slice(1, -1).trim()).value;
|
||||||
|
return v == null ? 'NULL' : v.toString();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<i><fa icon="angle-right"/></i>
|
<i><fa icon="angle-right"/></i>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li @click="page">
|
<li>
|
||||||
<router-link to="/i/pages">
|
<router-link to="/i/pages">
|
||||||
<i><fa :icon="faStickyNote" fixed-width/></i>
|
<i><fa :icon="faStickyNote" fixed-width/></i>
|
||||||
<span>{{ $t('@.pages') }}</span>
|
<span>{{ $t('@.pages') }}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user