@appland/appmap 3.68.0 → 3.68.1
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/CHANGELOG.md +7 -0
- package/built/cmds/open/openers.js +3 -3
- package/built/cmds/open/openers.js.map +1 -1
- package/built/cmds/open/serveAndOpenAppMap.js +91 -0
- package/built/cmds/open/serveAndOpenAppMap.js.map +1 -0
- package/built/cmds/open/showAppMap.js +8 -1
- package/built/cmds/open/showAppMap.js.map +1 -1
- package/built/cmds/sequenceDiagram.js +18 -64
- package/built/cmds/sequenceDiagram.js.map +1 -1
- package/built/html/appmap.html +1 -1
- package/built/html/{appmap.css → page.css} +1 -1
- package/built/html/{sequenceDiagram.js → page.js} +49 -49
- package/built/html/{sequenceDiagram.js.map → page.js.map} +4 -4
- package/package.json +6 -7
- package/built/html/appmap.js +0 -357
- package/built/html/appmap.js.map +0 -7
- package/built/html/sequenceDiagram.css +0 -2
- package/built/html/sequenceDiagram.css.map +0 -7
- package/built/html/sequenceDiagram.html +0 -1
- package/built/lib/serveAndOpen.js +0 -124
- package/built/lib/serveAndOpen.js.map +0 -1
- /package/built/html/{appmap.css.map → page.css.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.appmap{position:relative;width:100%;min-width:inherit;max-width:inherit;height:100%;min-height:inherit;max-height:inherit;font-size:14px;font-family:IBM Plex Mono,monospace;overflow:hidden;user-select:none}.appmap__content{display:inline-block}.appmap.appmap--theme-dark{background-color:#010306}.appmap.appmap--theme-light{background-color:#fff}.appmap.is-grabbing{cursor:grabbing}.appmap__zoom{position:absolute;top:50%;right:0;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center}.appmap__zoom-button{border:none;border-radius:.5rem;padding:.25rem .5rem;appearance:none;background:#242c41;color:#808b98;font-weight:700;cursor:pointer;opacity:.8}.appmap__zoom-button:hover{opacity:1}.appmap__zoom-bar{margin:3px 6px;position:relative;width:20px;height:90px;cursor:pointer}.appmap__zoom-bar:before{content:"";position:absolute;top:-3px;left:50%;bottom:-3px;margin-left:-3px;width:6px;background:#242c41;opacity:.8}.appmap__zoom-grab{position:absolute;border-radius:3px;left:0;width:100%;height:6px;background:#808b98;cursor:grab}.appmap__context-menu{position:absolute;top:0;left:0;user-select:none}.appmap__context-menu .dropdown-menu{background-color:#242c41;box-shadow:4px 4px 1px #010306;top:100%;left:0;z-index:1000;display:block;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none}.appmap__context-menu .dropdown-menu p{display:block;margin:0;padding:.25rem 1.5rem;color:#808b98;white-space:nowrap;font-style:italic}.appmap__context-menu .dropdown-menu .dropdown-item{display:block;border:0;width:100%;padding:.25rem 1.5rem;color:#eaeaea;cursor:pointer;white-space:nowrap;background-color:transparent}.appmap__context-menu .dropdown-menu .dropdown-item:hover{color:#e3e5e8;background-color:#364262;text-decoration:none}.appmap__component-diagram{font-size:75%}.appmap__component-diagram:not(:root){overflow:visible}.appmap__component-diagram .node.highlight rect,.appmap__component-diagram .node.highlight circle,.appmap__component-diagram .node.highlight ellipse,.appmap__component-diagram .node.highlight path,.appmap__component-diagram .node.highlight polygon{stroke-width:3px}.appmap__component-diagram .node .label{font-size:inherit;font-weight:700;line-height:1}.appmap__component-diagram .node .label__icon,.appmap__component-diagram .cluster .label__icon{cursor:pointer}.appmap__component-diagram .edgePath path{stroke-width:3px}.appmap__component-diagram .edgePath>path{fill:none}.appmap__component-diagram .edgePath marker path{stroke-width:1px;stroke-dasharray:1px,0px}.appmap__component-diagram .nodeLabels{pointer-events:none}.appmap__component-diagram .nodeLabels .package.dim{opacity:1}.appmap--theme-dark .appmap__component-diagram .node.dim .label{fill:#181a1d}.appmap--theme-dark .appmap__component-diagram .node.external-service{fill:#ebdf90}.appmap--theme-dark .appmap__component-diagram .node.external-service .label{fill:#010306}.appmap--theme-dark .appmap__component-diagram .node.external-service.dim{fill:#181914}.appmap--theme-dark .appmap__component-diagram .node.package{fill:#6fddd6}.appmap--theme-dark .appmap__component-diagram .node.package .label{fill:#010306}.appmap--theme-dark .appmap__component-diagram .node.package.dim{fill:#0c191b}.appmap--theme-dark .appmap__component-diagram .node.class{fill:#4362b1}.appmap--theme-dark .appmap__component-diagram .node.class.dim{fill:#080d17}.appmap--theme-dark .appmap__component-diagram .node.database{fill:#9c2fba}.appmap--theme-dark .appmap__component-diagram .node.database path{stroke:#010306}.appmap--theme-dark .appmap__component-diagram .node.database.dim>path{fill:#110718}.appmap--theme-dark .appmap__component-diagram .node.http,.appmap--theme-dark .appmap__component-diagram .node.route{fill:#542168}.appmap--theme-dark .appmap__component-diagram .node.http.dim,.appmap--theme-dark .appmap__component-diagram .node.route.dim{fill:#090610}.appmap--theme-dark .appmap__component-diagram .node.class[data-parent-type=http]{fill:#542168}.appmap--theme-dark .appmap__component-diagram .node.class[data-parent-type=http].dim{fill:#090610}.appmap--theme-dark .appmap__component-diagram .node.io{fill:#f92672}.appmap--theme-dark .appmap__component-diagram .node.io.dim{fill:#1a0711}.appmap--theme-dark .appmap__component-diagram .node .label{fill:#e3e5e8}.appmap--theme-dark .appmap__component-diagram .node.highlight rect,.appmap--theme-dark .appmap__component-diagram .node.highlight circle,.appmap--theme-dark .appmap__component-diagram .node.highlight ellipse,.appmap--theme-dark .appmap__component-diagram .node.highlight path,.appmap--theme-dark .appmap__component-diagram .node.highlight polygon{stroke:#ff07aa}.appmap--theme-dark .appmap__component-diagram .cluster rect{fill:none;stroke:#ff07aa;stroke-width:0}.appmap--theme-dark .appmap__component-diagram .cluster--bordered rect{stroke-width:2}.appmap--theme-dark .appmap__component-diagram .cluster--package rect{fill:#051514;stroke:#6fddd6}.appmap--theme-dark .appmap__component-diagram .cluster--http rect{fill:#000;stroke:#542168}.appmap--theme-dark .appmap__component-diagram .cluster--database rect{stroke:#9c2fba}.appmap--theme-dark .appmap__component-diagram .cluster .label{fill:#e3e5e8;font-size:1rem;font-weight:700}.appmap--theme-dark .appmap__component-diagram .edgePath.highlight path{stroke:#ff07aa}.appmap--theme-dark .appmap__component-diagram .edgePath.highlight marker{fill:#ff07aa}.appmap--theme-dark .appmap__component-diagram .edgePath.highlight--inbound path{stroke:#6fddd6}.appmap--theme-dark .appmap__component-diagram .edgePath.highlight--inbound marker{fill:#6fddd6}.appmap--theme-dark .appmap__component-diagram .edgePath.dim marker{fill:#05070c}.appmap--theme-dark .appmap__component-diagram .edgePath.dim path{stroke:#05070c}.appmap--theme-dark .appmap__component-diagram .edgePath path{stroke:#242c41}.appmap--theme-dark .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover path{stroke:#5b6fa3}.appmap--theme-dark .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover marker{fill:#5b6fa3}.appmap--theme-dark .appmap__component-diagram .edgePath marker{fill:#242c41}.appmap--theme-dark .appmap__component-diagram .nodeLabels{fill:#e3e5e8}.appmap--theme-dark .appmap__component-diagram .nodeLabels .dim{opacity:10%}.appmap--theme-dark .appmap__component-diagram .nodeLabels .package{fill:#010306}.appmap--theme-dark .appmap__component-diagram .nodeLabels .label__children-count{fill-opacity:.7}.appmap--theme-light .appmap__component-diagram .node.dim .label{fill:#fff}.appmap--theme-light .appmap__component-diagram .node.external-service{fill:#ebdf90}.appmap--theme-light .appmap__component-diagram .node.external-service .label{fill:#fff}.appmap--theme-light .appmap__component-diagram .node.external-service.dim{fill:#fdfcf4}.appmap--theme-light .appmap__component-diagram .node.package{fill:#008b69}.appmap--theme-light .appmap__component-diagram .node.package .label{fill:#fff}.appmap--theme-light .appmap__component-diagram .node.package.dim{fill:#e6f3f0}.appmap--theme-light .appmap__component-diagram .node.class{fill:#919191}.appmap--theme-light .appmap__component-diagram .node.class.dim{fill:#f4f4f4}.appmap--theme-light .appmap__component-diagram .node.database{fill:#9c2fba}.appmap--theme-light .appmap__component-diagram .node.database path{stroke:#fff}.appmap--theme-light .appmap__component-diagram .node.database.dim>path{fill:#f5eaf8}.appmap--theme-light .appmap__component-diagram .node.http,.appmap--theme-light .appmap__component-diagram .node.route{fill:#8e45aa}.appmap--theme-light .appmap__component-diagram .node.http.dim,.appmap--theme-light .appmap__component-diagram .node.route.dim{fill:#f4ecf7}.appmap--theme-light .appmap__component-diagram .node.class[data-parent-type=http]{fill:#8e45aa}.appmap--theme-light .appmap__component-diagram .node.class[data-parent-type=http].dim{fill:#f4ecf7}.appmap--theme-light .appmap__component-diagram .node.io{fill:#8685ef}.appmap--theme-light .appmap__component-diagram .node.io.dim{fill:#f3f3fd}.appmap--theme-light .appmap__component-diagram .node .label{fill:#fff}.appmap--theme-light .appmap__component-diagram .node.highlight rect,.appmap--theme-light .appmap__component-diagram .node.highlight circle,.appmap--theme-light .appmap__component-diagram .node.highlight ellipse,.appmap--theme-light .appmap__component-diagram .node.highlight path,.appmap--theme-light .appmap__component-diagram .node.highlight polygon{stroke:#474554}.appmap--theme-light .appmap__component-diagram .cluster rect{fill:none;stroke:#474554;stroke-width:0}.appmap--theme-light .appmap__component-diagram .cluster--bordered rect{stroke-width:2}.appmap--theme-light .appmap__component-diagram .cluster--package rect{fill:#000;stroke:#008b69}.appmap--theme-light .appmap__component-diagram .cluster--http rect{fill:#150a19;stroke:#8e45aa}.appmap--theme-light .appmap__component-diagram .cluster--database rect{stroke:#9c2fba}.appmap--theme-light .appmap__component-diagram .cluster .label{fill:#fff;font-size:1rem;font-weight:700}.appmap--theme-light .appmap__component-diagram .edgePath.highlight path{stroke:#474554}.appmap--theme-light .appmap__component-diagram .edgePath.highlight marker{fill:#474554}.appmap--theme-light .appmap__component-diagram .edgePath.highlight--inbound path{stroke:#008b69}.appmap--theme-light .appmap__component-diagram .edgePath.highlight--inbound marker{fill:#008b69}.appmap--theme-light .appmap__component-diagram .edgePath.dim marker{fill:#f3f5f6}.appmap--theme-light .appmap__component-diagram .edgePath.dim path{stroke:#f3f5f6}.appmap--theme-light .appmap__component-diagram .edgePath path{stroke:#889fa5}.appmap--theme-light .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover path{stroke:#dfe5e7}.appmap--theme-light .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover marker{fill:#dfe5e7}.appmap--theme-light .appmap__component-diagram .edgePath marker{fill:#889fa5}.appmap--theme-light .appmap__component-diagram .nodeLabels{fill:#fff}.appmap--theme-light .appmap__component-diagram .nodeLabels .dim{opacity:10%}.appmap--theme-light .appmap__component-diagram .nodeLabels .package{fill:#fff}.appmap--theme-light .appmap__component-diagram .nodeLabels .label__children-count{fill-opacity:.7}
|
|
2
|
-
/*# sourceMappingURL=sequenceDiagram.css.map */
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../diagrams/dist/style.css"],
|
|
4
|
-
"sourcesContent": [".appmap {\n position: relative;\n width: 100%;\n min-width: inherit;\n max-width: inherit;\n height: 100%;\n min-height: inherit;\n max-height: inherit;\n font-size: 14px;\n font-family: \"IBM Plex Mono\", monospace;\n overflow: hidden;\n user-select: none;\n}\n.appmap__content {\n display: inline-block;\n}\n.appmap.appmap--theme-dark {\n background-color: #010306;\n}\n.appmap.appmap--theme-light {\n background-color: #ffffff;\n}\n.appmap.is-grabbing {\n cursor: grabbing;\n}\n\n.appmap__zoom {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translate(-50%, -50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.appmap__zoom-button {\n border: none;\n border-radius: 0.5rem;\n padding: 0.25rem 0.5rem;\n appearance: none;\n background: #242c41;\n color: #808b98;\n font-weight: bold;\n cursor: pointer;\n opacity: 0.8;\n}\n.appmap__zoom-button:hover {\n opacity: 1;\n}\n.appmap__zoom-bar {\n margin: 3px 6px;\n position: relative;\n width: 20px;\n height: 90px;\n cursor: pointer;\n}\n.appmap__zoom-bar::before {\n content: \"\";\n position: absolute;\n top: -3px;\n left: 50%;\n bottom: -3px;\n margin-left: -3px;\n width: 6px;\n background: #242c41;\n opacity: 0.8;\n}\n.appmap__zoom-grab {\n position: absolute;\n border-radius: 3px;\n left: 0;\n width: 100%;\n height: 6px;\n background: #808b98;\n cursor: grab;\n}\n\n.appmap__context-menu {\n position: absolute;\n top: 0;\n left: 0;\n user-select: none;\n}\n.appmap__context-menu .dropdown-menu {\n background-color: #242c41;\n box-shadow: 4px 4px 1px #010306;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: block;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n font-size: 14px;\n text-align: left;\n list-style: none;\n}\n.appmap__context-menu .dropdown-menu p {\n display: block;\n margin: 0;\n padding: 0.25rem 1.5rem;\n color: #808b98;\n white-space: nowrap;\n font-style: italic;\n}\n.appmap__context-menu .dropdown-menu .dropdown-item {\n display: block;\n border: 0;\n width: 100%;\n padding: 0.25rem 1.5rem;\n color: #eaeaea;\n cursor: pointer;\n white-space: nowrap;\n background-color: transparent;\n}\n.appmap__context-menu .dropdown-menu .dropdown-item:hover {\n color: #e3e5e8;\n background-color: #364262;\n text-decoration: none;\n}\n\n.appmap__component-diagram {\n font-size: 75%;\n}\n.appmap__component-diagram:not(:root) {\n overflow: visible;\n}\n.appmap__component-diagram .node.highlight rect,\n.appmap__component-diagram .node.highlight circle,\n.appmap__component-diagram .node.highlight ellipse,\n.appmap__component-diagram .node.highlight path,\n.appmap__component-diagram .node.highlight polygon {\n stroke-width: 3px;\n}\n.appmap__component-diagram .node .label {\n font-size: inherit;\n font-weight: 700;\n line-height: 1;\n}\n.appmap__component-diagram .node .label__icon,\n.appmap__component-diagram .cluster .label__icon {\n cursor: pointer;\n}\n.appmap__component-diagram .edgePath path {\n stroke-width: 3px;\n}\n.appmap__component-diagram .edgePath > path {\n fill: none;\n}\n.appmap__component-diagram .edgePath marker path {\n stroke-width: 1px;\n stroke-dasharray: 1px, 0px;\n}\n.appmap__component-diagram .nodeLabels {\n pointer-events: none;\n}\n.appmap__component-diagram .nodeLabels .package.dim {\n opacity: 1;\n}\n.appmap--theme-dark .appmap__component-diagram .node.dim .label {\n fill: #181a1d;\n}\n.appmap--theme-dark .appmap__component-diagram .node.external-service {\n fill: #ebdf90;\n}\n.appmap--theme-dark .appmap__component-diagram .node.external-service .label {\n fill: #010306;\n}\n.appmap--theme-dark .appmap__component-diagram .node.external-service.dim {\n fill: #181914;\n}\n.appmap--theme-dark .appmap__component-diagram .node.package {\n fill: #6fddd6;\n}\n.appmap--theme-dark .appmap__component-diagram .node.package .label {\n fill: #010306;\n}\n.appmap--theme-dark .appmap__component-diagram .node.package.dim {\n fill: #0c191b;\n}\n.appmap--theme-dark .appmap__component-diagram .node.class {\n fill: #4362b1;\n}\n.appmap--theme-dark .appmap__component-diagram .node.class.dim {\n fill: #080d17;\n}\n.appmap--theme-dark .appmap__component-diagram .node.database {\n fill: #9c2fba;\n}\n.appmap--theme-dark .appmap__component-diagram .node.database path {\n stroke: #010306;\n}\n.appmap--theme-dark .appmap__component-diagram .node.database.dim > path {\n fill: #110718;\n}\n.appmap--theme-dark .appmap__component-diagram .node.http, .appmap--theme-dark .appmap__component-diagram .node.route {\n fill: #542168;\n}\n.appmap--theme-dark .appmap__component-diagram .node.http.dim, .appmap--theme-dark .appmap__component-diagram .node.route.dim {\n fill: #090610;\n}\n.appmap--theme-dark .appmap__component-diagram .node.class[data-parent-type=http] {\n fill: #542168;\n}\n.appmap--theme-dark .appmap__component-diagram .node.class[data-parent-type=http].dim {\n fill: #090610;\n}\n.appmap--theme-dark .appmap__component-diagram .node.io {\n fill: #f92672;\n}\n.appmap--theme-dark .appmap__component-diagram .node.io.dim {\n fill: #1a0711;\n}\n.appmap--theme-dark .appmap__component-diagram .node .label {\n fill: #e3e5e8;\n}\n.appmap--theme-dark .appmap__component-diagram .node.highlight rect,\n.appmap--theme-dark .appmap__component-diagram .node.highlight circle,\n.appmap--theme-dark .appmap__component-diagram .node.highlight ellipse,\n.appmap--theme-dark .appmap__component-diagram .node.highlight path,\n.appmap--theme-dark .appmap__component-diagram .node.highlight polygon {\n stroke: #ff07aa;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster rect {\n fill: none;\n stroke: #ff07aa;\n stroke-width: 0;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster--bordered rect {\n stroke-width: 2;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster--package rect {\n fill: #051514;\n stroke: #6fddd6;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster--http rect {\n fill: black;\n stroke: #542168;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster--database rect {\n stroke: #9c2fba;\n}\n.appmap--theme-dark .appmap__component-diagram .cluster .label {\n fill: #e3e5e8;\n font-size: 1rem;\n font-weight: 700;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.highlight path {\n stroke: #ff07aa;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.highlight marker {\n fill: #ff07aa;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.highlight--inbound path {\n stroke: #6fddd6;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.highlight--inbound marker {\n fill: #6fddd6;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.dim marker {\n fill: #05070c;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath.dim path {\n stroke: #05070c;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath path {\n stroke: #242c41;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover path {\n stroke: #5b6fa3;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover marker {\n fill: #5b6fa3;\n}\n.appmap--theme-dark .appmap__component-diagram .edgePath marker {\n fill: #242c41;\n}\n.appmap--theme-dark .appmap__component-diagram .nodeLabels {\n fill: #e3e5e8;\n}\n.appmap--theme-dark .appmap__component-diagram .nodeLabels .dim {\n opacity: 10%;\n}\n.appmap--theme-dark .appmap__component-diagram .nodeLabels .package {\n fill: #010306;\n}\n.appmap--theme-dark .appmap__component-diagram .nodeLabels .label__children-count {\n fill-opacity: 0.7;\n}\n.appmap--theme-light .appmap__component-diagram .node.dim .label {\n fill: white;\n}\n.appmap--theme-light .appmap__component-diagram .node.external-service {\n fill: #ebdf90;\n}\n.appmap--theme-light .appmap__component-diagram .node.external-service .label {\n fill: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .node.external-service.dim {\n fill: #fdfcf4;\n}\n.appmap--theme-light .appmap__component-diagram .node.package {\n fill: #008b69;\n}\n.appmap--theme-light .appmap__component-diagram .node.package .label {\n fill: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .node.package.dim {\n fill: #e6f3f0;\n}\n.appmap--theme-light .appmap__component-diagram .node.class {\n fill: #919191;\n}\n.appmap--theme-light .appmap__component-diagram .node.class.dim {\n fill: #f4f4f4;\n}\n.appmap--theme-light .appmap__component-diagram .node.database {\n fill: #9c2fba;\n}\n.appmap--theme-light .appmap__component-diagram .node.database path {\n stroke: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .node.database.dim > path {\n fill: #f5eaf8;\n}\n.appmap--theme-light .appmap__component-diagram .node.http, .appmap--theme-light .appmap__component-diagram .node.route {\n fill: #8e45aa;\n}\n.appmap--theme-light .appmap__component-diagram .node.http.dim, .appmap--theme-light .appmap__component-diagram .node.route.dim {\n fill: #f4ecf7;\n}\n.appmap--theme-light .appmap__component-diagram .node.class[data-parent-type=http] {\n fill: #8e45aa;\n}\n.appmap--theme-light .appmap__component-diagram .node.class[data-parent-type=http].dim {\n fill: #f4ecf7;\n}\n.appmap--theme-light .appmap__component-diagram .node.io {\n fill: #8685ef;\n}\n.appmap--theme-light .appmap__component-diagram .node.io.dim {\n fill: #f3f3fd;\n}\n.appmap--theme-light .appmap__component-diagram .node .label {\n fill: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .node.highlight rect,\n.appmap--theme-light .appmap__component-diagram .node.highlight circle,\n.appmap--theme-light .appmap__component-diagram .node.highlight ellipse,\n.appmap--theme-light .appmap__component-diagram .node.highlight path,\n.appmap--theme-light .appmap__component-diagram .node.highlight polygon {\n stroke: #474554;\n}\n.appmap--theme-light .appmap__component-diagram .cluster rect {\n fill: none;\n stroke: #474554;\n stroke-width: 0;\n}\n.appmap--theme-light .appmap__component-diagram .cluster--bordered rect {\n stroke-width: 2;\n}\n.appmap--theme-light .appmap__component-diagram .cluster--package rect {\n fill: black;\n stroke: #008b69;\n}\n.appmap--theme-light .appmap__component-diagram .cluster--http rect {\n fill: #150a19;\n stroke: #8e45aa;\n}\n.appmap--theme-light .appmap__component-diagram .cluster--database rect {\n stroke: #9c2fba;\n}\n.appmap--theme-light .appmap__component-diagram .cluster .label {\n fill: #ffffff;\n font-size: 1rem;\n font-weight: 700;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.highlight path {\n stroke: #474554;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.highlight marker {\n fill: #474554;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.highlight--inbound path {\n stroke: #008b69;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.highlight--inbound marker {\n fill: #008b69;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.dim marker {\n fill: #f3f5f6;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath.dim path {\n stroke: #f3f5f6;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath path {\n stroke: #889fa5;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover path {\n stroke: #dfe5e7;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath:not(.highlight):not(.dim):hover marker {\n fill: #dfe5e7;\n}\n.appmap--theme-light .appmap__component-diagram .edgePath marker {\n fill: #889fa5;\n}\n.appmap--theme-light .appmap__component-diagram .nodeLabels {\n fill: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .nodeLabels .dim {\n opacity: 10%;\n}\n.appmap--theme-light .appmap__component-diagram .nodeLabels .package {\n fill: #ffffff;\n}\n.appmap--theme-light .appmap__component-diagram .nodeLabels .label__children-count {\n fill-opacity: 0.7;\n}"],
|
|
5
|
-
"mappings": "AAAA,QACE,kBACA,WACA,kBACA,kBACA,YACA,mBACA,mBACA,eACA,oCACA,gBACA,iBAEF,iBACE,qBAEF,2BACE,yBAEF,4BACE,sBAEF,oBACE,gBAGF,cACE,kBACA,QACA,QACA,+BACA,aACA,sBACA,mBAEF,qBACE,YApCF,yCAuCE,gBACA,mBACA,cACA,gBACA,eACA,WAEF,2BACE,UAEF,kBAjDA,eAmDE,kBACA,WACA,YACA,eAEF,yBACE,WACA,kBACA,SACA,SACA,YACA,iBACA,UACA,mBACA,WAEF,mBACE,kBApEF,kBAsEE,OACA,WACA,WACA,mBACA,YAGF,sBACE,kBACA,MACA,OACA,iBAEF,qCACE,yBACA,+BACA,SACA,OACA,aACA,cACA,WACA,gBA3FF,6BA8FE,eACA,gBACA,gBAEF,uCACE,cAnGF,+BAsGE,cACA,mBACA,kBAEF,oDACE,cACA,SACA,WA7GF,sBA+GE,cACA,eACA,mBACA,6BAEF,0DACE,cACA,yBACA,qBAGF,2BACE,cAEF,sCACE,iBAEF,wPAKE,iBAEF,wCACE,kBACA,gBACA,cAEF,+FAEE,eAEF,0CACE,iBAEF,0CACE,UAEF,iDACE,iBACA,yBAEF,uCACE,oBAEF,oDACE,UAEF,gEACE,aAEF,sEACE,aAEF,6EACE,aAEF,0EACE,aAEF,6DACE,aAEF,oEACE,aAEF,iEACE,aAEF,2DACE,aAEF,+DACE,aAEF,8DACE,aAEF,mEACE,eAEF,uEACE,aAEF,qHACE,aAEF,6HACE,aAEF,kFACE,aAEF,sFACE,aAEF,wDACE,aAEF,4DACE,aAEF,4DACE,aAEF,4VAKE,eAEF,6DACE,UACA,eACA,eAEF,uEACE,eAEF,sEACE,aACA,eAEF,mEACE,UACA,eAEF,uEACE,eAEF,+DACE,aACA,eACA,gBAEF,wEACE,eAEF,0EACE,aAEF,iFACE,eAEF,mFACE,aAEF,oEACE,aAEF,kEACE,eAEF,8DACE,eAEF,8FACE,eAEF,gGACE,aAEF,gEACE,aAEF,2DACE,aAEF,gEACE,YAEF,oEACE,aAEF,kFACE,gBAEF,iEACE,UAEF,uEACE,aAEF,8EACE,UAEF,2EACE,aAEF,8DACE,aAEF,qEACE,UAEF,kEACE,aAEF,4DACE,aAEF,gEACE,aAEF,+DACE,aAEF,oEACE,YAEF,wEACE,aAEF,uHACE,aAEF,+HACE,aAEF,mFACE,aAEF,uFACE,aAEF,yDACE,aAEF,6DACE,aAEF,6DACE,UAEF,iWAKE,eAEF,8DACE,UACA,eACA,eAEF,wEACE,eAEF,uEACE,UACA,eAEF,oEACE,aACA,eAEF,wEACE,eAEF,gEACE,UACA,eACA,gBAEF,yEACE,eAEF,2EACE,aAEF,kFACE,eAEF,oFACE,aAEF,qEACE,aAEF,mEACE,eAEF,+DACE,eAEF,+FACE,eAEF,iGACE,aAEF,iEACE,aAEF,4DACE,UAEF,iEACE,YAEF,qEACE,UAEF,mFACE",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<html><head><title>AppMap Sequence Diagram Viewer</title><link rel="stylesheet" href="sequenceDiagram.css"></head><body><div id="app"></div><script src="sequenceDiagram.js" defer=""></script></body></html>
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.serveAndOpenAppMap = exports.serveAndOpenSequenceDiagram = void 0;
|
|
7
|
-
const fs_1 = require("fs");
|
|
8
|
-
const http_1 = require("http");
|
|
9
|
-
const open_1 = __importDefault(require("open"));
|
|
10
|
-
const path_1 = require("path");
|
|
11
|
-
const url_1 = require("url");
|
|
12
|
-
const utils_1 = require("../utils");
|
|
13
|
-
const userInteraction_1 = __importDefault(require("../cmds/userInteraction"));
|
|
14
|
-
function mimeTypeOfName(filename) {
|
|
15
|
-
return ({
|
|
16
|
-
js: 'application/javascript',
|
|
17
|
-
css: 'text/css',
|
|
18
|
-
json: 'application/json',
|
|
19
|
-
map: 'application/json',
|
|
20
|
-
}[(0, path_1.extname)(filename)] || 'application/octet-stream');
|
|
21
|
-
}
|
|
22
|
-
async function serveAndOpen(file, resources, verifyInSubdir, onListen) {
|
|
23
|
-
userInteraction_1.default.progress(`Opening ${file}`);
|
|
24
|
-
const baseDir = (0, path_1.join)(__dirname, '..', '..', 'built', 'html');
|
|
25
|
-
if (!(await (0, utils_1.exists)((0, path_1.join)(baseDir, file))))
|
|
26
|
-
throw new Error(`File ${file} does not exist`);
|
|
27
|
-
const server = (0, http_1.createServer)(async (req, res) => {
|
|
28
|
-
const send404 = () => {
|
|
29
|
-
res.writeHead(404);
|
|
30
|
-
res.end();
|
|
31
|
-
};
|
|
32
|
-
const serveStaticFile = (dir, fileName, contentType) => {
|
|
33
|
-
const path = (0, path_1.isAbsolute)(fileName) ? fileName : (0, path_1.join)(dir, fileName);
|
|
34
|
-
if (verifyInSubdir && !path.startsWith(dir))
|
|
35
|
-
return send404();
|
|
36
|
-
if (!contentType)
|
|
37
|
-
contentType = mimeTypeOfName(fileName);
|
|
38
|
-
res.writeHead(200, 'OK', { 'Content-Type': contentType });
|
|
39
|
-
const fileStream = (0, fs_1.createReadStream)(path);
|
|
40
|
-
fileStream.pipe(res);
|
|
41
|
-
fileStream.on('open', function () {
|
|
42
|
-
if ((0, utils_1.verbose)()) {
|
|
43
|
-
console.log(`${path}: 200`);
|
|
44
|
-
}
|
|
45
|
-
res.writeHead(200);
|
|
46
|
-
});
|
|
47
|
-
fileStream.on('error', function (e) {
|
|
48
|
-
if ((0, utils_1.verbose)()) {
|
|
49
|
-
console.log(`${path}: 404 (${e})`);
|
|
50
|
-
}
|
|
51
|
-
send404();
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
try {
|
|
55
|
-
if ((0, utils_1.verbose)()) {
|
|
56
|
-
console.log(req.url);
|
|
57
|
-
}
|
|
58
|
-
const requestUrl = (0, url_1.parse)(req.url);
|
|
59
|
-
const pathname = requestUrl.pathname;
|
|
60
|
-
if (pathname === '/') {
|
|
61
|
-
return serveStaticFile(baseDir, file, 'text/html');
|
|
62
|
-
}
|
|
63
|
-
else if (pathname === '/resource') {
|
|
64
|
-
const pathname = requestUrl.query;
|
|
65
|
-
if (pathname)
|
|
66
|
-
serveStaticFile(process.cwd(), decodeURIComponent(pathname));
|
|
67
|
-
else
|
|
68
|
-
send404();
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
serveStaticFile(baseDir, (pathname || '/').slice(1));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
catch (e) {
|
|
75
|
-
console.log(e.stack);
|
|
76
|
-
res.writeHead(500);
|
|
77
|
-
res.end(); // end the response so browsers don't hang
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
.listen(0, '127.0.0.1', () => {
|
|
81
|
-
const port = server.address().port;
|
|
82
|
-
const params = new URLSearchParams();
|
|
83
|
-
for (const [key, value] of Object.entries(resources)) {
|
|
84
|
-
params.append(key, value);
|
|
85
|
-
}
|
|
86
|
-
const url = new URL(`http://localhost:${port}/?${params.toString()}`);
|
|
87
|
-
onListen(url.toString());
|
|
88
|
-
})
|
|
89
|
-
.on('connection', function (socket) {
|
|
90
|
-
// Don't let the open socket keep the process alive.
|
|
91
|
-
socket.unref();
|
|
92
|
-
})
|
|
93
|
-
.unref();
|
|
94
|
-
}
|
|
95
|
-
exports.default = serveAndOpen;
|
|
96
|
-
async function serveAndOpenSequenceDiagram(diagramFile, verifyInSubdir, onListen) {
|
|
97
|
-
return new Promise((resolve) => {
|
|
98
|
-
serveAndOpen('sequenceDiagram.html', {
|
|
99
|
-
diagram: diagramFile,
|
|
100
|
-
}, verifyInSubdir, async (url) => {
|
|
101
|
-
onListen(url);
|
|
102
|
-
resolve(url);
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
exports.serveAndOpenSequenceDiagram = serveAndOpenSequenceDiagram;
|
|
107
|
-
async function serveAndOpenAppMap(appMapFile, verifyInSubdir) {
|
|
108
|
-
return new Promise((resolve) => {
|
|
109
|
-
serveAndOpen('appmap.html', {
|
|
110
|
-
appmap: appMapFile,
|
|
111
|
-
}, verifyInSubdir, async (url) => {
|
|
112
|
-
await tryOpen(url);
|
|
113
|
-
resolve(url);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
exports.serveAndOpenAppMap = serveAndOpenAppMap;
|
|
118
|
-
async function tryOpen(url) {
|
|
119
|
-
const showMessage = () => userInteraction_1.default.warn(`\nWe could not open the browser automatically.\nOpen ${url} to view the content.\n`);
|
|
120
|
-
const cp = await (0, open_1.default)(url);
|
|
121
|
-
cp.once('error', showMessage);
|
|
122
|
-
cp.once('exit', (code, signal) => (code || signal) && showMessage());
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=serveAndOpen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serveAndOpen.js","sourceRoot":"","sources":["../../src/lib/serveAndOpen.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAsC;AACtC,+BAAoC;AAEpC,gDAAwB;AACxB,+BAAiD;AACjD,6BAA4B;AAC5B,oCAA2C;AAC3C,8EAAyC;AAEzC,SAAS,cAAc,CAAC,QAAgB;IACtC,OAAO,CACL;QACE,EAAE,EAAE,wBAAwB;QAC5B,GAAG,EAAE,UAAU;QACf,IAAI,EAAE,kBAAkB;QACxB,GAAG,EAAE,kBAAkB;KACxB,CAAC,IAAA,cAAO,EAAC,QAAQ,CAAC,CAAC,IAAI,0BAA0B,CACnD,CAAC;AACJ,CAAC;AAEc,KAAK,UAAU,YAAY,CACxC,IAAY,EACZ,SAAiC,EACjC,cAAuB,EACvB,QAA+B;IAE/B,yBAAE,CAAC,QAAQ,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAE/B,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC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