@a83/orbiter-admin 0.3.22 → 0.3.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a83/orbiter-admin",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Standalone admin server for Orbiter CMS",
5
5
  "type": "module",
6
6
  "main": "./src/server.js",
package/public/style.css CHANGED
@@ -2019,9 +2019,13 @@ a.xfce-sb-logo:hover { opacity: .8; }
2019
2019
  .xfce-dock-item { position: relative; }
2020
2020
 
2021
2021
  /* Quick-create button */
2022
+ .xfce-dock-create {
2023
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
2024
+ border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent) !important;
2025
+ }
2022
2026
  .xfce-dock-create .xfce-dock-icon {
2023
- font-size: 16px !important; font-family: inherit !important;
2024
- color: var(--accent); font-weight: 300;
2027
+ font-size: 20px !important; font-family: inherit !important;
2028
+ color: var(--accent) !important; font-weight: 400; opacity: 1 !important;
2025
2029
  }
2026
2030
 
2027
2031
  /* ── Command Palette ─────────────────────────────────────── */
@@ -2035,7 +2039,9 @@ a.xfce-sb-logo:hover { opacity: .8; }
2035
2039
 
2036
2040
  .xfce-palette-inner {
2037
2041
  width: min(560px, 92vw);
2038
- background: var(--glass-bg, color-mix(in srgb, var(--bg1) 90%, transparent));
2042
+ background: color-mix(in srgb, var(--bg1) 97%, transparent);
2043
+ backdrop-filter: blur(8px) saturate(160%);
2044
+ -webkit-backdrop-filter: blur(8px) saturate(160%);
2039
2045
  border: 1px solid var(--line);
2040
2046
  border-radius: 12px;
2041
2047
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent);
@@ -2055,10 +2061,10 @@ a.xfce-sb-logo:hover { opacity: .8; }
2055
2061
  .xfce-palette-hint { font-size: 8px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
2056
2062
 
2057
2063
  .xfce-palette-results {
2058
- max-height: 360px; overflow-y: auto; padding: 6px 0;
2064
+ max-height: 450px; overflow-y: auto; padding: 6px 0;
2059
2065
  }
2060
2066
  .xfce-pal-group {
2061
- font-size: 8px; font-family: var(--mono); color: var(--muted);
2067
+ font-size: 8px; font-family: var(--mono); color: var(--mid);
2062
2068
  letter-spacing: .08em; text-transform: uppercase;
2063
2069
  padding: 8px 14px 4px;
2064
2070
  }
package/public/xfce.js CHANGED
@@ -745,7 +745,7 @@
745
745
  : page === 'entries' && activeCol === col.id;
746
746
  var abbr = col.label.substring(0, 2);
747
747
  var item = makeDockItem(abbr, col.label, href, isActive, false);
748
- item.querySelector('.xfce-dock-icon').style.cssText = 'font-size:9px;font-family:var(--mono);letter-spacing:-.02em;line-height:1;';
748
+ item.querySelector('.xfce-dock-icon').style.cssText = 'font-size:11px;font-family:var(--mono);letter-spacing:-.02em;line-height:1;opacity:1;';
749
749
  item.dataset.dockIdx = idx + 1;
750
750
 
751
751
  // Draft badge
package/src/server.js CHANGED
@@ -57,13 +57,12 @@ export function createApp(podPath) {
57
57
  credentials: true,
58
58
  }));
59
59
 
60
- app.use('/api/*', csrfMiddleware(ALLOWED_ORIGINS));
61
-
62
- // Public routes
60
+ // Public routes (no CSRF needed — login can't be meaningfully CSRF-attacked)
63
61
  app.route('/api/auth', authRoutes);
64
62
 
65
- // Protected routes
63
+ // Protected routes — CSRF + auth
66
64
  const api = new Hono();
65
+ api.use('*', csrfMiddleware(ALLOWED_ORIGINS));
67
66
  api.use('*', requireAuth);
68
67
  api.route('/collections', collectionRoutes);
69
68
  api.route('/collections', entryRoutes);