sqlseed-web 0.2.4__py3-none-any.whl
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.
- sqlseed_web/AGENTS.md +106 -0
- sqlseed_web/__init__.py +24 -0
- sqlseed_web/__main__.py +8 -0
- sqlseed_web/_application.py +205 -0
- sqlseed_web/ai_settings.py +290 -0
- sqlseed_web/api.py +1102 -0
- sqlseed_web/app.py +26 -0
- sqlseed_web/managed_worker.py +184 -0
- sqlseed_web/operation_errors.py +42 -0
- sqlseed_web/plugin_environment.py +231 -0
- sqlseed_web/plugin_management.py +322 -0
- sqlseed_web/plugin_process.py +131 -0
- sqlseed_web/runtime_lifecycle.py +130 -0
- sqlseed_web/runtime_session.py +97 -0
- sqlseed_web/settings_environment.py +368 -0
- sqlseed_web/sqlite_target.py +86 -0
- sqlseed_web/state.py +348 -0
- sqlseed_web/static/AGENTS.md +180 -0
- sqlseed_web/static/ai.css +57 -0
- sqlseed_web/static/configs.css +50 -0
- sqlseed_web/static/date-picker.css +230 -0
- sqlseed_web/static/disclosure.css +149 -0
- sqlseed_web/static/graph-clarity.css +103 -0
- sqlseed_web/static/index.html +29 -0
- sqlseed_web/static/js/api.js +228 -0
- sqlseed_web/static/js/app.js +97 -0
- sqlseed_web/static/js/dropdown.js +432 -0
- sqlseed_web/static/js/filepicker.js +203 -0
- sqlseed_web/static/js/genform.js +1066 -0
- sqlseed_web/static/js/labels.js +195 -0
- sqlseed_web/static/js/pages/browse.js +209 -0
- sqlseed_web/static/js/pages/configs.js +424 -0
- sqlseed_web/static/js/pages/connect.js +332 -0
- sqlseed_web/static/js/pages/heal.js +395 -0
- sqlseed_web/static/js/pages/meta.js +110 -0
- sqlseed_web/static/js/pages/runs.js +293 -0
- sqlseed_web/static/js/pages/settings.js +942 -0
- sqlseed_web/static/js/pages/wizard.js +751 -0
- sqlseed_web/static/js/pages/workbench.js +3123 -0
- sqlseed_web/static/js/tree.js +126 -0
- sqlseed_web/static/js/workbench/ai-eligibility.js +33 -0
- sqlseed_web/static/js/workbench/ai-handoff.js +31 -0
- sqlseed_web/static/js/workbench/ai-stream.js +116 -0
- sqlseed_web/static/js/workbench/ai.js +888 -0
- sqlseed_web/static/js/workbench/connection.js +508 -0
- sqlseed_web/static/js/workbench/date-picker.js +445 -0
- sqlseed_web/static/js/workbench/dependency-view.js +119 -0
- sqlseed_web/static/js/workbench/editor.js +1236 -0
- sqlseed_web/static/js/workbench/focus.js +11 -0
- sqlseed_web/static/js/workbench/graph-layout.js +332 -0
- sqlseed_web/static/js/workbench/graph.js +970 -0
- sqlseed_web/static/js/workbench/guidance.js +29 -0
- sqlseed_web/static/js/workbench/model.js +124 -0
- sqlseed_web/static/js/workbench/plugin-management.js +512 -0
- sqlseed_web/static/js/workbench/preview-scroll-layout.js +94 -0
- sqlseed_web/static/js/workbench/preview.js +572 -0
- sqlseed_web/static/js/workbench/provider-guide.js +33 -0
- sqlseed_web/static/js/workbench/recovery.js +28 -0
- sqlseed_web/static/js/workbench/scroll-lock.js +26 -0
- sqlseed_web/static/js/workbench/session.js +174 -0
- sqlseed_web/static/js/workbench/table-data.js +186 -0
- sqlseed_web/static/js/workbench/ui.js +262 -0
- sqlseed_web/static/navigation.css +92 -0
- sqlseed_web/static/preview.css +29 -0
- sqlseed_web/static/runs.css +53 -0
- sqlseed_web/static/scrollbars.css +42 -0
- sqlseed_web/static/settings.css +108 -0
- sqlseed_web/static/style.css +3382 -0
- sqlseed_web/static/table-data.css +27 -0
- sqlseed_web/static/workbench.css +509 -0
- sqlseed_web/supervised_plugins.py +173 -0
- sqlseed_web/supervisor.py +238 -0
- sqlseed_web/workbench.py +381 -0
- sqlseed_web/workbench_ai.py +887 -0
- sqlseed_web/workbench_ai_relations.py +285 -0
- sqlseed_web/workbench_ai_stream.py +172 -0
- sqlseed_web/workbench_data.py +163 -0
- sqlseed_web/workbench_execution.py +199 -0
- sqlseed_web/workbench_runtime.py +1218 -0
- sqlseed_web/workbench_schema.py +277 -0
- sqlseed_web/workbench_store.py +458 -0
- sqlseed_web/worker_control.py +192 -0
- sqlseed_web-0.2.4.dist-info/METADATA +105 -0
- sqlseed_web-0.2.4.dist-info/RECORD +87 -0
- sqlseed_web-0.2.4.dist-info/WHEEL +4 -0
- sqlseed_web-0.2.4.dist-info/entry_points.txt +2 -0
- sqlseed_web-0.2.4.dist-info/licenses/LICENSE +679 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* Configuration lifecycle uses the shared v8 palette and controls. */
|
|
2
|
+
.configs-page .heading { align-items:flex-start; }
|
|
3
|
+
.configs-page .heading-actions { flex-wrap:wrap; }
|
|
4
|
+
.configs-page a.btn { text-decoration:none; }
|
|
5
|
+
.config-toolbar { display:flex; align-items:end; gap:24px; padding:20px 24px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
|
|
6
|
+
.config-search { display:flex; flex-direction:column; gap:7px; flex:1; min-width:200px; font-weight:600; }
|
|
7
|
+
.config-search input { width:100%; min-height:40px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font-weight:400; }
|
|
8
|
+
.config-scope { min-width:160px; }
|
|
9
|
+
.config-filter { display:flex; align-items:center; gap:8px; cursor:pointer; }
|
|
10
|
+
.config-filter input { width:16px; height:16px; margin:0; accent-color:var(--teal); }
|
|
11
|
+
.config-filter input:disabled { cursor:default; }
|
|
12
|
+
.config-filter-hint { margin:5px 0 0; font-size:12px; max-width:260px; overflow-wrap:anywhere; }
|
|
13
|
+
.config-notice { margin:12px 0; color:var(--teal); }
|
|
14
|
+
.config-notice:empty { margin:0; }
|
|
15
|
+
.config-count { margin:16px 0 10px; font-size:12px; }
|
|
16
|
+
.config-list { display:grid; gap:12px; }
|
|
17
|
+
.config-card { display:flex; align-items:center; gap:24px; padding:20px 24px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }
|
|
18
|
+
.config-card-main { flex:1; min-width:0; }
|
|
19
|
+
.config-card-heading { display:flex; align-items:baseline; gap:10px; }
|
|
20
|
+
.config-card h2 { margin:0; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
|
|
21
|
+
.config-revision { flex-shrink:0; color:var(--muted); font-family:var(--mono); font-size:12px; }
|
|
22
|
+
.config-target { display:flex; align-items:center; gap:7px; margin:7px 0; color:var(--muted); overflow-wrap:anywhere; }
|
|
23
|
+
.config-target svg { flex-shrink:0; width:15px; height:15px; }
|
|
24
|
+
.config-facts { margin:7px 0 0; font-size:12px; }
|
|
25
|
+
.config-updated { margin:4px 0 0; font-size:12px; }
|
|
26
|
+
.config-card-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:460px; }
|
|
27
|
+
.config-card-actions .btn { min-height:34px; padding:6px 12px; font-size:12px; }
|
|
28
|
+
.config-card-actions a.btn { color:var(--teal); border-color:var(--teal); background:var(--soft); }
|
|
29
|
+
.config-card-actions .config-delete { color:#a33c39; }
|
|
30
|
+
.config-empty { padding:42px 24px; margin:0; text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }
|
|
31
|
+
.config-empty h2 { font-size:18px; }
|
|
32
|
+
.config-empty p { color:var(--muted); }
|
|
33
|
+
.config-empty a { display:inline-flex; }
|
|
34
|
+
.config-dialog .config-name-field { display:flex; flex-direction:column; gap:8px; margin:20px 0 8px; }
|
|
35
|
+
.config-dialog .config-name-field input { min-width:0; width:100%; min-height:40px; border:1px solid var(--line); border-radius:6px; padding:8px 12px; color:var(--ink); }
|
|
36
|
+
.config-dialog .config-error { color:#a33c39; margin-top:12px; overflow-wrap:anywhere; }
|
|
37
|
+
.config-dialog .config-error:empty { margin:0; }
|
|
38
|
+
.config-delete-name { display:block; font-size:18px; overflow-wrap:anywhere; }
|
|
39
|
+
.config-dialog .config-delete-confirm { color:#a33c39; border-color:#a33c39; background:var(--paper); }
|
|
40
|
+
.configs-page a:focus-visible { outline:3px solid #74b7c9; outline-offset:3px; }
|
|
41
|
+
@media (max-width:1000px) {
|
|
42
|
+
.config-card { align-items:flex-start; flex-direction:column; gap:14px; }
|
|
43
|
+
.config-card-actions { justify-content:flex-start; max-width:none; }
|
|
44
|
+
}
|
|
45
|
+
@media (max-width:700px) {
|
|
46
|
+
.config-toolbar { flex-wrap:wrap; padding:16px; gap:16px; }
|
|
47
|
+
.config-search { flex-basis:100%; min-width:0; }
|
|
48
|
+
.config-scope { flex:1; min-width:0; }
|
|
49
|
+
.config-card { padding:16px; }
|
|
50
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/* Calendar controls use the workbench v8 tokens; the popup escapes scrollers. */
|
|
2
|
+
.wb-date-control {
|
|
3
|
+
min-width: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
.wb-date-entry {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 8px;
|
|
10
|
+
padding: 3px;
|
|
11
|
+
margin: -3px;
|
|
12
|
+
}
|
|
13
|
+
.wb-date-input-label {
|
|
14
|
+
display: block;
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
}
|
|
18
|
+
.wb-date-control .wb-date-entry .wb-date-input-label input[type="text"] {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 100%;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
margin: 0;
|
|
23
|
+
min-height: 38px;
|
|
24
|
+
font-family: var(--mono);
|
|
25
|
+
}
|
|
26
|
+
.wb-date-trigger {
|
|
27
|
+
flex: none;
|
|
28
|
+
min-height: 38px;
|
|
29
|
+
padding: 7px 10px;
|
|
30
|
+
border: 1px solid var(--line);
|
|
31
|
+
border-radius: 7px;
|
|
32
|
+
background: var(--paper);
|
|
33
|
+
color: var(--teal);
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
align-self: stretch;
|
|
36
|
+
}
|
|
37
|
+
.wb-date-trigger:hover,
|
|
38
|
+
.wb-date-trigger[aria-expanded="true"] {
|
|
39
|
+
background: var(--soft);
|
|
40
|
+
border-color: var(--teal);
|
|
41
|
+
}
|
|
42
|
+
.wb-date-format,
|
|
43
|
+
.wb-date-error {
|
|
44
|
+
display: block;
|
|
45
|
+
margin-top: 5px;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
line-height: 1.5;
|
|
48
|
+
}
|
|
49
|
+
.wb-date-format {
|
|
50
|
+
color: var(--muted);
|
|
51
|
+
}
|
|
52
|
+
.wb-date-error {
|
|
53
|
+
color: #a53131;
|
|
54
|
+
}
|
|
55
|
+
.wb-date-error:empty {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
.wb-date-sr {
|
|
59
|
+
position: absolute;
|
|
60
|
+
width: 1px;
|
|
61
|
+
height: 1px;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
clip-path: inset(50%);
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
.wb-date-layer {
|
|
67
|
+
position: fixed;
|
|
68
|
+
inset: 0;
|
|
69
|
+
z-index: 4000;
|
|
70
|
+
}
|
|
71
|
+
.wb-date-dialog {
|
|
72
|
+
padding: 14px;
|
|
73
|
+
overflow: auto;
|
|
74
|
+
overscroll-behavior: contain;
|
|
75
|
+
border: 1px solid var(--line);
|
|
76
|
+
border-radius: var(--radius);
|
|
77
|
+
background: var(--paper);
|
|
78
|
+
color: var(--ink);
|
|
79
|
+
box-shadow: 0 14px 42px #19344126, 0 3px 10px #19344114;
|
|
80
|
+
font: 13px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
81
|
+
}
|
|
82
|
+
.wb-date-heading,
|
|
83
|
+
.wb-date-navigation,
|
|
84
|
+
.wb-date-jump,
|
|
85
|
+
.wb-date-actions {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 8px;
|
|
89
|
+
}
|
|
90
|
+
.wb-date-heading {
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
margin-bottom: 6px;
|
|
93
|
+
}
|
|
94
|
+
.wb-date-heading h3 {
|
|
95
|
+
margin: 0;
|
|
96
|
+
font-size: 16px;
|
|
97
|
+
font-weight: 650;
|
|
98
|
+
}
|
|
99
|
+
.wb-date-navigation {
|
|
100
|
+
gap: 4px;
|
|
101
|
+
margin-bottom: 8px;
|
|
102
|
+
}
|
|
103
|
+
.wb-date-navigation > span {
|
|
104
|
+
flex: 1;
|
|
105
|
+
color: var(--muted);
|
|
106
|
+
font-size: 11px;
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
.wb-date-nav,
|
|
110
|
+
.wb-date-action {
|
|
111
|
+
min-height: 32px;
|
|
112
|
+
border: 1px solid var(--line);
|
|
113
|
+
border-radius: 6px;
|
|
114
|
+
background: var(--paper);
|
|
115
|
+
color: var(--ink);
|
|
116
|
+
}
|
|
117
|
+
.wb-date-nav {
|
|
118
|
+
width: 32px;
|
|
119
|
+
flex: none;
|
|
120
|
+
padding: 0;
|
|
121
|
+
font-size: 20px;
|
|
122
|
+
line-height: 1;
|
|
123
|
+
}
|
|
124
|
+
.wb-date-action {
|
|
125
|
+
padding: 5px 12px;
|
|
126
|
+
font-size: 13px;
|
|
127
|
+
}
|
|
128
|
+
.wb-date-nav:hover,
|
|
129
|
+
.wb-date-action:hover {
|
|
130
|
+
background: var(--soft);
|
|
131
|
+
border-color: var(--teal);
|
|
132
|
+
}
|
|
133
|
+
.wb-date-jump {
|
|
134
|
+
margin-bottom: 8px;
|
|
135
|
+
}
|
|
136
|
+
.wb-date-jump label {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 5px;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
color: var(--muted);
|
|
142
|
+
}
|
|
143
|
+
.wb-date-dialog .wb-date-jump input {
|
|
144
|
+
width: 82px;
|
|
145
|
+
min-width: 0;
|
|
146
|
+
min-height: 32px;
|
|
147
|
+
margin: 0;
|
|
148
|
+
padding: 4px 7px;
|
|
149
|
+
border: 1px solid var(--line);
|
|
150
|
+
border-radius: 6px;
|
|
151
|
+
background: var(--paper);
|
|
152
|
+
color: var(--ink);
|
|
153
|
+
font-family: var(--mono);
|
|
154
|
+
}
|
|
155
|
+
.wb-date-dialog .wb-date-jump input[data-calendar-month] {
|
|
156
|
+
width: 58px;
|
|
157
|
+
}
|
|
158
|
+
.wb-date-grid {
|
|
159
|
+
width: 100%;
|
|
160
|
+
table-layout: fixed;
|
|
161
|
+
border-collapse: separate;
|
|
162
|
+
border-spacing: 0;
|
|
163
|
+
margin: 2px 0 8px;
|
|
164
|
+
}
|
|
165
|
+
.wb-date-grid th,
|
|
166
|
+
.wb-date-grid td {
|
|
167
|
+
padding: 3px;
|
|
168
|
+
border: 0;
|
|
169
|
+
background: transparent;
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
.wb-date-grid th {
|
|
173
|
+
padding-bottom: 7px;
|
|
174
|
+
color: var(--muted);
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
}
|
|
178
|
+
.wb-date-day {
|
|
179
|
+
width: 100%;
|
|
180
|
+
min-height: 34px;
|
|
181
|
+
padding: 3px 0;
|
|
182
|
+
border: 1px solid transparent;
|
|
183
|
+
border-radius: 6px;
|
|
184
|
+
color: var(--ink);
|
|
185
|
+
font: 13px var(--mono);
|
|
186
|
+
}
|
|
187
|
+
.wb-date-day.today {
|
|
188
|
+
border-color: var(--teal);
|
|
189
|
+
}
|
|
190
|
+
.wb-date-day:hover {
|
|
191
|
+
background: var(--soft);
|
|
192
|
+
}
|
|
193
|
+
.wb-date-day.selected {
|
|
194
|
+
background: var(--teal);
|
|
195
|
+
color: #fff;
|
|
196
|
+
}
|
|
197
|
+
.wb-date-actions {
|
|
198
|
+
padding-top: 10px;
|
|
199
|
+
border-top: 1px solid var(--line);
|
|
200
|
+
}
|
|
201
|
+
.wb-date-actions button:last-child {
|
|
202
|
+
margin-left: auto;
|
|
203
|
+
}
|
|
204
|
+
.wb-date-help {
|
|
205
|
+
margin: 10px 0 0;
|
|
206
|
+
color: var(--muted);
|
|
207
|
+
font-size: 11px;
|
|
208
|
+
line-height: 1.6;
|
|
209
|
+
}
|
|
210
|
+
.wb-date-dialog button:focus-visible,
|
|
211
|
+
.wb-date-dialog input:focus-visible,
|
|
212
|
+
.wb-date-control button:focus-visible,
|
|
213
|
+
.wb-date-control input:focus-visible {
|
|
214
|
+
outline: 2px solid var(--teal);
|
|
215
|
+
outline-offset: 1px;
|
|
216
|
+
}
|
|
217
|
+
.wb-date-control input[aria-invalid="true"],
|
|
218
|
+
.wb-date-dialog input[aria-invalid="true"] {
|
|
219
|
+
border-color: #a53131;
|
|
220
|
+
}
|
|
221
|
+
@media (forced-colors: active) {
|
|
222
|
+
.wb-date-day.selected {
|
|
223
|
+
border-color: Highlight;
|
|
224
|
+
outline: 2px solid Highlight;
|
|
225
|
+
}
|
|
226
|
+
.wb-date-dialog button:focus-visible,
|
|
227
|
+
.wb-date-dialog input:focus-visible {
|
|
228
|
+
outline-color: Highlight;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* Shared native disclosures in the product pages and their overlays. */
|
|
2
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) {
|
|
3
|
+
--disclosure-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
min-block-size: 38px;
|
|
12
|
+
padding: 8px 34px 8px 8px;
|
|
13
|
+
border-radius: 6px;
|
|
14
|
+
list-style: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
overflow-wrap: anywhere;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::marker {
|
|
20
|
+
content: "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::-webkit-details-marker {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::after,
|
|
28
|
+
.wb-page details.wb-structure-menu[open] > summary::after,
|
|
29
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) .dropdown-btn::after {
|
|
30
|
+
content: "";
|
|
31
|
+
inline-size: 16px;
|
|
32
|
+
block-size: 16px;
|
|
33
|
+
flex: 0 0 16px;
|
|
34
|
+
color: var(--muted);
|
|
35
|
+
background: currentColor;
|
|
36
|
+
-webkit-mask: var(--disclosure-chevron) center / contain no-repeat;
|
|
37
|
+
mask: var(--disclosure-chevron) center / contain no-repeat;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::after {
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset-inline-end: 10px;
|
|
43
|
+
top: 50%;
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details[open] > summary::after {
|
|
48
|
+
transform: translateY(-50%) rotate(180deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) .dropdown-btn[aria-expanded="true"]::after {
|
|
52
|
+
transform: rotate(180deg);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary:hover {
|
|
56
|
+
background-color: var(--wash);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary:focus-visible {
|
|
60
|
+
outline: 2px solid var(--teal);
|
|
61
|
+
outline-offset: 2px;
|
|
62
|
+
background-color: var(--soft);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Give the table-level constraints one visible disclosure boundary. */
|
|
66
|
+
.wb-overlay .wb-field-constraints {
|
|
67
|
+
margin-block-start: 18px;
|
|
68
|
+
border: 1px solid var(--line);
|
|
69
|
+
border-radius: 8px;
|
|
70
|
+
background: var(--paper);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wb-overlay .wb-field-constraints > summary {
|
|
74
|
+
min-block-size: 42px;
|
|
75
|
+
padding: 10px 36px 10px 12px;
|
|
76
|
+
border-radius: 7px;
|
|
77
|
+
background: var(--wash);
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.wb-overlay .wb-field-constraints[open] > summary {
|
|
82
|
+
border-radius: 7px 7px 0 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.wb-overlay .wb-field-constraints > summary::after {
|
|
86
|
+
color: var(--ink);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.wb-overlay .wb-field-constraints > p {
|
|
90
|
+
margin: 12px;
|
|
91
|
+
white-space: normal;
|
|
92
|
+
overflow-wrap: anywhere;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.wb-overlay .wb-field-constraints > p.mono {
|
|
96
|
+
padding: 8px 10px;
|
|
97
|
+
border-radius: 5px;
|
|
98
|
+
background: var(--wash);
|
|
99
|
+
line-height: 1.65;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Long values remain compact inside the current-data table. */
|
|
103
|
+
.wb-overlay details.wb-table-data-value > summary {
|
|
104
|
+
min-block-size: 0;
|
|
105
|
+
padding-block: 2px;
|
|
106
|
+
padding-inline-start: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
110
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary {
|
|
111
|
+
transition: background-color 160ms ease;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::after,
|
|
115
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) .dropdown-btn::after {
|
|
116
|
+
transition: transform 200ms ease;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@supports selector(details::details-content) and (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) and (interactivity: inert) {
|
|
120
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details::details-content {
|
|
121
|
+
interpolate-size: allow-keywords;
|
|
122
|
+
block-size: 0;
|
|
123
|
+
content-visibility: hidden;
|
|
124
|
+
/* Closing keeps content painted briefly, but it must stop receiving input. */
|
|
125
|
+
interactivity: inert;
|
|
126
|
+
overflow: clip;
|
|
127
|
+
transition: block-size 200ms ease, content-visibility 200ms allow-discrete,
|
|
128
|
+
overflow-x 0s allow-discrete, overflow-y 0s allow-discrete;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details[open]::details-content {
|
|
132
|
+
block-size: auto;
|
|
133
|
+
content-visibility: visible;
|
|
134
|
+
interactivity: auto;
|
|
135
|
+
overflow: visible;
|
|
136
|
+
/* Clip during expansion, then release focus rings and nested controls.
|
|
137
|
+
The closed rule resets these delays so collapse clips immediately. */
|
|
138
|
+
transition-delay: 0s, 0s, 200ms, 200ms;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) details > summary::after,
|
|
145
|
+
:is(.wb-page, .settings-page, .configs-page, .runs-page, .wb-overlay) .dropdown-btn::after {
|
|
146
|
+
background-color: ButtonText;
|
|
147
|
+
forced-color-adjust: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* Generation state stays on the inner box; inspection has its own outer ring. */
|
|
2
|
+
.wb-schema-graph .graph-state-legend {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 10px 18px;
|
|
7
|
+
padding: 3px 2px 12px;
|
|
8
|
+
color: var(--muted);
|
|
9
|
+
font-size: 11px;
|
|
10
|
+
}
|
|
11
|
+
.wb-schema-graph .graph-legend-item {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 7px;
|
|
15
|
+
}
|
|
16
|
+
.wb-schema-graph .graph-legend-swatch {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
width: 19px;
|
|
19
|
+
height: 12px;
|
|
20
|
+
border: 1px solid #d3dee4;
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
background: #f8fafb;
|
|
23
|
+
}
|
|
24
|
+
.wb-schema-graph .graph-legend-swatch.chosen {
|
|
25
|
+
border-color: #75a48b;
|
|
26
|
+
background: #edf7f1;
|
|
27
|
+
}
|
|
28
|
+
.wb-schema-graph .graph-legend-swatch.referenced {
|
|
29
|
+
border: 1px dashed #8faabb;
|
|
30
|
+
background: #f1f6fb;
|
|
31
|
+
}
|
|
32
|
+
.wb-schema-graph .graph-legend-swatch.current {
|
|
33
|
+
margin: 0 3px;
|
|
34
|
+
outline: 2px solid #2573a4;
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
37
|
+
.wb-schema-graph .graph-node {
|
|
38
|
+
--graph-node-stroke: #d3dee4;
|
|
39
|
+
--graph-node-fill: #f8fafb;
|
|
40
|
+
}
|
|
41
|
+
.wb-schema-graph .graph-node.chosen {
|
|
42
|
+
--graph-node-stroke: #75a48b;
|
|
43
|
+
--graph-node-fill: #edf7f1;
|
|
44
|
+
}
|
|
45
|
+
.wb-schema-graph .graph-node.referenced {
|
|
46
|
+
--graph-node-stroke: #8faabb;
|
|
47
|
+
--graph-node-fill: #f1f6fb;
|
|
48
|
+
}
|
|
49
|
+
.wb-schema-graph .graph-node.blocked {
|
|
50
|
+
--graph-node-stroke: #bb8e56;
|
|
51
|
+
--graph-node-fill: #fdf7ec;
|
|
52
|
+
}
|
|
53
|
+
.wb-schema-graph .graph-node .graph-node-body {
|
|
54
|
+
fill: var(--graph-node-fill);
|
|
55
|
+
stroke: var(--graph-node-stroke)!important;
|
|
56
|
+
stroke-width: 1.3!important;
|
|
57
|
+
}
|
|
58
|
+
.wb-schema-graph .graph-node .graph-focus-ring {
|
|
59
|
+
fill: none;
|
|
60
|
+
stroke: #2573a4!important;
|
|
61
|
+
stroke-width: 2!important;
|
|
62
|
+
stroke-dasharray: none;
|
|
63
|
+
opacity: 0;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
.wb-schema-graph .graph-node.focused .graph-focus-ring,
|
|
67
|
+
.wb-schema-graph .graph-node:focus-visible .graph-focus-ring {
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
.wb-schema-graph .graph-edge.path-related .edge-line {
|
|
71
|
+
stroke: #477f6a;
|
|
72
|
+
stroke-width: 2.4;
|
|
73
|
+
}
|
|
74
|
+
.wb-schema-graph .graph-edge { --graph-edge-stroke: #71978a; }
|
|
75
|
+
.wb-schema-graph .graph-edge.path-related { --graph-edge-stroke: #477f6a; }
|
|
76
|
+
.wb-schema-graph .graph-edge.focused { --graph-edge-stroke: #2573a4; }
|
|
77
|
+
.wb-schema-graph .graph-edge.problem { --graph-edge-stroke: #ad641c; }
|
|
78
|
+
.wb-schema-graph .graph-edge.path-unrelated,
|
|
79
|
+
.wb-schema-graph .graph-label.path-unrelated {
|
|
80
|
+
opacity: .28;
|
|
81
|
+
}
|
|
82
|
+
.wb-schema-graph .graph-edge.focused,
|
|
83
|
+
.wb-schema-graph .graph-edge:focus-visible,
|
|
84
|
+
.wb-schema-graph .graph-edge:hover,
|
|
85
|
+
.wb-schema-graph .graph-label.focused,
|
|
86
|
+
.wb-schema-graph .graph-label:focus-visible,
|
|
87
|
+
.wb-schema-graph .graph-label:hover,
|
|
88
|
+
.wb-schema-graph .graph-edge.problem,
|
|
89
|
+
.wb-schema-graph .graph-label.problem {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
}
|
|
92
|
+
.wb-schema-graph .graph-edge.problem .edge-line {
|
|
93
|
+
stroke-width: 2.5;
|
|
94
|
+
stroke: #ad641c;
|
|
95
|
+
}
|
|
96
|
+
.wb-schema-graph .graph-edge.focused .edge-line,
|
|
97
|
+
.wb-schema-graph .graph-edge:focus-visible .edge-line {
|
|
98
|
+
stroke: var(--graph-edge-stroke);
|
|
99
|
+
stroke-width: 3.6;
|
|
100
|
+
}
|
|
101
|
+
.wb-schema-graph .graph-label.problem rect {
|
|
102
|
+
stroke: #ad641c;
|
|
103
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<title>sqlseed · 工作台</title>
|
|
7
|
+
<link rel="stylesheet" href="/static/style.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="display:none"><symbol id="i-table" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 9h18M9 9v11M3 14h18"/></symbol><symbol id="i-db" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v7c0 4 16 4 16 0V5M4 12v7c0 4 16 4 16 0"/></symbol><symbol id="i-link" viewBox="0 0 24 24"><path d="m10 13 4-4m-6 7-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0m2 0 1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" transform="translate(1 0)"/></symbol><symbol id="i-schema" viewBox="0 0 24 24"><rect x="8" y="2" width="8" height="5" rx="1"/><rect x="2" y="17" width="7" height="5" rx="1"/><rect x="15" y="17" width="7" height="5" rx="1"/><path d="M12 7v5M5.5 17v-5h13v5"/></symbol><symbol id="i-derive" viewBox="0 0 24 24"><text x="2" y="18" fill="currentColor" stroke="none" font-family="Georgia,serif" font-style="italic" font-size="20">ƒx</text></symbol><symbol id="i-refresh" viewBox="0 0 24 24"><path d="M3 11a9 9 0 0 1 15.4-6.4L21 7M21 3v4h-4M21 13a9 9 0 0 1-15.4 6.4L3 17M3 21v-4h4"/></symbol><symbol id="i-reset" viewBox="0 0 24 24"><path d="M3 4v6h6M3 10a9 9 0 1 1 .6 7M12 7v5l3 2"/></symbol><symbol id="i-search" viewBox="0 0 24 24"><circle cx="10" cy="10" r="6"/><path d="m15 15 5 5"/></symbol><symbol id="i-sliders" viewBox="0 0 24 24"><path d="M4 6h6m4 0h6M4 12h10m4 0h2M4 18h2m4 0h10M10 3v6m4 0v6M6 15v6"/></symbol><symbol id="i-code" viewBox="0 0 24 24"><path d="m8 6-6 6 6 6m8-12 6 6-6 6m-3-14-2 16"/></symbol><symbol id="i-arrow" viewBox="0 0 24 24"><path d="M3 12h17m-5-5 5 5-5 5"/></symbol><symbol id="i-edit" viewBox="0 0 24 24"><path d="m15 4 5 5M4 20l5-1L21 7l-5-5L4 14Z"/></symbol><symbol id="i-checklist" viewBox="0 0 24 24"><path d="m3 6 2 2 4-4M12 6h9M3 13h3m6 0h9M3 20h3m6 0h9"/></symbol><symbol id="i-check" viewBox="0 0 24 24"><path d="m5 12 4 4 10-10"/></symbol></svg>
|
|
11
|
+
<header class="top">
|
|
12
|
+
<div class="brand"><svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true"><rect x="3" y="12" width="26" height="17" rx="4" fill="none" stroke="currentColor" stroke-width="2"/><path d="M4 20h24M11 13v15" fill="none" stroke="currentColor" stroke-width="1.6" opacity=".55"/><path d="M18 13V9" fill="none" stroke="currentColor" stroke-width="2"/><path d="M18 10C11 10 11 3 11 3c7 0 8 4 7 7Z" fill="currentColor" opacity=".55"/><path d="M18 8c0-6 8-7 8-7 0 6-3 9-8 7Z" fill="currentColor"/></svg>sqlseed</div>
|
|
13
|
+
<nav class="nav" id="nav" aria-label="主导航">
|
|
14
|
+
<button type="button" data-page="workbench">工作台</button>
|
|
15
|
+
<button type="button" data-page="runs">运行记录</button>
|
|
16
|
+
<button type="button" data-page="configs">配置管理</button>
|
|
17
|
+
<button type="button" data-page="settings">设置</button>
|
|
18
|
+
</nav>
|
|
19
|
+
<div class="top-end">
|
|
20
|
+
<button class="btn small" id="connection-button" type="button" aria-haspopup="dialog">
|
|
21
|
+
<svg class="icon" aria-hidden="true"><use href="#i-db"/></svg>
|
|
22
|
+
<span id="connection-label">连接数据库</span>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
</header>
|
|
26
|
+
<main id="app"></main>
|
|
27
|
+
<script type="module" src="/static/js/app.js"></script>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|