Improve MisskeyPages

This commit is contained in:
syuilo
2019-05-02 17:55:59 +09:00
parent 2fdec27ab0
commit 2d1f50303d
21 changed files with 248 additions and 176 deletions

View File

@ -26,6 +26,12 @@ export function collectPageVars(content) {
type: 'boolean',
value: x.default || false
});
} else if (x.type === 'counter') {
pageVars.push({
name: x.name,
type: 'number',
value: 0
});
} else if (x.children) {
collect(x.children);
}