@stacksjs/defaults 0.75.694 → 0.75.700
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/ai/skills/stacks-desktop/SKILL.md +12 -0
- package/ai/skills/stacks-native/CATALOG.md +2 -2
- package/ai/skills/stacks-socials/SKILL.md +4 -2
- package/ai/skills/stacks-support/SKILL.md +7 -2
- package/ide/vscode/package.json +1 -1
- package/package.json +8 -8
- package/project/bootstrap +23 -0
- package/resources/components/Dashboard/Home/DashboardHome.stx +29 -0
- package/resources/components/Dashboard/UI/Badge.stx +1 -1
- package/resources/components/Dashboard/UI/ServiceHealth.stx +2 -2
- package/resources/components/Dashboard/UI/StatsCard.stx +3 -3
- package/resources/components/HqSupport.stx +6 -1
- package/styles/dashboard-theme.css +97 -17
- package/views/dashboard/layouts/default.stx +8 -28
|
@@ -129,6 +129,18 @@ allowlist and hidden-field serialization; index requests have bounded pagination
|
|
|
129
129
|
|
|
130
130
|
### Migrating a compiled app's own database
|
|
131
131
|
|
|
132
|
+
When adopting the webview build for an existing workspace, set
|
|
133
|
+
`desktop.webview.agent.database` to `{ filename: 'workspace.sqlite' }` to keep
|
|
134
|
+
the database already in the app data directory. `database: true` uses
|
|
135
|
+
`database.sqlite`.
|
|
136
|
+
|
|
137
|
+
Set `desktop.webview.agent.prepare` to a module whose default export is a
|
|
138
|
+
`WebviewAgentPreparation` function if app-owned credentials or environment
|
|
139
|
+
settings must be ready before config and routes load. It receives the locked
|
|
140
|
+
data directory, the database path when configured, and the agent's loopback
|
|
141
|
+
origin. Throwing during preparation stops launch and opens the startup error
|
|
142
|
+
window.
|
|
143
|
+
|
|
132
144
|
A build that ships the framework's generated `.sql` migrations (rather than the
|
|
133
145
|
native model planner above) applies them at launch with
|
|
134
146
|
`migrateCompiledDatabase({ databasePath, migrations, backupDir?, keepBackups? })`
|
|
@@ -21,7 +21,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
21
21
|
| `@stacksjs/auth` | [`stacks-auth`](../stacks-auth/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/auth/src/index.ts) | 136 |
|
|
22
22
|
| `@stacksjs/browser` | [`stacks-browser`](../stacks-browser/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser/src/index.ts) | 11 |
|
|
23
23
|
| `@stacksjs/browser-extension` | [`stacks-browser-extension`](../stacks-browser-extension/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser-extension/src/index.ts) | 9 |
|
|
24
|
-
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) |
|
|
24
|
+
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) | 229 |
|
|
25
25
|
| `@stacksjs/build` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/build/src/index.ts) | 7 |
|
|
26
26
|
| `@stacksjs/cache` | [`stacks-cache`](../stacks-cache/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/cache/src/index.ts) | 24 |
|
|
27
27
|
| `@stacksjs/calendar-api` | [`stacks-calendar`](../stacks-calendar/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/calendar-api/src/index.ts) | 5 |
|
|
@@ -223,7 +223,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
|
|
|
223
223
|
|
|
224
224
|
Local source modules: [src/commands/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/commands/index.ts).
|
|
225
225
|
|
|
226
|
-
Evidence directory: [
|
|
226
|
+
Evidence directory: [229 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
227
227
|
|
|
228
228
|
### @stacksjs/build
|
|
229
229
|
|
|
@@ -170,8 +170,10 @@ time before 4.3 (no views; quotes from 4.5). Threads asks one post at a time
|
|
|
170
170
|
post at a time too (`/{id}/insights`, instagram_manage_insights) and adds
|
|
171
171
|
`reach` and `saves`. LinkedIn batches 20 through Social Metadata: `likes` is
|
|
172
172
|
every reaction together, and it needs r_organization_social_feed for a Page
|
|
173
|
-
(r_member_social_feed for a member, granted to select developers only). X
|
|
174
|
-
|
|
173
|
+
(r_member_social_feed for a member, granted to select developers only). X uses
|
|
174
|
+
Post Lookup with `tweet.read` and requests public metrics for up to 100 post IDs
|
|
175
|
+
per call. These reads are billed per returned post. Apply the application's
|
|
176
|
+
read budget before calling the driver.
|
|
175
177
|
|
|
176
178
|
## Authorization and operational limits
|
|
177
179
|
|
|
@@ -61,7 +61,10 @@ in a plain host. Package tests alone do not prove the hosted product is ready.
|
|
|
61
61
|
`APP_URL` origin, creates `resources/components/HqSupport.stx`, mounts it in the
|
|
62
62
|
chosen app-local layout (`--layout` selects another), and writes
|
|
63
63
|
`SUPPORTHQ_ENABLED=true` / `SUPPORTHQ_MESSENGER=true`. Existing customized components
|
|
64
|
-
are preserved. Plain `support:install` connects server keys
|
|
64
|
+
are preserved. Plain `support:install` connects server keys and adds the SDK as
|
|
65
|
+
a runtime dependency. Use `buddy support:install --sdk-only` to install the
|
|
66
|
+
published package before connecting a project. Buddy preserves a declared SDK
|
|
67
|
+
version and moves a development-only declaration to runtime.
|
|
65
68
|
|
|
66
69
|
The native `/api/support/config` and authenticated `/api/support/session` routes
|
|
67
70
|
exist only when the session integration is enabled. The session action reads
|
|
@@ -71,7 +74,9 @@ fields explicitly with `config.services.supporthq.expose`. A custom tenant-aware
|
|
|
71
74
|
session action may pass the helper an authorized `resolveTenant` callback.
|
|
72
75
|
|
|
73
76
|
The stx component uses `mountNativeSupport` from the browser subpath and native
|
|
74
|
-
`authFetch`, so access-token refresh remains native.
|
|
77
|
+
`authFetch`, so access-token refresh remains native. It passes `readCsrfToken`
|
|
78
|
+
so the bridge uses the native double-submit cookie from the current page.
|
|
79
|
+
Navigation, page removal,
|
|
75
80
|
logout, sign-in and cross-tab auth changes clear the old messenger before any
|
|
76
81
|
new customer session is booted. Customer credentials remain element properties.
|
|
77
82
|
No framework upgrade enables this integration or sends customer data by itself.
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.700",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.700",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/desktop": "^0.2.
|
|
49
|
-
"@stacksjs/mobile": "0.75.
|
|
50
|
-
"@stacksjs/sanitizer": "^0.2.
|
|
51
|
-
"@stacksjs/stx": "^0.2.
|
|
52
|
-
"@stacksjs/strings": "0.75.
|
|
48
|
+
"@stacksjs/desktop": "^0.2.948",
|
|
49
|
+
"@stacksjs/mobile": "0.75.700",
|
|
50
|
+
"@stacksjs/sanitizer": "^0.2.948",
|
|
51
|
+
"@stacksjs/stx": "^0.2.948",
|
|
52
|
+
"@stacksjs/strings": "0.75.700",
|
|
53
53
|
"@xterm/addon-fit": "^0.11.0",
|
|
54
54
|
"@xterm/xterm": "^6.0.0",
|
|
55
55
|
"ts-qr-codes": "^0.1.8",
|
|
56
|
-
"@stacksjs/support": "0.75.
|
|
57
|
-
"@stacksjs/browser": "0.75.
|
|
56
|
+
"@stacksjs/support": "0.75.700",
|
|
57
|
+
"@stacksjs/browser": "0.75.700"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/project/bootstrap
CHANGED
|
@@ -98,6 +98,28 @@ is_stacks_app() {
|
|
|
98
98
|
&& grep -Eq '"stacks"[[:space:]]*:' package.json
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
ensure_buddy_available() {
|
|
102
|
+
for entry in \
|
|
103
|
+
storage/framework/core/buddy/src/cli.ts \
|
|
104
|
+
node_modules/@stacksjs/buddy/src/cli.ts \
|
|
105
|
+
node_modules/@stacksjs/buddy/dist/cli.js \
|
|
106
|
+
pantry/@stacksjs/buddy/src/cli.ts \
|
|
107
|
+
pantry/@stacksjs/buddy/dist/cli.js
|
|
108
|
+
do
|
|
109
|
+
if [ -f "$entry" ]; then
|
|
110
|
+
return
|
|
111
|
+
fi
|
|
112
|
+
done
|
|
113
|
+
|
|
114
|
+
pantry install --ignore-scripts
|
|
115
|
+
export PATH="$PROJECT_ROOT/pantry/.bin:$PATH"
|
|
116
|
+
if [ -f "bun.lock" ] || [ -f "bun.lockb" ]; then
|
|
117
|
+
bun install --frozen-lockfile
|
|
118
|
+
else
|
|
119
|
+
bun install
|
|
120
|
+
fi
|
|
121
|
+
}
|
|
122
|
+
|
|
101
123
|
# --- Main ---
|
|
102
124
|
|
|
103
125
|
# If we are outside a project, create one from the latest stable release.
|
|
@@ -156,6 +178,7 @@ fi
|
|
|
156
178
|
PROJECT_ROOT=$(pwd)
|
|
157
179
|
|
|
158
180
|
ensure_pantry
|
|
181
|
+
ensure_buddy_available
|
|
159
182
|
|
|
160
183
|
echo "Bootstrapping Stacks project..."
|
|
161
184
|
"${PROJECT_ROOT}/buddy" setup --skip-aws
|
|
@@ -155,6 +155,35 @@ onMount(() => {
|
|
|
155
155
|
border: 1px solid var(--overview-border);
|
|
156
156
|
border-radius: var(--dashboard-radius, 1rem);
|
|
157
157
|
}
|
|
158
|
+
@media (max-width: 639px) {
|
|
159
|
+
.overview-metrics {
|
|
160
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
161
|
+
}
|
|
162
|
+
.overview-metrics [data-dashboard-card] {
|
|
163
|
+
position: relative;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
overflow-wrap: anywhere;
|
|
166
|
+
}
|
|
167
|
+
.overview-metrics [data-dashboard-stat-title] {
|
|
168
|
+
min-height: 2.75em;
|
|
169
|
+
padding-inline-end: 1.65rem;
|
|
170
|
+
font-size: .75rem;
|
|
171
|
+
}
|
|
172
|
+
.overview-metrics [data-dashboard-stat-icon] {
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset-block-start: .625rem;
|
|
175
|
+
inset-inline-end: .625rem;
|
|
176
|
+
display: grid;
|
|
177
|
+
width: 1.5rem;
|
|
178
|
+
height: 1.5rem;
|
|
179
|
+
place-items: center;
|
|
180
|
+
padding: 0;
|
|
181
|
+
}
|
|
182
|
+
.overview-metrics [data-dashboard-stat-icon] > div {
|
|
183
|
+
width: .875rem;
|
|
184
|
+
height: .875rem;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
158
187
|
</style>
|
|
159
188
|
|
|
160
189
|
<div class="mx-auto px-4 py-6 sm:px-8 sm:py-8 max-w-6xl dashboard-overview" data-dashboard-overview-page>
|
|
@@ -35,7 +35,7 @@ const liveBadgeClass = derived(() => badgeClassToggles(liveVariant(), liveSize()
|
|
|
35
35
|
const liveDotClass = derived(() => badgeDotClassToggles(liveVariant()))
|
|
36
36
|
const showDot = derived(() => badgeShowsDot(liveDot()))
|
|
37
37
|
</script>
|
|
38
|
-
<span class="{{ badgeClass }}" :class="liveBadgeClass()">
|
|
38
|
+
<span data-dashboard-badge="{{ variant }}" :data-dashboard-badge="liveVariant()" class="{{ badgeClass }}" :class="liveBadgeClass()">
|
|
39
39
|
@if(dot)
|
|
40
40
|
<span class="{{ dotClass }}" :class="liveDotClass()" :if="showDot()"></span>
|
|
41
41
|
@endif
|
|
@@ -22,7 +22,7 @@ function statusClass(status: string): string {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<section data-dashboard-card="default" class="bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5">
|
|
25
|
-
<header class="flex items-center justify-between p-5 border-b border-neutral-200/60 dark:border-white/5">
|
|
25
|
+
<header class="flex flex-wrap gap-2 items-center justify-between p-5 border-b border-neutral-200/60 dark:border-white/5">
|
|
26
26
|
<div>
|
|
27
27
|
<h2 data-dashboard-ink class="font-semibold text-[14px] text-neutral-900 tracking-tight dark:text-white">System health</h2>
|
|
28
28
|
<p data-dashboard-muted class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">Native application health probes.</p>
|
|
@@ -45,7 +45,7 @@ function statusClass(status: string): string {
|
|
|
45
45
|
<p data-dashboard-ink class="font-medium text-[13px] text-neutral-900 dark:text-white">{{ service.name }}</p>
|
|
46
46
|
<p data-dashboard-muted class="mt-0.5 text-[12px] text-neutral-500 dark:text-neutral-400">{{ service.latency }}</p>
|
|
47
47
|
</div>
|
|
48
|
-
<span :class="'px-2 py-0.5 font-medium text-[11px] rounded-full capitalize ' + statusClass(service.status)">
|
|
48
|
+
<span :data-dashboard-health-status="service.status" :class="'px-2 py-0.5 font-medium text-[11px] rounded-full capitalize ' + statusClass(service.status)">
|
|
49
49
|
{{ service.status }}
|
|
50
50
|
</span>
|
|
51
51
|
</div>
|
|
@@ -42,14 +42,14 @@ const trendClass = derived(() => trendClasses[trendDirection()])
|
|
|
42
42
|
<div data-dashboard-card="default" class="p-3 sm:p-5 bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5 hover:shadow-black/5 hover:shadow-md dark:hover:shadow-black/20 duration-150 transition-all">
|
|
43
43
|
<div class="flex gap-2 items-start justify-between">
|
|
44
44
|
<div class="flex-1 min-w-0">
|
|
45
|
-
<p data-dashboard-muted class="font-medium leading-snug text-[13px] text-neutral-500 tracking-tight dark:text-neutral-400">
|
|
45
|
+
<p data-dashboard-stat-title data-dashboard-muted class="font-medium leading-snug text-[13px] text-neutral-500 tracking-tight dark:text-neutral-400">
|
|
46
46
|
{{ liveTitle() }}
|
|
47
47
|
</p>
|
|
48
48
|
|
|
49
49
|
<div class="flex gap-2 items-baseline mt-1.5">
|
|
50
50
|
<div :if="liveLoading()" class="h-7 w-20 bg-black/5 dark:bg-white/10 rounded-md animate-pulse"></div>
|
|
51
51
|
<div :else class="flex gap-2 items-baseline">
|
|
52
|
-
<p data-dashboard-ink class="font-semibold text-[22px] text-neutral-900 tracking-tight dark:text-white">
|
|
52
|
+
<p data-dashboard-ink class="font-semibold tabular-nums text-[22px] text-neutral-900 tracking-tight dark:text-white">
|
|
53
53
|
@if($slots.value)
|
|
54
54
|
<slot name="value" />
|
|
55
55
|
@else
|
|
@@ -80,7 +80,7 @@ const trendClass = derived(() => trendClasses[trendDirection()])
|
|
|
80
80
|
@endif
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<div :if="liveIcon()" :class="'p-1.5 sm:p-2.5 rounded-lg flex-shrink-0 ' + iconBackgroundClass()">
|
|
83
|
+
<div :if="liveIcon()" data-dashboard-stat-icon aria-hidden="true" :class="'p-1.5 sm:p-2.5 rounded-lg flex-shrink-0 ' + iconBackgroundClass()">
|
|
84
84
|
<div :class="liveIcon() + ' h-5 w-5'"></div>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
import { mountNativeSupport } from '@stacksjs/support/browser'
|
|
3
3
|
import type { NativeSupportMount } from '@stacksjs/support/browser'
|
|
4
4
|
import { useAuth } from '@stacksjs/browser'
|
|
5
|
+
import { readCsrfToken } from '@stacksjs/browser/composables/csrf'
|
|
5
6
|
|
|
6
7
|
const supportHost = useRef('supportHost')
|
|
7
8
|
let mountedSupport: NativeSupportMount | undefined
|
|
8
9
|
onMount(() => {
|
|
9
10
|
const auth = useAuth()
|
|
10
|
-
mountedSupport = mountNativeSupport(supportHost.current as HTMLElement, {
|
|
11
|
+
mountedSupport = mountNativeSupport(supportHost.current as HTMLElement, {
|
|
12
|
+
getToken: auth.getToken,
|
|
13
|
+
getCsrfToken: readCsrfToken,
|
|
14
|
+
fetch: auth.authFetch,
|
|
15
|
+
})
|
|
11
16
|
void mountedSupport.refresh()
|
|
12
17
|
})
|
|
13
18
|
onDestroy(() => mountedSupport?.shutdown())
|
|
@@ -100,6 +100,29 @@ html[data-dashboard-layout] [data-dashboard-button="secondary"]:hover {
|
|
|
100
100
|
background: var(--dashboard-surface-muted);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
html[data-dashboard-layout] [data-dashboard-field]:not(:disabled, .dashboard-settings *) {
|
|
104
|
+
color: var(--dashboard-text);
|
|
105
|
+
background-color: var(--dashboard-surface);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
html[data-dashboard-layout] [data-dashboard-field]:not(:disabled, [aria-invalid="true"], .dashboard-settings *) {
|
|
109
|
+
border-color: color-mix(in srgb, var(--dashboard-muted) 62%, var(--dashboard-border));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
html[data-dashboard-layout] [data-dashboard-field]:not(.dashboard-settings *)::placeholder {
|
|
113
|
+
color: var(--dashboard-muted);
|
|
114
|
+
opacity: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
html[data-dashboard-layout] [data-dashboard-field]:not(.dashboard-settings *):focus-visible {
|
|
118
|
+
outline: 2px solid var(--dashboard-accent);
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
html[data-dashboard-layout] [data-dashboard-field][aria-invalid="true"]:not(.dashboard-settings *):focus-visible {
|
|
123
|
+
outline-color: light-dark(#a9263a, #ff9ca9);
|
|
124
|
+
}
|
|
125
|
+
|
|
103
126
|
html[data-dashboard-layout] [data-dashboard-hero] {
|
|
104
127
|
align-items: center;
|
|
105
128
|
padding: clamp(1rem, 4vw, 2rem);
|
|
@@ -148,23 +171,30 @@ html[data-dashboard-layout] [data-sidebar-section-header] {
|
|
|
148
171
|
}
|
|
149
172
|
|
|
150
173
|
@media (min-width: 1024px) {
|
|
151
|
-
html[data-dashboard-layout="inset"]:has([data-dashboard-content]),
|
|
152
|
-
html[data-dashboard-layout="inset"]:has([data-dashboard-content]) body {
|
|
174
|
+
html[data-dashboard-layout="inset"]:has([data-dashboard-content]:not([data-dashboard-settings-content])),
|
|
175
|
+
html[data-dashboard-layout="inset"]:has([data-dashboard-content]:not([data-dashboard-settings-content])) body {
|
|
153
176
|
height: 100%;
|
|
154
177
|
overflow: hidden;
|
|
155
|
-
background: var(--dashboard-window);
|
|
178
|
+
background-color: var(--dashboard-window);
|
|
156
179
|
}
|
|
157
180
|
|
|
158
|
-
html[data-dashboard-layout="inset"] [data-stx-content][data-dashboard-content] {
|
|
181
|
+
html[data-dashboard-layout="inset"] [data-stx-content][data-dashboard-content]:not([data-dashboard-settings-content]) {
|
|
159
182
|
margin-block: 8px;
|
|
160
183
|
margin-right: 8px;
|
|
161
184
|
min-height: 0;
|
|
162
185
|
height: calc(100dvh - 16px);
|
|
163
|
-
overflow
|
|
186
|
+
overflow: hidden;
|
|
164
187
|
border-radius: var(--dashboard-radius);
|
|
165
188
|
box-shadow: 0 0 0 .5px var(--dashboard-border), 0 10px 40px rgb(0 0 0 / .14);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Put the scroll position inside the routed outlet so STX can associate it
|
|
192
|
+
with its history entry. Flush layouts still use the browser viewport. */
|
|
193
|
+
:is(html[data-dashboard-layout="inset"], html[data-appearance="arc"]:not([data-dashboard-layout])) [data-stx-scroll="dashboard"] {
|
|
194
|
+
height: 100%;
|
|
195
|
+
overflow-y: auto;
|
|
166
196
|
scrollbar-width: thin;
|
|
167
|
-
scrollbar-color: var(--dashboard-border) transparent;
|
|
197
|
+
scrollbar-color: var(--dashboard-scrollbar, var(--dashboard-border)) transparent;
|
|
168
198
|
}
|
|
169
199
|
}
|
|
170
200
|
|
|
@@ -232,7 +262,7 @@ html[data-dashboard-overview="immersive"]:has([data-dashboard-overview-page], [d
|
|
|
232
262
|
color: var(--dashboard-text);
|
|
233
263
|
}
|
|
234
264
|
|
|
235
|
-
html[data-dashboard-overview="immersive"] [data-dashboard-content]:has([data-dashboard-overview-page], [data-dashboard-section-page]),
|
|
265
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-content][data-stx-content]:has([data-dashboard-overview-page], [data-dashboard-section-page]),
|
|
236
266
|
html[data-dashboard-overview="immersive"] [data-dashboard-hero] {
|
|
237
267
|
box-shadow: none;
|
|
238
268
|
}
|
|
@@ -250,6 +280,26 @@ html[data-dashboard-overview="immersive"] [data-dashboard-overview-page] [data-d
|
|
|
250
280
|
border-radius: 999px;
|
|
251
281
|
}
|
|
252
282
|
|
|
283
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-metrics] [data-dashboard-stat-icon] {
|
|
284
|
+
color: var(--dashboard-text);
|
|
285
|
+
background-color: var(--dashboard-surface-muted);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-overview-page] :is([data-dashboard-badge="success"], [data-dashboard-health-status="healthy"]) {
|
|
289
|
+
background-color: #153e36;
|
|
290
|
+
color: #b9f5d2;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-overview-page] :is([data-dashboard-badge="warning"], [data-dashboard-health-status="degraded"]) {
|
|
294
|
+
background-color: #4a341a;
|
|
295
|
+
color: #ffe2ac;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-overview-page] [data-dashboard-health-status="critical"] {
|
|
299
|
+
background-color: #502838;
|
|
300
|
+
color: #ffd1db;
|
|
301
|
+
}
|
|
302
|
+
|
|
253
303
|
/* The Original follows the dashboard's explicit appearance choice, including
|
|
254
304
|
native fields and the macOS sidebar chrome that normally follows the OS. */
|
|
255
305
|
html[data-dashboard-theme="original"] {
|
|
@@ -403,16 +453,16 @@ html[data-dashboard-theme="system-cleaner"] [data-section-id="settings"] { --das
|
|
|
403
453
|
}
|
|
404
454
|
|
|
405
455
|
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] [data-dashboard-navigation-card] {
|
|
406
|
-
min-height:
|
|
407
|
-
padding-
|
|
456
|
+
min-height: 104px;
|
|
457
|
+
padding-inline-end: 84px;
|
|
408
458
|
}
|
|
409
459
|
|
|
410
460
|
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] .dashboard-section-icon {
|
|
411
461
|
position: absolute;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
width:
|
|
415
|
-
height:
|
|
462
|
+
inset-block-start: 12px;
|
|
463
|
+
inset-inline-end: 14px;
|
|
464
|
+
width: 57px;
|
|
465
|
+
height: 57px;
|
|
416
466
|
border-radius: 50%;
|
|
417
467
|
background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .72), transparent 32%),
|
|
418
468
|
linear-gradient(160deg, color-mix(in srgb, var(--dashboard-tile, var(--dashboard-accent-fill)) 67%, white), var(--dashboard-tile, var(--dashboard-accent-fill)));
|
|
@@ -425,16 +475,46 @@ html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] .da
|
|
|
425
475
|
|
|
426
476
|
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] [data-dashboard-navigation-card] > [data-dashboard-muted] {
|
|
427
477
|
position: absolute;
|
|
428
|
-
|
|
429
|
-
|
|
478
|
+
inset-inline-end: 14px;
|
|
479
|
+
inset-block-end: 10px;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@media (max-width: 639px) {
|
|
483
|
+
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] [data-dashboard-navigation-cards] {
|
|
484
|
+
gap: .5rem;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] [data-dashboard-navigation-card] {
|
|
488
|
+
min-height: 68px;
|
|
489
|
+
padding: .65rem .75rem;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] .dashboard-section-icon {
|
|
493
|
+
position: static;
|
|
494
|
+
flex-basis: 38px;
|
|
495
|
+
width: 38px;
|
|
496
|
+
height: 38px;
|
|
497
|
+
border-radius: 10px;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] .dashboard-section-icon > span {
|
|
501
|
+
width: 19px;
|
|
502
|
+
height: 19px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
html[data-dashboard-navigation="sections"] [data-dashboard-section-overview] [data-dashboard-navigation-card] > [data-dashboard-muted] {
|
|
506
|
+
position: static;
|
|
507
|
+
}
|
|
430
508
|
}
|
|
431
509
|
|
|
432
510
|
/* The colored window follows the section on landing pages. The dashboard
|
|
433
511
|
home and the detail pages continue to use their own surfaces. */
|
|
434
512
|
html[data-dashboard-theme="system-cleaner"]:has([data-dashboard-section-page]) {
|
|
513
|
+
--dashboard-section-base: light-dark(#101721, #0b1019);
|
|
514
|
+
--dashboard-section-wash: light-dark(var(--dashboard-section-color, #6a2fb8), color-mix(in srgb, var(--dashboard-section-color, #6a2fb8) 72%, #121522));
|
|
435
515
|
--dashboard-overview-gradient:
|
|
436
|
-
radial-gradient(84% 74% at 16% -12%, color-mix(in srgb, var(--dashboard-section-
|
|
437
|
-
linear-gradient(145deg, var(--dashboard-section-
|
|
516
|
+
radial-gradient(84% 74% at 16% -12%, color-mix(in srgb, var(--dashboard-section-wash) 94%, white), transparent 84%),
|
|
517
|
+
linear-gradient(145deg, var(--dashboard-section-wash), color-mix(in srgb, var(--dashboard-section-wash) 56%, var(--dashboard-section-base)) 53%, var(--dashboard-section-base));
|
|
438
518
|
}
|
|
439
519
|
|
|
440
520
|
html[data-dashboard-theme="system-cleaner"]:has([data-dashboard-section-page][data-section-id="library"]) { --dashboard-section-color: #235597; }
|
|
@@ -282,12 +282,9 @@ html[data-appearance="arc"]:where(:not([data-dashboard-layout])) [data-stx-conte
|
|
|
282
282
|
page. This is also what Arc does: the sidebar is stationary and the card
|
|
283
283
|
scrolls inside its frame. */
|
|
284
284
|
height: calc(100vh - (2 * var(--dash-arc-gap)));
|
|
285
|
-
overflow
|
|
285
|
+
overflow: hidden;
|
|
286
286
|
border-radius: var(--dash-arc-radius);
|
|
287
287
|
background: #fff;
|
|
288
|
-
/* Clip page content to the rounded corners - full-bleed headers and tables
|
|
289
|
-
otherwise square them off at the top. */
|
|
290
|
-
overflow-x: hidden;
|
|
291
288
|
box-shadow:
|
|
292
289
|
0 0 0 0.5px rgba(0, 0, 0, 0.07),
|
|
293
290
|
0 1px 2px rgba(0, 0, 0, 0.05),
|
|
@@ -301,29 +298,10 @@ html[data-appearance="arc"]:where(:not([data-dashboard-layout])).dark [data-stx-
|
|
|
301
298
|
0 8px 24px rgba(0, 0, 0, 0.5);
|
|
302
299
|
}
|
|
303
300
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
|
|
309
|
-
}
|
|
310
|
-
html[data-appearance="arc"]:where(:not([data-dashboard-layout])) [data-stx-content]::-webkit-scrollbar {
|
|
311
|
-
width: 8px;
|
|
312
|
-
}
|
|
313
|
-
html[data-appearance="arc"]:where(:not([data-dashboard-layout])) [data-stx-content]::-webkit-scrollbar-thumb {
|
|
314
|
-
border: 2px solid transparent;
|
|
315
|
-
border-radius: 8px;
|
|
316
|
-
background-clip: content-box;
|
|
317
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
318
|
-
}
|
|
319
|
-
html[data-appearance="arc"]:where(:not([data-dashboard-layout])) [data-stx-content]::-webkit-scrollbar-track {
|
|
320
|
-
background: transparent;
|
|
321
|
-
}
|
|
322
|
-
html[data-appearance="arc"]:where(:not([data-dashboard-layout])).dark [data-stx-content] {
|
|
323
|
-
scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
|
|
324
|
-
}
|
|
325
|
-
html[data-appearance="arc"]:where(:not([data-dashboard-layout])).dark [data-stx-content]::-webkit-scrollbar-thumb {
|
|
326
|
-
background-color: rgba(255, 255, 255, 0.25);
|
|
301
|
+
@media (min-width: 1024px) {
|
|
302
|
+
html[data-appearance="arc"]:where(:not([data-dashboard-layout])) [data-stx-scroll="dashboard"] {
|
|
303
|
+
--dashboard-scrollbar: light-dark(rgb(0 0 0 / .2), rgb(255 255 255 / .25));
|
|
304
|
+
}
|
|
327
305
|
}
|
|
328
306
|
|
|
329
307
|
/* On narrow viewports the sidebar is hidden entirely, so the card would float
|
|
@@ -814,7 +792,9 @@ onDestroy(() => {
|
|
|
814
792
|
</MobileSidebar>
|
|
815
793
|
|
|
816
794
|
<main data-stx-content data-dashboard-content>
|
|
817
|
-
|
|
795
|
+
<div data-stx-scroll="dashboard">
|
|
796
|
+
@slot('content')
|
|
797
|
+
</div>
|
|
818
798
|
</main>
|
|
819
799
|
|
|
820
800
|
<GlobalSearch />
|