nv-log-bw 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DIST/nv-log-bw.js +2 -2
- package/TEST/index.html +2 -2
- package/TEST/jsclick.html +2 -2
- package/TEST/once.html +2 -2
- package/TEST/once2.html +2011 -0
- package/TOOL/cli-creat-html.js +7 -0
- package/index.js +1 -2
- package/package.json +1 -1
package/TOOL/cli-creat-html.js
CHANGED
|
@@ -20,3 +20,10 @@ const _path = require("path");
|
|
|
20
20
|
html = html.replace(/@SCRIPT@/g,script);
|
|
21
21
|
_fs.writeFileSync(_path.join(__dirname,"../TEST/once.html"),html);
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
{
|
|
25
|
+
let html = _fs.readFileSync(_path.join(__dirname,"once.html")).toString();
|
|
26
|
+
let script = _fs.readFileSync(_path.join(__dirname,"../index.js")).toString();
|
|
27
|
+
html = html.replace(/@SCRIPT@/g,script);
|
|
28
|
+
_fs.writeFileSync(_path.join(__dirname,"../TEST/once2.html"),html);
|
|
29
|
+
}
|
package/index.js
CHANGED
|
@@ -993,8 +993,7 @@ class NvLogViewer extends HTMLElement {
|
|
|
993
993
|
e.preventDefault();
|
|
994
994
|
this.copyLogs();
|
|
995
995
|
} else if (e.target.classList.contains('filter-checkbox')) {
|
|
996
|
-
|
|
997
|
-
e.preventDefault();
|
|
996
|
+
e.stopPropagation();
|
|
998
997
|
this._applyFilters();
|
|
999
998
|
} else if (e.target.id === 'minimizeBtn') {
|
|
1000
999
|
e.stopPropagation();
|