From cf68184d0b3be88c80aa581f7507c9ab25270252 Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 13 May 2017 21:57:31 +0200 Subject: [PATCH] mark official plugins --- docs/plugins.json | 17 +++++++++++++++-- scripts/update-plugins.js | 3 ++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/plugins.json b/docs/plugins.json index fd4afbe..250296e 100644 --- a/docs/plugins.json +++ b/docs/plugins.json @@ -1,9 +1,10 @@ { - "date": "2017-05-13T18:31:23.922Z", - "signature": "MTpkHrhnz3ezn9opzPVElMFNpbeDOFNoqAtNKJoPJ0zX++o3DVhEN+Uw22fXbYtABmfxkPgI05b1fJSEkSyBPiaBhWwoqxl8qTtj4oA6y0o+VlvGS28hmp22+N6Y2GNrg5JQSuvCdgRcam1nVU0t9USXUFCxYd9SCrMZn7FwCXIaNn5vVmjdGL3R58tm/6rN6rU9XMxYFW4rcu0udUaNoTRHj2ds+1u92c45HTk+IoFOmjxD2ksBIn6DWjxl5LK4jnrp5ZI+1oUSWp0gc2mtSOR7fLoTC1YXkr3W9TOFFJPWSeIXnhzsxKAxu2WLFLE/F3jxlaTlg9sx1SVxRXtHHQ==", + "date": "2017-05-13T19:56:30.456Z", + "signature": "j6JVjRKyjtLOTYmGbTL6d01B7JUvtIdtAiS5mcGC0NRRcdxADcJ+GvTc0nYzc6XoaLRIzKbO9cntqgPFD7FFQ95krw+8PpEGjwShC98xYrtanZyN5T2WcFHi7kv/ysm9G7Fbs7DzIxPWIzgzchvNylZyj7FxI84egnrQSPihhpzjzYr1LZScE6JmGv1iwrd56kqk46ohOkl7diilsY7f0g+oRdrehjNrCLVR7mZZbjvQt40BgCtDCuFnLFatC83GuLKvglyrslCVQalM2CVIrhecbc5gJKfjrvynb7oRH1Dk00zAgBVPAaZOvh0AnQlbpL0NMKK6flG2UOafi5XOmg==", "plugins": [ { "url": "https://plugins.keeweb.info/translations/zh-CN", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -28,6 +29,7 @@ }, { "url": "https://plugins.keeweb.info/translations/pt-PT", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -52,6 +54,7 @@ }, { "url": "https://plugins.keeweb.info/translations/ko", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -76,6 +79,7 @@ }, { "url": "https://plugins.keeweb.info/translations/pl", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -100,6 +104,7 @@ }, { "url": "https://plugins.keeweb.info/translations/hu", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -124,6 +129,7 @@ }, { "url": "https://plugins.keeweb.info/translations/no", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -148,6 +154,7 @@ }, { "url": "https://plugins.keeweb.info/translations/nl-NL", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -172,6 +179,7 @@ }, { "url": "https://plugins.keeweb.info/translations/fr-FR", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -196,6 +204,7 @@ }, { "url": "https://plugins.keeweb.info/translations/de-DE", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -220,6 +229,7 @@ }, { "url": "https://plugins.keeweb.info/translations/it-IT", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -244,6 +254,7 @@ }, { "url": "https://plugins.keeweb.info/translations/ru-RU", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -268,6 +279,7 @@ }, { "url": "https://plugins.keeweb.info/translations/es-ES", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", @@ -292,6 +304,7 @@ }, { "url": "https://plugins.keeweb.info/translations/sv-SE", + "official": true, "manifest": { "version": "1.0.0", "manifestVersion": "0.1.0", diff --git a/scripts/update-plugins.js b/scripts/update-plugins.js index e2d6f29..5b7000f 100644 --- a/scripts/update-plugins.js +++ b/scripts/update-plugins.js @@ -16,7 +16,8 @@ const allTranslations = JSON.parse(fs.readFileSync('docs/translations/meta.json' for (const translation of Object.keys(allTranslations)) { const manifest = JSON.parse(fs.readFileSync(`docs/translations/${translation}/manifest.json`)); const url = `https://plugins.keeweb.info/translations/${translation}`; - const pluginMeta = { url, manifest }; + const official = true; + const pluginMeta = { url, official, manifest }; const ix = data.plugins.findIndex(p => p.manifest.name === manifest.name); if (ix >= 0) { data.plugins.splice(ix, 1, pluginMeta);