pidgin/nest

Updates to plugin table

2020-01-01, Jason
520a5548f7ac
Updates to plugin table

* In a noscript env, hide JS dependent markup
* Temp: plugin type selection markup now in hugo tmeplate instead of JS.
Maybe we should keep to JS markup?
* Overhaul plugin table logic:
* Add support for query params and create an on page link
* Use jQuery more, seeing as we have the lib
* Add documentation
* Use `var` and non-lambdas for compatability
const fs = require("fs");
const data = require("../hugo/data/plugins.json");
const types = new Set();
data.forEach(plugin => {
types.add(plugin.type);
});
const newData = Array.from(types).map(type => ({
type,
i18n: {
en: type,
},
}));
fs.writeFileSync(
"../hugo/data/pluginTypes.json",
JSON.stringify(newData, null, "\t")
);