n8n-nodes-trusera 0.4.3 → 0.4.4
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/README.md
CHANGED
|
@@ -7,7 +7,7 @@ n8n community node package that scans your workflows for AI security risks using
|
|
|
7
7
|
|
|
8
8
|
Drop a single node, activate, and visit `/webhook/trusera` to see a full interactive security dashboard of every AI component in your n8n instance.
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardHtml.d.ts","sourceRoot":"","sources":["../../lib/dashboardHtml.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,EACtB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"dashboardHtml.d.ts","sourceRoot":"","sources":["../../lib/dashboardHtml.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,EACtB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CA6wBR"}
|
|
@@ -290,6 +290,41 @@ async function trySessionRestore() {
|
|
|
290
290
|
}
|
|
291
291
|
.flag-section { margin-top:16px; }
|
|
292
292
|
.flag-section h4 { font-size:14px; margin-bottom:10px; color:var(--text-dim); }
|
|
293
|
+
.cta-bar {
|
|
294
|
+
background: linear-gradient(135deg, #1a1f36 0%, #0d1117 100%);
|
|
295
|
+
border-bottom: 1px solid var(--border);
|
|
296
|
+
padding: 10px 24px;
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: center;
|
|
300
|
+
gap: 16px;
|
|
301
|
+
font-size: 13px;
|
|
302
|
+
position: relative;
|
|
303
|
+
}
|
|
304
|
+
[data-theme="light"] .cta-bar {
|
|
305
|
+
background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%);
|
|
306
|
+
}
|
|
307
|
+
.cta-bar a {
|
|
308
|
+
color: var(--accent);
|
|
309
|
+
text-decoration: none;
|
|
310
|
+
font-weight: 500;
|
|
311
|
+
}
|
|
312
|
+
.cta-bar a:hover { text-decoration: underline; }
|
|
313
|
+
.cta-bar .cta-sep { color: var(--text-dim); }
|
|
314
|
+
.cta-bar .cta-close {
|
|
315
|
+
position: absolute;
|
|
316
|
+
right: 12px;
|
|
317
|
+
top: 50%;
|
|
318
|
+
transform: translateY(-50%);
|
|
319
|
+
background: none;
|
|
320
|
+
border: none;
|
|
321
|
+
color: var(--text-dim);
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
font-size: 16px;
|
|
324
|
+
padding: 4px 8px;
|
|
325
|
+
border-radius: 4px;
|
|
326
|
+
}
|
|
327
|
+
.cta-bar .cta-close:hover { background: var(--bg-hover); color: var(--text); }
|
|
293
328
|
.hidden { display: none !important; }
|
|
294
329
|
@media (max-width: 768px) {
|
|
295
330
|
.charts { grid-template-columns: 1fr; }
|
|
@@ -315,6 +350,16 @@ ${passwordFormHtml}
|
|
|
315
350
|
<button class="theme-toggle" id="theme-toggle" title="Toggle theme">☾</button>
|
|
316
351
|
</div>
|
|
317
352
|
</div>
|
|
353
|
+
<div id="cta-bar" class="cta-bar">
|
|
354
|
+
<span style="color:var(--text-dim)">Powered by Trusera</span>
|
|
355
|
+
<span class="cta-sep">|</span>
|
|
356
|
+
<a href="https://trusera.dev" target="_blank" rel="noopener">Try the Full Platform</a>
|
|
357
|
+
<span class="cta-sep">|</span>
|
|
358
|
+
<a href="mailto:info@trusera.dev?subject=Feature%20Request%20-%20AI-BOM%20n8n">Request a Feature</a>
|
|
359
|
+
<span class="cta-sep">|</span>
|
|
360
|
+
<a href="https://trusera.dev" target="_blank" rel="noopener">trusera.dev</a>
|
|
361
|
+
<button class="cta-close" onclick="dismissCta()" title="Dismiss">×</button>
|
|
362
|
+
</div>
|
|
318
363
|
<div id="modal-container"></div>
|
|
319
364
|
|
|
320
365
|
<div class="container">
|
|
@@ -701,6 +746,18 @@ function exportJSON() {
|
|
|
701
746
|
downloadBlob(JSON.stringify(SCAN_DATA, null, 2), 'trusera-scan.json', 'application/json');
|
|
702
747
|
}
|
|
703
748
|
|
|
749
|
+
function dismissCta() {
|
|
750
|
+
var bar = document.getElementById('cta-bar');
|
|
751
|
+
if (bar) bar.classList.add('hidden');
|
|
752
|
+
safeStorage('set', 'trusera-cta-dismissed', '1');
|
|
753
|
+
}
|
|
754
|
+
function initCta() {
|
|
755
|
+
if (safeStorage('get', 'trusera-cta-dismissed') === '1') {
|
|
756
|
+
var bar = document.getElementById('cta-bar');
|
|
757
|
+
if (bar) bar.classList.add('hidden');
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
704
761
|
function safeStorage(method, key, val) {
|
|
705
762
|
try { return method === 'get' ? localStorage.getItem(key) : localStorage.setItem(key, val); } catch(e) { return null; }
|
|
706
763
|
}
|
|
@@ -725,6 +782,7 @@ document.getElementById('theme-toggle').addEventListener('click', function() {
|
|
|
725
782
|
});
|
|
726
783
|
|
|
727
784
|
initTheme();
|
|
785
|
+
initCta();
|
|
728
786
|
${password ? 'trySessionRestore();' : 'renderDashboard();'}
|
|
729
787
|
<\/script>
|
|
730
788
|
</body>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardHtml.js","sourceRoot":"","sources":["../../lib/dashboardHtml.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAWH,
|
|
1
|
+
{"version":3,"file":"dashboardHtml.js","sourceRoot":"","sources":["../../lib/dashboardHtml.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAWH,sDAgxBC;AAzxBD,mCAAiE;AAEjE,qCAA2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