@barnaby.build/barnaby 0.0.233 → 0.0.236
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/bin/barnaby.cjs +19 -19
- package/dist/assets/{index-B2QCc9UL.js → index-CTmJFf2A.js} +91 -89
- package/dist/debug-window.html +65 -65
- package/dist/index.html +1 -1
- package/dist/splash.html +46 -46
- package/dist-electron/main/index.js +6157 -10217
- package/package.json +2 -2
- package/public/debug-window.html +65 -65
- package/public/splash.html +46 -46
- package/scripts/bump-version.mjs +35 -35
- package/scripts/create-release-notes.mjs +50 -47
- package/scripts/generate-license-key.mjs +99 -99
- package/scripts/license-keypair-init.mjs +56 -56
- package/scripts/patch-nord-theme.mjs +14 -14
- package/scripts/rebuild-native.mjs +47 -47
- package/scripts/shortcut-win.mjs +57 -57
- package/scripts/sync-icon.mjs +20 -20
- package/scripts/validate-version-files.mjs +35 -0
package/dist/debug-window.html
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>Barnaby Debug Output</title>
|
|
7
|
-
<style>
|
|
8
|
-
* { box-sizing: border-box; }
|
|
9
|
-
html, body { margin: 0; height: 100%; font-family: 'Consolas', 'Monaco', monospace; font-size: 12px; background: #1e1e1e; color: #d4d4d4; overflow: hidden; }
|
|
10
|
-
#toolbar { padding: 6px 8px; background: #252526; border-bottom: 1px solid #3c3c3c; display: flex; align-items: center; gap: 8px; }
|
|
11
|
-
#toolbar button { padding: 4px 10px; font-size: 11px; cursor: pointer; background: #0e639c; color: white; border: none; border-radius: 2px; }
|
|
12
|
-
#toolbar button:hover { background: #1177bb; }
|
|
13
|
-
#toolbar button.secondary { background: #3c3c3c; }
|
|
14
|
-
#toolbar button.secondary:hover { background: #505050; }
|
|
15
|
-
#log { padding: 8px; height: calc(100% - 36px); overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
|
|
16
|
-
.error { color: #f48771; }
|
|
17
|
-
.warn { color: #dcdcaa; }
|
|
18
|
-
.info { color: #9cdcfe; }
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="toolbar">
|
|
23
|
-
<button id="refresh">Refresh</button>
|
|
24
|
-
<button id="clear" class="secondary">Clear view</button>
|
|
25
|
-
<span id="status" style="font-size: 11px; color: #858585;"></span>
|
|
26
|
-
</div>
|
|
27
|
-
<pre id="log"></pre>
|
|
28
|
-
<script>
|
|
29
|
-
const logEl = document.getElementById('log');
|
|
30
|
-
const statusEl = document.getElementById('status');
|
|
31
|
-
function render(content) {
|
|
32
|
-
const lines = (content || '').split('\n');
|
|
33
|
-
logEl.innerHTML = lines.map(l => {
|
|
34
|
-
if (l.includes('[ERROR]')) return '<span class="error">' + escapeHtml(l) + '</span>';
|
|
35
|
-
if (l.includes('[WARN]')) return '<span class="warn">' + escapeHtml(l) + '</span>';
|
|
36
|
-
return '<span class="info">' + escapeHtml(l) + '</span>';
|
|
37
|
-
}).join('\n');
|
|
38
|
-
logEl.scrollTop = logEl.scrollHeight;
|
|
39
|
-
}
|
|
40
|
-
function escapeHtml(s) { return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); }
|
|
41
|
-
async function load() {
|
|
42
|
-
try {
|
|
43
|
-
const r = await (window.api && window.api.getDebugLogContent ? window.api.getDebugLogContent() : Promise.resolve({ ok: false, content: '' }));
|
|
44
|
-
render(r.ok ? r.content : '');
|
|
45
|
-
statusEl.textContent = r.ok ? 'Live' : 'No API';
|
|
46
|
-
} catch (e) {
|
|
47
|
-
statusEl.textContent = 'Error: ' + e.message;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
document.getElementById('refresh').onclick = load;
|
|
51
|
-
document.getElementById('clear').onclick = () => { logEl.innerHTML = ''; statusEl.textContent = 'Cleared'; };
|
|
52
|
-
if (window.api && window.api.onDebugLogAppend) {
|
|
53
|
-
window.api.onDebugLogAppend((line) => {
|
|
54
|
-
const span = document.createElement('span');
|
|
55
|
-
span.className = line.includes('[ERROR]') ? 'error' : line.includes('[WARN]') ? 'warn' : 'info';
|
|
56
|
-
span.textContent = line + '\n';
|
|
57
|
-
logEl.appendChild(span);
|
|
58
|
-
logEl.scrollTop = logEl.scrollHeight;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
load();
|
|
62
|
-
setInterval(load, 2000);
|
|
63
|
-
</script>
|
|
64
|
-
</body>
|
|
65
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Barnaby Debug Output</title>
|
|
7
|
+
<style>
|
|
8
|
+
* { box-sizing: border-box; }
|
|
9
|
+
html, body { margin: 0; height: 100%; font-family: 'Consolas', 'Monaco', monospace; font-size: 12px; background: #1e1e1e; color: #d4d4d4; overflow: hidden; }
|
|
10
|
+
#toolbar { padding: 6px 8px; background: #252526; border-bottom: 1px solid #3c3c3c; display: flex; align-items: center; gap: 8px; }
|
|
11
|
+
#toolbar button { padding: 4px 10px; font-size: 11px; cursor: pointer; background: #0e639c; color: white; border: none; border-radius: 2px; }
|
|
12
|
+
#toolbar button:hover { background: #1177bb; }
|
|
13
|
+
#toolbar button.secondary { background: #3c3c3c; }
|
|
14
|
+
#toolbar button.secondary:hover { background: #505050; }
|
|
15
|
+
#log { padding: 8px; height: calc(100% - 36px); overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
|
|
16
|
+
.error { color: #f48771; }
|
|
17
|
+
.warn { color: #dcdcaa; }
|
|
18
|
+
.info { color: #9cdcfe; }
|
|
19
|
+
</style>
|
|
20
|
+
</head>
|
|
21
|
+
<body>
|
|
22
|
+
<div id="toolbar">
|
|
23
|
+
<button id="refresh">Refresh</button>
|
|
24
|
+
<button id="clear" class="secondary">Clear view</button>
|
|
25
|
+
<span id="status" style="font-size: 11px; color: #858585;"></span>
|
|
26
|
+
</div>
|
|
27
|
+
<pre id="log"></pre>
|
|
28
|
+
<script>
|
|
29
|
+
const logEl = document.getElementById('log');
|
|
30
|
+
const statusEl = document.getElementById('status');
|
|
31
|
+
function render(content) {
|
|
32
|
+
const lines = (content || '').split('\n');
|
|
33
|
+
logEl.innerHTML = lines.map(l => {
|
|
34
|
+
if (l.includes('[ERROR]')) return '<span class="error">' + escapeHtml(l) + '</span>';
|
|
35
|
+
if (l.includes('[WARN]')) return '<span class="warn">' + escapeHtml(l) + '</span>';
|
|
36
|
+
return '<span class="info">' + escapeHtml(l) + '</span>';
|
|
37
|
+
}).join('\n');
|
|
38
|
+
logEl.scrollTop = logEl.scrollHeight;
|
|
39
|
+
}
|
|
40
|
+
function escapeHtml(s) { return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); }
|
|
41
|
+
async function load() {
|
|
42
|
+
try {
|
|
43
|
+
const r = await (window.api && window.api.getDebugLogContent ? window.api.getDebugLogContent() : Promise.resolve({ ok: false, content: '' }));
|
|
44
|
+
render(r.ok ? r.content : '');
|
|
45
|
+
statusEl.textContent = r.ok ? 'Live' : 'No API';
|
|
46
|
+
} catch (e) {
|
|
47
|
+
statusEl.textContent = 'Error: ' + e.message;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
document.getElementById('refresh').onclick = load;
|
|
51
|
+
document.getElementById('clear').onclick = () => { logEl.innerHTML = ''; statusEl.textContent = 'Cleared'; };
|
|
52
|
+
if (window.api && window.api.onDebugLogAppend) {
|
|
53
|
+
window.api.onDebugLogAppend((line) => {
|
|
54
|
+
const span = document.createElement('span');
|
|
55
|
+
span.className = line.includes('[ERROR]') ? 'error' : line.includes('[WARN]') ? 'warn' : 'info';
|
|
56
|
+
span.textContent = line + '\n';
|
|
57
|
+
logEl.appendChild(span);
|
|
58
|
+
logEl.scrollTop = logEl.scrollHeight;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
load();
|
|
62
|
+
setInterval(load, 2000);
|
|
63
|
+
</script>
|
|
64
|
+
</body>
|
|
65
|
+
</html>
|
package/dist/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
10
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' ws: wss: https://fonts.googleapis.com https://fonts.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com;" />
|
|
11
11
|
<title>Barnaby</title>
|
|
12
|
-
<script type="module" crossorigin src="./assets/index-
|
|
12
|
+
<script type="module" crossorigin src="./assets/index-CTmJFf2A.js"></script>
|
|
13
13
|
<link rel="stylesheet" crossorigin href="./assets/index-DY-L_K7b.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
package/dist/splash.html
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>Barnaby Splash</title>
|
|
7
|
-
<style>
|
|
8
|
-
html, body {
|
|
9
|
-
margin: 0;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
background: #0b0b0b;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
}
|
|
15
|
-
.root {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
}
|
|
22
|
-
img {
|
|
23
|
-
max-width: 90%;
|
|
24
|
-
max-height: 90%;
|
|
25
|
-
object-fit: contain;
|
|
26
|
-
user-select: none;
|
|
27
|
-
-webkit-user-drag: none;
|
|
28
|
-
}
|
|
29
|
-
.version {
|
|
30
|
-
position: fixed;
|
|
31
|
-
bottom: 8px;
|
|
32
|
-
right: 12px;
|
|
33
|
-
font-size: 11px;
|
|
34
|
-
color: white;
|
|
35
|
-
font-family: system-ui, sans-serif;
|
|
36
|
-
opacity: 0.8;
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
39
|
-
</head>
|
|
40
|
-
<body>
|
|
41
|
-
<div class="root">
|
|
42
|
-
<img src="./splash.png" alt="Barnaby splash" />
|
|
43
|
-
</div>
|
|
44
|
-
<div id="version" class="version"></div>
|
|
45
|
-
</body>
|
|
46
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Barnaby Splash</title>
|
|
7
|
+
<style>
|
|
8
|
+
html, body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
background: #0b0b0b;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
.root {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
img {
|
|
23
|
+
max-width: 90%;
|
|
24
|
+
max-height: 90%;
|
|
25
|
+
object-fit: contain;
|
|
26
|
+
user-select: none;
|
|
27
|
+
-webkit-user-drag: none;
|
|
28
|
+
}
|
|
29
|
+
.version {
|
|
30
|
+
position: fixed;
|
|
31
|
+
bottom: 8px;
|
|
32
|
+
right: 12px;
|
|
33
|
+
font-size: 11px;
|
|
34
|
+
color: white;
|
|
35
|
+
font-family: system-ui, sans-serif;
|
|
36
|
+
opacity: 0.8;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<div class="root">
|
|
42
|
+
<img src="./splash.png" alt="Barnaby splash" />
|
|
43
|
+
</div>
|
|
44
|
+
<div id="version" class="version"></div>
|
|
45
|
+
</body>
|
|
46
|
+
</html>
|