From 595ad04ddbbf9ff9fc6842f345d4738a9f1cc150 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Jul 2020 19:02:28 +0900 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E3=83=97=E3=83=A9=E3=82=B0?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=92=E7=84=A1=E5=8A=B9=E3=81=AB=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ja-JP.yml | 1 + src/client/init.ts | 2 +- src/client/pages/preferences/plugins.vue | 16 ++++++++++++++++ src/client/scripts/aiscript/api.ts | 17 ++++++++++++++--- src/client/store.ts | 14 +++++++++++++- 5 files changed, 45 insertions(+), 5 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index c34d93dc87..06b53f26a0 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -555,6 +555,7 @@ smtpSecureInfo: "STARTTLS使用時はオフにします。" testEmail: "配信テスト" wordMute: "ワードミュート" userSaysSomething: "{name}が何かを言いました" +makeActive: "アクティブにする" _wordMute: muteWords: "ミュートするワード" diff --git a/src/client/init.ts b/src/client/init.ts index b819a16e5a..d76e94c5a3 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -242,7 +242,7 @@ os.init(async () => { //store.commit('instance/set', ); }); - for (const plugin of store.state.deviceUser.plugins) { + for (const plugin of store.state.deviceUser.plugins.filter(p => p.active)) { console.info('Plugin installed:', plugin.name, 'v' + plugin.version); const aiscript = new AiScript(createPluginEnv(app, { diff --git a/src/client/pages/preferences/plugins.vue b/src/client/pages/preferences/plugins.vue index 8bd522ddc6..b61b2c8daf 100644 --- a/src/client/pages/preferences/plugins.vue +++ b/src/client/pages/preferences/plugins.vue @@ -18,6 +18,9 @@