@monster-orange/den-ui 0.7.0 → 0.7.4
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/README.md +125 -12
- package/bin/den-ui-parity.mjs +2 -0
- package/inventory/nav-inventory.d.ts +44 -1
- package/inventory/nav-inventory.js +295 -3
- package/inventory/reference/den-chromium-1280.json +338 -110
- package/inventory/reference/den-chromium-390.json +271 -39
- package/inventory/reference/den-webkit-1280.json +338 -110
- package/inventory/reference/den-webkit-390.json +271 -39
- package/package.json +1 -1
- package/src/busy.d.ts +1 -0
- package/src/busy.js +23 -14
- package/src/kit.d.ts +2 -0
- package/src/kit.js +2 -0
- package/src/shell-client.js +48 -0
- package/src/shell-html.d.ts +93 -10
- package/src/shell-html.js +292 -41
- package/src/shell.css +310 -16
- package/src/strings.js +44 -0
- package/src/version.js +5 -1
package/src/shell.css
CHANGED
|
@@ -61,9 +61,36 @@ body.den-has-shell > #den-content {
|
|
|
61
61
|
top: 8px;
|
|
62
62
|
}
|
|
63
63
|
.den-top {
|
|
64
|
-
|
|
64
|
+
/* Issue 303: three parts. The left part (☰, the brand, the crumbs) and
|
|
65
|
+
the search have set widths, so the search sits at the same x and
|
|
66
|
+
width in every product whatever the host's words; the chips take the
|
|
67
|
+
rest, pinned to the right edge. The chips' column is never narrower
|
|
68
|
+
than the kit's own buttons (the host's chips count for nothing
|
|
69
|
+
there): when the bar is too narrow for all three, the left part gives
|
|
70
|
+
way. Settings: --den-top-left (444px), --den-top-search (304px). */
|
|
71
|
+
display: grid;
|
|
72
|
+
/* The search never moves (issue 303): its x is a function of the
|
|
73
|
+
viewport only, the same in any host. The left part is
|
|
74
|
+
--den-top-left (444px), less what the search and the kit's right
|
|
75
|
+
group need (--den-top-right, 380px); the right group gives way
|
|
76
|
+
inside its column (the host's chips, then the version's text),
|
|
77
|
+
never Report, the bell or ◐. searchSlot() in the inventory is the
|
|
78
|
+
same sum. */
|
|
79
|
+
grid-template-columns:
|
|
80
|
+
minmax(
|
|
81
|
+
0,
|
|
82
|
+
min(
|
|
83
|
+
var(--den-top-left, 444px),
|
|
84
|
+
calc(
|
|
85
|
+
100% - var(--den-top-search, 304px) - var(--den-top-right, 380px) -
|
|
86
|
+
16px
|
|
87
|
+
)
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
var(--den-top-search, 304px)
|
|
91
|
+
minmax(0, 1fr);
|
|
65
92
|
align-items: center;
|
|
66
|
-
gap: 8px;
|
|
93
|
+
column-gap: 8px;
|
|
67
94
|
height: var(--den-top-h);
|
|
68
95
|
box-sizing: border-box;
|
|
69
96
|
padding: 0 12px;
|
|
@@ -100,19 +127,31 @@ body.den-has-shell > #den-content {
|
|
|
100
127
|
background: var(--bar, none);
|
|
101
128
|
pointer-events: none;
|
|
102
129
|
}
|
|
130
|
+
.den-left {
|
|
131
|
+
grid-column: 1;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 8px;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
}
|
|
137
|
+
/* The crumbs give way first: they shrink before the brand does. */
|
|
103
138
|
.den-brand {
|
|
104
139
|
display: flex;
|
|
105
140
|
align-items: center;
|
|
106
141
|
gap: 8px;
|
|
107
142
|
color: var(--text);
|
|
108
143
|
text-decoration: none;
|
|
109
|
-
flex
|
|
144
|
+
flex: 0 0.001 auto;
|
|
145
|
+
min-width: 0;
|
|
110
146
|
white-space: nowrap;
|
|
111
147
|
}
|
|
112
148
|
.den-title {
|
|
113
149
|
font: 600 15px var(--display);
|
|
114
150
|
margin: 0;
|
|
115
151
|
white-space: nowrap;
|
|
152
|
+
min-width: 0;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
text-overflow: ellipsis;
|
|
116
155
|
}
|
|
117
156
|
/* The mark's layout (0.7.0, from Den's own sheet): a centred box its
|
|
118
157
|
image fills, whatever the host's mark is. */
|
|
@@ -190,10 +229,112 @@ body.den-has-shell > #den-content {
|
|
|
190
229
|
display: none;
|
|
191
230
|
}
|
|
192
231
|
.den-chips {
|
|
232
|
+
grid-column: 3;
|
|
193
233
|
display: flex;
|
|
194
234
|
align-items: center;
|
|
235
|
+
justify-content: flex-end;
|
|
195
236
|
gap: 4px;
|
|
196
|
-
|
|
237
|
+
min-width: 0;
|
|
238
|
+
/* A clear gap after the search's ⌕. */
|
|
239
|
+
padding-left: 8px;
|
|
240
|
+
}
|
|
241
|
+
/* The kit's own buttons keep their size; the host's chips give way. */
|
|
242
|
+
.den-chips > * {
|
|
243
|
+
flex: none;
|
|
244
|
+
}
|
|
245
|
+
/* The version sits in a fixed slot (96px; 64px up to 1100px): its text
|
|
246
|
+
ends in "…" inside it (the whole version in the text's title), so
|
|
247
|
+
Report, the bell and ◐ sit at the same x in any host, anchored from
|
|
248
|
+
the right edge. */
|
|
249
|
+
.den-chips > .v-pill,
|
|
250
|
+
#den-shell .den-chips > .v-pill {
|
|
251
|
+
flex: none;
|
|
252
|
+
width: var(--den-top-version, 96px);
|
|
253
|
+
min-width: 0;
|
|
254
|
+
justify-content: center;
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
}
|
|
257
|
+
@media (max-width: 1100px) {
|
|
258
|
+
.den-chips > .v-pill,
|
|
259
|
+
#den-shell .den-chips > .v-pill {
|
|
260
|
+
width: var(--den-top-version-md, 64px);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
.den-chips > .v-pill .v-txt {
|
|
264
|
+
min-width: 0;
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
text-overflow: ellipsis;
|
|
267
|
+
white-space: nowrap;
|
|
268
|
+
}
|
|
269
|
+
/* Report, the bell and ◐ are the kit's: their font and box are set here,
|
|
270
|
+
so a host's own rules (letter-spacing, box-sizing) can't size them. */
|
|
271
|
+
.den-chips > .den-rb-top,
|
|
272
|
+
.den-chips > #den-bell,
|
|
273
|
+
.den-chips > .appearance-btn {
|
|
274
|
+
font-family: var(--sans);
|
|
275
|
+
letter-spacing: normal;
|
|
276
|
+
word-spacing: normal;
|
|
277
|
+
text-transform: none;
|
|
278
|
+
box-sizing: border-box;
|
|
279
|
+
}
|
|
280
|
+
/* The host's chips (issue 303): the first to give way when the bar is
|
|
281
|
+
short. Their group takes the room left of the kit's buttons, right
|
|
282
|
+
aligned, clipped on the x axis only (a touch tap area still reaches
|
|
283
|
+
above and below); under 40px its chips hide, so none ever sits under
|
|
284
|
+
the search. */
|
|
285
|
+
.den-end {
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: flex-end;
|
|
289
|
+
gap: 4px;
|
|
290
|
+
flex: 1 1 0;
|
|
291
|
+
min-width: 0;
|
|
292
|
+
overflow-x: clip;
|
|
293
|
+
/* Its chips never widen the bar: the group's own width is the room. */
|
|
294
|
+
contain: inline-size;
|
|
295
|
+
}
|
|
296
|
+
/* A host chip gives way: its last part (its words, in a span) ends in
|
|
297
|
+
"…". */
|
|
298
|
+
/* Width 0, growing to its own width: a host chip takes only the room
|
|
299
|
+
there is, and counts for nothing in the chips' least width. */
|
|
300
|
+
.den-top .den-end > * {
|
|
301
|
+
width: auto;
|
|
302
|
+
flex: 0 1 auto;
|
|
303
|
+
max-width: max-content;
|
|
304
|
+
/* A shrunk chip keeps its dot and "…" (its words in its title and
|
|
305
|
+
name, set by the kit's hydration). */
|
|
306
|
+
min-width: 2.6em;
|
|
307
|
+
display: inline-flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
}
|
|
311
|
+
.den-top .den-end > * > :last-child {
|
|
312
|
+
min-width: 0;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
text-overflow: ellipsis;
|
|
315
|
+
white-space: nowrap;
|
|
316
|
+
}
|
|
317
|
+
@media not (pointer: coarse) {
|
|
318
|
+
.den-top .den-end > * {
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
/* On a touch screen nothing is clipped, so a chip's 44px tap reaches
|
|
323
|
+
past its group. */
|
|
324
|
+
@media (pointer: coarse) {
|
|
325
|
+
.den-end {
|
|
326
|
+
overflow-x: visible;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/* A phone: nothing is clipped (touch or not, the bar looks the same);
|
|
330
|
+
the chips shrink to the room there is. */
|
|
331
|
+
@media (max-width: 720px) {
|
|
332
|
+
.den-end {
|
|
333
|
+
overflow-x: visible;
|
|
334
|
+
}
|
|
335
|
+
.den-top .den-end > * {
|
|
336
|
+
min-width: 0;
|
|
337
|
+
}
|
|
197
338
|
}
|
|
198
339
|
.den-user {
|
|
199
340
|
display: contents;
|
|
@@ -396,6 +537,25 @@ body.den-has-shell > #den-content {
|
|
|
396
537
|
background: color-mix(in srgb, var(--bad) 16%, transparent);
|
|
397
538
|
color: var(--bad);
|
|
398
539
|
}
|
|
540
|
+
/* Issue 307: a pin's or a cross-app link's kind (PROJECT, DEN, SERVICE,
|
|
541
|
+
HUB, an artifact's word), at the row's end. Its look is the scope
|
|
542
|
+
labels' (.den-k); this only places it. */
|
|
543
|
+
.den-ni-kind {
|
|
544
|
+
flex: none;
|
|
545
|
+
white-space: nowrap;
|
|
546
|
+
}
|
|
547
|
+
/* A project pin's initial, in a disc the icon's size, in place of it. */
|
|
548
|
+
.den-ini {
|
|
549
|
+
width: 18px;
|
|
550
|
+
height: 18px;
|
|
551
|
+
flex: none;
|
|
552
|
+
border-radius: 50%;
|
|
553
|
+
display: inline-grid;
|
|
554
|
+
place-items: center;
|
|
555
|
+
background: var(--sunken);
|
|
556
|
+
color: var(--text);
|
|
557
|
+
font: 500 11px/1 var(--sans);
|
|
558
|
+
}
|
|
399
559
|
.den-rail-grow {
|
|
400
560
|
flex: 1;
|
|
401
561
|
}
|
|
@@ -470,7 +630,8 @@ body.den-has-shell > #den-content {
|
|
|
470
630
|
color: var(--muted);
|
|
471
631
|
border-color: transparent;
|
|
472
632
|
}
|
|
473
|
-
body.den-rail-collapsed .den-rail .den-pvisit
|
|
633
|
+
body.den-rail-collapsed .den-rail .den-pvisit,
|
|
634
|
+
body.den-rail-collapsed .den-rail .den-ni-kind {
|
|
474
635
|
display: none;
|
|
475
636
|
}
|
|
476
637
|
@media (max-width: 720px) {
|
|
@@ -481,6 +642,9 @@ body.den-rail-collapsed .den-rail .den-pvisit {
|
|
|
481
642
|
body.den-rail-collapsed .den-rail .den-pvisit {
|
|
482
643
|
display: grid;
|
|
483
644
|
}
|
|
645
|
+
body.den-rail-collapsed .den-rail .den-ni-kind {
|
|
646
|
+
display: inline;
|
|
647
|
+
}
|
|
484
648
|
}
|
|
485
649
|
body.den-rail-collapsed .den-rail .den-lbl,
|
|
486
650
|
body.den-rail-collapsed .den-rail .den-gh,
|
|
@@ -511,10 +675,16 @@ body.den-has-shell .den-upd {
|
|
|
511
675
|
}
|
|
512
676
|
.den-rail {
|
|
513
677
|
transform: translateX(-105%);
|
|
514
|
-
transition: transform 0.18s;
|
|
515
678
|
box-shadow: var(--shadow);
|
|
516
679
|
z-index: 42;
|
|
517
680
|
}
|
|
681
|
+
/* The drawer slides only once the person has opened or closed it
|
|
682
|
+
(shell-client adds den-rail-moved then). Before that, a load or a
|
|
683
|
+
window narrowing past 720 puts the rail straight where it belongs;
|
|
684
|
+
a transition here slid it across the page (issue 311). */
|
|
685
|
+
body.den-rail-moved .den-rail {
|
|
686
|
+
transition: transform 0.18s;
|
|
687
|
+
}
|
|
518
688
|
body.den-rail-open .den-rail {
|
|
519
689
|
transform: none;
|
|
520
690
|
}
|
|
@@ -572,7 +742,8 @@ body.den-has-shell .den-upd {
|
|
|
572
742
|
}
|
|
573
743
|
}
|
|
574
744
|
@media (prefers-reduced-motion: reduce) {
|
|
575
|
-
.den-rail
|
|
745
|
+
.den-rail,
|
|
746
|
+
body.den-rail-moved .den-rail {
|
|
576
747
|
transition: none;
|
|
577
748
|
}
|
|
578
749
|
}
|
|
@@ -615,12 +786,21 @@ body.den-has-shell .den-upd {
|
|
|
615
786
|
/* The scope crumbs: / KEY value ▾ / … The search gives way first: the
|
|
616
787
|
crumbs keep their parts whole (each value is capped), so they never run
|
|
617
788
|
into one another. */
|
|
789
|
+
/* The crumbs (issue 303): each crumb a column of minmax(auto, max-content)
|
|
790
|
+
whose least width is 0 (min-width: 0), so the room there is goes to
|
|
791
|
+
every crumb alike until each is whole: a short crumb keeps its words, a
|
|
792
|
+
long one ends in an ellipsis, and the last crumb is kept whole. They
|
|
793
|
+
give way before the brand. */
|
|
618
794
|
.den-scope {
|
|
619
|
-
display:
|
|
795
|
+
display: grid;
|
|
796
|
+
grid-auto-flow: column;
|
|
797
|
+
grid-auto-columns: minmax(auto, max-content);
|
|
620
798
|
align-items: center;
|
|
621
|
-
gap: 2px;
|
|
622
|
-
|
|
623
|
-
|
|
799
|
+
column-gap: 2px;
|
|
800
|
+
/* Never narrower than what its crumbs can give: past that, the brand
|
|
801
|
+
gives way. */
|
|
802
|
+
min-width: min-content;
|
|
803
|
+
flex: 0 999 auto;
|
|
624
804
|
position: relative;
|
|
625
805
|
}
|
|
626
806
|
.den-sep {
|
|
@@ -634,6 +814,53 @@ body.den-has-shell .den-upd {
|
|
|
634
814
|
font-size: 13px;
|
|
635
815
|
min-width: 0;
|
|
636
816
|
}
|
|
817
|
+
/* The last crumb's least width is its whole self: it never gives way. */
|
|
818
|
+
.den-scope .den-ib.den-last {
|
|
819
|
+
min-width: auto;
|
|
820
|
+
}
|
|
821
|
+
.den-scope .den-ib > * {
|
|
822
|
+
flex: none;
|
|
823
|
+
}
|
|
824
|
+
/* The label gives way first (down to nothing), then the value ends in
|
|
825
|
+
"…": a crumb's value outlasts its label. Before the last crumb, a
|
|
826
|
+
value keeps about 4ch and its ▾. */
|
|
827
|
+
.den-scope .den-ib > .den-k {
|
|
828
|
+
flex: 0 1000 auto;
|
|
829
|
+
min-width: 0;
|
|
830
|
+
overflow: hidden;
|
|
831
|
+
white-space: nowrap;
|
|
832
|
+
}
|
|
833
|
+
.den-scope .den-ib:not(.den-last) > .den-v {
|
|
834
|
+
min-width: calc(5ch + 0.28em);
|
|
835
|
+
}
|
|
836
|
+
.den-scope .den-ib:not(.den-last) > :last-child:not(.den-v):not(.den-k) {
|
|
837
|
+
min-width: 4ch;
|
|
838
|
+
}
|
|
839
|
+
/* The value gives way (its ▾ stays): a static crumb's value, or a menu
|
|
840
|
+
crumb's value box and the name in it. */
|
|
841
|
+
.den-scope .den-ib > :last-child {
|
|
842
|
+
flex: 0 1 auto;
|
|
843
|
+
min-width: 0;
|
|
844
|
+
overflow: hidden;
|
|
845
|
+
text-overflow: ellipsis;
|
|
846
|
+
white-space: nowrap;
|
|
847
|
+
}
|
|
848
|
+
.den-scope .den-v {
|
|
849
|
+
display: inline-flex;
|
|
850
|
+
align-items: baseline;
|
|
851
|
+
/* The space between the value and its ▾. */
|
|
852
|
+
column-gap: 0.28em;
|
|
853
|
+
}
|
|
854
|
+
.den-scope .den-v > .den-vn {
|
|
855
|
+
flex: 0 1 auto;
|
|
856
|
+
min-width: 0;
|
|
857
|
+
overflow: hidden;
|
|
858
|
+
text-overflow: ellipsis;
|
|
859
|
+
white-space: nowrap;
|
|
860
|
+
}
|
|
861
|
+
.den-scope .den-v > :not(.den-vn) {
|
|
862
|
+
flex: none;
|
|
863
|
+
}
|
|
637
864
|
.den-k {
|
|
638
865
|
font: 11px var(--mono);
|
|
639
866
|
color: var(--faint);
|
|
@@ -656,9 +883,8 @@ body.den-has-shell .den-upd {
|
|
|
656
883
|
/* The search field, ⌘K inside it. Its sizes are content-box (a page may
|
|
657
884
|
reset everything to border-box). */
|
|
658
885
|
.den-search {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
margin: 0 auto;
|
|
886
|
+
grid-column: 2;
|
|
887
|
+
margin: 0;
|
|
662
888
|
display: flex;
|
|
663
889
|
align-items: center;
|
|
664
890
|
gap: 8px;
|
|
@@ -813,6 +1039,25 @@ body.den-has-shell .den-upd {
|
|
|
813
1039
|
.den-acct-d {
|
|
814
1040
|
color: var(--faint);
|
|
815
1041
|
}
|
|
1042
|
+
/* Who is signed in (0.7.1): the name, then @login under it, quieter;
|
|
1043
|
+
the same in the rail's entry and the account menu's header. */
|
|
1044
|
+
.den-acct {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: column;
|
|
1047
|
+
min-width: 0;
|
|
1048
|
+
}
|
|
1049
|
+
.den-acct-n,
|
|
1050
|
+
.den-acct-l,
|
|
1051
|
+
.den-acct-r {
|
|
1052
|
+
overflow: hidden;
|
|
1053
|
+
text-overflow: ellipsis;
|
|
1054
|
+
white-space: nowrap;
|
|
1055
|
+
}
|
|
1056
|
+
.den-acct-l,
|
|
1057
|
+
.den-acct-r {
|
|
1058
|
+
font-size: 11px;
|
|
1059
|
+
color: var(--faint);
|
|
1060
|
+
}
|
|
816
1061
|
|
|
817
1062
|
/* Narrow: the crumbs' keys and the optional crumb give way, then the
|
|
818
1063
|
crumbs hide and the search is its icon. */
|
|
@@ -824,12 +1069,23 @@ body.den-has-shell .den-upd {
|
|
|
824
1069
|
}
|
|
825
1070
|
}
|
|
826
1071
|
@media (max-width: 720px) {
|
|
1072
|
+
/* The search is its icon, in a slot after the brand: the same x in
|
|
1073
|
+
every product (--den-top-left-md, 200px; on a phone
|
|
1074
|
+
--den-top-left-sm, 62px: ☰ and the mark). */
|
|
1075
|
+
.den-top {
|
|
1076
|
+
grid-template-columns: minmax(0, var(--den-top-left-md, 200px)) auto minmax(
|
|
1077
|
+
min-content,
|
|
1078
|
+
1fr
|
|
1079
|
+
);
|
|
1080
|
+
}
|
|
1081
|
+
.den-chips {
|
|
1082
|
+
padding-left: 0;
|
|
1083
|
+
}
|
|
827
1084
|
.den-scope {
|
|
828
1085
|
display: none;
|
|
829
1086
|
}
|
|
830
1087
|
.den-search {
|
|
831
|
-
|
|
832
|
-
margin: 0 0 0 auto;
|
|
1088
|
+
margin: 0;
|
|
833
1089
|
}
|
|
834
1090
|
.den-search-ph,
|
|
835
1091
|
.den-search kbd {
|
|
@@ -839,6 +1095,12 @@ body.den-has-shell .den-upd {
|
|
|
839
1095
|
|
|
840
1096
|
/* A phone's tap targets: every top-bar button 32px or more each way. */
|
|
841
1097
|
@media (max-width: 479.98px) {
|
|
1098
|
+
.den-top {
|
|
1099
|
+
grid-template-columns: var(--den-top-left-sm, 62px) auto minmax(
|
|
1100
|
+
min-content,
|
|
1101
|
+
1fr
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
842
1104
|
.den-top button {
|
|
843
1105
|
min-height: 32px;
|
|
844
1106
|
min-width: 32px;
|
|
@@ -1008,3 +1270,35 @@ body.den-has-shell .den-upd {
|
|
|
1008
1270
|
display: none;
|
|
1009
1271
|
}
|
|
1010
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
/* Touch (issue 303): .den-hit is the kit's 44×44px tap, for any control
|
|
1275
|
+
(the kit's top bar uses it, and a host may put it on its own buttons
|
|
1276
|
+
and tabs): a hit area centred on the control, transparent, with no
|
|
1277
|
+
change to its look or layout, on a touch screen only. Key hints
|
|
1278
|
+
(.den-kbd, and the bar's kbd) hide on a touch screen, wherever they
|
|
1279
|
+
are. */
|
|
1280
|
+
@media (pointer: coarse) {
|
|
1281
|
+
.den-hit,
|
|
1282
|
+
.den-top button,
|
|
1283
|
+
.den-top a[href] {
|
|
1284
|
+
position: relative;
|
|
1285
|
+
}
|
|
1286
|
+
.den-hit::after,
|
|
1287
|
+
.den-top button::after,
|
|
1288
|
+
.den-top a[href]::after {
|
|
1289
|
+
content: "";
|
|
1290
|
+
position: absolute;
|
|
1291
|
+
left: 50%;
|
|
1292
|
+
top: 50%;
|
|
1293
|
+
width: 100%;
|
|
1294
|
+
height: 100%;
|
|
1295
|
+
min-width: 44px;
|
|
1296
|
+
min-height: 44px;
|
|
1297
|
+
transform: translate(-50%, -50%);
|
|
1298
|
+
background: transparent;
|
|
1299
|
+
}
|
|
1300
|
+
.den-kbd,
|
|
1301
|
+
.den-top kbd {
|
|
1302
|
+
display: none;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
package/src/strings.js
CHANGED
|
@@ -22,6 +22,7 @@ export const en = {
|
|
|
22
22
|
"kit.menu": "Menu",
|
|
23
23
|
"kit.scope": "Scope",
|
|
24
24
|
"kit.search.ph": "Search…",
|
|
25
|
+
"kit.account.local": "Local",
|
|
25
26
|
"kit.search.label": "Search",
|
|
26
27
|
"kit.bell": "Notifications",
|
|
27
28
|
"kit.bell.n": "Notifications: {n} unread",
|
|
@@ -46,6 +47,19 @@ export const en = {
|
|
|
46
47
|
"kit.version.title": "View changelog",
|
|
47
48
|
"kit.pin.pinX": "Pin {s}",
|
|
48
49
|
"kit.pin.unpinX": "Unpin {s}",
|
|
50
|
+
"kit.badge.open": "{n} open",
|
|
51
|
+
"kit.badge.waiting": "{n} waiting",
|
|
52
|
+
"kit.badge.down": "{n} down",
|
|
53
|
+
"kit.badge.running": "{n} running",
|
|
54
|
+
"kit.kind.project": "Project",
|
|
55
|
+
"kit.kind.den": "Den",
|
|
56
|
+
"kit.kind.service": "Service",
|
|
57
|
+
"kit.kind.hub": "Hub",
|
|
58
|
+
"kit.off.connect": "connect in Settings",
|
|
59
|
+
"kit.off.reconnect": "reconnect in Settings",
|
|
60
|
+
"kit.off.forbidden": "ask an admin for access",
|
|
61
|
+
"kit.off.unreachable": "can't be reached right now",
|
|
62
|
+
"kit.off.config": "check Settings",
|
|
49
63
|
"kit.whatsnew.title": "What's new",
|
|
50
64
|
"kit.whatsnew.close": "Close",
|
|
51
65
|
"kit.whatsnew.gotIt": "Got it",
|
|
@@ -179,6 +193,7 @@ export const es = {
|
|
|
179
193
|
"kit.menu": "Menú",
|
|
180
194
|
"kit.scope": "Ámbito",
|
|
181
195
|
"kit.search.ph": "Buscar…",
|
|
196
|
+
"kit.account.local": "Local",
|
|
182
197
|
"kit.search.label": "Buscar",
|
|
183
198
|
"kit.bell": "Notificaciones",
|
|
184
199
|
"kit.bell.n": "Notificaciones: {n} sin leer",
|
|
@@ -203,6 +218,21 @@ export const es = {
|
|
|
203
218
|
"kit.version.title": "Ver el registro de cambios",
|
|
204
219
|
"kit.pin.pinX": "Fijar {s}",
|
|
205
220
|
"kit.pin.unpinX": "Quitar {s}",
|
|
221
|
+
"kit.badge.open": "{n} abiertos",
|
|
222
|
+
"kit.badge.open.one": "{n} abierto",
|
|
223
|
+
"kit.badge.waiting": "{n} en espera",
|
|
224
|
+
"kit.badge.down": "{n} caídos",
|
|
225
|
+
"kit.badge.down.one": "{n} caído",
|
|
226
|
+
"kit.badge.running": "{n} en marcha",
|
|
227
|
+
"kit.kind.project": "Proyecto",
|
|
228
|
+
"kit.kind.den": "Den",
|
|
229
|
+
"kit.kind.service": "Servicio",
|
|
230
|
+
"kit.kind.hub": "Hub",
|
|
231
|
+
"kit.off.connect": "conéctalo en Ajustes",
|
|
232
|
+
"kit.off.reconnect": "vuelve a conectarlo en Ajustes",
|
|
233
|
+
"kit.off.forbidden": "pide acceso a un administrador",
|
|
234
|
+
"kit.off.unreachable": "no responde ahora mismo",
|
|
235
|
+
"kit.off.config": "revisa Ajustes",
|
|
206
236
|
"kit.whatsnew.title": "Novedades",
|
|
207
237
|
"kit.whatsnew.close": "Cerrar",
|
|
208
238
|
"kit.whatsnew.gotIt": "Entendido",
|
|
@@ -340,6 +370,7 @@ export const ja = {
|
|
|
340
370
|
"kit.menu": "メニュー",
|
|
341
371
|
"kit.scope": "スコープ",
|
|
342
372
|
"kit.search.ph": "検索…",
|
|
373
|
+
"kit.account.local": "ローカル",
|
|
343
374
|
"kit.search.label": "検索",
|
|
344
375
|
"kit.bell": "通知",
|
|
345
376
|
"kit.bell.n": "通知: 未読 {n} 件",
|
|
@@ -364,6 +395,19 @@ export const ja = {
|
|
|
364
395
|
"kit.version.title": "変更履歴を見る",
|
|
365
396
|
"kit.pin.pinX": "{s} をピン留め",
|
|
366
397
|
"kit.pin.unpinX": "{s} のピン留めを外す",
|
|
398
|
+
"kit.badge.open": "{n} 件開いています",
|
|
399
|
+
"kit.badge.waiting": "{n} 件待機中",
|
|
400
|
+
"kit.badge.down": "{n} 件停止",
|
|
401
|
+
"kit.badge.running": "{n} 件実行中",
|
|
402
|
+
"kit.kind.project": "プロジェクト",
|
|
403
|
+
"kit.kind.den": "Den",
|
|
404
|
+
"kit.kind.service": "サービス",
|
|
405
|
+
"kit.kind.hub": "Hub",
|
|
406
|
+
"kit.off.connect": "設定で接続してください",
|
|
407
|
+
"kit.off.reconnect": "設定で再接続してください",
|
|
408
|
+
"kit.off.forbidden": "管理者にアクセスを依頼してください",
|
|
409
|
+
"kit.off.unreachable": "現在接続できません",
|
|
410
|
+
"kit.off.config": "設定を確認してください",
|
|
367
411
|
"kit.whatsnew.title": "新着情報",
|
|
368
412
|
"kit.whatsnew.close": "閉じる",
|
|
369
413
|
"kit.whatsnew.gotIt": "OK",
|
package/src/version.js
CHANGED
|
@@ -20,7 +20,11 @@ export function setVersion(label, root = document) {
|
|
|
20
20
|
? root.getElementById("version-pill")
|
|
21
21
|
: root.querySelector("#version-pill");
|
|
22
22
|
const txt = el?.querySelector(".v-txt");
|
|
23
|
-
if (txt && label)
|
|
23
|
+
if (txt && label) {
|
|
24
|
+
txt.textContent = label;
|
|
25
|
+
// The whole version, when the bar is short and the text ends in "…".
|
|
26
|
+
txt.title = label;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export function setUnread(on, root = document) {
|