pidgin/nest

Fixes discussed in PR

23 months ago, Jason
f1823bf275dd
Fixes discussed in PR
--- a/hugo/static/js/plugin-table.js Thu Jan 02 02:36:57 2020 +0000
+++ b/hugo/static/js/plugin-table.js Thu Jan 02 05:58:20 2020 +0000
@@ -30,15 +30,12 @@
* What type of plugin has been selected
*/
type: new Set(
- params.has("type")
- ? params
- .get("type")
- .split(",")
- .map(function(str) {
- return str.trim();
- })
- .filter(Boolean)
- : []
+ (params.get("type") || "")
+ .split(",")
+ .map(function(str) {
+ return str.trim();
+ })
+ .filter(Boolean)
),
};
@@ -66,7 +63,8 @@
searchTextBox = document.querySelector("#plugin-filter-search");
searchTextBox.addEventListener(
"input",
- debounce(1000 * 0.5, updateFilters)
+ // Wait half a second
+ debounce(500, updateFilters)
);
// Set up plugin type selector interface
@@ -122,7 +120,7 @@
}
/**
- * Decides if a plugin row should be filterd
+ * Decides if a plugin row should be filtered
* @param {*} row
* @returns boolean
*/
--- a/package-lock.json Thu Jan 02 02:36:57 2020 +0000
+++ b/package-lock.json Thu Jan 02 05:58:20 2020 +0000
@@ -23,7 +23,7 @@
},
"@types/jquery": {
"version": "3.3.31",
- "resolved": "http://ida.home:4873/@types%2fjquery/-/jquery-3.3.31.tgz",
+ "resolved": "https://registry.npmjs.org/@types%2fjquery/-/jquery-3.3.31.tgz",
"integrity": "sha512-Lz4BAJihoFw5nRzKvg4nawXPzutkv7wmfQ5121avptaSIXlDNJCUuxZxX/G+9EVidZGuO0UBlk+YjKbwRKJigg==",
"dev": true,
"requires": {
@@ -42,7 +42,7 @@
},
"@types/sizzle": {
"version": "2.3.2",
- "resolved": "http://ida.home:4873/@types%2fsizzle/-/sizzle-2.3.2.tgz",
+ "resolved": "https://registry.npmjs.org/@types%2fsizzle/-/sizzle-2.3.2.tgz",
"integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==",
"dev": true
},