@yuneta/gobj-ui 7.23.111 → 7.23.113
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/gobj-ui.cjs.js +136 -79
- package/dist/gobj-ui.es.js +136 -79
- package/package.json +1 -1
- package/src/c_yui_form.js +9 -6
- package/src/c_yui_nav.js +4 -1
- package/src/c_yui_treedb_topic_with_form.js +7 -1
- package/src/lib_maplibre.js +6 -0
- package/src/yui_dev.js +95 -59
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -7012,8 +7012,10 @@ function toolbar_button$1(gobj, name) {
|
|
|
7012
7012
|
"button",
|
|
7013
7013
|
{
|
|
7014
7014
|
class: "button p-1 button-save",
|
|
7015
|
-
title: "save",
|
|
7016
|
-
"
|
|
7015
|
+
title: (0, i18next.t)("save"),
|
|
7016
|
+
"data-i18n-title": "save",
|
|
7017
|
+
"aria-label": (0, i18next.t)("save"),
|
|
7018
|
+
"data-i18n-aria-label": "save",
|
|
7017
7019
|
disabled: true
|
|
7018
7020
|
},
|
|
7019
7021
|
[[
|
|
@@ -7037,8 +7039,10 @@ function toolbar_button$1(gobj, name) {
|
|
|
7037
7039
|
"button",
|
|
7038
7040
|
{
|
|
7039
7041
|
class: "button p-1 button-undo",
|
|
7040
|
-
title: "undo",
|
|
7041
|
-
"
|
|
7042
|
+
title: (0, i18next.t)("undo"),
|
|
7043
|
+
"data-i18n-title": "undo",
|
|
7044
|
+
"aria-label": (0, i18next.t)("undo"),
|
|
7045
|
+
"data-i18n-aria-label": "undo",
|
|
7042
7046
|
disabled: true
|
|
7043
7047
|
},
|
|
7044
7048
|
[[
|
|
@@ -7062,8 +7066,10 @@ function toolbar_button$1(gobj, name) {
|
|
|
7062
7066
|
"button",
|
|
7063
7067
|
{
|
|
7064
7068
|
class: "button p-1 button-clear",
|
|
7065
|
-
title: "clear",
|
|
7066
|
-
"
|
|
7069
|
+
title: (0, i18next.t)("clear"),
|
|
7070
|
+
"data-i18n-title": "clear",
|
|
7071
|
+
"aria-label": (0, i18next.t)("clear"),
|
|
7072
|
+
"data-i18n-aria-label": "clear"
|
|
7067
7073
|
},
|
|
7068
7074
|
[[
|
|
7069
7075
|
"span",
|
|
@@ -7086,8 +7092,10 @@ function toolbar_button$1(gobj, name) {
|
|
|
7086
7092
|
"button",
|
|
7087
7093
|
{
|
|
7088
7094
|
class: "button p-1 button-copy",
|
|
7089
|
-
title: "copy",
|
|
7090
|
-
"
|
|
7095
|
+
title: (0, i18next.t)("copy"),
|
|
7096
|
+
"data-i18n-title": "copy",
|
|
7097
|
+
"aria-label": (0, i18next.t)("copy"),
|
|
7098
|
+
"data-i18n-aria-label": "copy"
|
|
7091
7099
|
},
|
|
7092
7100
|
[[
|
|
7093
7101
|
"span",
|
|
@@ -7110,8 +7118,10 @@ function toolbar_button$1(gobj, name) {
|
|
|
7110
7118
|
"button",
|
|
7111
7119
|
{
|
|
7112
7120
|
class: "button p-1 button-paste",
|
|
7113
|
-
title: "paste",
|
|
7114
|
-
"
|
|
7121
|
+
title: (0, i18next.t)("paste"),
|
|
7122
|
+
"data-i18n-title": "paste",
|
|
7123
|
+
"aria-label": (0, i18next.t)("paste"),
|
|
7124
|
+
"data-i18n-aria-label": "paste"
|
|
7115
7125
|
},
|
|
7116
7126
|
[[
|
|
7117
7127
|
"span",
|
|
@@ -8372,7 +8382,7 @@ function template2columns(gobj, columns, template, sub_elements) {
|
|
|
8372
8382
|
column.editorParams = {
|
|
8373
8383
|
format: "dd/MM/yyyy hh:mm",
|
|
8374
8384
|
verticalNavigation: "table",
|
|
8375
|
-
elementAttributes: { title: "slide bar to choose option" }
|
|
8385
|
+
elementAttributes: { title: (0, i18next.t)("slide bar to choose option") }
|
|
8376
8386
|
};
|
|
8377
8387
|
field_desc.real_type;
|
|
8378
8388
|
break;
|
|
@@ -9314,7 +9324,9 @@ var EditControl = class {
|
|
|
9314
9324
|
{
|
|
9315
9325
|
class: "button is-small is-flex is-align-items-center is-justify-content-center",
|
|
9316
9326
|
title: (0, i18next.t)("maplibre.drag_mark"),
|
|
9317
|
-
"
|
|
9327
|
+
"data-i18n-title": "maplibre.drag_mark",
|
|
9328
|
+
"aria-label": (0, i18next.t)("maplibre.drag_mark"),
|
|
9329
|
+
"data-i18n-aria-label": "maplibre.drag_mark"
|
|
9318
9330
|
},
|
|
9319
9331
|
(0, _yuneta_gobj_js.parseSVG)(`
|
|
9320
9332
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="22" height="22" fill="#CCCCCC"><path d="M273 7c-9.4-9.4-24.6-9.4-33.9 0L167 79c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l31-31L232 232 81.9 232l31-31c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L7 239c-9.4 9.4-9.4 24.6 0 33.9l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31L232 280l0 150.1-31-31c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c9.4 9.4 24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-31 31L280 280l150.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31L280 232l0-150.1 31 31c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L273 7z"/></svg>
|
|
@@ -9373,7 +9385,9 @@ var MarkerControl = class {
|
|
|
9373
9385
|
{
|
|
9374
9386
|
class: "button is-small is-flex is-align-items-center is-justify-content-center",
|
|
9375
9387
|
title: (0, i18next.t)("maplibre.center_map"),
|
|
9376
|
-
"
|
|
9388
|
+
"data-i18n-title": "maplibre.center_map",
|
|
9389
|
+
"aria-label": (0, i18next.t)("maplibre.center_map"),
|
|
9390
|
+
"data-i18n-aria-label": "maplibre.center_map"
|
|
9377
9391
|
},
|
|
9378
9392
|
(0, _yuneta_gobj_js.parseSVG)(`
|
|
9379
9393
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" width="22" height="22"><path d="M15 15C24.4 5.7 39.6 5.7 49 15l63 63L112 40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 96c0 13.3-10.7 24-24 24l-96 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l38.1 0L15 49C5.7 39.6 5.7 24.4 15 15zM133.5 243.9C158.6 193.6 222.7 112 320 112s161.4 81.6 186.5 131.9c3.8 7.6 3.8 16.5 0 24.2C481.4 318.4 417.3 400 320 400s-161.4-81.6-186.5-131.9c-3.8-7.6-3.8-16.5 0-24.2zM320 320a64 64 0 1 0 0-128 64 64 0 1 0 0 128zM591 15c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-63 63 38.1 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-96 0c-13.3 0-24-10.7-24-24l0-96c0-13.3 10.7-24 24-24s24 10.7 24 24l0 38.1 63-63zM15 497c-9.4-9.4-9.4-24.6 0-33.9l63-63L40 400c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24l0 96c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-38.1L49 497c-9.4 9.4-24.6 9.4-33.9 0zm576 0l-63-63 0 38.1c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-96c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-38.1 0 63 63c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0z"/></svg>
|
|
@@ -9390,7 +9404,9 @@ var MarkerControl = class {
|
|
|
9390
9404
|
{
|
|
9391
9405
|
class: "button is-small is-flex is-align-items-center is-justify-content-center",
|
|
9392
9406
|
title: (0, i18next.t)("maplibre.user_location"),
|
|
9393
|
-
"
|
|
9407
|
+
"data-i18n-title": "maplibre.user_location",
|
|
9408
|
+
"aria-label": (0, i18next.t)("maplibre.user_location"),
|
|
9409
|
+
"data-i18n-aria-label": "maplibre.user_location"
|
|
9394
9410
|
},
|
|
9395
9411
|
(0, _yuneta_gobj_js.parseSVG)(`
|
|
9396
9412
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="22" height="22" fill="#CCCCCC"><path d="M256 0c17.7 0 32 14.3 32 32l0 34.7C368.4 80.1 431.9 143.6 445.3 224l34.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-34.7 0C431.9 368.4 368.4 431.9 288 445.3l0 34.7c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-34.7C143.6 431.9 80.1 368.4 66.7 288L32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l34.7 0C80.1 143.6 143.6 80.1 224 66.7L224 32c0-17.7 14.3-32 32-32zM128 256a128 128 0 1 0 256 0 128 128 0 1 0 -256 0zm128-80a80 80 0 1 1 0 160 80 80 0 1 1 0-160z"/></svg>
|
|
@@ -20538,8 +20554,10 @@ function render_tabs(gobj, items) {
|
|
|
20538
20554
|
class: "icon is-small yui-nav-close ml-2",
|
|
20539
20555
|
"data-close-item": it.id,
|
|
20540
20556
|
role: "button",
|
|
20541
|
-
"aria-label": "close",
|
|
20542
|
-
|
|
20557
|
+
"aria-label": (0, i18next.t)("close"),
|
|
20558
|
+
"data-i18n-aria-label": "close",
|
|
20559
|
+
title: (0, i18next.t)("close"),
|
|
20560
|
+
"data-i18n-title": "close"
|
|
20543
20561
|
},
|
|
20544
20562
|
["i", {
|
|
20545
20563
|
class: "yi-xmark",
|
|
@@ -24987,7 +25005,8 @@ function create_tabulator(gobj) {
|
|
|
24987
25005
|
}
|
|
24988
25006
|
if (write_plan(gobj).in_row_icons) columns.push({
|
|
24989
25007
|
field: "_operation",
|
|
24990
|
-
title: "
|
|
25008
|
+
title: "",
|
|
25009
|
+
titleFormatter: () => (0, i18next.t)("operations"),
|
|
24991
25010
|
hozAlign: "center",
|
|
24992
25011
|
frozen: "right",
|
|
24993
25012
|
visible: false,
|
|
@@ -72082,37 +72101,37 @@ var TRAFFIC_TS_FIELDS = {
|
|
|
72082
72101
|
var TRACE_DEFS = [
|
|
72083
72102
|
[
|
|
72084
72103
|
"trace_automata",
|
|
72085
|
-
"
|
|
72104
|
+
"automata",
|
|
72086
72105
|
trace_automata
|
|
72087
72106
|
],
|
|
72088
72107
|
[
|
|
72089
72108
|
"trace_creation",
|
|
72090
|
-
"
|
|
72109
|
+
"creation",
|
|
72091
72110
|
trace_creation
|
|
72092
72111
|
],
|
|
72093
72112
|
[
|
|
72094
72113
|
"trace_start_stop",
|
|
72095
|
-
"
|
|
72114
|
+
"start / stop",
|
|
72096
72115
|
trace_start_stop
|
|
72097
72116
|
],
|
|
72098
72117
|
[
|
|
72099
72118
|
"trace_subscriptions",
|
|
72100
|
-
"
|
|
72119
|
+
"subscriptions",
|
|
72101
72120
|
trace_subscriptions
|
|
72102
72121
|
],
|
|
72103
72122
|
[
|
|
72104
72123
|
"trace_i18n",
|
|
72105
|
-
"
|
|
72124
|
+
"i18n",
|
|
72106
72125
|
trace_i18n
|
|
72107
72126
|
],
|
|
72108
72127
|
[
|
|
72109
72128
|
"trace_traffic",
|
|
72110
|
-
"
|
|
72129
|
+
"traffic",
|
|
72111
72130
|
trace_traffic
|
|
72112
72131
|
],
|
|
72113
72132
|
[
|
|
72114
72133
|
"no_poll",
|
|
72115
|
-
"
|
|
72134
|
+
"no poll",
|
|
72116
72135
|
set_no_poll
|
|
72117
72136
|
]
|
|
72118
72137
|
];
|
|
@@ -72586,7 +72605,8 @@ function mute_button(sig) {
|
|
|
72586
72605
|
{
|
|
72587
72606
|
class: "TRAFFIC_MUTE",
|
|
72588
72607
|
type: "button",
|
|
72589
|
-
title:
|
|
72608
|
+
title: (0, i18next.t)("mute this message"),
|
|
72609
|
+
"data-i18n-title": "mute this message"
|
|
72590
72610
|
},
|
|
72591
72611
|
"⊘",
|
|
72592
72612
|
{ click: (ev) => {
|
|
@@ -73086,7 +73106,7 @@ function set_no_poll() {
|
|
|
73086
73106
|
function refresh_dev_chrome() {
|
|
73087
73107
|
document.querySelectorAll(".YDEV_CHIP[data-trace]").forEach(($b) => {
|
|
73088
73108
|
let key = $b.getAttribute("data-trace");
|
|
73089
|
-
let label = $b.getAttribute("data-label") || "";
|
|
73109
|
+
let label = (0, i18next.t)($b.getAttribute("data-label") || "");
|
|
73090
73110
|
let v = dev_num(key, 0);
|
|
73091
73111
|
$b.textContent = key === "trace_automata" && v > 0 ? label + " " + v : label;
|
|
73092
73112
|
$b.classList.toggle("is-active", v > 0);
|
|
@@ -73120,7 +73140,8 @@ function refresh_dev_chrome() {
|
|
|
73120
73140
|
if (set.size) {
|
|
73121
73141
|
let $lbl = document.createElement("span");
|
|
73122
73142
|
$lbl.className = "YDEV_LABEL";
|
|
73123
|
-
$lbl.textContent = "
|
|
73143
|
+
$lbl.textContent = (0, i18next.t)("muted");
|
|
73144
|
+
$lbl.setAttribute("data-i18n", "muted");
|
|
73124
73145
|
$m.appendChild($lbl);
|
|
73125
73146
|
set.forEach((sig) => {
|
|
73126
73147
|
$m.appendChild((0, _yuneta_gobj_js.createElement2)([
|
|
@@ -73128,7 +73149,8 @@ function refresh_dev_chrome() {
|
|
|
73128
73149
|
{
|
|
73129
73150
|
class: "YDEV_MUTED_CHIP",
|
|
73130
73151
|
type: "button",
|
|
73131
|
-
title: "
|
|
73152
|
+
title: (0, i18next.t)("unmute"),
|
|
73153
|
+
"data-i18n-title": "unmute"
|
|
73132
73154
|
},
|
|
73133
73155
|
"⊘ " + sig + " ✕",
|
|
73134
73156
|
{ click: (ev) => {
|
|
@@ -73183,15 +73205,16 @@ function dev_fallback_copy(text) {
|
|
|
73183
73205
|
document.body.removeChild(ta);
|
|
73184
73206
|
}
|
|
73185
73207
|
function build_control_bar() {
|
|
73186
|
-
let trace_chips = TRACE_DEFS.map(([key,
|
|
73208
|
+
let trace_chips = TRACE_DEFS.map(([key, label_key, fn]) => [
|
|
73187
73209
|
"button",
|
|
73188
73210
|
{
|
|
73189
73211
|
class: "YDEV_CHIP",
|
|
73190
73212
|
"data-trace": key,
|
|
73191
|
-
"data-label":
|
|
73213
|
+
"data-label": label_key,
|
|
73214
|
+
"data-i18n": label_key,
|
|
73192
73215
|
type: "button"
|
|
73193
73216
|
},
|
|
73194
|
-
|
|
73217
|
+
(0, i18next.t)(label_key),
|
|
73195
73218
|
{ click: (ev) => {
|
|
73196
73219
|
ev.stopPropagation();
|
|
73197
73220
|
fn();
|
|
@@ -73203,9 +73226,11 @@ function build_control_bar() {
|
|
|
73203
73226
|
class: "YDEV_CHIP",
|
|
73204
73227
|
"data-toggle": "automata-simple",
|
|
73205
73228
|
type: "button",
|
|
73206
|
-
title:
|
|
73229
|
+
title: (0, i18next.t)("machine trace shape"),
|
|
73230
|
+
"data-i18n-title": "machine trace shape",
|
|
73231
|
+
"data-i18n": "simple mach"
|
|
73207
73232
|
},
|
|
73208
|
-
"
|
|
73233
|
+
(0, i18next.t)("simple mach"),
|
|
73209
73234
|
{ click: (ev) => {
|
|
73210
73235
|
ev.stopPropagation();
|
|
73211
73236
|
let v = dev_simple_mach() ? 0 : 1;
|
|
@@ -73219,9 +73244,10 @@ function build_control_bar() {
|
|
|
73219
73244
|
{
|
|
73220
73245
|
class: "YDEV_SEG_BTN",
|
|
73221
73246
|
"data-view": v,
|
|
73247
|
+
"data-i18n": label,
|
|
73222
73248
|
type: "button"
|
|
73223
73249
|
},
|
|
73224
|
-
label,
|
|
73250
|
+
(0, i18next.t)(label),
|
|
73225
73251
|
{ click: (ev) => {
|
|
73226
73252
|
ev.stopPropagation();
|
|
73227
73253
|
set_view(v);
|
|
@@ -73234,16 +73260,16 @@ function build_control_bar() {
|
|
|
73234
73260
|
id: "ydev-seg"
|
|
73235
73261
|
},
|
|
73236
73262
|
[
|
|
73237
|
-
mk_view("detailed", "
|
|
73238
|
-
mk_view("full", "
|
|
73239
|
-
mk_view("compact", "
|
|
73240
|
-
mk_view("name", "
|
|
73263
|
+
mk_view("detailed", "detailed"),
|
|
73264
|
+
mk_view("full", "expanded"),
|
|
73265
|
+
mk_view("compact", "compact"),
|
|
73266
|
+
mk_view("name", "name only")
|
|
73241
73267
|
]
|
|
73242
73268
|
];
|
|
73243
73269
|
let OUT_TITLES = {
|
|
73244
|
-
window: "
|
|
73245
|
-
console: "
|
|
73246
|
-
both: "
|
|
73270
|
+
window: "dev window only",
|
|
73271
|
+
console: "browser console only",
|
|
73272
|
+
both: "dev window and browser console"
|
|
73247
73273
|
};
|
|
73248
73274
|
let mk_out = (v, label) => [
|
|
73249
73275
|
"button",
|
|
@@ -73251,9 +73277,11 @@ function build_control_bar() {
|
|
|
73251
73277
|
class: "YDEV_SEG_BTN",
|
|
73252
73278
|
"data-output": v,
|
|
73253
73279
|
type: "button",
|
|
73254
|
-
title: OUT_TITLES[v]
|
|
73280
|
+
title: (0, i18next.t)(OUT_TITLES[v]),
|
|
73281
|
+
"data-i18n-title": OUT_TITLES[v],
|
|
73282
|
+
"data-i18n": label
|
|
73255
73283
|
},
|
|
73256
|
-
label,
|
|
73284
|
+
(0, i18next.t)(label),
|
|
73257
73285
|
{ click: (ev) => {
|
|
73258
73286
|
ev.stopPropagation();
|
|
73259
73287
|
set_output_route(v);
|
|
@@ -73266,9 +73294,9 @@ function build_control_bar() {
|
|
|
73266
73294
|
id: "ydev-output"
|
|
73267
73295
|
},
|
|
73268
73296
|
[
|
|
73269
|
-
mk_out("window", "
|
|
73270
|
-
mk_out("console", "
|
|
73271
|
-
mk_out("both", "
|
|
73297
|
+
mk_out("window", "window"),
|
|
73298
|
+
mk_out("console", "console"),
|
|
73299
|
+
mk_out("both", "both")
|
|
73272
73300
|
]
|
|
73273
73301
|
];
|
|
73274
73302
|
let mk_expand = (key, label) => [
|
|
@@ -73277,9 +73305,11 @@ function build_control_bar() {
|
|
|
73277
73305
|
class: "YDEV_CHIP",
|
|
73278
73306
|
"data-expand": key,
|
|
73279
73307
|
type: "button",
|
|
73280
|
-
title:
|
|
73308
|
+
title: (0, i18next.t)("show this section in the expanded view"),
|
|
73309
|
+
"data-i18n-title": "show this section in the expanded view",
|
|
73310
|
+
"data-i18n": label
|
|
73281
73311
|
},
|
|
73282
|
-
label,
|
|
73312
|
+
(0, i18next.t)(label),
|
|
73283
73313
|
{ click: (ev) => {
|
|
73284
73314
|
ev.stopPropagation();
|
|
73285
73315
|
toggle_pref(key, key === "dev_full_data" ? 1 : 0);
|
|
@@ -73294,12 +73324,15 @@ function build_control_bar() {
|
|
|
73294
73324
|
[
|
|
73295
73325
|
[
|
|
73296
73326
|
"span",
|
|
73297
|
-
{
|
|
73298
|
-
|
|
73327
|
+
{
|
|
73328
|
+
class: "YDEV_LABEL",
|
|
73329
|
+
"data-i18n": "expand"
|
|
73330
|
+
},
|
|
73331
|
+
(0, i18next.t)("expand")
|
|
73299
73332
|
],
|
|
73300
|
-
mk_expand("dev_full_schema", "
|
|
73301
|
-
mk_expand("dev_full_data", "
|
|
73302
|
-
mk_expand("dev_full_meta", "
|
|
73333
|
+
mk_expand("dev_full_schema", "schema"),
|
|
73334
|
+
mk_expand("dev_full_data", "data"),
|
|
73335
|
+
mk_expand("dev_full_meta", "metadata")
|
|
73303
73336
|
]
|
|
73304
73337
|
];
|
|
73305
73338
|
let mk_dir = (dir, glyph, key, title) => [
|
|
@@ -73308,7 +73341,8 @@ function build_control_bar() {
|
|
|
73308
73341
|
class: "YDEV_CHIP s-" + dir,
|
|
73309
73342
|
"data-dir": key,
|
|
73310
73343
|
type: "button",
|
|
73311
|
-
title
|
|
73344
|
+
title: (0, i18next.t)(title),
|
|
73345
|
+
"data-i18n-title": title
|
|
73312
73346
|
},
|
|
73313
73347
|
glyph,
|
|
73314
73348
|
{ click: (ev) => {
|
|
@@ -73317,9 +73351,9 @@ function build_control_bar() {
|
|
|
73317
73351
|
} }
|
|
73318
73352
|
];
|
|
73319
73353
|
let dir_chips = [
|
|
73320
|
-
mk_dir("out", "⇢", "dev_filter_out", "
|
|
73321
|
-
mk_dir("in", "⇠", "dev_filter_in", "
|
|
73322
|
-
mk_dir("err", "⚠", "dev_filter_err", "
|
|
73354
|
+
mk_dir("out", "⇢", "dev_filter_out", "outgoing"),
|
|
73355
|
+
mk_dir("in", "⇠", "dev_filter_in", "incoming"),
|
|
73356
|
+
mk_dir("err", "⚠", "dev_filter_err", "errors")
|
|
73323
73357
|
];
|
|
73324
73358
|
let periodic_chip = [
|
|
73325
73359
|
"button",
|
|
@@ -73327,9 +73361,18 @@ function build_control_bar() {
|
|
|
73327
73361
|
class: "YDEV_CHIP",
|
|
73328
73362
|
"data-toggle": "periodic",
|
|
73329
73363
|
type: "button",
|
|
73330
|
-
title: "
|
|
73364
|
+
title: (0, i18next.t)("hide the timers and the recurring traffic"),
|
|
73365
|
+
"data-i18n-title": "hide the timers and the recurring traffic"
|
|
73331
73366
|
},
|
|
73332
|
-
|
|
73367
|
+
[[
|
|
73368
|
+
"span",
|
|
73369
|
+
{ class: "YDEV_GLYPH" },
|
|
73370
|
+
"⊘"
|
|
73371
|
+
], [
|
|
73372
|
+
"span",
|
|
73373
|
+
{ "data-i18n": "periodic" },
|
|
73374
|
+
(0, i18next.t)("periodic")
|
|
73375
|
+
]],
|
|
73333
73376
|
{ click: (ev) => {
|
|
73334
73377
|
ev.stopPropagation();
|
|
73335
73378
|
toggle_pref("dev_hide_periodic", HIDE_PERIODIC_DEFAULT);
|
|
@@ -73340,8 +73383,9 @@ function build_control_bar() {
|
|
|
73340
73383
|
{
|
|
73341
73384
|
class: "YDEV_SEARCH",
|
|
73342
73385
|
type: "search",
|
|
73343
|
-
|
|
73344
|
-
|
|
73386
|
+
"data-role": "search",
|
|
73387
|
+
placeholder: (0, i18next.t)("filter events / payload"),
|
|
73388
|
+
"data-i18n-placeholder": "filter events / payload"
|
|
73345
73389
|
},
|
|
73346
73390
|
"",
|
|
73347
73391
|
{ input: (ev) => {
|
|
@@ -73354,15 +73398,17 @@ function build_control_bar() {
|
|
|
73354
73398
|
{
|
|
73355
73399
|
class: "YDEV_CHIP",
|
|
73356
73400
|
type: "button",
|
|
73357
|
-
title: "
|
|
73401
|
+
title: (0, i18next.t)("copy visible traffic to clipboard"),
|
|
73402
|
+
"data-i18n-title": "copy visible traffic to clipboard",
|
|
73403
|
+
"data-i18n": "copy"
|
|
73358
73404
|
},
|
|
73359
|
-
"
|
|
73405
|
+
(0, i18next.t)("copy"),
|
|
73360
73406
|
{ click: (ev) => {
|
|
73361
73407
|
ev.stopPropagation();
|
|
73362
73408
|
let btn = ev.currentTarget;
|
|
73363
73409
|
dev_copy_text(traffic_to_text()).then(() => {
|
|
73364
73410
|
let prev = btn.textContent;
|
|
73365
|
-
btn.textContent = "
|
|
73411
|
+
btn.textContent = (0, i18next.t)("copied");
|
|
73366
73412
|
setTimeout(() => {
|
|
73367
73413
|
btn.textContent = prev;
|
|
73368
73414
|
}, 1e3);
|
|
@@ -73374,9 +73420,11 @@ function build_control_bar() {
|
|
|
73374
73420
|
{
|
|
73375
73421
|
class: "YDEV_CHIP",
|
|
73376
73422
|
type: "button",
|
|
73377
|
-
title: "
|
|
73423
|
+
title: (0, i18next.t)("clear captured traffic"),
|
|
73424
|
+
"data-i18n-title": "clear captured traffic",
|
|
73425
|
+
"data-i18n": "clear"
|
|
73378
73426
|
},
|
|
73379
|
-
"
|
|
73427
|
+
(0, i18next.t)("clear"),
|
|
73380
73428
|
{ click: (ev) => {
|
|
73381
73429
|
ev.stopPropagation();
|
|
73382
73430
|
clear_traffic();
|
|
@@ -73387,8 +73435,11 @@ function build_control_bar() {
|
|
|
73387
73435
|
{ class: "YDEV_GROUP" },
|
|
73388
73436
|
[[
|
|
73389
73437
|
"span",
|
|
73390
|
-
{
|
|
73391
|
-
|
|
73438
|
+
{
|
|
73439
|
+
class: "YDEV_LABEL",
|
|
73440
|
+
"data-i18n": label
|
|
73441
|
+
},
|
|
73442
|
+
(0, i18next.t)(label)
|
|
73392
73443
|
], ...items]
|
|
73393
73444
|
];
|
|
73394
73445
|
let sep = () => [
|
|
@@ -73400,18 +73451,18 @@ function build_control_bar() {
|
|
|
73400
73451
|
"div",
|
|
73401
73452
|
{ class: "YDEV_BAR" },
|
|
73402
73453
|
[
|
|
73403
|
-
grp("
|
|
73454
|
+
grp("traces", [...trace_chips, simple_mach]),
|
|
73404
73455
|
sep(),
|
|
73405
|
-
grp("
|
|
73456
|
+
grp("output", [output_seg]),
|
|
73406
73457
|
sep(),
|
|
73407
|
-
grp("
|
|
73458
|
+
grp("view", [view_seg]),
|
|
73408
73459
|
expand_grp,
|
|
73409
73460
|
sep(),
|
|
73410
|
-
grp("
|
|
73461
|
+
grp("show", [...dir_chips, periodic_chip]),
|
|
73411
73462
|
sep(),
|
|
73412
|
-
grp("
|
|
73463
|
+
grp("find", [search]),
|
|
73413
73464
|
sep(),
|
|
73414
|
-
grp("
|
|
73465
|
+
grp("log", [copy, clear])
|
|
73415
73466
|
]
|
|
73416
73467
|
]);
|
|
73417
73468
|
}
|
|
@@ -73421,12 +73472,18 @@ function build_title_header() {
|
|
|
73421
73472
|
{ class: "YDEV_TITLE" },
|
|
73422
73473
|
[[
|
|
73423
73474
|
"span",
|
|
73424
|
-
{
|
|
73425
|
-
|
|
73475
|
+
{
|
|
73476
|
+
class: "YDEV_TITLE_MAIN",
|
|
73477
|
+
"data-i18n": "developer"
|
|
73478
|
+
},
|
|
73479
|
+
(0, i18next.t)("developer")
|
|
73426
73480
|
], [
|
|
73427
73481
|
"span",
|
|
73428
|
-
{
|
|
73429
|
-
|
|
73482
|
+
{
|
|
73483
|
+
class: "YDEV_TITLE_SUB",
|
|
73484
|
+
"data-i18n": "yuno monitor"
|
|
73485
|
+
},
|
|
73486
|
+
(0, i18next.t)("yuno monitor")
|
|
73430
73487
|
]]
|
|
73431
73488
|
]);
|
|
73432
73489
|
}
|
|
@@ -73524,7 +73581,7 @@ function setup_dev(self, show) {
|
|
|
73524
73581
|
showFooter: false,
|
|
73525
73582
|
auto_save_size_and_position: true,
|
|
73526
73583
|
center: false,
|
|
73527
|
-
title: "
|
|
73584
|
+
title: "developer",
|
|
73528
73585
|
icon: "yi-terminal",
|
|
73529
73586
|
manager: (0, _yuneta_gobj_js.gobj_find_service)("__window_manager__", false) || null,
|
|
73530
73587
|
keep_on_navigate: true,
|