@monster-orange/den-ui 0.7.1 → 0.7.5

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/src/strings.js CHANGED
@@ -27,6 +27,9 @@ export const en = {
27
27
  "kit.bell": "Notifications",
28
28
  "kit.bell.n": "Notifications: {n} unread",
29
29
  "kit.bell.empty": "Nothing new.",
30
+ "kit.bell.needs": "Needs you",
31
+ "kit.bell.earlier": "Earlier",
32
+ "kit.bell.needsNone": "Nothing needs you now.",
30
33
  "kit.settings": "Settings",
31
34
  "kit.appearance": "Appearance",
32
35
  "kit.appearance.title": "Appearance and theme",
@@ -47,6 +50,19 @@ export const en = {
47
50
  "kit.version.title": "View changelog",
48
51
  "kit.pin.pinX": "Pin {s}",
49
52
  "kit.pin.unpinX": "Unpin {s}",
53
+ "kit.badge.open": "{n} open",
54
+ "kit.badge.waiting": "{n} waiting",
55
+ "kit.badge.down": "{n} down",
56
+ "kit.badge.running": "{n} running",
57
+ "kit.kind.project": "Project",
58
+ "kit.kind.den": "Den",
59
+ "kit.kind.service": "Service",
60
+ "kit.kind.hub": "Hub",
61
+ "kit.off.connect": "connect in Settings",
62
+ "kit.off.reconnect": "reconnect in Settings",
63
+ "kit.off.forbidden": "ask an admin for access",
64
+ "kit.off.unreachable": "can't be reached right now",
65
+ "kit.off.config": "check Settings",
50
66
  "kit.whatsnew.title": "What's new",
51
67
  "kit.whatsnew.close": "Close",
52
68
  "kit.whatsnew.gotIt": "Got it",
@@ -104,6 +120,11 @@ export const en = {
104
120
  "kit.report.cancel": "Cancel",
105
121
  "kit.report.dest": "Goes to",
106
122
  "kit.report.pub": "Public repository",
123
+ "kit.report.priv": "Private repository",
124
+ "kit.report.int": "Internal repository",
125
+ "kit.report.privN": "Only people with access to this repository can see it.",
126
+ "kit.report.privW":
127
+ "Only people with access to this repository can see it: {who}.",
107
128
  "kit.report.pubW":
108
129
  "Screenshots and text are visible to everyone. Mask anything private.",
109
130
  "kit.report.incH": "What goes with your report",
@@ -166,6 +187,18 @@ export const en = {
166
187
  "kit.report.copyFailed":
167
188
  "Could not copy. Select the text and copy it yourself.",
168
189
  "kit.report.copyH": "Copy the report",
190
+ // The Markdown editor (markdown-editor.js, 0.7.5): its toolbar.
191
+ "kit.md.toolbar": "Formatting",
192
+ "kit.md.toolKey": "{name} ({key})",
193
+ "kit.md.bold": "Bold",
194
+ "kit.md.italic": "Italic",
195
+ "kit.md.code": "Code",
196
+ "kit.md.link": "Link",
197
+ "kit.md.heading": "Heading",
198
+ "kit.md.bulleted": "Bulleted list",
199
+ "kit.md.numbered": "Numbered list",
200
+ "kit.md.quote": "Quote",
201
+ "kit.md.linkText": "text",
169
202
  };
170
203
 
171
204
  export const es = {
@@ -185,6 +218,9 @@ export const es = {
185
218
  "kit.bell": "Notificaciones",
186
219
  "kit.bell.n": "Notificaciones: {n} sin leer",
187
220
  "kit.bell.empty": "Nada nuevo.",
221
+ "kit.bell.needs": "Te necesitan",
222
+ "kit.bell.earlier": "Antes",
223
+ "kit.bell.needsNone": "Nada te necesita ahora.",
188
224
  "kit.settings": "Ajustes",
189
225
  "kit.appearance": "Apariencia",
190
226
  "kit.appearance.title": "Apariencia y tema",
@@ -205,6 +241,21 @@ export const es = {
205
241
  "kit.version.title": "Ver el registro de cambios",
206
242
  "kit.pin.pinX": "Fijar {s}",
207
243
  "kit.pin.unpinX": "Quitar {s}",
244
+ "kit.badge.open": "{n} abiertos",
245
+ "kit.badge.open.one": "{n} abierto",
246
+ "kit.badge.waiting": "{n} en espera",
247
+ "kit.badge.down": "{n} caídos",
248
+ "kit.badge.down.one": "{n} caído",
249
+ "kit.badge.running": "{n} en marcha",
250
+ "kit.kind.project": "Proyecto",
251
+ "kit.kind.den": "Den",
252
+ "kit.kind.service": "Servicio",
253
+ "kit.kind.hub": "Hub",
254
+ "kit.off.connect": "conéctalo en Ajustes",
255
+ "kit.off.reconnect": "vuelve a conectarlo en Ajustes",
256
+ "kit.off.forbidden": "pide acceso a un administrador",
257
+ "kit.off.unreachable": "no responde ahora mismo",
258
+ "kit.off.config": "revisa Ajustes",
208
259
  "kit.whatsnew.title": "Novedades",
209
260
  "kit.whatsnew.close": "Cerrar",
210
261
  "kit.whatsnew.gotIt": "Entendido",
@@ -262,6 +313,11 @@ export const es = {
262
313
  "kit.report.cancel": "Cancelar",
263
314
  "kit.report.dest": "Va a",
264
315
  "kit.report.pub": "Repositorio público",
316
+ "kit.report.priv": "Repositorio privado",
317
+ "kit.report.int": "Repositorio interno",
318
+ "kit.report.privN": "Solo lo ve quien tiene acceso a este repositorio.",
319
+ "kit.report.privW":
320
+ "Solo lo ve quien tiene acceso a este repositorio: {who}.",
265
321
  "kit.report.pubW":
266
322
  "Las capturas y el texto los ve todo el mundo. Tapa lo que sea privado.",
267
323
  "kit.report.incH": "Qué va con tu informe",
@@ -328,6 +384,17 @@ export const es = {
328
384
  "kit.report.copyFailed":
329
385
  "No se pudo copiar. Selecciona el texto y cópialo tú.",
330
386
  "kit.report.copyH": "Copia el informe",
387
+ "kit.md.toolbar": "Formato",
388
+ "kit.md.toolKey": "{name} ({key})",
389
+ "kit.md.bold": "Negrita",
390
+ "kit.md.italic": "Cursiva",
391
+ "kit.md.code": "Código",
392
+ "kit.md.link": "Enlace",
393
+ "kit.md.heading": "Encabezado",
394
+ "kit.md.bulleted": "Lista con viñetas",
395
+ "kit.md.numbered": "Lista numerada",
396
+ "kit.md.quote": "Cita",
397
+ "kit.md.linkText": "texto",
331
398
  };
332
399
 
333
400
  export const ja = {
@@ -347,6 +414,9 @@ export const ja = {
347
414
  "kit.bell": "通知",
348
415
  "kit.bell.n": "通知: 未読 {n} 件",
349
416
  "kit.bell.empty": "新しいものはありません。",
417
+ "kit.bell.needs": "対応が必要",
418
+ "kit.bell.earlier": "以前",
419
+ "kit.bell.needsNone": "今、対応が必要なものはありません。",
350
420
  "kit.settings": "設定",
351
421
  "kit.appearance": "外観",
352
422
  "kit.appearance.title": "外観とテーマ",
@@ -367,6 +437,19 @@ export const ja = {
367
437
  "kit.version.title": "変更履歴を見る",
368
438
  "kit.pin.pinX": "{s} をピン留め",
369
439
  "kit.pin.unpinX": "{s} のピン留めを外す",
440
+ "kit.badge.open": "{n} 件開いています",
441
+ "kit.badge.waiting": "{n} 件待機中",
442
+ "kit.badge.down": "{n} 件停止",
443
+ "kit.badge.running": "{n} 件実行中",
444
+ "kit.kind.project": "プロジェクト",
445
+ "kit.kind.den": "Den",
446
+ "kit.kind.service": "サービス",
447
+ "kit.kind.hub": "Hub",
448
+ "kit.off.connect": "設定で接続してください",
449
+ "kit.off.reconnect": "設定で再接続してください",
450
+ "kit.off.forbidden": "管理者にアクセスを依頼してください",
451
+ "kit.off.unreachable": "現在接続できません",
452
+ "kit.off.config": "設定を確認してください",
370
453
  "kit.whatsnew.title": "新着情報",
371
454
  "kit.whatsnew.close": "閉じる",
372
455
  "kit.whatsnew.gotIt": "OK",
@@ -421,6 +504,11 @@ export const ja = {
421
504
  "kit.report.cancel": "キャンセル",
422
505
  "kit.report.dest": "送り先",
423
506
  "kit.report.pub": "公開リポジトリ",
507
+ "kit.report.priv": "非公開リポジトリ",
508
+ "kit.report.int": "内部リポジトリ",
509
+ "kit.report.privN": "このリポジトリにアクセスできる人だけが見られます。",
510
+ "kit.report.privW":
511
+ "このリポジトリにアクセスできる人だけが見られます({who})。",
424
512
  "kit.report.pubW":
425
513
  "スクリーンショットとテキストは誰でも見られます。見せたくない部分は隠してください。",
426
514
  "kit.report.incH": "報告に添えるもの",
@@ -487,6 +575,17 @@ export const ja = {
487
575
  "kit.report.copyFailed":
488
576
  "コピーできませんでした。テキストを選んでコピーしてください。",
489
577
  "kit.report.copyH": "報告をコピー",
578
+ "kit.md.toolbar": "書式",
579
+ "kit.md.toolKey": "{name}({key})",
580
+ "kit.md.bold": "太字",
581
+ "kit.md.italic": "斜体",
582
+ "kit.md.code": "コード",
583
+ "kit.md.link": "リンク",
584
+ "kit.md.heading": "見出し",
585
+ "kit.md.bulleted": "箇条書き",
586
+ "kit.md.numbered": "番号付きリスト",
587
+ "kit.md.quote": "引用",
588
+ "kit.md.linkText": "テキスト",
490
589
  };
491
590
 
492
591
  /** The kit's tables, by language (en is the fallback for any key). */
package/src/whatsnew.js CHANGED
@@ -14,7 +14,8 @@
14
14
  * loadWhatsNew() asks changelog() and keeps the entries
15
15
  * setEntries(list) or gives them directly
16
16
  * openWhatsNew() opens it at the newest release; focus on its heading
17
- * closeWhatsNew() closes it; focus back where it was (else the chip)
17
+ * closeWhatsNew() closes it; focus back where it was (else the chip),
18
+ * unless the page put it in a control of its own meanwhile
18
19
  * changelogView(entries, showAll) what it shows (pure)
19
20
  *
20
21
  * It is an aria-modal dialog: Tab stays in it, Escape and a click on the
@@ -399,11 +400,21 @@ export function openWhatsNew() {
399
400
  export function closeWhatsNew() {
400
401
  const overlay = document.getElementById("cl-overlay");
401
402
  const wasOpen = !!overlay?.classList.contains("open");
403
+ // Issue 143: where the keyboard is now. The page may have given it to a
404
+ // field of its own while this was open (a deep link's composer, which
405
+ // came after What's new): that field keeps it.
406
+ const at = document.activeElement;
407
+ const elsewhere =
408
+ !!at &&
409
+ at !== document.body &&
410
+ at !== document.documentElement &&
411
+ !overlay?.contains(at);
402
412
  if (overlay) overlay.classList.remove("open");
403
413
  if (wasOpen) {
404
414
  const back = returnFocus;
405
415
  returnFocus = null;
406
- if (!focusBack(back)) focusBack(document.getElementById("version-pill"));
416
+ if (!elsewhere && !focusBack(back))
417
+ focusBack(document.getElementById("version-pill"));
407
418
  }
408
419
  if (cfg.onClose) cfg.onClose(entries[0]?.version ?? null);
409
420
  const pip = document.getElementById("v-pip");