@emeryld/rrroutes-contract 2.7.7 → 2.7.9
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/export/defaultViewerTemplate.d.ts +1 -1
- package/dist/index.cjs +12 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tools/finalized-leaves-viewer.html +67 -25
package/dist/index.mjs
CHANGED
|
@@ -688,18 +688,18 @@ var DEFAULT_VIEWER_TEMPLATE = `<!doctype html>
|
|
|
688
688
|
<title>Finalized Leaves Viewer</title>
|
|
689
689
|
<style>
|
|
690
690
|
:root {
|
|
691
|
-
--bg: #
|
|
692
|
-
--surface: #
|
|
693
|
-
--border: #
|
|
694
|
-
--text: #
|
|
695
|
-
--muted: #
|
|
696
|
-
--accent: #
|
|
691
|
+
--bg: #212121;
|
|
692
|
+
--surface: #2a2a2a;
|
|
693
|
+
--border: #4a4a4a;
|
|
694
|
+
--text: #fffafa;
|
|
695
|
+
--muted: #c8c2c2;
|
|
696
|
+
--accent: #a764d3;
|
|
697
697
|
}
|
|
698
698
|
body {
|
|
699
699
|
margin: 0;
|
|
700
700
|
font-family: 'Iosevka Web', 'SFMono-Regular', Menlo, Consolas, monospace;
|
|
701
701
|
color: var(--text);
|
|
702
|
-
background:
|
|
702
|
+
background: var(--bg);
|
|
703
703
|
}
|
|
704
704
|
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
|
|
705
705
|
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
|
|
@@ -707,7 +707,7 @@ var DEFAULT_VIEWER_TEMPLATE = `<!doctype html>
|
|
|
707
707
|
#results { margin-top: 12px; display: grid; gap: 8px; }
|
|
708
708
|
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
|
|
709
709
|
summary { cursor: pointer; font-weight: 700; color: var(--accent); }
|
|
710
|
-
pre { margin: 10px 0 0; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #
|
|
710
|
+
pre { margin: 10px 0 0; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #303030; color: var(--text); }
|
|
711
711
|
</style>
|
|
712
712
|
</head>
|
|
713
713
|
<body>
|
|
@@ -738,6 +738,10 @@ var DEFAULT_VIEWER_TEMPLATE = `<!doctype html>
|
|
|
738
738
|
return prefix + encodeURI(normalizedPath)
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
+
const sourceDisplay = (source) => {
|
|
742
|
+
return ''
|
|
743
|
+
}
|
|
744
|
+
|
|
741
745
|
payload.leaves.forEach((leaf) => {
|
|
742
746
|
const details = document.createElement('details')
|
|
743
747
|
const summary = document.createElement('summary')
|
|
@@ -761,16 +765,6 @@ var DEFAULT_VIEWER_TEMPLATE = `<!doctype html>
|
|
|
761
765
|
link.rel = 'noopener noreferrer'
|
|
762
766
|
link.textContent = 'definition'
|
|
763
767
|
label.appendChild(link)
|
|
764
|
-
const location = document.createElement('span')
|
|
765
|
-
location.textContent =
|
|
766
|
-
' (' +
|
|
767
|
-
source.definition.file +
|
|
768
|
-
':' +
|
|
769
|
-
source.definition.line +
|
|
770
|
-
':' +
|
|
771
|
-
source.definition.column +
|
|
772
|
-
')'
|
|
773
|
-
label.appendChild(location)
|
|
774
768
|
sourceWrap.appendChild(label)
|
|
775
769
|
}
|
|
776
770
|
|
|
@@ -787,10 +781,6 @@ var DEFAULT_VIEWER_TEMPLATE = `<!doctype html>
|
|
|
787
781
|
link.textContent =
|
|
788
782
|
name + ': ' + (schema.sourceName || schema.tag || '<anonymous>')
|
|
789
783
|
row.appendChild(link)
|
|
790
|
-
const location = document.createElement('span')
|
|
791
|
-
location.textContent =
|
|
792
|
-
' (' + schema.file + ':' + schema.line + ':' + schema.column + ')'
|
|
793
|
-
row.appendChild(location)
|
|
794
784
|
} else {
|
|
795
785
|
row.textContent = name + ': ' + (schema.sourceName || schema.tag || '<anonymous>')
|
|
796
786
|
}
|