@burdenoff/microfe-bigconsole 2026.624.2 → 2026.626.1
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/dist/bigconsole/BigConsoleRoutes.js +175 -118
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantApi.js +215 -0
- package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
- package/dist/bigconsole/assistant/index.js +2 -0
- package/dist/bigconsole/assistant/pageContext.js +51 -0
- package/dist/bigconsole/assistant/pageContext.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
- package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
- package/dist/bigconsole/index.js +3 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +266 -310
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +148 -194
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +173 -219
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +125 -141
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +159 -184
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +220 -201
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +107 -150
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +184 -171
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +87 -36
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { memo as e, useCallback as t, useEffect as n, useState as r } from "react";
|
|
2
2
|
import { RotateCcw as i, Save as a, Settings as o } from "lucide-react";
|
|
3
|
-
import {
|
|
3
|
+
import { AuroraBackground as s, EmphasisPanel as c, GradientText as l, PagePurpose as u } from "@burdenoff/fe-libs/ui";
|
|
4
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
5
|
//#region src/bigconsole/pages/SettingsPage.tsx
|
|
5
|
-
var
|
|
6
|
+
var p = "bigconsole-settings", m = {
|
|
6
7
|
defaultRefreshInterval: 0,
|
|
7
8
|
defaultGridColumns: 12,
|
|
8
9
|
defaultWidgetHeight: 4,
|
|
@@ -12,37 +13,37 @@ var l = "bigconsole-settings", u = {
|
|
|
12
13
|
compactMode: !1,
|
|
13
14
|
animationsEnabled: !0
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
+
function h() {
|
|
16
17
|
try {
|
|
17
|
-
let e = localStorage.getItem(
|
|
18
|
+
let e = localStorage.getItem(p);
|
|
18
19
|
if (e) return {
|
|
19
|
-
...
|
|
20
|
+
...m,
|
|
20
21
|
...JSON.parse(e)
|
|
21
22
|
};
|
|
22
23
|
} catch {}
|
|
23
|
-
return { ...
|
|
24
|
+
return { ...m };
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
localStorage.setItem(
|
|
26
|
+
function g(e) {
|
|
27
|
+
localStorage.setItem(p, JSON.stringify(e));
|
|
27
28
|
}
|
|
28
|
-
var
|
|
29
|
-
let [e,
|
|
29
|
+
var _ = e(function() {
|
|
30
|
+
let [e, p] = r(h), [_, v] = r(!1);
|
|
30
31
|
n(() => {
|
|
31
|
-
if (
|
|
32
|
-
let e = setTimeout(() =>
|
|
32
|
+
if (_) {
|
|
33
|
+
let e = setTimeout(() => v(!1), 2e3);
|
|
33
34
|
return () => clearTimeout(e);
|
|
34
35
|
}
|
|
35
|
-
}, [
|
|
36
|
-
let
|
|
37
|
-
|
|
36
|
+
}, [_]);
|
|
37
|
+
let y = t((e, t) => {
|
|
38
|
+
p((n) => ({
|
|
38
39
|
...n,
|
|
39
40
|
[e]: t
|
|
40
41
|
}));
|
|
41
|
-
}, []),
|
|
42
|
-
|
|
43
|
-
}, [e]),
|
|
44
|
-
|
|
45
|
-
}, []),
|
|
42
|
+
}, []), b = t(() => {
|
|
43
|
+
g(e), v(!0);
|
|
44
|
+
}, [e]), x = t(() => {
|
|
45
|
+
p({ ...m }), g(m), v(!0);
|
|
46
|
+
}, []), S = {
|
|
46
47
|
width: "100%",
|
|
47
48
|
padding: "8px 12px",
|
|
48
49
|
borderRadius: "var(--radius-button)",
|
|
@@ -51,113 +52,125 @@ var p = e(function() {
|
|
|
51
52
|
color: "var(--color-text-primary)",
|
|
52
53
|
fontSize: "var(--font-size-body-sm)",
|
|
53
54
|
outline: "none"
|
|
54
|
-
},
|
|
55
|
+
}, C = {
|
|
55
56
|
display: "block",
|
|
56
57
|
fontSize: "var(--font-size-body-sm)",
|
|
57
58
|
fontWeight: "var(--font-weight-medium)",
|
|
58
59
|
color: "var(--color-text-primary)",
|
|
59
60
|
marginBottom: 4
|
|
60
|
-
},
|
|
61
|
+
}, w = {
|
|
61
62
|
fontSize: 11,
|
|
62
63
|
color: "var(--color-text-muted)",
|
|
63
64
|
marginTop: 4
|
|
64
|
-
},
|
|
65
|
+
}, T = {
|
|
65
66
|
backgroundColor: "var(--color-bg-surface)",
|
|
66
|
-
border: "1px solid var(--color-border)",
|
|
67
|
+
border: "1px solid var(--color-border-seam)",
|
|
67
68
|
borderRadius: "var(--radius-card)",
|
|
68
69
|
padding: "var(--space-cardPadding)",
|
|
69
|
-
marginBottom: "var(--space-sectionGap)"
|
|
70
|
+
marginBottom: "var(--space-sectionGap)",
|
|
71
|
+
boxShadow: "var(--shadow-pop)"
|
|
70
72
|
};
|
|
71
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ d("div", {
|
|
72
74
|
style: {
|
|
73
75
|
minHeight: "100vh",
|
|
74
76
|
backgroundColor: "var(--color-bg-canvas)"
|
|
75
77
|
},
|
|
76
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ f("div", {
|
|
77
79
|
style: {
|
|
78
80
|
padding: "var(--space-pagePadding)",
|
|
79
81
|
maxWidth: 720,
|
|
80
82
|
margin: "0 auto"
|
|
81
83
|
},
|
|
82
84
|
children: [
|
|
83
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ f("div", {
|
|
86
|
+
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card p-6",
|
|
84
87
|
style: {
|
|
85
88
|
display: "flex",
|
|
86
89
|
justifyContent: "space-between",
|
|
87
90
|
alignItems: "center",
|
|
88
|
-
marginBottom: "var(--space-sectionGap)"
|
|
91
|
+
marginBottom: "var(--space-sectionGap)",
|
|
92
|
+
flexWrap: "wrap",
|
|
93
|
+
gap: "var(--space-formGap)"
|
|
89
94
|
},
|
|
90
|
-
children: [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
alignItems: "center",
|
|
94
|
-
gap: "var(--space-iconGap)"
|
|
95
|
-
},
|
|
96
|
-
children: [/* @__PURE__ */ s(o, {
|
|
97
|
-
size: 24,
|
|
98
|
-
style: { color: "var(--color-text-primary)" }
|
|
99
|
-
}), /* @__PURE__ */ s("h1", {
|
|
100
|
-
style: {
|
|
101
|
-
fontSize: "var(--font-size-heading-h4)",
|
|
102
|
-
fontWeight: "var(--font-weight-bold)",
|
|
103
|
-
color: "var(--color-text-primary)"
|
|
104
|
-
},
|
|
105
|
-
children: "Settings"
|
|
106
|
-
})]
|
|
107
|
-
}), /* @__PURE__ */ s("p", {
|
|
108
|
-
style: {
|
|
109
|
-
fontSize: "var(--font-size-body-md)",
|
|
110
|
-
color: "var(--color-text-secondary)",
|
|
111
|
-
marginTop: 4
|
|
112
|
-
},
|
|
113
|
-
children: "Configure BigConsole preferences"
|
|
114
|
-
})] }), /* @__PURE__ */ c("div", {
|
|
115
|
-
style: {
|
|
116
|
-
display: "flex",
|
|
117
|
-
gap: 8
|
|
118
|
-
},
|
|
119
|
-
children: [/* @__PURE__ */ c("button", {
|
|
120
|
-
onClick: _,
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ d(s, { intensity: "subtle" }),
|
|
97
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("div", {
|
|
121
98
|
style: {
|
|
122
99
|
display: "flex",
|
|
123
100
|
alignItems: "center",
|
|
124
|
-
gap:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
101
|
+
gap: "var(--space-iconGap)"
|
|
102
|
+
},
|
|
103
|
+
children: [/* @__PURE__ */ d(o, {
|
|
104
|
+
size: 24,
|
|
105
|
+
style: { color: "var(--color-text-primary)" }
|
|
106
|
+
}), /* @__PURE__ */ d("h1", {
|
|
107
|
+
style: {
|
|
108
|
+
fontSize: "var(--font-size-heading-h4)",
|
|
109
|
+
fontWeight: "var(--font-weight-bold)",
|
|
110
|
+
color: "var(--color-text-primary)"
|
|
111
|
+
},
|
|
112
|
+
children: /* @__PURE__ */ d(l, { children: "Settings" })
|
|
113
|
+
})]
|
|
114
|
+
}), /* @__PURE__ */ d("p", {
|
|
115
|
+
style: {
|
|
116
|
+
fontSize: "var(--font-size-body-md)",
|
|
129
117
|
color: "var(--color-text-secondary)",
|
|
130
|
-
|
|
131
|
-
cursor: "pointer"
|
|
118
|
+
marginTop: 4
|
|
132
119
|
},
|
|
133
|
-
children:
|
|
134
|
-
})
|
|
135
|
-
|
|
120
|
+
children: "Configure BigConsole preferences"
|
|
121
|
+
})] }),
|
|
122
|
+
/* @__PURE__ */ f("div", {
|
|
136
123
|
style: {
|
|
137
124
|
display: "flex",
|
|
138
|
-
|
|
139
|
-
gap: 6,
|
|
140
|
-
padding: "8px 16px",
|
|
141
|
-
borderRadius: "var(--radius-button)",
|
|
142
|
-
backgroundColor: p ? "#22c55e" : "var(--color-action-primary-bg)",
|
|
143
|
-
color: "var(--color-action-primary-text)",
|
|
144
|
-
fontWeight: "var(--font-weight-medium)",
|
|
145
|
-
fontSize: "var(--font-size-body-sm)",
|
|
146
|
-
border: "none",
|
|
147
|
-
cursor: "pointer",
|
|
148
|
-
transition: "background-color 200ms"
|
|
125
|
+
gap: 8
|
|
149
126
|
},
|
|
150
|
-
children: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
127
|
+
children: [/* @__PURE__ */ f("button", {
|
|
128
|
+
onClick: x,
|
|
129
|
+
style: {
|
|
130
|
+
display: "flex",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
gap: 6,
|
|
133
|
+
padding: "8px 12px",
|
|
134
|
+
borderRadius: "var(--radius-button)",
|
|
135
|
+
border: "1px solid var(--color-border)",
|
|
136
|
+
backgroundColor: "transparent",
|
|
137
|
+
color: "var(--color-text-secondary)",
|
|
138
|
+
fontSize: "var(--font-size-body-sm)",
|
|
139
|
+
cursor: "pointer"
|
|
140
|
+
},
|
|
141
|
+
children: [/* @__PURE__ */ d(i, { size: 14 }), " Reset"]
|
|
142
|
+
}), /* @__PURE__ */ f("button", {
|
|
143
|
+
onClick: b,
|
|
144
|
+
style: {
|
|
145
|
+
display: "flex",
|
|
146
|
+
alignItems: "center",
|
|
147
|
+
gap: 6,
|
|
148
|
+
padding: "8px 16px",
|
|
149
|
+
borderRadius: "var(--radius-button)",
|
|
150
|
+
backgroundColor: _ ? "var(--color-status-success-bg)" : "var(--color-action-primary-bg)",
|
|
151
|
+
color: "var(--color-action-primary-text)",
|
|
152
|
+
fontWeight: "var(--font-weight-medium)",
|
|
153
|
+
fontSize: "var(--font-size-body-sm)",
|
|
154
|
+
border: "none",
|
|
155
|
+
cursor: "pointer",
|
|
156
|
+
transition: "background-color 200ms"
|
|
157
|
+
},
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ d(a, { size: 14 }),
|
|
160
|
+
" ",
|
|
161
|
+
_ ? "Saved" : "Save"
|
|
162
|
+
]
|
|
163
|
+
})]
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ d(u, {
|
|
168
|
+
className: "mb-[var(--space-sectionGap)]",
|
|
169
|
+
children: "Settings control the defaults BigConsole applies everywhere — how new dashboards are laid out, how aggressively widget data is cached, and how the UI is displayed. Tune these once to match how your team works; they apply across every dashboard you build."
|
|
157
170
|
}),
|
|
158
|
-
/* @__PURE__ */ c
|
|
159
|
-
|
|
160
|
-
children: [/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ f(c, {
|
|
172
|
+
className: "mb-[var(--space-sectionGap)] p-[var(--space-cardPadding)]",
|
|
173
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
161
174
|
style: {
|
|
162
175
|
fontSize: "var(--font-size-body-md)",
|
|
163
176
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -165,101 +178,101 @@ var p = e(function() {
|
|
|
165
178
|
marginBottom: 16
|
|
166
179
|
},
|
|
167
180
|
children: "Dashboard Defaults"
|
|
168
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ f("div", {
|
|
169
182
|
style: {
|
|
170
183
|
display: "grid",
|
|
171
184
|
gap: 16
|
|
172
185
|
},
|
|
173
186
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ f("div", { children: [
|
|
188
|
+
/* @__PURE__ */ d("label", {
|
|
176
189
|
htmlFor: "grid-cols",
|
|
177
|
-
style:
|
|
190
|
+
style: C,
|
|
178
191
|
children: "Grid Columns"
|
|
179
192
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ d("input", {
|
|
181
194
|
id: "grid-cols",
|
|
182
195
|
type: "number",
|
|
183
196
|
min: 4,
|
|
184
197
|
max: 24,
|
|
185
198
|
value: e.defaultGridColumns,
|
|
186
|
-
onChange: (e) =>
|
|
187
|
-
style:
|
|
199
|
+
onChange: (e) => y("defaultGridColumns", parseInt(e.target.value) || 12),
|
|
200
|
+
style: S
|
|
188
201
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
style:
|
|
202
|
+
/* @__PURE__ */ d("p", {
|
|
203
|
+
style: w,
|
|
191
204
|
children: "Number of columns in the dashboard grid (4-24)"
|
|
192
205
|
})
|
|
193
206
|
] }),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ f("div", { children: [
|
|
208
|
+
/* @__PURE__ */ d("label", {
|
|
196
209
|
htmlFor: "widget-height",
|
|
197
|
-
style:
|
|
210
|
+
style: C,
|
|
198
211
|
children: "Default Widget Height"
|
|
199
212
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ d("input", {
|
|
201
214
|
id: "widget-height",
|
|
202
215
|
type: "number",
|
|
203
216
|
min: 2,
|
|
204
217
|
max: 12,
|
|
205
218
|
value: e.defaultWidgetHeight,
|
|
206
|
-
onChange: (e) =>
|
|
207
|
-
style:
|
|
219
|
+
onChange: (e) => y("defaultWidgetHeight", parseInt(e.target.value) || 4),
|
|
220
|
+
style: S
|
|
208
221
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
style:
|
|
222
|
+
/* @__PURE__ */ d("p", {
|
|
223
|
+
style: w,
|
|
211
224
|
children: "Default height units for new widgets (2-12)"
|
|
212
225
|
})
|
|
213
226
|
] }),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ f("div", { children: [
|
|
228
|
+
/* @__PURE__ */ d("label", {
|
|
216
229
|
htmlFor: "refresh-interval",
|
|
217
|
-
style:
|
|
230
|
+
style: C,
|
|
218
231
|
children: "Auto-Refresh Interval (seconds)"
|
|
219
232
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ f("select", {
|
|
221
234
|
id: "refresh-interval",
|
|
222
235
|
value: e.defaultRefreshInterval,
|
|
223
|
-
onChange: (e) =>
|
|
224
|
-
style:
|
|
236
|
+
onChange: (e) => y("defaultRefreshInterval", parseInt(e.target.value)),
|
|
237
|
+
style: S,
|
|
225
238
|
children: [
|
|
226
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ d("option", {
|
|
227
240
|
value: 0,
|
|
228
241
|
children: "Disabled"
|
|
229
242
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ d("option", {
|
|
231
244
|
value: 10,
|
|
232
245
|
children: "10 seconds"
|
|
233
246
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ d("option", {
|
|
235
248
|
value: 30,
|
|
236
249
|
children: "30 seconds"
|
|
237
250
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ d("option", {
|
|
239
252
|
value: 60,
|
|
240
253
|
children: "1 minute"
|
|
241
254
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ d("option", {
|
|
243
256
|
value: 300,
|
|
244
257
|
children: "5 minutes"
|
|
245
258
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ d("option", {
|
|
247
260
|
value: 600,
|
|
248
261
|
children: "10 minutes"
|
|
249
262
|
})
|
|
250
263
|
]
|
|
251
264
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
style:
|
|
265
|
+
/* @__PURE__ */ d("p", {
|
|
266
|
+
style: w,
|
|
254
267
|
children: "How often widgets refresh their data automatically"
|
|
255
268
|
})
|
|
256
269
|
] })
|
|
257
270
|
]
|
|
258
271
|
})]
|
|
259
272
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
style:
|
|
262
|
-
children: [/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ f("div", {
|
|
274
|
+
style: T,
|
|
275
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
263
276
|
style: {
|
|
264
277
|
fontSize: "var(--font-size-body-md)",
|
|
265
278
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -267,25 +280,25 @@ var p = e(function() {
|
|
|
267
280
|
marginBottom: 16
|
|
268
281
|
},
|
|
269
282
|
children: "Cache"
|
|
270
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ f("div", {
|
|
271
284
|
style: {
|
|
272
285
|
display: "grid",
|
|
273
286
|
gap: 16
|
|
274
287
|
},
|
|
275
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ f("div", {
|
|
276
289
|
style: {
|
|
277
290
|
display: "flex",
|
|
278
291
|
alignItems: "center",
|
|
279
292
|
justifyContent: "space-between"
|
|
280
293
|
},
|
|
281
|
-
children: [/* @__PURE__ */
|
|
282
|
-
style:
|
|
294
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
295
|
+
style: C,
|
|
283
296
|
children: "Enable Cache"
|
|
284
|
-
}), /* @__PURE__ */
|
|
285
|
-
style:
|
|
297
|
+
}), /* @__PURE__ */ d("p", {
|
|
298
|
+
style: w,
|
|
286
299
|
children: "Cache widget data to reduce API calls"
|
|
287
|
-
})] }), /* @__PURE__ */
|
|
288
|
-
onClick: () =>
|
|
300
|
+
})] }), /* @__PURE__ */ d("button", {
|
|
301
|
+
onClick: () => y("cacheEnabled", !e.cacheEnabled),
|
|
289
302
|
role: "switch",
|
|
290
303
|
"aria-checked": e.cacheEnabled,
|
|
291
304
|
"aria-label": "Enable cache",
|
|
@@ -299,7 +312,7 @@ var p = e(function() {
|
|
|
299
312
|
position: "relative",
|
|
300
313
|
transition: "background-color 200ms"
|
|
301
314
|
},
|
|
302
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ d("div", { style: {
|
|
303
316
|
width: 18,
|
|
304
317
|
height: 18,
|
|
305
318
|
borderRadius: "50%",
|
|
@@ -310,31 +323,31 @@ var p = e(function() {
|
|
|
310
323
|
transition: "left 200ms"
|
|
311
324
|
} })
|
|
312
325
|
})]
|
|
313
|
-
}), e.cacheEnabled && /* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
326
|
+
}), e.cacheEnabled && /* @__PURE__ */ f("div", { children: [
|
|
327
|
+
/* @__PURE__ */ d("label", {
|
|
315
328
|
htmlFor: "cache-ttl",
|
|
316
|
-
style:
|
|
329
|
+
style: C,
|
|
317
330
|
children: "Cache TTL (seconds)"
|
|
318
331
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ d("input", {
|
|
320
333
|
id: "cache-ttl",
|
|
321
334
|
type: "number",
|
|
322
335
|
min: 30,
|
|
323
336
|
max: 3600,
|
|
324
337
|
value: e.cacheTTLSeconds,
|
|
325
|
-
onChange: (e) =>
|
|
326
|
-
style:
|
|
338
|
+
onChange: (e) => y("cacheTTLSeconds", parseInt(e.target.value) || 300),
|
|
339
|
+
style: S
|
|
327
340
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
style:
|
|
341
|
+
/* @__PURE__ */ d("p", {
|
|
342
|
+
style: w,
|
|
330
343
|
children: "How long cached data is considered fresh (30-3600)"
|
|
331
344
|
})
|
|
332
345
|
] })]
|
|
333
346
|
})]
|
|
334
347
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
style:
|
|
337
|
-
children: [/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ f("div", {
|
|
349
|
+
style: T,
|
|
350
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
338
351
|
style: {
|
|
339
352
|
fontSize: "var(--font-size-body-md)",
|
|
340
353
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -342,26 +355,26 @@ var p = e(function() {
|
|
|
342
355
|
marginBottom: 16
|
|
343
356
|
},
|
|
344
357
|
children: "Display"
|
|
345
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ f("div", {
|
|
346
359
|
style: {
|
|
347
360
|
display: "grid",
|
|
348
361
|
gap: 16
|
|
349
362
|
},
|
|
350
363
|
children: [
|
|
351
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ f("div", {
|
|
352
365
|
style: {
|
|
353
366
|
display: "flex",
|
|
354
367
|
alignItems: "center",
|
|
355
368
|
justifyContent: "space-between"
|
|
356
369
|
},
|
|
357
|
-
children: [/* @__PURE__ */
|
|
358
|
-
style:
|
|
370
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
371
|
+
style: C,
|
|
359
372
|
children: "Show Widget Borders"
|
|
360
|
-
}), /* @__PURE__ */
|
|
361
|
-
style:
|
|
373
|
+
}), /* @__PURE__ */ d("p", {
|
|
374
|
+
style: w,
|
|
362
375
|
children: "Display borders around widgets in dashboards"
|
|
363
|
-
})] }), /* @__PURE__ */
|
|
364
|
-
onClick: () =>
|
|
376
|
+
})] }), /* @__PURE__ */ d("button", {
|
|
377
|
+
onClick: () => y("showWidgetBorders", !e.showWidgetBorders),
|
|
365
378
|
role: "switch",
|
|
366
379
|
"aria-checked": e.showWidgetBorders,
|
|
367
380
|
"aria-label": "Show widget borders",
|
|
@@ -375,7 +388,7 @@ var p = e(function() {
|
|
|
375
388
|
position: "relative",
|
|
376
389
|
transition: "background-color 200ms"
|
|
377
390
|
},
|
|
378
|
-
children: /* @__PURE__ */
|
|
391
|
+
children: /* @__PURE__ */ d("div", { style: {
|
|
379
392
|
width: 18,
|
|
380
393
|
height: 18,
|
|
381
394
|
borderRadius: "50%",
|
|
@@ -387,20 +400,20 @@ var p = e(function() {
|
|
|
387
400
|
} })
|
|
388
401
|
})]
|
|
389
402
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ f("div", {
|
|
391
404
|
style: {
|
|
392
405
|
display: "flex",
|
|
393
406
|
alignItems: "center",
|
|
394
407
|
justifyContent: "space-between"
|
|
395
408
|
},
|
|
396
|
-
children: [/* @__PURE__ */
|
|
397
|
-
style:
|
|
409
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
410
|
+
style: C,
|
|
398
411
|
children: "Compact Mode"
|
|
399
|
-
}), /* @__PURE__ */
|
|
400
|
-
style:
|
|
412
|
+
}), /* @__PURE__ */ d("p", {
|
|
413
|
+
style: w,
|
|
401
414
|
children: "Reduce padding and spacing for more content"
|
|
402
|
-
})] }), /* @__PURE__ */
|
|
403
|
-
onClick: () =>
|
|
415
|
+
})] }), /* @__PURE__ */ d("button", {
|
|
416
|
+
onClick: () => y("compactMode", !e.compactMode),
|
|
404
417
|
role: "switch",
|
|
405
418
|
"aria-checked": e.compactMode,
|
|
406
419
|
"aria-label": "Compact mode",
|
|
@@ -414,7 +427,7 @@ var p = e(function() {
|
|
|
414
427
|
position: "relative",
|
|
415
428
|
transition: "background-color 200ms"
|
|
416
429
|
},
|
|
417
|
-
children: /* @__PURE__ */
|
|
430
|
+
children: /* @__PURE__ */ d("div", { style: {
|
|
418
431
|
width: 18,
|
|
419
432
|
height: 18,
|
|
420
433
|
borderRadius: "50%",
|
|
@@ -426,20 +439,20 @@ var p = e(function() {
|
|
|
426
439
|
} })
|
|
427
440
|
})]
|
|
428
441
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ f("div", {
|
|
430
443
|
style: {
|
|
431
444
|
display: "flex",
|
|
432
445
|
alignItems: "center",
|
|
433
446
|
justifyContent: "space-between"
|
|
434
447
|
},
|
|
435
|
-
children: [/* @__PURE__ */
|
|
436
|
-
style:
|
|
448
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
449
|
+
style: C,
|
|
437
450
|
children: "Animations"
|
|
438
|
-
}), /* @__PURE__ */
|
|
439
|
-
style:
|
|
451
|
+
}), /* @__PURE__ */ d("p", {
|
|
452
|
+
style: w,
|
|
440
453
|
children: "Enable transition animations and effects"
|
|
441
|
-
})] }), /* @__PURE__ */
|
|
442
|
-
onClick: () =>
|
|
454
|
+
})] }), /* @__PURE__ */ d("button", {
|
|
455
|
+
onClick: () => y("animationsEnabled", !e.animationsEnabled),
|
|
443
456
|
role: "switch",
|
|
444
457
|
"aria-checked": e.animationsEnabled,
|
|
445
458
|
"aria-label": "Animations",
|
|
@@ -453,7 +466,7 @@ var p = e(function() {
|
|
|
453
466
|
position: "relative",
|
|
454
467
|
transition: "background-color 200ms"
|
|
455
468
|
},
|
|
456
|
-
children: /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ d("div", { style: {
|
|
457
470
|
width: 18,
|
|
458
471
|
height: 18,
|
|
459
472
|
borderRadius: "50%",
|
|
@@ -473,6 +486,6 @@ var p = e(function() {
|
|
|
473
486
|
});
|
|
474
487
|
});
|
|
475
488
|
//#endregion
|
|
476
|
-
export {
|
|
489
|
+
export { _ as SettingsPage, _ as default };
|
|
477
490
|
|
|
478
491
|
//# sourceMappingURL=SettingsPage.js.map
|