Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e8dea8027 | ||
|
|
486b57cacb |
No files matched your search
+17
-4
@@ -90,16 +90,27 @@
|
|||||||
align-items: center; justify-content: center; padding: 16px;
|
align-items: center; justify-content: center; padding: 16px;
|
||||||
}
|
}
|
||||||
.usmt-demo-modal.show { display: flex; }
|
.usmt-demo-modal.show { display: flex; }
|
||||||
|
/* The text scrolls inside the card and the buttons stay pinned at the bottom, so the
|
||||||
|
"Explore the dashboard" button is always on screen (phones included). dvh follows the
|
||||||
|
visible area when a phone's address bar is showing, so the top edge isn't cut off. */
|
||||||
.usmt-demo-card {
|
.usmt-demo-card {
|
||||||
background: var(--bg-card, #fff); color: var(--text-main, #333); max-width: 640px; width: 100%;
|
background: var(--bg-card, #fff); color: var(--text-main, #333); max-width: 640px; width: 100%;
|
||||||
max-height: calc(100vh - 32px); overflow: auto; border-radius: 10px; padding: 26px 28px;
|
max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
|
||||||
|
display: flex; flex-direction: column; overflow: hidden; border-radius: 10px;
|
||||||
box-shadow: 0 12px 40px rgba(0,0,0,0.45); border-top: 5px solid #f59e0b; line-height: 1.55;
|
box-shadow: 0 12px 40px rgba(0,0,0,0.45); border-top: 5px solid #f59e0b; line-height: 1.55;
|
||||||
}
|
}
|
||||||
.usmt-demo-card h2 { margin: 0 0 10px; }
|
.usmt-demo-body { overflow-y: auto; min-height: 0; padding: 22px 28px 4px; }
|
||||||
|
.usmt-demo-card h2 { margin: 0 0 4px; }
|
||||||
|
.usmt-demo-card p.usmt-demo-src { font-size: 0.85em; margin-bottom: 14px; color: var(--text-muted, #666); }
|
||||||
|
.usmt-demo-src a { color: #3498db; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
|
||||||
|
.usmt-demo-src a:hover { text-decoration: underline; }
|
||||||
.usmt-demo-card p { margin: 0 0 12px; font-size: 0.95em; }
|
.usmt-demo-card p { margin: 0 0 12px; font-size: 0.95em; }
|
||||||
.usmt-demo-card code { background: rgba(127,127,127,0.18); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
|
.usmt-demo-card code { background: rgba(127,127,127,0.18); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
|
||||||
.usmt-demo-try { color: var(--text-muted, #666); }
|
.usmt-demo-try { color: var(--text-muted, #666); }
|
||||||
.usmt-demo-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
|
.usmt-demo-actions {
|
||||||
|
display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; flex-shrink: 0;
|
||||||
|
padding: 14px 28px 18px; border-top: 1px solid var(--border-color, #ddd);
|
||||||
|
}
|
||||||
.usmt-demo-actions button { border: 1px solid var(--border-color, #ddd); background: transparent; color: inherit; padding: 8px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.9em; }
|
.usmt-demo-actions button { border: 1px solid var(--border-color, #ddd); background: transparent; color: inherit; padding: 8px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.9em; }
|
||||||
.usmt-demo-actions .usmt-demo-close { background: #3498db; border-color: #3498db; color: #fff; font-weight: 600; }
|
.usmt-demo-actions .usmt-demo-close { background: #3498db; border-color: #3498db; color: #fff; font-weight: 600; }
|
||||||
.usmt-demo-actions .usmt-demo-reset { color: #e74c3c; border-color: #e74c3c; margin-right: auto; }
|
.usmt-demo-actions .usmt-demo-reset { color: #e74c3c; border-color: #e74c3c; margin-right: auto; }
|
||||||
@@ -113,10 +124,12 @@
|
|||||||
.usmt-term { --usmt-term-h: 45vh; }
|
.usmt-term { --usmt-term-h: 45vh; }
|
||||||
.usmt-term-body { font-size: 11.5px; padding: 6px 8px 10px 14px; }
|
.usmt-term-body { font-size: 11.5px; padding: 6px 8px 10px 14px; }
|
||||||
.usmt-term-titlebar { font-size: 0.7em; }
|
.usmt-term-titlebar { font-size: 0.7em; }
|
||||||
.usmt-demo-card { padding: 18px 16px; }
|
.usmt-demo-body { padding: 16px 16px 4px; }
|
||||||
.usmt-demo-card h2 { font-size: 1.25em; }
|
.usmt-demo-card h2 { font-size: 1.25em; }
|
||||||
|
.usmt-demo-actions { padding: 12px 16px 14px; gap: 8px; }
|
||||||
.usmt-demo-actions button { flex: 1 1 auto; }
|
.usmt-demo-actions button { flex: 1 1 auto; }
|
||||||
.usmt-demo-actions .usmt-demo-reset { margin-right: 0; }
|
.usmt-demo-actions .usmt-demo-reset { margin-right: 0; }
|
||||||
|
.usmt-demo-actions .usmt-demo-close { order: -1; flex-basis: 100%; padding: 11px 14px; } /* first and full width */
|
||||||
}
|
}
|
||||||
@media (max-height: 500px) {
|
@media (max-height: 500px) {
|
||||||
.usmt-term { --usmt-term-h: 55vh; } /* phones in landscape */
|
.usmt-term { --usmt-term-h: 55vh; } /* phones in landscape */
|
||||||
|
|||||||
@@ -937,7 +937,9 @@
|
|||||||
modal.className = 'usmt-demo-modal';
|
modal.className = 'usmt-demo-modal';
|
||||||
modal.innerHTML = `
|
modal.innerHTML = `
|
||||||
<div class="usmt-demo-card" role="dialog" aria-labelledby="usmt-demo-title">
|
<div class="usmt-demo-card" role="dialog" aria-labelledby="usmt-demo-title">
|
||||||
|
<div class="usmt-demo-body">
|
||||||
<h2 id="usmt-demo-title">You're looking at a live demo</h2>
|
<h2 id="usmt-demo-title">You're looking at a live demo</h2>
|
||||||
|
<p class="usmt-demo-src">Source code: <a href="https://gitea.yoyos.sh/yoyos/usmt-dash" target="_blank" rel="noopener">gitea.yoyos.sh/yoyos/usmt-dash</a></p>
|
||||||
<p>This is the real dashboard, served by the real <code>USMT-Server.ps1</code> HttpListener and fed by the real
|
<p>This is the real dashboard, served by the real <code>USMT-Server.ps1</code> HttpListener and fed by the real
|
||||||
<code>USMT-Worker.ps1</code> polling loop, running in PowerShell 7 in a container. The only difference is the data
|
<code>USMT-Worker.ps1</code> polling loop, running in PowerShell 7 in a container. The only difference is the data
|
||||||
source: instead of SCCM, Active Directory and SMB, the worker talks to a simulated fleet of 200 devices whose
|
source: instead of SCCM, Active Directory and SMB, the worker talks to a simulated fleet of 200 devices whose
|
||||||
@@ -950,6 +952,7 @@
|
|||||||
fleet · add a device such as <code>PRVDT-7QK4M2XA</code> under <em>Tracked Devices</em> ·
|
fleet · add a device such as <code>PRVDT-7QK4M2XA</code> under <em>Tracked Devices</em> ·
|
||||||
click a device for its details · <em>All Devices</em> shows apps missing from replacement machines ·
|
click a device for its details · <em>All Devices</em> shows apps missing from replacement machines ·
|
||||||
edit an article under <em>Documentation</em>.</p>
|
edit an article under <em>Documentation</em>.</p>
|
||||||
|
</div>
|
||||||
<div class="usmt-demo-actions">
|
<div class="usmt-demo-actions">
|
||||||
<button type="button" class="usmt-demo-reset">Reset my changes</button>
|
<button type="button" class="usmt-demo-reset">Reset my changes</button>
|
||||||
<button type="button" class="usmt-demo-terms">Open terminals</button>
|
<button type="button" class="usmt-demo-terms">Open terminals</button>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
/* groups + items */
|
/* groups + items */
|
||||||
.kb-group-title { font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 2px 0 6px; display: flex; justify-content: space-between; }
|
.kb-group-title { font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 2px 0 6px; display: flex; justify-content: space-between; }
|
||||||
.kb-group-title span { font-weight: 600; }
|
.kb-group-title span { font-weight: 600; }
|
||||||
.kb-item { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; margin: 0 0 2px; min-width: 0; border-radius: 6px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
|
.kb-item { cursor: pointer; display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; margin: 0 0 2px; min-width: 0; border-radius: 6px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
|
||||||
.kb-item:hover { background: rgba(52,152,219,0.08); border-color: rgba(52,152,219,0.45); box-shadow: 0 0 6px rgba(52,152,219,0.35); }
|
.kb-item:hover { background: rgba(52,152,219,0.08); border-color: rgba(52,152,219,0.45); box-shadow: 0 0 6px rgba(52,152,219,0.35); }
|
||||||
.kb-item.active { background: rgba(52,152,219,0.14); border-color: #3498db; }
|
.kb-item.active { background: rgba(52,152,219,0.14); border-color: #3498db; }
|
||||||
.kb-item-main { min-width: 0; flex: 1; }
|
.kb-item-main { min-width: 0; flex: 1; }
|
||||||
|
|||||||
@@ -137,6 +137,14 @@
|
|||||||
document.addEventListener('click', e => {
|
document.addEventListener('click', e => {
|
||||||
const a = e.target.closest('#docList a[data-doc]');
|
const a = e.target.closest('#docList a[data-doc]');
|
||||||
if (a && !e.ctrlKey && !e.metaKey && !e.shiftKey && e.button === 0) { e.preventDefault(); openDoc(a.dataset.doc); return; }
|
if (a && !e.ctrlKey && !e.metaKey && !e.shiftKey && e.button === 0) { e.preventDefault(); openDoc(a.dataset.doc); return; }
|
||||||
|
// Anywhere else in the highlighted box (except the copy-link button) opens it too
|
||||||
|
const item = !a && !e.target.closest('.kb-copy') && e.target.closest('#docList .kb-item');
|
||||||
|
const itemLink = item && item.querySelector('a[data-doc]');
|
||||||
|
if (itemLink && e.button === 0) {
|
||||||
|
if (e.ctrlKey || e.metaKey || e.shiftKey) window.open(itemLink.href, '_blank', 'noopener');
|
||||||
|
else openDoc(itemLink.dataset.doc);
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Links between articles (/docs/Title or the older ?doc=Title) open in place
|
// Links between articles (/docs/Title or the older ?doc=Title) open in place
|
||||||
const link = e.target.closest('#docContent a[href]');
|
const link = e.target.closest('#docContent a[href]');
|
||||||
if (link && !e.ctrlKey && !e.metaKey && !e.shiftKey && e.button === 0 && link.target !== '_blank') {
|
if (link && !e.ctrlKey && !e.metaKey && !e.shiftKey && e.button === 0 && link.target !== '_blank') {
|
||||||
|
|||||||
Reference in new issue
Block a user