shell-mirror 1.5.16 → 1.5.17
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/package.json +1 -1
- package/public/app/terminal.html +1 -1
- package/public/app/terminal.js +9 -1
- package/public/index.html +9 -1
package/package.json
CHANGED
package/public/app/terminal.html
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<!-- Version Footer -->
|
|
55
55
|
<footer style="background: #ff6b35; color: white; text-align: center; padding: 10px 0; font-size: 0.8rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;">
|
|
56
56
|
<div style="max-width: 1200px; margin: 0 auto;">
|
|
57
|
-
<p id="terminal-version-info">Terminal Mirror
|
|
57
|
+
<p id="terminal-version-info">Terminal Mirror • Loading version...</p>
|
|
58
58
|
</div>
|
|
59
59
|
</footer>
|
|
60
60
|
|
package/public/app/terminal.js
CHANGED
|
@@ -67,13 +67,21 @@ async function loadVersionInfo() {
|
|
|
67
67
|
const response = await fetch('/build-info.json');
|
|
68
68
|
const buildInfo = await response.json();
|
|
69
69
|
const versionElement = document.getElementById('terminal-version-info');
|
|
70
|
+
const footerElement = versionElement?.parentElement?.parentElement; // Get the footer element
|
|
71
|
+
|
|
70
72
|
if (versionElement && buildInfo) {
|
|
71
73
|
const buildDate = new Date(buildInfo.buildTime).toLocaleDateString();
|
|
72
74
|
versionElement.textContent = `Terminal Mirror v${buildInfo.version} • Built ${buildDate}`;
|
|
75
|
+
|
|
76
|
+
// Apply random footer color from build info
|
|
77
|
+
if (footerElement && buildInfo.footerColor) {
|
|
78
|
+
footerElement.style.background = buildInfo.footerColor;
|
|
79
|
+
console.log(`🎨 Applied footer color: ${buildInfo.footerColor}`);
|
|
80
|
+
}
|
|
73
81
|
}
|
|
74
82
|
} catch (error) {
|
|
75
83
|
console.log('Could not load build info for terminal:', error);
|
|
76
|
-
// Keep default version if build-info.json not available
|
|
84
|
+
// Keep default version and color if build-info.json not available
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
87
|
|
package/public/index.html
CHANGED
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
<!-- Version Footer -->
|
|
656
656
|
<footer style="background: #ff6b35; color: white; text-align: center; padding: 20px 0; font-size: 0.8rem;">
|
|
657
657
|
<div class="container">
|
|
658
|
-
<p id="version-info">Shell Mirror
|
|
658
|
+
<p id="version-info">Shell Mirror • Loading version...</p>
|
|
659
659
|
</div>
|
|
660
660
|
</footer>
|
|
661
661
|
</main>
|
|
@@ -695,9 +695,17 @@
|
|
|
695
695
|
const response = await fetch('/build-info.json');
|
|
696
696
|
const buildInfo = await response.json();
|
|
697
697
|
const versionElement = document.getElementById('version-info');
|
|
698
|
+
const footerElement = versionElement?.parentElement?.parentElement; // Get the footer element
|
|
699
|
+
|
|
698
700
|
if (versionElement && buildInfo) {
|
|
699
701
|
const buildDate = new Date(buildInfo.buildTime).toLocaleDateString();
|
|
700
702
|
versionElement.textContent = `Shell Mirror v${buildInfo.version} • Built ${buildDate}`;
|
|
703
|
+
|
|
704
|
+
// Apply random footer color from build info
|
|
705
|
+
if (footerElement && buildInfo.footerColor) {
|
|
706
|
+
footerElement.style.background = buildInfo.footerColor;
|
|
707
|
+
console.log(`🎨 Applied footer color: ${buildInfo.footerColor}`);
|
|
708
|
+
}
|
|
701
709
|
}
|
|
702
710
|
} catch (error) {
|
|
703
711
|
console.log('Could not load build info:', error);
|