zero-query 1.1.1 → 1.2.2

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.
Files changed (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -0
  3. package/cli/args.js +33 -33
  4. package/cli/commands/build-api.js +442 -442
  5. package/cli/commands/build.js +253 -247
  6. package/cli/commands/bundle.js +1226 -1224
  7. package/cli/commands/create.js +178 -121
  8. package/cli/commands/dev/devtools/index.js +56 -56
  9. package/cli/commands/dev/devtools/js/components.js +49 -49
  10. package/cli/commands/dev/devtools/js/core.js +423 -423
  11. package/cli/commands/dev/devtools/js/elements.js +421 -421
  12. package/cli/commands/dev/devtools/js/network.js +166 -166
  13. package/cli/commands/dev/devtools/js/performance.js +73 -73
  14. package/cli/commands/dev/devtools/js/router.js +105 -105
  15. package/cli/commands/dev/devtools/js/source.js +132 -132
  16. package/cli/commands/dev/devtools/js/stats.js +35 -35
  17. package/cli/commands/dev/devtools/js/tabs.js +79 -79
  18. package/cli/commands/dev/devtools/panel.html +95 -95
  19. package/cli/commands/dev/devtools/styles.css +244 -244
  20. package/cli/commands/dev/index.js +107 -107
  21. package/cli/commands/dev/logger.js +75 -75
  22. package/cli/commands/dev/overlay.js +858 -858
  23. package/cli/commands/dev/server.js +220 -220
  24. package/cli/commands/dev/validator.js +94 -94
  25. package/cli/commands/dev/watcher.js +172 -172
  26. package/cli/help.js +114 -112
  27. package/cli/index.js +52 -52
  28. package/cli/scaffold/default/LICENSE +21 -21
  29. package/cli/scaffold/default/app/app.js +207 -207
  30. package/cli/scaffold/default/app/components/about.js +201 -201
  31. package/cli/scaffold/default/app/components/api-demo.js +143 -143
  32. package/cli/scaffold/default/app/components/contact-card.js +231 -231
  33. package/cli/scaffold/default/app/components/contacts/contacts.css +706 -706
  34. package/cli/scaffold/default/app/components/contacts/contacts.html +200 -200
  35. package/cli/scaffold/default/app/components/contacts/contacts.js +196 -196
  36. package/cli/scaffold/default/app/components/counter.js +127 -127
  37. package/cli/scaffold/default/app/components/home.js +249 -249
  38. package/cli/scaffold/default/app/components/not-found.js +16 -16
  39. package/cli/scaffold/default/app/components/playground/playground.css +115 -115
  40. package/cli/scaffold/default/app/components/playground/playground.html +161 -161
  41. package/cli/scaffold/default/app/components/playground/playground.js +116 -116
  42. package/cli/scaffold/default/app/components/todos.js +225 -225
  43. package/cli/scaffold/default/app/components/toolkit/toolkit.css +97 -97
  44. package/cli/scaffold/default/app/components/toolkit/toolkit.html +146 -146
  45. package/cli/scaffold/default/app/components/toolkit/toolkit.js +280 -280
  46. package/cli/scaffold/default/app/routes.js +15 -15
  47. package/cli/scaffold/default/app/store.js +101 -101
  48. package/cli/scaffold/default/global.css +552 -552
  49. package/cli/scaffold/default/index.html +99 -99
  50. package/cli/scaffold/minimal/app/app.js +85 -85
  51. package/cli/scaffold/minimal/app/components/about.js +68 -68
  52. package/cli/scaffold/minimal/app/components/counter.js +122 -122
  53. package/cli/scaffold/minimal/app/components/home.js +68 -68
  54. package/cli/scaffold/minimal/app/components/not-found.js +16 -16
  55. package/cli/scaffold/minimal/app/routes.js +9 -9
  56. package/cli/scaffold/minimal/app/store.js +36 -36
  57. package/cli/scaffold/minimal/global.css +300 -300
  58. package/cli/scaffold/minimal/index.html +44 -44
  59. package/cli/scaffold/ssr/app/app.js +41 -41
  60. package/cli/scaffold/ssr/app/components/about.js +55 -55
  61. package/cli/scaffold/ssr/app/components/blog/index.js +65 -65
  62. package/cli/scaffold/ssr/app/components/blog/post.js +86 -86
  63. package/cli/scaffold/ssr/app/components/home.js +37 -37
  64. package/cli/scaffold/ssr/app/components/not-found.js +15 -15
  65. package/cli/scaffold/ssr/app/routes.js +8 -8
  66. package/cli/scaffold/ssr/global.css +228 -228
  67. package/cli/scaffold/ssr/index.html +37 -37
  68. package/cli/scaffold/ssr/package.json +8 -8
  69. package/cli/scaffold/ssr/server/data/posts.js +144 -144
  70. package/cli/scaffold/ssr/server/index.js +213 -213
  71. package/cli/scaffold/webrtc/app/app.js +11 -0
  72. package/cli/scaffold/webrtc/app/components/video-room.js +441 -0
  73. package/cli/scaffold/webrtc/assets/.gitkeep +0 -0
  74. package/cli/scaffold/webrtc/global.css +250 -0
  75. package/cli/scaffold/webrtc/index.html +21 -0
  76. package/cli/scaffold/webrtc/package.json +16 -0
  77. package/cli/scaffold/webrtc/server/index.js +198 -0
  78. package/cli/utils.js +305 -287
  79. package/dist/API.md +661 -0
  80. package/dist/zquery.dist.zip +0 -0
  81. package/dist/zquery.js +10454 -6614
  82. package/dist/zquery.min.js +8 -631
  83. package/index.d.ts +570 -371
  84. package/index.js +311 -240
  85. package/package.json +77 -70
  86. package/src/component.js +1758 -1691
  87. package/src/core.js +929 -921
  88. package/src/diff.js +497 -497
  89. package/src/errors.js +209 -209
  90. package/src/expression.js +929 -922
  91. package/src/http.js +242 -242
  92. package/src/package.json +1 -1
  93. package/src/reactive.js +271 -255
  94. package/src/router.js +878 -843
  95. package/src/ssr.js +421 -418
  96. package/src/store.js +325 -318
  97. package/src/utils.js +534 -515
  98. package/src/webrtc/e2ee.js +351 -0
  99. package/src/webrtc/errors.js +116 -0
  100. package/src/webrtc/ice.js +301 -0
  101. package/src/webrtc/index.js +131 -0
  102. package/src/webrtc/joinToken.js +119 -0
  103. package/src/webrtc/observe.js +172 -0
  104. package/src/webrtc/peer.js +351 -0
  105. package/src/webrtc/reactive.js +268 -0
  106. package/src/webrtc/room.js +625 -0
  107. package/src/webrtc/sdp.js +302 -0
  108. package/src/webrtc/sfu/index.js +43 -0
  109. package/src/webrtc/sfu/livekit.js +131 -0
  110. package/src/webrtc/sfu/mediasoup.js +150 -0
  111. package/src/webrtc/signaling.js +373 -0
  112. package/src/webrtc/turn.js +237 -0
  113. package/tests/_helpers/webrtcFakes.js +289 -0
  114. package/tests/audit.test.js +4158 -4158
  115. package/tests/bench/render.bench.js +77 -0
  116. package/tests/cli.test.js +1136 -1103
  117. package/tests/compare.test.js +497 -486
  118. package/tests/component.test.js +4076 -3938
  119. package/tests/core.test.js +1926 -1910
  120. package/tests/dev-server.test.js +489 -489
  121. package/tests/diff.test.js +1416 -1416
  122. package/tests/docs.test.js +1664 -1650
  123. package/tests/electron-features.test.js +864 -864
  124. package/tests/errors.test.js +619 -619
  125. package/tests/expression.test.js +1087 -1056
  126. package/tests/http.test.js +693 -648
  127. package/tests/reactive.test.js +844 -819
  128. package/tests/router.test.js +2423 -2327
  129. package/tests/ssr.test.js +916 -870
  130. package/tests/store.test.js +840 -830
  131. package/tests/test-minifier.js +153 -153
  132. package/tests/test-ssr.js +27 -27
  133. package/tests/utils.test.js +1411 -1377
  134. package/tests/webrtc/e2ee.test.js +283 -0
  135. package/tests/webrtc/ice.test.js +202 -0
  136. package/tests/webrtc/joinToken.test.js +89 -0
  137. package/tests/webrtc/observe.test.js +111 -0
  138. package/tests/webrtc/peer.test.js +373 -0
  139. package/tests/webrtc/reactive.test.js +235 -0
  140. package/tests/webrtc/room.test.js +406 -0
  141. package/tests/webrtc/sdp.test.js +151 -0
  142. package/tests/webrtc/sfu-livekit.test.js +119 -0
  143. package/tests/webrtc/sfu.test.js +160 -0
  144. package/tests/webrtc/signaling.test.js +251 -0
  145. package/tests/webrtc/turn.test.js +256 -0
  146. package/types/collection.d.ts +383 -383
  147. package/types/component.d.ts +186 -186
  148. package/types/errors.d.ts +135 -135
  149. package/types/http.d.ts +92 -92
  150. package/types/misc.d.ts +201 -201
  151. package/types/reactive.d.ts +98 -98
  152. package/types/router.d.ts +190 -190
  153. package/types/ssr.d.ts +102 -102
  154. package/types/store.d.ts +146 -146
  155. package/types/utils.d.ts +245 -245
  156. package/types/webrtc.d.ts +653 -0
@@ -1,79 +1,79 @@
1
- // ===================================================================
2
- // Tab switching
3
- // ===================================================================
4
- document.querySelector('.tabs').addEventListener('click', function(e) {
5
- var tab = e.target.closest('.tab');
6
- if (!tab) return;
7
- switchTab(tab.dataset.tab);
8
- });
9
-
10
- function switchTab(tabName) {
11
- document.querySelectorAll('.tab').forEach(function(t) { t.classList.remove('active'); });
12
- document.querySelectorAll('.panel').forEach(function(p) { p.classList.remove('active'); });
13
- var tabBtn = document.querySelector('.tab[data-tab="' + tabName + '"]');
14
- var panel = document.getElementById('panel-' + tabName);
15
- if (tabBtn) tabBtn.classList.add('active');
16
- if (panel) panel.classList.add('active');
17
- // Immediately refresh the tab's content
18
- if (tabName === 'components') renderComponents();
19
- else if (tabName === 'performance') renderPerf();
20
- else if (tabName === 'router') renderRouter();
21
- }
22
-
23
- // ===================================================================
24
- // Topbar stat clicks → switch to corresponding tab
25
- // ===================================================================
26
- document.querySelector('.topbar-right').addEventListener('click', function(e) {
27
- var stat = e.target.closest('.topbar-stat');
28
- if (stat && stat.dataset.tab) switchTab(stat.dataset.tab);
29
- });
30
-
31
- // Listen for tab-switch requests from the app's devbar (via BroadcastChannel)
32
- if (channel) {
33
- channel.addEventListener('message', function(e) {
34
- if (e.data && e.data.type === 'switch-tab' && e.data.tab) {
35
- switchTab(e.data.tab);
36
- }
37
- });
38
- }
39
-
40
- // Switch to tab specified in URL hash (e.g. /_devtools#network)
41
- var hashTab = location.hash.replace('#', '');
42
- if (hashTab) switchTab(hashTab);
43
-
44
- // ===================================================================
45
- // Clear / Reset buttons
46
- // ===================================================================
47
- document.getElementById('net-clear').addEventListener('click', function() {
48
- requests = [];
49
- try {
50
- if (targetWin && targetWin.__zqDevTools) {
51
- targetWin.__zqDevTools.requests = [];
52
- }
53
- } catch(e) {}
54
- renderNetwork();
55
- updateStats();
56
- });
57
-
58
- document.getElementById('perf-clear').addEventListener('click', function() {
59
- morphEvents = [];
60
- morphCount = 0;
61
- try {
62
- if (targetWin && targetWin.__zqDevTools) {
63
- targetWin.__zqDevTools.morphEvents = [];
64
- targetWin.__zqDevTools.morphCount = 0;
65
- }
66
- } catch(e) {}
67
- renderPerf();
68
- updateStats();
69
- });
70
-
71
- document.getElementById('router-clear').addEventListener('click', function() {
72
- routerEvents = [];
73
- try {
74
- if (targetWin && targetWin.__zqDevTools) {
75
- targetWin.__zqDevTools.routerEvents = [];
76
- }
77
- } catch(e) {}
78
- renderRouter();
79
- });
1
+ // ===================================================================
2
+ // Tab switching
3
+ // ===================================================================
4
+ document.querySelector('.tabs').addEventListener('click', function(e) {
5
+ var tab = e.target.closest('.tab');
6
+ if (!tab) return;
7
+ switchTab(tab.dataset.tab);
8
+ });
9
+
10
+ function switchTab(tabName) {
11
+ document.querySelectorAll('.tab').forEach(function(t) { t.classList.remove('active'); });
12
+ document.querySelectorAll('.panel').forEach(function(p) { p.classList.remove('active'); });
13
+ var tabBtn = document.querySelector('.tab[data-tab="' + tabName + '"]');
14
+ var panel = document.getElementById('panel-' + tabName);
15
+ if (tabBtn) tabBtn.classList.add('active');
16
+ if (panel) panel.classList.add('active');
17
+ // Immediately refresh the tab's content
18
+ if (tabName === 'components') renderComponents();
19
+ else if (tabName === 'performance') renderPerf();
20
+ else if (tabName === 'router') renderRouter();
21
+ }
22
+
23
+ // ===================================================================
24
+ // Topbar stat clicks → switch to corresponding tab
25
+ // ===================================================================
26
+ document.querySelector('.topbar-right').addEventListener('click', function(e) {
27
+ var stat = e.target.closest('.topbar-stat');
28
+ if (stat && stat.dataset.tab) switchTab(stat.dataset.tab);
29
+ });
30
+
31
+ // Listen for tab-switch requests from the app's devbar (via BroadcastChannel)
32
+ if (channel) {
33
+ channel.addEventListener('message', function(e) {
34
+ if (e.data && e.data.type === 'switch-tab' && e.data.tab) {
35
+ switchTab(e.data.tab);
36
+ }
37
+ });
38
+ }
39
+
40
+ // Switch to tab specified in URL hash (e.g. /_devtools#network)
41
+ var hashTab = location.hash.replace('#', '');
42
+ if (hashTab) switchTab(hashTab);
43
+
44
+ // ===================================================================
45
+ // Clear / Reset buttons
46
+ // ===================================================================
47
+ document.getElementById('net-clear').addEventListener('click', function() {
48
+ requests = [];
49
+ try {
50
+ if (targetWin && targetWin.__zqDevTools) {
51
+ targetWin.__zqDevTools.requests = [];
52
+ }
53
+ } catch(e) {}
54
+ renderNetwork();
55
+ updateStats();
56
+ });
57
+
58
+ document.getElementById('perf-clear').addEventListener('click', function() {
59
+ morphEvents = [];
60
+ morphCount = 0;
61
+ try {
62
+ if (targetWin && targetWin.__zqDevTools) {
63
+ targetWin.__zqDevTools.morphEvents = [];
64
+ targetWin.__zqDevTools.morphCount = 0;
65
+ }
66
+ } catch(e) {}
67
+ renderPerf();
68
+ updateStats();
69
+ });
70
+
71
+ document.getElementById('router-clear').addEventListener('click', function() {
72
+ routerEvents = [];
73
+ try {
74
+ if (targetWin && targetWin.__zqDevTools) {
75
+ targetWin.__zqDevTools.routerEvents = [];
76
+ }
77
+ } catch(e) {}
78
+ renderRouter();
79
+ });
@@ -1,95 +1,95 @@
1
- <div id="root">
2
- <!-- App iframe (for standalone tab mode) -->
3
- <iframe id="app-frame" src="/"></iframe>
4
- <div class="divider" id="divider">
5
- <div class="divider-toolbar" id="divider-toolbar">
6
- <button id="btn-refresh" title="Refresh browser"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2v6h-6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M3 22v-6h6"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/></svg></button>
7
- <span class="divider-sep"></span>
8
- <button class="viewport-btn" data-width="375" title="Mobile (375px)"><svg width="12" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"/><line x1="12" y1="18" x2="12" y2="18"/></svg></button>
9
- <button class="viewport-btn" data-width="768" title="Tablet (768px)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"/><line x1="12" y1="18" x2="12" y2="18"/></svg></button>
10
- <button class="viewport-btn active" data-width="0" title="Desktop (fill)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg></button>
11
- <span class="divider-sep"></span>
12
- <button id="btn-route" title="Current route"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="17" y1="2" x2="7" y2="22"/></svg></button>
13
- <span class="route-label" id="route-label">/</span>
14
- </div>
15
- </div>
16
- <!-- DevTools panel -->
17
- <div id="devtools">
18
- <!-- Top bar -->
19
- <div class="topbar">
20
- <span class="topbar-title">zQuery DevTools</span>
21
- <button id="mode-toggle" title="Toggle layout" style="padding:2px 6px;border-radius:3px;background:rgba(88,166,255,0.1);color:var(--accent);font-size:10px;font-weight:600;border:1px solid rgba(88,166,255,0.2);cursor:pointer">&#x2b82;</button>
22
- <span class="topbar-status" id="status"><span class="topbar-dot"></span> <span id="status-text">Connecting...</span></span>
23
- <div class="topbar-right">
24
- <span class="topbar-stat" id="el-count" data-tab="dom" title="DOM elements">0 elements</span>
25
- <span class="topbar-stat" id="morph-count" data-tab="perf" title="Render operations">0 renders</span>
26
- <span class="topbar-stat" id="req-count" data-tab="network" title="Network requests">0 requests</span>
27
- <span class="topbar-stat" id="route-stat" data-tab="router" title="Current route" style="max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">/</span>
28
- </div>
29
- </div>
30
-
31
- <!-- Tabs + panels -->
32
- <div class="main">
33
- <div class="tabs">
34
- <button class="tab active" data-tab="router">Router</button>
35
- <button class="tab" data-tab="components">Components</button>
36
- <button class="tab" data-tab="perf">Performance</button>
37
- <button class="tab" data-tab="network">Network</button>
38
- <button class="tab" data-tab="dom">Elements</button>
39
- </div>
40
-
41
- <!-- Router panel -->
42
- <div class="panel active" id="panel-router">
43
- <div class="panel-toolbar" id="router-toolbar">
44
- <button id="router-clear" title="Clear router history">Clear</button>
45
- </div>
46
- <div id="router-content"></div>
47
- </div>
48
-
49
- <!-- Components panel -->
50
- <div class="panel" id="panel-components">
51
- <div id="comp-list"></div>
52
- </div>
53
-
54
- <!-- Performance panel -->
55
- <div class="panel" id="panel-perf">
56
- <div class="panel-toolbar" id="perf-toolbar">
57
- <button id="perf-clear" title="Clear performance recordings">Clear</button>
58
- </div>
59
- <div id="perf-content"></div>
60
- </div>
61
-
62
- <!-- Network panel -->
63
- <div class="panel" id="panel-network">
64
- <div class="panel-toolbar" id="net-toolbar">
65
- <button id="net-clear" title="Clear network log">Clear</button>
66
- </div>
67
- <table class="net-table">
68
- <thead><tr><th>Method</th><th>Status</th><th>URL</th><th>Time</th><th>Timestamp</th><th style="width:35%">Preview</th></tr></thead>
69
- <tbody id="net-body"></tbody>
70
- </table>
71
- </div>
72
-
73
- <!-- Elements panel -->
74
- <div class="panel" id="panel-dom">
75
- <div class="detail" id="dom-detail" style="display:none"></div>
76
- <div class="tree" id="dom-tree"></div>
77
- </div>
78
- </div>
79
- </div>
80
- </div>
81
-
82
- <div class="source-overlay" id="source-overlay">
83
- <div class="source-box">
84
- <div class="source-header">
85
- <span class="source-title" id="source-title">Source</span>
86
- <button class="source-close" id="source-close" title="Close">&times;</button>
87
- </div>
88
- <div class="source-body"><pre id="source-content"></pre></div>
89
- </div>
90
- </div>
91
-
92
- <div class="disconnected" id="disconnected" style="display:none">
93
- <h2>Connecting...</h2>
94
- <p>Loading your app in the embedded frame. If this persists, check that your dev server is running.</p>
95
- </div>
1
+ <div id="root">
2
+ <!-- App iframe (for standalone tab mode) -->
3
+ <iframe id="app-frame" src="/"></iframe>
4
+ <div class="divider" id="divider">
5
+ <div class="divider-toolbar" id="divider-toolbar">
6
+ <button id="btn-refresh" title="Refresh browser"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2v6h-6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M3 22v-6h6"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/></svg></button>
7
+ <span class="divider-sep"></span>
8
+ <button class="viewport-btn" data-width="375" title="Mobile (375px)"><svg width="12" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"/><line x1="12" y1="18" x2="12" y2="18"/></svg></button>
9
+ <button class="viewport-btn" data-width="768" title="Tablet (768px)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"/><line x1="12" y1="18" x2="12" y2="18"/></svg></button>
10
+ <button class="viewport-btn active" data-width="0" title="Desktop (fill)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg></button>
11
+ <span class="divider-sep"></span>
12
+ <button id="btn-route" title="Current route"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="17" y1="2" x2="7" y2="22"/></svg></button>
13
+ <span class="route-label" id="route-label">/</span>
14
+ </div>
15
+ </div>
16
+ <!-- DevTools panel -->
17
+ <div id="devtools">
18
+ <!-- Top bar -->
19
+ <div class="topbar">
20
+ <span class="topbar-title">zQuery DevTools</span>
21
+ <button id="mode-toggle" title="Toggle layout" style="padding:2px 6px;border-radius:3px;background:rgba(88,166,255,0.1);color:var(--accent);font-size:10px;font-weight:600;border:1px solid rgba(88,166,255,0.2);cursor:pointer">&#x2b82;</button>
22
+ <span class="topbar-status" id="status"><span class="topbar-dot"></span> <span id="status-text">Connecting...</span></span>
23
+ <div class="topbar-right">
24
+ <span class="topbar-stat" id="el-count" data-tab="dom" title="DOM elements">0 elements</span>
25
+ <span class="topbar-stat" id="morph-count" data-tab="perf" title="Render operations">0 renders</span>
26
+ <span class="topbar-stat" id="req-count" data-tab="network" title="Network requests">0 requests</span>
27
+ <span class="topbar-stat" id="route-stat" data-tab="router" title="Current route" style="max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">/</span>
28
+ </div>
29
+ </div>
30
+
31
+ <!-- Tabs + panels -->
32
+ <div class="main">
33
+ <div class="tabs">
34
+ <button class="tab active" data-tab="router">Router</button>
35
+ <button class="tab" data-tab="components">Components</button>
36
+ <button class="tab" data-tab="perf">Performance</button>
37
+ <button class="tab" data-tab="network">Network</button>
38
+ <button class="tab" data-tab="dom">Elements</button>
39
+ </div>
40
+
41
+ <!-- Router panel -->
42
+ <div class="panel active" id="panel-router">
43
+ <div class="panel-toolbar" id="router-toolbar">
44
+ <button id="router-clear" title="Clear router history">Clear</button>
45
+ </div>
46
+ <div id="router-content"></div>
47
+ </div>
48
+
49
+ <!-- Components panel -->
50
+ <div class="panel" id="panel-components">
51
+ <div id="comp-list"></div>
52
+ </div>
53
+
54
+ <!-- Performance panel -->
55
+ <div class="panel" id="panel-perf">
56
+ <div class="panel-toolbar" id="perf-toolbar">
57
+ <button id="perf-clear" title="Clear performance recordings">Clear</button>
58
+ </div>
59
+ <div id="perf-content"></div>
60
+ </div>
61
+
62
+ <!-- Network panel -->
63
+ <div class="panel" id="panel-network">
64
+ <div class="panel-toolbar" id="net-toolbar">
65
+ <button id="net-clear" title="Clear network log">Clear</button>
66
+ </div>
67
+ <table class="net-table">
68
+ <thead><tr><th>Method</th><th>Status</th><th>URL</th><th>Time</th><th>Timestamp</th><th style="width:35%">Preview</th></tr></thead>
69
+ <tbody id="net-body"></tbody>
70
+ </table>
71
+ </div>
72
+
73
+ <!-- Elements panel -->
74
+ <div class="panel" id="panel-dom">
75
+ <div class="detail" id="dom-detail" style="display:none"></div>
76
+ <div class="tree" id="dom-tree"></div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+
82
+ <div class="source-overlay" id="source-overlay">
83
+ <div class="source-box">
84
+ <div class="source-header">
85
+ <span class="source-title" id="source-title">Source</span>
86
+ <button class="source-close" id="source-close" title="Close">&times;</button>
87
+ </div>
88
+ <div class="source-body"><pre id="source-content"></pre></div>
89
+ </div>
90
+ </div>
91
+
92
+ <div class="disconnected" id="disconnected" style="display:none">
93
+ <h2>Connecting...</h2>
94
+ <p>Loading your app in the embedded frame. If this persists, check that your dev server is running.</p>
95
+ </div>