@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
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/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,9 +1,10 @@
|
|
|
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 {
|
|
4
|
-
import {
|
|
3
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
import { AuroraBackground as c, EmphasisPanel as l, GradientText as u, PagePurpose as d } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
6
|
//#region src/bigconsole/pages/SettingsPage.tsx
|
|
6
|
-
var
|
|
7
|
+
var m = "bigconsole-settings", h = {
|
|
7
8
|
defaultRefreshInterval: 0,
|
|
8
9
|
defaultGridColumns: 12,
|
|
9
10
|
defaultWidgetHeight: 4,
|
|
@@ -13,37 +14,37 @@ var p = "bigconsole-settings", m = {
|
|
|
13
14
|
compactMode: !1,
|
|
14
15
|
animationsEnabled: !0
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
+
function g() {
|
|
17
18
|
try {
|
|
18
|
-
let e = localStorage.getItem(
|
|
19
|
+
let e = localStorage.getItem(m);
|
|
19
20
|
if (e) return {
|
|
20
|
-
...
|
|
21
|
+
...h,
|
|
21
22
|
...JSON.parse(e)
|
|
22
23
|
};
|
|
23
24
|
} catch {}
|
|
24
|
-
return { ...
|
|
25
|
+
return { ...h };
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
localStorage.setItem(
|
|
27
|
+
function _(e) {
|
|
28
|
+
localStorage.setItem(m, JSON.stringify(e));
|
|
28
29
|
}
|
|
29
|
-
var
|
|
30
|
-
let
|
|
30
|
+
var v = e(function() {
|
|
31
|
+
let { t: e } = s(), [m, v] = r(g), [y, b] = r(!1);
|
|
31
32
|
n(() => {
|
|
32
|
-
if (
|
|
33
|
-
let e = setTimeout(() =>
|
|
33
|
+
if (y) {
|
|
34
|
+
let e = setTimeout(() => b(!1), 2e3);
|
|
34
35
|
return () => clearTimeout(e);
|
|
35
36
|
}
|
|
36
|
-
}, [
|
|
37
|
-
let
|
|
38
|
-
|
|
37
|
+
}, [y]);
|
|
38
|
+
let x = t((e, t) => {
|
|
39
|
+
v((n) => ({
|
|
39
40
|
...n,
|
|
40
41
|
[e]: t
|
|
41
42
|
}));
|
|
42
|
-
}, []),
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
|
|
46
|
-
}, []),
|
|
43
|
+
}, []), S = t(() => {
|
|
44
|
+
_(m), b(!0);
|
|
45
|
+
}, [m]), C = t(() => {
|
|
46
|
+
v({ ...h }), _(h), b(!0);
|
|
47
|
+
}, []), w = {
|
|
47
48
|
width: "100%",
|
|
48
49
|
padding: "8px 12px",
|
|
49
50
|
borderRadius: "var(--radius-button)",
|
|
@@ -52,17 +53,17 @@ var _ = e(function() {
|
|
|
52
53
|
color: "var(--color-text-primary)",
|
|
53
54
|
fontSize: "var(--font-size-body-sm)",
|
|
54
55
|
outline: "none"
|
|
55
|
-
},
|
|
56
|
+
}, T = {
|
|
56
57
|
display: "block",
|
|
57
58
|
fontSize: "var(--font-size-body-sm)",
|
|
58
59
|
fontWeight: "var(--font-weight-medium)",
|
|
59
60
|
color: "var(--color-text-primary)",
|
|
60
61
|
marginBottom: 4
|
|
61
|
-
},
|
|
62
|
+
}, E = {
|
|
62
63
|
fontSize: 11,
|
|
63
64
|
color: "var(--color-text-muted)",
|
|
64
65
|
marginTop: 4
|
|
65
|
-
},
|
|
66
|
+
}, D = {
|
|
66
67
|
backgroundColor: "var(--color-bg-surface)",
|
|
67
68
|
border: "1px solid var(--color-border-seam)",
|
|
68
69
|
borderRadius: "var(--radius-card)",
|
|
@@ -70,19 +71,19 @@ var _ = e(function() {
|
|
|
70
71
|
marginBottom: "var(--space-sectionGap)",
|
|
71
72
|
boxShadow: "var(--shadow-pop)"
|
|
72
73
|
};
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ f("div", {
|
|
74
75
|
style: {
|
|
75
76
|
minHeight: "100vh",
|
|
76
77
|
backgroundColor: "var(--color-bg-canvas)"
|
|
77
78
|
},
|
|
78
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ p("div", {
|
|
79
80
|
style: {
|
|
80
81
|
padding: "var(--space-pagePadding)",
|
|
81
82
|
maxWidth: 720,
|
|
82
83
|
margin: "0 auto"
|
|
83
84
|
},
|
|
84
85
|
children: [
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ p("div", {
|
|
86
87
|
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card p-6",
|
|
87
88
|
style: {
|
|
88
89
|
display: "flex",
|
|
@@ -93,39 +94,39 @@ var _ = e(function() {
|
|
|
93
94
|
gap: "var(--space-formGap)"
|
|
94
95
|
},
|
|
95
96
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ f(c, { intensity: "subtle" }),
|
|
98
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("div", {
|
|
98
99
|
style: {
|
|
99
100
|
display: "flex",
|
|
100
101
|
alignItems: "center",
|
|
101
102
|
gap: "var(--space-iconGap)"
|
|
102
103
|
},
|
|
103
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ f(o, {
|
|
104
105
|
size: 24,
|
|
105
106
|
style: { color: "var(--color-text-primary)" }
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ f("h1", {
|
|
107
108
|
style: {
|
|
108
109
|
fontSize: "var(--font-size-heading-h4)",
|
|
109
110
|
fontWeight: "var(--font-weight-bold)",
|
|
110
111
|
color: "var(--color-text-primary)"
|
|
111
112
|
},
|
|
112
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ f(u, { children: e("bigconsole.settings.header.title", "Settings") })
|
|
113
114
|
})]
|
|
114
|
-
}), /* @__PURE__ */
|
|
115
|
+
}), /* @__PURE__ */ f("p", {
|
|
115
116
|
style: {
|
|
116
117
|
fontSize: "var(--font-size-body-md)",
|
|
117
118
|
color: "var(--color-text-secondary)",
|
|
118
119
|
marginTop: 4
|
|
119
120
|
},
|
|
120
|
-
children: "Configure BigConsole preferences"
|
|
121
|
+
children: e("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
|
|
121
122
|
})] }),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ p("div", {
|
|
123
124
|
style: {
|
|
124
125
|
display: "flex",
|
|
125
126
|
gap: 8
|
|
126
127
|
},
|
|
127
|
-
children: [/* @__PURE__ */
|
|
128
|
-
onClick:
|
|
128
|
+
children: [/* @__PURE__ */ p("button", {
|
|
129
|
+
onClick: C,
|
|
129
130
|
style: {
|
|
130
131
|
display: "flex",
|
|
131
132
|
alignItems: "center",
|
|
@@ -138,16 +139,20 @@ var _ = e(function() {
|
|
|
138
139
|
fontSize: "var(--font-size-body-sm)",
|
|
139
140
|
cursor: "pointer"
|
|
140
141
|
},
|
|
141
|
-
children: [
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ f(i, { size: 14 }),
|
|
144
|
+
" ",
|
|
145
|
+
e("bigconsole.settings.actions.reset", "Reset")
|
|
146
|
+
]
|
|
147
|
+
}), /* @__PURE__ */ p("button", {
|
|
148
|
+
onClick: S,
|
|
144
149
|
style: {
|
|
145
150
|
display: "flex",
|
|
146
151
|
alignItems: "center",
|
|
147
152
|
gap: 6,
|
|
148
153
|
padding: "8px 16px",
|
|
149
154
|
borderRadius: "var(--radius-button)",
|
|
150
|
-
backgroundColor:
|
|
155
|
+
backgroundColor: y ? "var(--color-status-success-bg)" : "var(--color-action-primary-bg)",
|
|
151
156
|
color: "var(--color-action-primary-text)",
|
|
152
157
|
fontWeight: "var(--font-weight-medium)",
|
|
153
158
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -156,324 +161,324 @@ var _ = e(function() {
|
|
|
156
161
|
transition: "background-color 200ms"
|
|
157
162
|
},
|
|
158
163
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ f(a, { size: 14 }),
|
|
160
165
|
" ",
|
|
161
|
-
|
|
166
|
+
y ? e("bigconsole.settings.actions.savedLocally", "Saved locally") : e("bigconsole.settings.actions.saveLocally", "Save locally")
|
|
162
167
|
]
|
|
163
168
|
})]
|
|
164
169
|
})
|
|
165
170
|
]
|
|
166
171
|
}),
|
|
167
|
-
/* @__PURE__ */ d
|
|
172
|
+
/* @__PURE__ */ f(d, {
|
|
168
173
|
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. These preferences are saved locally in this browser until the backend settings API is available."
|
|
174
|
+
children: e("bigconsole.settings.purpose", "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. These preferences are saved locally in this browser until the backend settings API is available.")
|
|
170
175
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ p(l, {
|
|
172
177
|
className: "mb-[var(--space-sectionGap)] p-[var(--space-cardPadding)]",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
174
179
|
style: {
|
|
175
180
|
fontSize: "var(--font-size-body-md)",
|
|
176
181
|
fontWeight: "var(--font-weight-semibold)",
|
|
177
182
|
color: "var(--color-text-primary)",
|
|
178
183
|
marginBottom: 16
|
|
179
184
|
},
|
|
180
|
-
children: "Dashboard Defaults"
|
|
181
|
-
}), /* @__PURE__ */
|
|
185
|
+
children: e("bigconsole.settings.dashboardDefaults.title", "Dashboard Defaults")
|
|
186
|
+
}), /* @__PURE__ */ p("div", {
|
|
182
187
|
style: {
|
|
183
188
|
display: "grid",
|
|
184
189
|
gap: 16
|
|
185
190
|
},
|
|
186
191
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ p("div", { children: [
|
|
193
|
+
/* @__PURE__ */ f("label", {
|
|
189
194
|
htmlFor: "grid-cols",
|
|
190
|
-
style:
|
|
191
|
-
children: "Grid Columns"
|
|
195
|
+
style: T,
|
|
196
|
+
children: e("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
|
|
192
197
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ f("input", {
|
|
194
199
|
id: "grid-cols",
|
|
195
200
|
type: "number",
|
|
196
201
|
min: 4,
|
|
197
202
|
max: 24,
|
|
198
|
-
value:
|
|
199
|
-
onChange: (e) =>
|
|
200
|
-
style:
|
|
203
|
+
value: m.defaultGridColumns,
|
|
204
|
+
onChange: (e) => x("defaultGridColumns", parseInt(e.target.value) || 12),
|
|
205
|
+
style: w
|
|
201
206
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
style:
|
|
204
|
-
children: "Number of columns in the dashboard grid (4-24)"
|
|
207
|
+
/* @__PURE__ */ f("p", {
|
|
208
|
+
style: E,
|
|
209
|
+
children: e("bigconsole.settings.dashboardDefaults.gridColumns.help", "Number of columns in the dashboard grid (4-24)")
|
|
205
210
|
})
|
|
206
211
|
] }),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ p("div", { children: [
|
|
213
|
+
/* @__PURE__ */ f("label", {
|
|
209
214
|
htmlFor: "widget-height",
|
|
210
|
-
style:
|
|
211
|
-
children: "Default Widget Height"
|
|
215
|
+
style: T,
|
|
216
|
+
children: e("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
|
|
212
217
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ f("input", {
|
|
214
219
|
id: "widget-height",
|
|
215
220
|
type: "number",
|
|
216
221
|
min: 2,
|
|
217
222
|
max: 12,
|
|
218
|
-
value:
|
|
219
|
-
onChange: (e) =>
|
|
220
|
-
style:
|
|
223
|
+
value: m.defaultWidgetHeight,
|
|
224
|
+
onChange: (e) => x("defaultWidgetHeight", parseInt(e.target.value) || 4),
|
|
225
|
+
style: w
|
|
221
226
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
style:
|
|
224
|
-
children: "Default height units for new widgets (2-12)"
|
|
227
|
+
/* @__PURE__ */ f("p", {
|
|
228
|
+
style: E,
|
|
229
|
+
children: e("bigconsole.settings.dashboardDefaults.widgetHeight.help", "Default height units for new widgets (2-12)")
|
|
225
230
|
})
|
|
226
231
|
] }),
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ p("div", { children: [
|
|
233
|
+
/* @__PURE__ */ f("label", {
|
|
229
234
|
htmlFor: "refresh-interval",
|
|
230
|
-
style:
|
|
231
|
-
children: "Auto-Refresh Interval (seconds)"
|
|
235
|
+
style: T,
|
|
236
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
|
|
232
237
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ p("select", {
|
|
234
239
|
id: "refresh-interval",
|
|
235
|
-
value:
|
|
236
|
-
onChange: (e) =>
|
|
237
|
-
style:
|
|
240
|
+
value: m.defaultRefreshInterval,
|
|
241
|
+
onChange: (e) => x("defaultRefreshInterval", parseInt(e.target.value)),
|
|
242
|
+
style: w,
|
|
238
243
|
children: [
|
|
239
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ f("option", {
|
|
240
245
|
value: 0,
|
|
241
|
-
children: "Disabled"
|
|
246
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
|
|
242
247
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ f("option", {
|
|
244
249
|
value: 10,
|
|
245
|
-
children: "10 seconds"
|
|
250
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
|
|
246
251
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ f("option", {
|
|
248
253
|
value: 30,
|
|
249
|
-
children: "30 seconds"
|
|
254
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
|
|
250
255
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ f("option", {
|
|
252
257
|
value: 60,
|
|
253
|
-
children: "1 minute"
|
|
258
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
|
|
254
259
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ f("option", {
|
|
256
261
|
value: 300,
|
|
257
|
-
children: "5 minutes"
|
|
262
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
|
|
258
263
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ f("option", {
|
|
260
265
|
value: 600,
|
|
261
|
-
children: "10 minutes"
|
|
266
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
|
|
262
267
|
})
|
|
263
268
|
]
|
|
264
269
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
style:
|
|
267
|
-
children: "How often widgets refresh their data automatically"
|
|
270
|
+
/* @__PURE__ */ f("p", {
|
|
271
|
+
style: E,
|
|
272
|
+
children: e("bigconsole.settings.dashboardDefaults.refreshInterval.help", "How often widgets refresh their data automatically")
|
|
268
273
|
})
|
|
269
274
|
] })
|
|
270
275
|
]
|
|
271
276
|
})]
|
|
272
277
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
style:
|
|
275
|
-
children: [/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ p("div", {
|
|
279
|
+
style: D,
|
|
280
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
276
281
|
style: {
|
|
277
282
|
fontSize: "var(--font-size-body-md)",
|
|
278
283
|
fontWeight: "var(--font-weight-semibold)",
|
|
279
284
|
color: "var(--color-text-primary)",
|
|
280
285
|
marginBottom: 16
|
|
281
286
|
},
|
|
282
|
-
children: "Cache"
|
|
283
|
-
}), /* @__PURE__ */
|
|
287
|
+
children: e("bigconsole.settings.cache.title", "Cache")
|
|
288
|
+
}), /* @__PURE__ */ p("div", {
|
|
284
289
|
style: {
|
|
285
290
|
display: "grid",
|
|
286
291
|
gap: 16
|
|
287
292
|
},
|
|
288
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ p("div", {
|
|
289
294
|
style: {
|
|
290
295
|
display: "flex",
|
|
291
296
|
alignItems: "center",
|
|
292
297
|
justifyContent: "space-between"
|
|
293
298
|
},
|
|
294
|
-
children: [/* @__PURE__ */
|
|
295
|
-
style:
|
|
296
|
-
children: "Enable Cache"
|
|
297
|
-
}), /* @__PURE__ */
|
|
298
|
-
style:
|
|
299
|
-
children: "Cache widget data to reduce API calls"
|
|
300
|
-
})] }), /* @__PURE__ */
|
|
301
|
-
onClick: () =>
|
|
299
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
300
|
+
style: T,
|
|
301
|
+
children: e("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
302
|
+
}), /* @__PURE__ */ f("p", {
|
|
303
|
+
style: E,
|
|
304
|
+
children: e("bigconsole.settings.cache.enable.help", "Cache widget data to reduce API calls")
|
|
305
|
+
})] }), /* @__PURE__ */ f("button", {
|
|
306
|
+
onClick: () => x("cacheEnabled", !m.cacheEnabled),
|
|
302
307
|
role: "switch",
|
|
303
|
-
"aria-checked":
|
|
304
|
-
"aria-label": "Enable
|
|
308
|
+
"aria-checked": m.cacheEnabled,
|
|
309
|
+
"aria-label": e("bigconsole.settings.cache.enable.label", "Enable Cache"),
|
|
305
310
|
style: {
|
|
306
311
|
width: 44,
|
|
307
312
|
height: 24,
|
|
308
313
|
borderRadius: 12,
|
|
309
|
-
backgroundColor:
|
|
314
|
+
backgroundColor: m.cacheEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
310
315
|
border: "none",
|
|
311
316
|
cursor: "pointer",
|
|
312
317
|
position: "relative",
|
|
313
318
|
transition: "background-color 200ms"
|
|
314
319
|
},
|
|
315
|
-
children: /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ f("div", { style: {
|
|
316
321
|
width: 18,
|
|
317
322
|
height: 18,
|
|
318
323
|
borderRadius: "50%",
|
|
319
324
|
backgroundColor: "white",
|
|
320
325
|
position: "absolute",
|
|
321
326
|
top: 3,
|
|
322
|
-
left:
|
|
327
|
+
left: m.cacheEnabled ? 23 : 3,
|
|
323
328
|
transition: "left 200ms"
|
|
324
329
|
} })
|
|
325
330
|
})]
|
|
326
|
-
}),
|
|
327
|
-
/* @__PURE__ */
|
|
331
|
+
}), m.cacheEnabled && /* @__PURE__ */ p("div", { children: [
|
|
332
|
+
/* @__PURE__ */ f("label", {
|
|
328
333
|
htmlFor: "cache-ttl",
|
|
329
|
-
style:
|
|
330
|
-
children: "Cache TTL (seconds)"
|
|
334
|
+
style: T,
|
|
335
|
+
children: e("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
|
|
331
336
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ f("input", {
|
|
333
338
|
id: "cache-ttl",
|
|
334
339
|
type: "number",
|
|
335
340
|
min: 30,
|
|
336
341
|
max: 3600,
|
|
337
|
-
value:
|
|
338
|
-
onChange: (e) =>
|
|
339
|
-
style:
|
|
342
|
+
value: m.cacheTTLSeconds,
|
|
343
|
+
onChange: (e) => x("cacheTTLSeconds", parseInt(e.target.value) || 300),
|
|
344
|
+
style: w
|
|
340
345
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
style:
|
|
343
|
-
children: "How long cached data is considered fresh (30-3600)"
|
|
346
|
+
/* @__PURE__ */ f("p", {
|
|
347
|
+
style: E,
|
|
348
|
+
children: e("bigconsole.settings.cache.ttl.help", "How long cached data is considered fresh (30-3600)")
|
|
344
349
|
})
|
|
345
350
|
] })]
|
|
346
351
|
})]
|
|
347
352
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
style:
|
|
350
|
-
children: [/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ p("div", {
|
|
354
|
+
style: D,
|
|
355
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
351
356
|
style: {
|
|
352
357
|
fontSize: "var(--font-size-body-md)",
|
|
353
358
|
fontWeight: "var(--font-weight-semibold)",
|
|
354
359
|
color: "var(--color-text-primary)",
|
|
355
360
|
marginBottom: 16
|
|
356
361
|
},
|
|
357
|
-
children: "Display"
|
|
358
|
-
}), /* @__PURE__ */
|
|
362
|
+
children: e("bigconsole.settings.display.title", "Display")
|
|
363
|
+
}), /* @__PURE__ */ p("div", {
|
|
359
364
|
style: {
|
|
360
365
|
display: "grid",
|
|
361
366
|
gap: 16
|
|
362
367
|
},
|
|
363
368
|
children: [
|
|
364
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ p("div", {
|
|
365
370
|
style: {
|
|
366
371
|
display: "flex",
|
|
367
372
|
alignItems: "center",
|
|
368
373
|
justifyContent: "space-between"
|
|
369
374
|
},
|
|
370
|
-
children: [/* @__PURE__ */
|
|
371
|
-
style:
|
|
372
|
-
children: "Show Widget Borders"
|
|
373
|
-
}), /* @__PURE__ */
|
|
374
|
-
style:
|
|
375
|
-
children: "Display borders around widgets in dashboards"
|
|
376
|
-
})] }), /* @__PURE__ */
|
|
377
|
-
onClick: () =>
|
|
375
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
376
|
+
style: T,
|
|
377
|
+
children: e("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
378
|
+
}), /* @__PURE__ */ f("p", {
|
|
379
|
+
style: E,
|
|
380
|
+
children: e("bigconsole.settings.display.widgetBorders.help", "Display borders around widgets in dashboards")
|
|
381
|
+
})] }), /* @__PURE__ */ f("button", {
|
|
382
|
+
onClick: () => x("showWidgetBorders", !m.showWidgetBorders),
|
|
378
383
|
role: "switch",
|
|
379
|
-
"aria-checked":
|
|
380
|
-
"aria-label": "Show
|
|
384
|
+
"aria-checked": m.showWidgetBorders,
|
|
385
|
+
"aria-label": e("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders"),
|
|
381
386
|
style: {
|
|
382
387
|
width: 44,
|
|
383
388
|
height: 24,
|
|
384
389
|
borderRadius: 12,
|
|
385
|
-
backgroundColor:
|
|
390
|
+
backgroundColor: m.showWidgetBorders ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
386
391
|
border: "none",
|
|
387
392
|
cursor: "pointer",
|
|
388
393
|
position: "relative",
|
|
389
394
|
transition: "background-color 200ms"
|
|
390
395
|
},
|
|
391
|
-
children: /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ f("div", { style: {
|
|
392
397
|
width: 18,
|
|
393
398
|
height: 18,
|
|
394
399
|
borderRadius: "50%",
|
|
395
400
|
backgroundColor: "white",
|
|
396
401
|
position: "absolute",
|
|
397
402
|
top: 3,
|
|
398
|
-
left:
|
|
403
|
+
left: m.showWidgetBorders ? 23 : 3,
|
|
399
404
|
transition: "left 200ms"
|
|
400
405
|
} })
|
|
401
406
|
})]
|
|
402
407
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ p("div", {
|
|
404
409
|
style: {
|
|
405
410
|
display: "flex",
|
|
406
411
|
alignItems: "center",
|
|
407
412
|
justifyContent: "space-between"
|
|
408
413
|
},
|
|
409
|
-
children: [/* @__PURE__ */
|
|
410
|
-
style:
|
|
411
|
-
children: "Compact Mode"
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
-
style:
|
|
414
|
-
children: "Reduce padding and spacing for more content"
|
|
415
|
-
})] }), /* @__PURE__ */
|
|
416
|
-
onClick: () =>
|
|
414
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
415
|
+
style: T,
|
|
416
|
+
children: e("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
417
|
+
}), /* @__PURE__ */ f("p", {
|
|
418
|
+
style: E,
|
|
419
|
+
children: e("bigconsole.settings.display.compactMode.help", "Reduce padding and spacing for more content")
|
|
420
|
+
})] }), /* @__PURE__ */ f("button", {
|
|
421
|
+
onClick: () => x("compactMode", !m.compactMode),
|
|
417
422
|
role: "switch",
|
|
418
|
-
"aria-checked":
|
|
419
|
-
"aria-label": "Compact
|
|
423
|
+
"aria-checked": m.compactMode,
|
|
424
|
+
"aria-label": e("bigconsole.settings.display.compactMode.label", "Compact Mode"),
|
|
420
425
|
style: {
|
|
421
426
|
width: 44,
|
|
422
427
|
height: 24,
|
|
423
428
|
borderRadius: 12,
|
|
424
|
-
backgroundColor:
|
|
429
|
+
backgroundColor: m.compactMode ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
425
430
|
border: "none",
|
|
426
431
|
cursor: "pointer",
|
|
427
432
|
position: "relative",
|
|
428
433
|
transition: "background-color 200ms"
|
|
429
434
|
},
|
|
430
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ f("div", { style: {
|
|
431
436
|
width: 18,
|
|
432
437
|
height: 18,
|
|
433
438
|
borderRadius: "50%",
|
|
434
439
|
backgroundColor: "white",
|
|
435
440
|
position: "absolute",
|
|
436
441
|
top: 3,
|
|
437
|
-
left:
|
|
442
|
+
left: m.compactMode ? 23 : 3,
|
|
438
443
|
transition: "left 200ms"
|
|
439
444
|
} })
|
|
440
445
|
})]
|
|
441
446
|
}),
|
|
442
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ p("div", {
|
|
443
448
|
style: {
|
|
444
449
|
display: "flex",
|
|
445
450
|
alignItems: "center",
|
|
446
451
|
justifyContent: "space-between"
|
|
447
452
|
},
|
|
448
|
-
children: [/* @__PURE__ */
|
|
449
|
-
style:
|
|
450
|
-
children: "Animations"
|
|
451
|
-
}), /* @__PURE__ */
|
|
452
|
-
style:
|
|
453
|
-
children: "Enable transition animations and effects"
|
|
454
|
-
})] }), /* @__PURE__ */
|
|
455
|
-
onClick: () =>
|
|
453
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
454
|
+
style: T,
|
|
455
|
+
children: e("bigconsole.settings.display.animations.label", "Animations")
|
|
456
|
+
}), /* @__PURE__ */ f("p", {
|
|
457
|
+
style: E,
|
|
458
|
+
children: e("bigconsole.settings.display.animations.help", "Enable transition animations and effects")
|
|
459
|
+
})] }), /* @__PURE__ */ f("button", {
|
|
460
|
+
onClick: () => x("animationsEnabled", !m.animationsEnabled),
|
|
456
461
|
role: "switch",
|
|
457
|
-
"aria-checked":
|
|
458
|
-
"aria-label": "Animations",
|
|
462
|
+
"aria-checked": m.animationsEnabled,
|
|
463
|
+
"aria-label": e("bigconsole.settings.display.animations.label", "Animations"),
|
|
459
464
|
style: {
|
|
460
465
|
width: 44,
|
|
461
466
|
height: 24,
|
|
462
467
|
borderRadius: 12,
|
|
463
|
-
backgroundColor:
|
|
468
|
+
backgroundColor: m.animationsEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
464
469
|
border: "none",
|
|
465
470
|
cursor: "pointer",
|
|
466
471
|
position: "relative",
|
|
467
472
|
transition: "background-color 200ms"
|
|
468
473
|
},
|
|
469
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ f("div", { style: {
|
|
470
475
|
width: 18,
|
|
471
476
|
height: 18,
|
|
472
477
|
borderRadius: "50%",
|
|
473
478
|
backgroundColor: "white",
|
|
474
479
|
position: "absolute",
|
|
475
480
|
top: 3,
|
|
476
|
-
left:
|
|
481
|
+
left: m.animationsEnabled ? 23 : 3,
|
|
477
482
|
transition: "left 200ms"
|
|
478
483
|
} })
|
|
479
484
|
})]
|
|
@@ -486,6 +491,6 @@ var _ = e(function() {
|
|
|
486
491
|
});
|
|
487
492
|
});
|
|
488
493
|
//#endregion
|
|
489
|
-
export {
|
|
494
|
+
export { v as SettingsPage, v as default };
|
|
490
495
|
|
|
491
496
|
//# sourceMappingURL=SettingsPage.js.map
|