sqlite-hub 0.9.4 → 0.9.8
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/frontend/js/app.js +149 -22
- package/frontend/js/components/structureGraph.js +10 -9
- package/frontend/js/components/tableDesignerEditor.js +57 -36
- package/frontend/js/store.js +10 -4
- package/frontend/js/utils/dom.js +28 -0
- package/frontend/styles/base.css +1 -0
- package/frontend/styles/structure-graph.css +215 -213
- package/frontend/styles/tailwind.css +2 -3
- package/frontend/styles/tailwind.generated.css +2 -1
- package/package.json +11 -10
|
@@ -1,346 +1,348 @@
|
|
|
1
1
|
.structure-graph {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
background: var(--color-surface-container);
|
|
3
|
+
border: 1px solid rgba(138, 123, 52, 0.26);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
overflow: hidden;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.structure-graph__toolbar {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
flex-wrap: wrap;
|
|
21
|
-
gap: 1rem;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
padding: 1rem 1.25rem;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background: linear-gradient(to bottom, rgba(45, 43, 37, 0.97), rgba(23, 23, 20, 0.96));
|
|
14
|
+
border-bottom: 1px solid rgba(138, 123, 52, 0.24);
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
padding: 1rem 1.25rem;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.structure-graph__toolbar-main {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1 1 20rem;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
gap: 0.875rem;
|
|
28
|
+
min-width: 0;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
.structure-graph__toolbar-actions {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
align-items: center;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex: 0 0 auto;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
gap: 0.625rem;
|
|
37
|
+
justify-content: flex-end;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
.structure-graph__toolbar .standard-button,
|
|
45
41
|
.structure-graph__section-header .standard-button {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
align-items: center;
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
gap: 0.5rem;
|
|
46
|
+
justify-content: center;
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
.structure-graph__toolbar .standard-button:hover {
|
|
54
|
-
|
|
50
|
+
background: var(--color-surface-container-highest);
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
.structure-graph__toolbar .standard-button.is-active {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
background: var(--primary-alpha-12);
|
|
55
|
+
border-color: rgb(var(--rgb-primary) / 0.38);
|
|
56
|
+
color: var(--color-primary-container);
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
.structure-graph__toolbar .standard-button:disabled,
|
|
64
60
|
.structure-graph__section-header .standard-button:disabled {
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
border-color: var(--border-medium);
|
|
62
|
+
color: rgba(231, 223, 189, 0.34);
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
.structure-graph__workspace {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
display: grid;
|
|
67
|
+
flex: 1;
|
|
68
|
+
grid-template-columns: minmax(0, 1fr) 26rem;
|
|
69
|
+
min-height: 0;
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
.structure-graph.is-inspector-hidden .structure-graph__workspace {
|
|
77
|
-
|
|
73
|
+
grid-template-columns: minmax(0, 1fr);
|
|
78
74
|
}
|
|
79
75
|
|
|
80
76
|
.structure-graph__canvas-shell {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
77
|
+
background:
|
|
78
|
+
linear-gradient(rgba(138, 123, 52, 0.09) 1px, transparent 1px),
|
|
79
|
+
linear-gradient(90deg, rgba(138, 123, 52, 0.08) 1px, transparent 1px),
|
|
80
|
+
radial-gradient(circle at top left, rgb(var(--rgb-primary) / 0.14), transparent 30%),
|
|
81
|
+
radial-gradient(circle at bottom right, rgba(45, 250, 255, 0.1), transparent 24%),
|
|
82
|
+
linear-gradient(to bottom, rgba(27, 27, 24, 0.99), rgba(9, 10, 11, 0.99));
|
|
83
|
+
background-size:
|
|
84
|
+
28px 28px,
|
|
85
|
+
28px 28px,
|
|
86
|
+
auto,
|
|
87
|
+
auto,
|
|
88
|
+
auto;
|
|
89
|
+
min-height: 0;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
position: relative;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.structure-graph__canvas {
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
inset: 0;
|
|
96
|
+
position: absolute;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
.structure-graph__empty {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
align-items: center;
|
|
101
|
+
color: rgba(231, 223, 189, 0.58);
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 0.625rem;
|
|
105
|
+
inset: 0;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
padding: 2rem;
|
|
108
|
+
position: absolute;
|
|
109
|
+
text-align: center;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.structure-graph__empty-icon {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
color: rgb(var(--rgb-primary) / 0.42);
|
|
114
|
+
font-size: 2.25rem;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.structure-graph__inspector {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
background: linear-gradient(to bottom, rgba(26, 25, 23, 0.98), rgba(11, 11, 10, 0.99));
|
|
119
|
+
border-left: 1px solid rgba(138, 123, 52, 0.24);
|
|
120
|
+
height: 100%;
|
|
121
|
+
min-height: 0;
|
|
122
|
+
overflow-y: auto;
|
|
123
|
+
overflow-x: hidden;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
.structure-graph.is-inspector-hidden .structure-graph__inspector {
|
|
126
|
-
|
|
127
|
+
display: none;
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
.structure-graph__panel {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
gap: 1.25rem;
|
|
134
|
+
min-height: 100%;
|
|
135
|
+
padding: 1.25rem;
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.structure-graph__panel.is-empty {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
text-align: center;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.structure-graph__eyebrow {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
color: rgba(231, 223, 189, 0.62);
|
|
146
|
+
font-family: var(--font-family-mono);
|
|
147
|
+
font-size: 0.625rem;
|
|
148
|
+
letter-spacing: 0.2em;
|
|
149
|
+
text-transform: uppercase;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
.structure-graph__title {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
color: var(--color-primary-container);
|
|
154
|
+
font-family: var(--font-family-headline);
|
|
155
|
+
font-size: 2rem;
|
|
156
|
+
font-weight: 900;
|
|
157
|
+
letter-spacing: -0.04em;
|
|
158
|
+
line-height: 1;
|
|
159
|
+
text-transform: uppercase;
|
|
160
|
+
word-break: break-all;
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
.structure-graph__subtitle {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
color: rgba(231, 223, 189, 0.62);
|
|
165
|
+
font-family: var(--font-family-mono);
|
|
166
|
+
font-size: 0.625rem;
|
|
167
|
+
letter-spacing: 0.18em;
|
|
168
|
+
text-transform: uppercase;
|
|
167
169
|
}
|
|
168
170
|
|
|
169
171
|
.structure-graph__summary {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
display: grid;
|
|
173
|
+
gap: 0.75rem;
|
|
174
|
+
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
.structure-graph__summary-card {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
178
|
+
background: rgba(15, 15, 13, 0.94);
|
|
179
|
+
border: 1px solid rgba(138, 123, 52, 0.26);
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
gap: 0.75rem;
|
|
184
|
+
min-height: 0;
|
|
185
|
+
padding: 0.625rem 0.75rem;
|
|
184
186
|
}
|
|
185
187
|
|
|
186
188
|
.structure-graph__summary-label {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
color: rgba(231, 223, 189, 0.52);
|
|
190
|
+
flex: 1;
|
|
191
|
+
font-family: var(--font-family-mono);
|
|
192
|
+
font-size: 0.5625rem;
|
|
193
|
+
letter-spacing: 0.18em;
|
|
194
|
+
text-transform: uppercase;
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
.structure-graph__summary-value {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
color: var(--color-primary-container);
|
|
199
|
+
flex: 0 0 auto;
|
|
200
|
+
font-family: var(--font-family-mono);
|
|
201
|
+
font-size: 0.6875rem;
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
letter-spacing: 0.14em;
|
|
204
|
+
text-transform: uppercase;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
207
|
.structure-graph__section {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
background: rgba(15, 15, 13, 0.84);
|
|
209
|
+
border: 1px solid rgba(138, 123, 52, 0.22);
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
gap: 0.875rem;
|
|
213
|
+
padding: 1rem;
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
.structure-graph__section-title {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
217
|
+
color: var(--color-primary-container);
|
|
218
|
+
font-family: var(--font-family-mono);
|
|
219
|
+
font-size: 0.625rem;
|
|
220
|
+
font-weight: 700;
|
|
221
|
+
letter-spacing: 0.18em;
|
|
222
|
+
text-transform: uppercase;
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
.structure-graph__section-header {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
align-items: center;
|
|
227
|
+
display: flex;
|
|
228
|
+
gap: 0.75rem;
|
|
229
|
+
justify-content: space-between;
|
|
228
230
|
}
|
|
229
231
|
|
|
230
232
|
.structure-graph__column-list {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
gap: 0.625rem;
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
.structure-graph__column-row {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
align-items: flex-start;
|
|
240
|
+
display: grid;
|
|
241
|
+
gap: 0.75rem;
|
|
242
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
.structure-graph__column-name {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
color: var(--color-on-surface);
|
|
247
|
+
font-family: var(--font-family-mono);
|
|
248
|
+
font-size: 0.75rem;
|
|
249
|
+
min-width: 0;
|
|
250
|
+
overflow-wrap: anywhere;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
.structure-graph__column-type {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
color: rgba(231, 223, 189, 0.58);
|
|
255
|
+
font-family: var(--font-family-mono);
|
|
256
|
+
font-size: 0.625rem;
|
|
257
|
+
letter-spacing: 0.14em;
|
|
258
|
+
text-transform: uppercase;
|
|
257
259
|
}
|
|
258
260
|
|
|
259
261
|
.structure-graph__column-flags {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-wrap: wrap;
|
|
264
|
+
gap: 0.375rem;
|
|
265
|
+
justify-content: flex-end;
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
.structure-graph__flag {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
background: rgba(39, 38, 34, 0.94);
|
|
270
|
+
border: 1px solid rgba(138, 123, 52, 0.24);
|
|
271
|
+
color: rgba(244, 239, 232, 0.82);
|
|
272
|
+
font-family: var(--font-family-mono);
|
|
273
|
+
font-size: 0.5625rem;
|
|
274
|
+
letter-spacing: 0.14em;
|
|
275
|
+
padding: 0.125rem 0.375rem;
|
|
276
|
+
text-transform: uppercase;
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
.structure-graph__flag.is-key {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
background: var(--primary-alpha-18);
|
|
281
|
+
border-color: rgb(var(--rgb-primary) / 0.34);
|
|
282
|
+
color: #fff6ae;
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
.structure-graph__flag.is-link {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
286
|
+
background: rgba(45, 250, 255, 0.14);
|
|
287
|
+
border-color: rgba(45, 250, 255, 0.28);
|
|
288
|
+
color: #9ffcff;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
.structure-graph__flag.is-nullable {
|
|
290
|
-
|
|
292
|
+
color: rgba(231, 223, 189, 0.58);
|
|
291
293
|
}
|
|
292
294
|
|
|
293
295
|
.structure-graph__list {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-direction: column;
|
|
298
|
+
gap: 0.5rem;
|
|
297
299
|
}
|
|
298
300
|
|
|
299
301
|
.structure-graph__list-item {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
align-items: center;
|
|
303
|
+
color: rgb(var(--rgb-on-surface) / 0.82);
|
|
304
|
+
display: flex;
|
|
305
|
+
justify-content: space-between;
|
|
306
|
+
gap: 0.75rem;
|
|
305
307
|
}
|
|
306
308
|
|
|
307
309
|
.structure-graph__list-item-label {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
color: rgba(231, 223, 189, 0.62);
|
|
311
|
+
font-family: var(--font-family-mono);
|
|
312
|
+
font-size: 0.625rem;
|
|
313
|
+
letter-spacing: 0.14em;
|
|
314
|
+
text-transform: uppercase;
|
|
313
315
|
}
|
|
314
316
|
|
|
315
317
|
.structure-graph__ddl {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
318
|
+
color: rgba(244, 239, 232, 0.78);
|
|
319
|
+
font-family: var(--font-family-mono);
|
|
320
|
+
font-size: 0.6875rem;
|
|
321
|
+
line-height: 1.65;
|
|
322
|
+
margin: 0;
|
|
323
|
+
max-height: 18rem;
|
|
324
|
+
overflow: auto;
|
|
325
|
+
white-space: pre-wrap;
|
|
324
326
|
}
|
|
325
327
|
|
|
326
328
|
.structure-entry--graph-active {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
+
border-color: rgb(var(--rgb-primary) / 0.44);
|
|
330
|
+
box-shadow: inset 0 0 0 1px var(--primary-alpha-18);
|
|
329
331
|
}
|
|
330
332
|
|
|
331
333
|
.structure-entry--graph-related {
|
|
332
|
-
|
|
334
|
+
border-color: rgba(45, 250, 255, 0.34);
|
|
333
335
|
}
|
|
334
336
|
|
|
335
337
|
@media (max-width: 1279px) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
.structure-graph__workspace {
|
|
339
|
+
grid-template-columns: minmax(0, 1fr);
|
|
340
|
+
grid-template-rows: minmax(28rem, 1fr) auto;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.structure-graph__inspector {
|
|
344
|
+
border-left: 0;
|
|
345
|
+
border-top: 1px solid var(--border-medium);
|
|
346
|
+
max-height: 28rem;
|
|
347
|
+
}
|
|
346
348
|
}
|