diff --git a/quasar-app/src/api/linkTokens.js b/quasar-app/src/api/linkTokens.js index cf291ff..840dc9b 100644 --- a/quasar-app/src/api/linkTokens.js +++ b/quasar-app/src/api/linkTokens.js @@ -30,7 +30,7 @@ export function getLinkTokens(rs) { /** * Creates a new link token. * @param {RailSystem} rs - * @param {LinkToken} data + * @param {{label: String, componentIds: Number[]}} data * @return {Promise} A promise that resolves to the token that was created. */ export function createLinkToken(rs, data) { diff --git a/quasar-app/src/components/RailSystemLink.vue b/quasar-app/src/components/RailSystemLink.vue index c2962d1..049c67c 100644 --- a/quasar-app/src/components/RailSystemLink.vue +++ b/quasar-app/src/components/RailSystemLink.vue @@ -5,7 +5,6 @@ > {{railSystem.name}} - Id: {{railSystem.id}} diff --git a/quasar-app/src/components/rs/MapView.vue b/quasar-app/src/components/rs/MapView.vue index 121d426..cc0251d 100644 --- a/quasar-app/src/components/rs/MapView.vue +++ b/quasar-app/src/components/rs/MapView.vue @@ -16,19 +16,19 @@ - + Add Signal - + Add Segment Boundary - + Add Switch - + Add Label @@ -36,174 +36,145 @@ - - - - -
Add Signal
-

- Add a signal to the rail system. -

-
- - -
- - - -
-
- - - - - - - -
-
-
+ + + + - - - - -
Add Segment Boundary
-

- Add a segment boundary to the rail system. A segment boundary is a - point where a train can cross between two segments, or "blocks" in - the system. For example, a train may move from a junction segment to - a main line. This boundary is a place where a detector component can - update the system as trains pass. -

-
- - -
- - - -
-
- - - - - - - -
-
-
+ + + + - + + + + + + + + + + + + diff --git a/quasar-app/src/components/rs/add_component/AddSignalDialog.vue b/quasar-app/src/components/rs/add_component/AddSignalDialog.vue new file mode 100644 index 0000000..46c778e --- /dev/null +++ b/quasar-app/src/components/rs/add_component/AddSignalDialog.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/quasar-app/src/components/rs/settings/LinkTokensView.vue b/quasar-app/src/components/rs/settings/LinkTokensView.vue index f0b3e0d..cd44422 100644 --- a/quasar-app/src/components/rs/settings/LinkTokensView.vue +++ b/quasar-app/src/components/rs/settings/LinkTokensView.vue @@ -1,26 +1,98 @@ diff --git a/quasar-app/src/pages/RailSystem.vue b/quasar-app/src/pages/RailSystem.vue index a752cbe..a87f01d 100644 --- a/quasar-app/src/pages/RailSystem.vue +++ b/quasar-app/src/pages/RailSystem.vue @@ -40,7 +40,9 @@ export default { data() { return { panel: "map", - railSystem: null + railSystem: null, + + linkTokens: [] } }, async beforeRouteEnter(to, from, next) {