@a83/orbiter-admin 0.3.31 → 0.3.33
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/style.css +26 -62
- package/public/xfce.js +6 -24
package/package.json
CHANGED
package/public/style.css
CHANGED
|
@@ -1994,19 +1994,9 @@ html[data-style="xfce"] .xfce-in-focus .xfce-focus-trigger::after {
|
|
|
1994
1994
|
text-align: center;
|
|
1995
1995
|
flex-shrink: 0;
|
|
1996
1996
|
}
|
|
1997
|
-
.xfce-tools-sep
|
|
1998
|
-
|
|
1999
|
-
}
|
|
2000
|
-
.xfce-tools-palette {
|
|
2001
|
-
width: 100%; background: none; border: none; cursor: pointer;
|
|
2002
|
-
text-align: left; font-family: inherit;
|
|
2003
|
-
}
|
|
2004
|
-
.xfce-tools-kbd {
|
|
2005
|
-
margin-left: auto; font-family: var(--mono);
|
|
2006
|
-
font-size: 8px; color: var(--muted);
|
|
2007
|
-
background: color-mix(in srgb, var(--mid) 14%, transparent);
|
|
2008
|
-
padding: 2px 5px; border-radius: 3px; border: none; font-style: normal;
|
|
2009
|
-
}
|
|
1997
|
+
.xfce-tools-sep { height: 1px; background: var(--line); margin: 4px 6px; }
|
|
1998
|
+
.xfce-tools-palette { width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
|
|
1999
|
+
.xfce-tools-kbd { margin-left: auto; font-family: var(--mono); font-size: 8px; color: var(--muted); background: color-mix(in srgb, var(--mid) 14%, transparent); padding: 2px 5px; border-radius: 3px; border: none; font-style: normal; }
|
|
2010
2000
|
|
|
2011
2001
|
/* Status bar links & logout */
|
|
2012
2002
|
a.xfce-sb-logo { text-decoration: none; color: var(--accent); }
|
|
@@ -2019,11 +2009,7 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2019
2009
|
font-family: var(--mono); transition: color .15s;
|
|
2020
2010
|
}
|
|
2021
2011
|
.xfce-sb-logout:hover { color: var(--red); }
|
|
2022
|
-
.xfce-sb-palette-btn {
|
|
2023
|
-
background: none; border: none; cursor: pointer; padding: 0 3px;
|
|
2024
|
-
font-size: 14px; color: var(--mid); line-height: 1;
|
|
2025
|
-
font-family: var(--mono); transition: color .15s;
|
|
2026
|
-
}
|
|
2012
|
+
.xfce-sb-palette-btn { background: none; border: none; cursor: pointer; padding: 0 3px; font-size: 14px; color: var(--mid); line-height: 1; font-family: var(--mono); transition: color .15s; }
|
|
2027
2013
|
.xfce-sb-palette-btn:hover { color: var(--accent); }
|
|
2028
2014
|
|
|
2029
2015
|
/* Draft badge on dock items */
|
|
@@ -2039,10 +2025,8 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2039
2025
|
|
|
2040
2026
|
/* Hover + badge above collection dock items */
|
|
2041
2027
|
.xfce-col-create {
|
|
2042
|
-
position: fixed;
|
|
2043
|
-
|
|
2044
|
-
width: 22px; height: 22px;
|
|
2045
|
-
border-radius: 50%;
|
|
2028
|
+
position: fixed; z-index: 99990;
|
|
2029
|
+
width: 22px; height: 22px; border-radius: 50%;
|
|
2046
2030
|
background: var(--accent);
|
|
2047
2031
|
color: color-mix(in srgb, var(--bg1) 15%, #000);
|
|
2048
2032
|
font-size: 17px; line-height: 22px; font-weight: 300;
|
|
@@ -2054,65 +2038,45 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2054
2038
|
user-select: none;
|
|
2055
2039
|
}
|
|
2056
2040
|
.xfce-col-create.visible {
|
|
2057
|
-
opacity: 1;
|
|
2058
|
-
transform: translateX(-50%) translateY(0);
|
|
2059
|
-
pointer-events: auto;
|
|
2041
|
+
opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
|
|
2060
2042
|
}
|
|
2061
2043
|
|
|
2062
2044
|
/* ── Command Palette ─────────────────────────────────────── */
|
|
2063
2045
|
.xfce-palette {
|
|
2064
2046
|
display: none; position: fixed; inset: 0; z-index: 10000;
|
|
2065
|
-
background: rgba(0,0,0
|
|
2066
|
-
align-items: flex-
|
|
2067
|
-
padding-
|
|
2068
|
-
transition: background .2s;
|
|
2069
|
-
}
|
|
2070
|
-
.xfce-palette.open {
|
|
2071
|
-
display: flex;
|
|
2072
|
-
background: rgba(0,0,0,.72);
|
|
2073
|
-
backdrop-filter: blur(4px);
|
|
2074
|
-
-webkit-backdrop-filter: blur(4px);
|
|
2047
|
+
background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
|
|
2048
|
+
align-items: flex-start; justify-content: center;
|
|
2049
|
+
padding-top: 12vh;
|
|
2075
2050
|
}
|
|
2051
|
+
.xfce-palette.open { display: flex; }
|
|
2076
2052
|
|
|
2077
|
-
/* Palette inner — always dark, space aesthetic regardless of page theme */
|
|
2078
2053
|
.xfce-palette-inner {
|
|
2079
2054
|
width: min(560px, 92vw);
|
|
2080
|
-
background:
|
|
2081
|
-
border: 1px solid
|
|
2082
|
-
border-top: 2px solid var(--accent, #7c6fcd);
|
|
2055
|
+
background: var(--glass-bg, color-mix(in srgb, var(--bg1) 90%, transparent));
|
|
2056
|
+
border: 1px solid var(--line);
|
|
2083
2057
|
border-radius: 12px;
|
|
2084
|
-
box-shadow:
|
|
2085
|
-
0 0 0 1px rgba(100,70,190,.1),
|
|
2086
|
-
0 16px 56px rgba(0,0,0,.8),
|
|
2087
|
-
0 0 80px rgba(90,60,180,.18);
|
|
2058
|
+
box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent);
|
|
2088
2059
|
overflow: hidden;
|
|
2089
|
-
transform: translateY(16px);
|
|
2090
|
-
opacity: 0;
|
|
2091
|
-
transition: transform .22s cubic-bezier(.34,1.15,.64,1), opacity .16s;
|
|
2092
|
-
}
|
|
2093
|
-
.xfce-palette.open .xfce-palette-inner {
|
|
2094
|
-
transform: translateY(0);
|
|
2095
|
-
opacity: 1;
|
|
2096
2060
|
}
|
|
2097
2061
|
|
|
2098
2062
|
.xfce-palette-bar {
|
|
2099
2063
|
display: flex; align-items: center; gap: 8px;
|
|
2100
|
-
padding:
|
|
2064
|
+
padding: 10px 14px; border-bottom: 1px solid var(--line);
|
|
2101
2065
|
}
|
|
2102
|
-
.xfce-palette-cmd { color: var(--accent
|
|
2066
|
+
.xfce-palette-cmd { color: var(--accent); font-size: 13px; flex-shrink: 0; }
|
|
2103
2067
|
.xfce-palette-inp {
|
|
2104
2068
|
flex: 1; background: none; border: none; outline: none;
|
|
2105
|
-
font-family: var(--mono); font-size: 13px; color:
|
|
2069
|
+
font-family: var(--mono); font-size: 13px; color: var(--heading);
|
|
2106
2070
|
}
|
|
2107
|
-
.xfce-palette-inp::placeholder { color:
|
|
2108
|
-
.xfce-palette-hint { font-size: 8px; color:
|
|
2071
|
+
.xfce-palette-inp::placeholder { color: var(--muted); }
|
|
2072
|
+
.xfce-palette-hint { font-size: 8px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
|
|
2109
2073
|
|
|
2110
2074
|
.xfce-palette-results {
|
|
2111
|
-
max-height:
|
|
2075
|
+
max-height: 360px; overflow-y: auto; padding: 6px 0;
|
|
2112
2076
|
}
|
|
2113
2077
|
.xfce-pal-group {
|
|
2114
|
-
font-size: 8px; font-family: var(--mono); color:
|
|
2115
|
-
letter-spacing: .
|
|
2078
|
+
font-size: 8px; font-family: var(--mono); color: var(--muted);
|
|
2079
|
+
letter-spacing: .08em; text-transform: uppercase;
|
|
2116
2080
|
padding: 8px 14px 4px;
|
|
2117
2081
|
}
|
|
2118
2082
|
.xfce-pal-item {
|
|
@@ -2120,11 +2084,11 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2120
2084
|
padding: 7px 14px; cursor: pointer; transition: background .1s;
|
|
2121
2085
|
}
|
|
2122
2086
|
.xfce-pal-item:hover, .xfce-pal-item.pal-active {
|
|
2123
|
-
background:
|
|
2087
|
+
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
2124
2088
|
}
|
|
2125
|
-
.xfce-pal-icon { width: 20px; text-align: center; font-size: 13px; color: var(--accent
|
|
2126
|
-
.xfce-pal-label { font-size: 12px; color:
|
|
2127
|
-
.xfce-pal-empty { padding: 20px 14px; color:
|
|
2089
|
+
.xfce-pal-icon { width: 20px; text-align: center; font-size: 13px; color: var(--accent); flex-shrink: 0; }
|
|
2090
|
+
.xfce-pal-label { font-size: 12px; color: var(--heading); font-family: var(--mono); }
|
|
2091
|
+
.xfce-pal-empty { padding: 20px 14px; color: var(--muted); font-size: 11px; font-family: var(--mono); }
|
|
2128
2092
|
|
|
2129
2093
|
/* ── Toast host (above dock) ─────────────────────────────── */
|
|
2130
2094
|
.xfce-toast-host {
|
package/public/xfce.js
CHANGED
|
@@ -154,11 +154,9 @@
|
|
|
154
154
|
a.innerHTML = '<span class="xfce-tools-icon">' + t.icon + '</span><span>' + t.label + '</span>';
|
|
155
155
|
toolsPopup.appendChild(a);
|
|
156
156
|
});
|
|
157
|
-
// Separator
|
|
158
157
|
var sep = document.createElement('div');
|
|
159
158
|
sep.className = 'xfce-tools-sep';
|
|
160
159
|
toolsPopup.appendChild(sep);
|
|
161
|
-
// Command palette shortcut
|
|
162
160
|
var palBtn = el('button', 'xfce-tools-item xfce-tools-palette');
|
|
163
161
|
palBtn.innerHTML = '<span class="xfce-tools-icon">⌘</span><span>Palette</span><kbd class="xfce-tools-kbd">⌘K</kbd>';
|
|
164
162
|
palBtn.addEventListener('click', function (e) {
|
|
@@ -193,12 +191,8 @@
|
|
|
193
191
|
colCreateEl = el('a', 'xfce-col-create');
|
|
194
192
|
colCreateEl.id = 'xfce-col-create';
|
|
195
193
|
colCreateEl.textContent = '+';
|
|
196
|
-
colCreateEl.addEventListener('mouseenter', function () {
|
|
197
|
-
|
|
198
|
-
});
|
|
199
|
-
colCreateEl.addEventListener('mouseleave', function () {
|
|
200
|
-
colCreateTimer = setTimeout(hideColCreate, 120);
|
|
201
|
-
});
|
|
194
|
+
colCreateEl.addEventListener('mouseenter', function () { clearTimeout(colCreateTimer); });
|
|
195
|
+
colCreateEl.addEventListener('mouseleave', function () { colCreateTimer = setTimeout(hideColCreate, 120); });
|
|
202
196
|
document.body.appendChild(colCreateEl);
|
|
203
197
|
}
|
|
204
198
|
|
|
@@ -323,25 +317,15 @@
|
|
|
323
317
|
|
|
324
318
|
function openPalette() {
|
|
325
319
|
if (!palette) buildPalette();
|
|
326
|
-
palette.
|
|
320
|
+
palette.classList.add('open');
|
|
327
321
|
paletteInp.value = '';
|
|
328
322
|
palActive = -1;
|
|
329
323
|
renderPalette('');
|
|
330
|
-
|
|
331
|
-
requestAnimationFrame(function () {
|
|
332
|
-
requestAnimationFrame(function () {
|
|
333
|
-
palette.classList.add('open');
|
|
334
|
-
setTimeout(function () { paletteInp.focus(); }, 40);
|
|
335
|
-
});
|
|
336
|
-
});
|
|
324
|
+
setTimeout(function () { paletteInp.focus(); }, 30);
|
|
337
325
|
}
|
|
338
326
|
|
|
339
327
|
function closePalette() {
|
|
340
|
-
if (
|
|
341
|
-
palette.classList.remove('open');
|
|
342
|
-
setTimeout(function () {
|
|
343
|
-
if (!palette.classList.contains('open')) palette.style.display = 'none';
|
|
344
|
-
}, 220);
|
|
328
|
+
if (palette) palette.classList.remove('open');
|
|
345
329
|
}
|
|
346
330
|
|
|
347
331
|
// ── Toast system ──────────────────────────────────────────────────────
|
|
@@ -824,9 +808,7 @@
|
|
|
824
808
|
? '/editor.html?collection=' + encodeURIComponent(col.id) + '&singleton=1'
|
|
825
809
|
: '/editor.html?collection=' + encodeURIComponent(col.id);
|
|
826
810
|
item.addEventListener('mouseenter', function () { showColCreate(createHref, item); });
|
|
827
|
-
item.addEventListener('mouseleave', function () {
|
|
828
|
-
colCreateTimer = setTimeout(hideColCreate, 120);
|
|
829
|
-
});
|
|
811
|
+
item.addEventListener('mouseleave', function () { colCreateTimer = setTimeout(hideColCreate, 120); });
|
|
830
812
|
|
|
831
813
|
colGroup.appendChild(item);
|
|
832
814
|
|