-
Notifications
You must be signed in to change notification settings - Fork 165
fix: VRP quickstart issues #1065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,11 +23,11 @@ const routeGroup = L.layerGroup().addTo(map); | |||||
|
|
||||||
| /************************************ Time line constants and variable definitions ************************************/ | ||||||
|
|
||||||
| const byVehiclePanel = document.getElementById("byVehiclePanel"); | ||||||
| const byVehiclePanel = document.getElementById("byVehicleTimeline"); | ||||||
| const byVehicleTimelineOptions = { | ||||||
| timeAxis: {scale: "hour"}, | ||||||
| orientation: {axis: "top"}, | ||||||
| xss: {disabled: true}, // Items are XSS safe through JQuery | ||||||
| xss: {disabled: false}, // Items are XSS safe through JQuery | ||||||
| stack: false, | ||||||
| stackSubgroups: false, | ||||||
| zoomMin: 1000 * 60 * 60, // A single hour in milliseconds | ||||||
|
|
@@ -37,12 +37,12 @@ const byVehicleGroupData = new vis.DataSet(); | |||||
| const byVehicleItemData = new vis.DataSet(); | ||||||
| const byVehicleTimeline = new vis.Timeline(byVehiclePanel, byVehicleItemData, byVehicleGroupData, byVehicleTimelineOptions); | ||||||
|
|
||||||
| const byVisitPanel = document.getElementById("byVisitPanel"); | ||||||
| const byVisitPanel = document.getElementById("byVisitTimeline"); | ||||||
| const byVisitTimelineOptions = { | ||||||
| timeAxis: {scale: "hour"}, | ||||||
| orientation: {axis: "top"}, | ||||||
| verticalScroll: true, | ||||||
| xss: {disabled: true}, // Items are XSS safe through JQuery | ||||||
| xss: {disabled: false}, // Items are XSS safe through JQuery | ||||||
|
||||||
| xss: {disabled: false}, // Items are XSS safe through JQuery | |
| xss: {disabled: true}, // Items are XSS safe through JQuery |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,11 +22,47 @@ | |||||
| .nav-pills { | ||||||
| --bs-nav-pills-link-active-bg: var(--ts-violet-1-rgb); | ||||||
| } | ||||||
| .legend-swatch { | ||||||
| display: inline-block; | ||||||
| width: 12px; | ||||||
| height: 12px; | ||||||
| border-radius: 3px; | ||||||
| flex-shrink: 0; | ||||||
| } | ||||||
|
|
||||||
| /* Viewport-filling layout — no page-level scrollbar */ | ||||||
| html, body { height: 100%; } | ||||||
| body { | ||||||
| display: flex; | ||||||
| flex-direction: column; | ||||||
| overflow: hidden; | ||||||
| } | ||||||
| body > header, body > footer { flex-shrink: 0; height: 4rem; } | ||||||
| body > .tab-content { flex: 1; min-height: 0; overflow: hidden; } | ||||||
|
||||||
| body > .tab-content { flex: 1; min-height: 0; overflow: hidden; } | |
| body > .tab-content { flex: 1; min-height: 0; overflow-y: auto; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vis-timelineis being fed HTML strings (icons, spans) viacontent: ...html(), butxss: { disabled: false }enables XSS filtering in vis-timeline and may escape/strip this HTML (breaking icon rendering). This also diverges from the pattern used in other quickstarts (they setdisabled: true). If you need HTML content, keepxss.disabledset totruehere and rely on the existing jQuery.text()usage to keep user-provided values escaped.