@tezx/devtools 1.0.0
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/LICENSE +21 -0
- package/README.md +1 -0
- package/cjs/devtools/dumpRoutes.js +41 -0
- package/cjs/devtools/index.js +17 -0
- package/cjs/devtools/middlewares.js +23 -0
- package/cjs/html/cookies.js +145 -0
- package/cjs/html/index.js +22 -0
- package/cjs/html/routes.js +160 -0
- package/cjs/index.js +312 -0
- package/devtools/dumpRoutes.d.ts +9 -0
- package/devtools/dumpRoutes.js +38 -0
- package/devtools/index.d.ts +10 -0
- package/devtools/index.js +12 -0
- package/devtools/middlewares.d.ts +7 -0
- package/devtools/middlewares.js +20 -0
- package/html/cookies.d.ts +2 -0
- package/html/cookies.js +142 -0
- package/html/index.d.ts +9 -0
- package/html/index.js +19 -0
- package/html/routes.d.ts +2 -0
- package/html/routes.js +157 -0
- package/index.d.ts +8 -0
- package/index.js +309 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 SRAKIB17
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
coming soon
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dumpRoutes = dumpRoutes;
|
|
4
|
+
function collectRoutes(node, basePath = '/') {
|
|
5
|
+
const routes = [];
|
|
6
|
+
let fullPath = node.pathname;
|
|
7
|
+
if (node.isParam) {
|
|
8
|
+
fullPath = `${basePath}/:${node.paramName}`;
|
|
9
|
+
}
|
|
10
|
+
let pathname = fullPath?.replace(/\/+/g, '/');
|
|
11
|
+
for (const [method, _handler] of node.handlers.entries()) {
|
|
12
|
+
routes.push({
|
|
13
|
+
method,
|
|
14
|
+
match: node.pathname == pathname,
|
|
15
|
+
userPath: node.pathname,
|
|
16
|
+
routePattern: pathname,
|
|
17
|
+
appliedMiddlewares: [..._handler.middlewares].map(r => r?.name || "anonymous")
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
for (const child of node.children.values()) {
|
|
21
|
+
routes.push(...collectRoutes(child, fullPath));
|
|
22
|
+
}
|
|
23
|
+
return routes;
|
|
24
|
+
}
|
|
25
|
+
function dumpRoutes(TezX) {
|
|
26
|
+
let app = TezX;
|
|
27
|
+
let tri = collectRoutes(app.triRouter);
|
|
28
|
+
for (const [path, handlers] of app.routers) {
|
|
29
|
+
handlers.forEach((_, key) => {
|
|
30
|
+
console.log();
|
|
31
|
+
tri.push({
|
|
32
|
+
match: true,
|
|
33
|
+
userPath: `/${path}`,
|
|
34
|
+
routePattern: `/${path}`,
|
|
35
|
+
method: key,
|
|
36
|
+
appliedMiddlewares: [..._?.middlewares]?.map(r => r?.name || "anonymous")
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return tri;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dumpRoutes = void 0;
|
|
4
|
+
const middlewares_1 = require("./middlewares");
|
|
5
|
+
var dumpRoutes_1 = require("./dumpRoutes");
|
|
6
|
+
Object.defineProperty(exports, "dumpRoutes", { enumerable: true, get: function () { return dumpRoutes_1.dumpRoutes; } });
|
|
7
|
+
class devtools {
|
|
8
|
+
static get runtime() {
|
|
9
|
+
return '';
|
|
10
|
+
}
|
|
11
|
+
static dumpMiddlewares(TezX) {
|
|
12
|
+
let app = TezX;
|
|
13
|
+
let middlewares = app?.triMiddlewares;
|
|
14
|
+
return (0, middlewares_1.inspectMiddlewares)(middlewares);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = devtools;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inspectMiddlewares = inspectMiddlewares;
|
|
4
|
+
function inspectMiddlewares(node, basePath = "") {
|
|
5
|
+
const fullPath = `${basePath}/${node.pathname}`
|
|
6
|
+
.replace(/\\/g, '')
|
|
7
|
+
.replace(/\/+/g, '/')
|
|
8
|
+
.replace(/^\/+|\/+$/g, '');
|
|
9
|
+
const middlewareList = Array.isArray(node.middlewares)
|
|
10
|
+
? node.middlewares
|
|
11
|
+
: Array.from(node.middlewares);
|
|
12
|
+
const entries = [];
|
|
13
|
+
if (middlewareList.length > 0) {
|
|
14
|
+
entries.push({
|
|
15
|
+
pathname: fullPath === "" ? "/" : `/${fullPath}`,
|
|
16
|
+
middlewares: middlewareList.map(String),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
for (const [, child] of node.children) {
|
|
20
|
+
entries.push(...inspectMiddlewares(child, `/${fullPath}`));
|
|
21
|
+
}
|
|
22
|
+
return entries;
|
|
23
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CookiesInspector = CookiesInspector;
|
|
4
|
+
function CookiesInspector(ctx) {
|
|
5
|
+
const cookies = ctx.cookies.all();
|
|
6
|
+
const rawJSON = JSON.stringify(cookies, null, 2);
|
|
7
|
+
const tableRows = Object.entries(cookies)
|
|
8
|
+
.map(([key, value], i) => `
|
|
9
|
+
<tr>
|
|
10
|
+
<td>${i + 1}</td>
|
|
11
|
+
<td contenteditable="true" class="cookie-key">${key}</td>
|
|
12
|
+
<td contenteditable="true" class="cookie-value">${value}</td>
|
|
13
|
+
<td><button class="delete-btn">🗑️</button></td>
|
|
14
|
+
</tr>
|
|
15
|
+
`).join("");
|
|
16
|
+
const html = `
|
|
17
|
+
<style>
|
|
18
|
+
td[contenteditable="true"] {
|
|
19
|
+
outline: 0px;
|
|
20
|
+
}
|
|
21
|
+
td[contenteditable="true"]:focus {
|
|
22
|
+
outline: 1px solid var(--accent);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.delete-btn {
|
|
26
|
+
background: #dc2626;
|
|
27
|
+
color: white;
|
|
28
|
+
border: none;
|
|
29
|
+
border-radius: 0.375rem;
|
|
30
|
+
padding: 0.3rem 0.6rem;
|
|
31
|
+
font-size: 0.8rem;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.delete-btn:hover {
|
|
36
|
+
background: #b91c1c;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
pre#json-output {
|
|
40
|
+
margin-top: 1rem;
|
|
41
|
+
padding: 1rem;
|
|
42
|
+
border-radius: 0.5rem;
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
overflow-x: auto;
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
</style>
|
|
49
|
+
|
|
50
|
+
<div class="tabs">
|
|
51
|
+
<a onclick="addCookieRow()">➕ Add Cookie</a>
|
|
52
|
+
<a onclick="saveCookies()">💾 Save All</a>
|
|
53
|
+
<a onclick="exportCookies()">📤 Export JSON</a>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="table-container">
|
|
57
|
+
<table>
|
|
58
|
+
<thead>
|
|
59
|
+
<tr>
|
|
60
|
+
<th>#</th>
|
|
61
|
+
<th>Key</th>
|
|
62
|
+
<th>Value</th>
|
|
63
|
+
<th>Action</th>
|
|
64
|
+
</tr>
|
|
65
|
+
</thead>
|
|
66
|
+
<tbody id="cookie-body"></tbody>
|
|
67
|
+
</table>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<pre class="json-view" id="json-output"></pre>
|
|
71
|
+
|
|
72
|
+
<script>
|
|
73
|
+
function getCookies() {
|
|
74
|
+
const cookies = {};
|
|
75
|
+
document.cookie.split(';').forEach(c => {
|
|
76
|
+
const [k, ...v] = c.trim().split('=');
|
|
77
|
+
cookies[k] = decodeURIComponent(v.join('='));
|
|
78
|
+
});
|
|
79
|
+
return cookies;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function renderCookies() {
|
|
83
|
+
const tbody = document.getElementById('cookie-body');
|
|
84
|
+
tbody.innerHTML = '';
|
|
85
|
+
const cookies = getCookies();
|
|
86
|
+
let index = 1;
|
|
87
|
+
for (const [key, val] of Object.entries(cookies)) {
|
|
88
|
+
const row = document.createElement('tr');
|
|
89
|
+
row.innerHTML = \`
|
|
90
|
+
<td>\${index++}</td>
|
|
91
|
+
<td contenteditable="true" class="cookie-key">\${key}</td>
|
|
92
|
+
<td contenteditable="true" class="cookie-value">\${val}</td>
|
|
93
|
+
<td><button class="delete-btn" onclick="deleteRow(this)">Delete</button></td>
|
|
94
|
+
\`;
|
|
95
|
+
tbody.appendChild(row);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function addCookieRow() {
|
|
100
|
+
const tbody = document.getElementById('cookie-body');
|
|
101
|
+
const row = document.createElement('tr');
|
|
102
|
+
row.innerHTML = \`
|
|
103
|
+
<td>\${tbody.children.length + 1}</td>
|
|
104
|
+
<td contenteditable="true" class="cookie-key"></td>
|
|
105
|
+
<td contenteditable="true" class="cookie-value"></td>
|
|
106
|
+
<td><button class="delete-btn" onclick="deleteRow(this)">Delete</button></td>
|
|
107
|
+
\`;
|
|
108
|
+
tbody.appendChild(row);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function deleteRow(button) {
|
|
112
|
+
const row = button.closest('tr');
|
|
113
|
+
const key = row.querySelector('.cookie-key')?.innerText.trim();
|
|
114
|
+
if (key) {
|
|
115
|
+
document.cookie = key + '=; Max-Age=0; path=/';
|
|
116
|
+
}
|
|
117
|
+
row.remove();
|
|
118
|
+
renderCookies();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function saveCookies() {
|
|
122
|
+
const rows = document.querySelectorAll('#cookie-body tr');
|
|
123
|
+
rows.forEach(row => {
|
|
124
|
+
const key = row.querySelector('.cookie-key')?.innerText.trim();
|
|
125
|
+
const value = row.querySelector('.cookie-value')?.innerText.trim();
|
|
126
|
+
if (key) {
|
|
127
|
+
document.cookie = key + '=' + encodeURIComponent(value) + '; path=/';
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
renderCookies();
|
|
131
|
+
alert('✅ Cookies saved!');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function exportCookies() {
|
|
135
|
+
const cookies = getCookies();
|
|
136
|
+
const output = document.getElementById('json-output');
|
|
137
|
+
output.textContent = JSON.stringify(cookies, null, 2);
|
|
138
|
+
output.style.display = 'block';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
renderCookies();
|
|
142
|
+
</script>
|
|
143
|
+
`;
|
|
144
|
+
return html;
|
|
145
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.html = html;
|
|
4
|
+
const routes_js_1 = require("./routes.js");
|
|
5
|
+
const cookies_js_1 = require("./cookies.js");
|
|
6
|
+
function html(ctx, app) {
|
|
7
|
+
let tabDb = [
|
|
8
|
+
{
|
|
9
|
+
doc_title: "DevTools - Route Inspector",
|
|
10
|
+
label: "Routes",
|
|
11
|
+
tab: 'routes',
|
|
12
|
+
content: (0, routes_js_1.Routes)(ctx, app)
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
tab: 'cookies',
|
|
16
|
+
label: 'Cookies',
|
|
17
|
+
doc_title: 'DevTools - Cookie Inspector',
|
|
18
|
+
content: (0, cookies_js_1.CookiesInspector)(ctx)
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
return tabDb;
|
|
22
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Routes = Routes;
|
|
4
|
+
const devtools_1 = require("../devtools");
|
|
5
|
+
function Routes(ctx, app) {
|
|
6
|
+
const allRoutes = (0, devtools_1.dumpRoutes)(app);
|
|
7
|
+
const totalRoutes = allRoutes.length;
|
|
8
|
+
const middlewareStats = {};
|
|
9
|
+
const middlewareRoutes = {};
|
|
10
|
+
for (const route of allRoutes) {
|
|
11
|
+
for (const mw of route.appliedMiddlewares || []) {
|
|
12
|
+
middlewareStats[mw] = (middlewareStats[mw] || 0) + 1;
|
|
13
|
+
(middlewareRoutes[mw] ||= []).push(route);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const rawJSON = JSON.stringify(allRoutes, null, 2);
|
|
17
|
+
const toCSV = (data) => {
|
|
18
|
+
const headers = ['method', 'match', 'userPath', 'routePattern', 'appliedMiddlewares'];
|
|
19
|
+
const csvRows = [
|
|
20
|
+
headers.join(','),
|
|
21
|
+
...data.map(r => headers.map(h => JSON.stringify(r[h] ?? '')).join(','))
|
|
22
|
+
];
|
|
23
|
+
return csvRows.join('\n');
|
|
24
|
+
};
|
|
25
|
+
const csvString = toCSV(allRoutes).replace(/"/g, '"');
|
|
26
|
+
return `
|
|
27
|
+
<style>
|
|
28
|
+
.download {
|
|
29
|
+
margin-top: 1rem;
|
|
30
|
+
display: flex;
|
|
31
|
+
gap: 1rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.download a {
|
|
35
|
+
padding: 0.5rem 1rem;
|
|
36
|
+
border: 1px solid var(--accent);
|
|
37
|
+
color: var(--accent);
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
border-radius: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.download a:hover {
|
|
43
|
+
background: var(--accent);
|
|
44
|
+
color: white;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#searchBar {
|
|
48
|
+
margin: 1rem 0;
|
|
49
|
+
display: flex;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#searchBar input {
|
|
53
|
+
flex: 1;
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
56
|
+
|
|
57
|
+
<div class="tabs">
|
|
58
|
+
<a class="tab-btn active counting" data-count="${totalRoutes}" onclick="showTab('routes')">📋 Routes</a>
|
|
59
|
+
<a class="tab-btn counting" data-count="${Object.keys(middlewareStats).length}" onclick="showTab('stats')">📈
|
|
60
|
+
Stats</a>
|
|
61
|
+
<a class="tab-btn" onclick="showTab('middlewares')">🧩 Middlewares</a>
|
|
62
|
+
<a class="tab-btn" onclick="showTab('json')">🧾 Raw JSON</a>
|
|
63
|
+
<a class="tab-btn" onclick="showTab('export')">📤 Export</a>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div id="searchBar" style="display:flex">
|
|
67
|
+
<input type="text" id="search" placeholder="Filter by method/path/middleware..." />
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<!-- ROUTES -->
|
|
71
|
+
<div id="routesTab">
|
|
72
|
+
<table id="routesTable">
|
|
73
|
+
<thead>
|
|
74
|
+
<tr>
|
|
75
|
+
<th>#</th>
|
|
76
|
+
<th>Method</th>
|
|
77
|
+
<th>Match</th>
|
|
78
|
+
<th>User Path</th>
|
|
79
|
+
<th>Route Pattern</th>
|
|
80
|
+
<th>Middlewares</th>
|
|
81
|
+
</tr>
|
|
82
|
+
</thead>
|
|
83
|
+
<tbody>
|
|
84
|
+
${allRoutes.map((r, i) => `
|
|
85
|
+
<tr>
|
|
86
|
+
<td>${i + 1}</td>
|
|
87
|
+
<td>${r.method}</td>
|
|
88
|
+
<td>${r.match}</td>
|
|
89
|
+
<td>${r.userPath}</td>
|
|
90
|
+
<td>${r.routePattern}</td>
|
|
91
|
+
<td>${(r.appliedMiddlewares || []).join(', ')}</td>
|
|
92
|
+
</tr>`).join('')}
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<!-- STATS -->
|
|
98
|
+
<div id="statsTab" style="display:none">
|
|
99
|
+
<div class="json-view">
|
|
100
|
+
Total Routes: ${totalRoutes}
|
|
101
|
+
Middleware Used: ${Object.keys(middlewareStats).length}
|
|
102
|
+
|
|
103
|
+
${Object.entries(middlewareStats).map(([mw, count]) => `- ${mw}: ${count} routes`).join('\n')}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<!-- MIDDLEWARES -->
|
|
108
|
+
<div id="middlewaresTab" style="display:none">
|
|
109
|
+
${Object.entries(middlewareRoutes).map(([mw, routes]) => `
|
|
110
|
+
<h3>🔹 ${mw} (${routes.length})</h3>
|
|
111
|
+
<ul>
|
|
112
|
+
${routes.map(r => `<li><code>${r.method} ${r.userPath}</code></li>`).join('')}
|
|
113
|
+
</ul>
|
|
114
|
+
`).join('')}
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<!-- RAW JSON -->
|
|
118
|
+
<div id="jsonTab" style="display:none">
|
|
119
|
+
<div class="json-view">${rawJSON}</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<!-- EXPORT -->
|
|
123
|
+
<div id="exportTab" style="display:none">
|
|
124
|
+
<div class="download">
|
|
125
|
+
<a href="data:text/json;charset=utf-8,${encodeURIComponent(rawJSON)}" download="routes.json">📥 JSON</a>
|
|
126
|
+
<a href="data:text/csv;charset=utf-8,${csvString}" download="routes.csv">📥 CSV</a>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<script>
|
|
131
|
+
const tabs = ['routes', 'stats', 'middlewares', 'json', 'export'];
|
|
132
|
+
const tabBtns = document.querySelectorAll('.tab-btn');
|
|
133
|
+
|
|
134
|
+
function showTab(tab) {
|
|
135
|
+
tabs.forEach(t => {
|
|
136
|
+
document.getElementById(t + 'Tab').style.display = t === tab ? 'block' : 'none';
|
|
137
|
+
if (t === tab) {
|
|
138
|
+
document.getElementById(t + 'Tab').classList.add('active');
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
document.getElementById(t + 'Tab').classList.remove('active');
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
tabBtns.forEach(btn => {
|
|
145
|
+
const active = btn.textContent.toLowerCase().includes(tab);
|
|
146
|
+
btn.classList.toggle('active', active);
|
|
147
|
+
});
|
|
148
|
+
document.getElementById('searchBar').style.display = (tab === 'routes') ? 'flex' : 'none';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
document.getElementById('search').addEventListener('input', (e) => {
|
|
152
|
+
const keyword = e.target.value.toLowerCase();
|
|
153
|
+
const rows = document.querySelectorAll('#routesTable tbody tr');
|
|
154
|
+
rows.forEach(row => {
|
|
155
|
+
row.style.display = row.textContent.toLowerCase().includes(keyword) ? '' : 'none';
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
</script>
|
|
159
|
+
`;
|
|
160
|
+
}
|