|
| 1 | +// AutoRouterImportStart |
1 | 2 | import { RouterCharts } from "./samples/charts/router";
|
| 3 | +import { RouterEditors } from "./samples/editors/router"; |
| 4 | +import { RouterExcel } from "./samples/excel/router"; |
2 | 5 | import { RouterGauges } from "./samples/gauges/router";
|
3 | 6 | import { RouterGrids } from "./samples/grids/router";
|
4 |
| -import { RouterMaps } from "./samples/maps/router"; |
5 |
| -import { RouterExcel } from "./samples/excel/router"; |
| 7 | +import { RouterInputs } from "./samples/inputs/router"; |
6 | 8 | import { RouterLayouts } from "./samples/layouts/router";
|
7 |
| -import { RouterEditors } from "./samples/editors/router"; |
| 9 | +import { RouterMaps } from "./samples/maps/router"; |
8 | 10 | import { RouterMenus } from "./samples/menus/router";
|
9 |
| -import { RouterInputs } from "./samples/inputs/router"; |
10 |
| -import { RouterScheduling } from "./samples/scheduling/router"; |
11 | 11 | import { RouterNotifications } from "./samples/notifications/router";
|
| 12 | +import { RouterScheduling } from "./samples/scheduling/router"; |
| 13 | +// AutoRouterImportEnd |
12 | 14 |
|
13 | 15 | export class Router {
|
14 | 16 |
|
@@ -88,39 +90,41 @@ export class Router {
|
88 | 90 |
|
89 | 91 | // console.log("SB matching " + route);
|
90 | 92 |
|
91 |
| - if (route.indexOf("/maps/") >= 0) { |
92 |
| - this.displaySample(await RouterMaps.get(route)); |
| 93 | +// AutoRouterConditionStart |
| 94 | + if (route.indexOf("/charts/") >= 0) { |
| 95 | + this.displaySample(await RouterCharts.get(route)); |
93 | 96 | }
|
94 |
| - else if (route.indexOf("/grids/") >= 0) { |
95 |
| - this.displaySample(await RouterGrids.get(route)); |
| 97 | + else if (route.indexOf("/editors/") >= 0) { |
| 98 | + this.displaySample(await RouterEditors.get(route)); |
96 | 99 | }
|
97 | 100 | else if (route.indexOf("/excel/") >= 0) {
|
98 | 101 | this.displaySample(await RouterExcel.get(route));
|
99 | 102 | }
|
100 | 103 | else if (route.indexOf("/gauges/") >= 0) {
|
101 | 104 | this.displaySample(await RouterGauges.get(route));
|
102 | 105 | }
|
103 |
| - else if (route.indexOf("/charts/") >= 0) { |
104 |
| - this.displaySample(await RouterCharts.get(route)); |
| 106 | + else if (route.indexOf("/grids/") >= 0) { |
| 107 | + this.displaySample(await RouterGrids.get(route)); |
| 108 | + } |
| 109 | + else if (route.indexOf("/inputs/") >= 0) { |
| 110 | + this.displaySample(await RouterInputs.get(route)); |
105 | 111 | }
|
106 | 112 | else if (route.indexOf("/layouts/") >= 0) {
|
107 | 113 | this.displaySample(await RouterLayouts.get(route));
|
108 | 114 | }
|
109 |
| - else if (route.indexOf("/editors/") >= 0) { |
110 |
| - this.displaySample(await RouterEditors.get(route)); |
| 115 | + else if (route.indexOf("/maps/") >= 0) { |
| 116 | + this.displaySample(await RouterMaps.get(route)); |
111 | 117 | }
|
112 | 118 | else if (route.indexOf("/menus/") >= 0) {
|
113 | 119 | this.displaySample(await RouterMenus.get(route));
|
114 | 120 | }
|
115 |
| - else if (route.indexOf("/inputs/") >= 0) { |
116 |
| - this.displaySample(await RouterInputs.get(route)); |
| 121 | + else if (route.indexOf("/notifications/") >= 0) { |
| 122 | + this.displaySample(await RouterNotifications.get(route)); |
117 | 123 | }
|
118 | 124 | else if (route.indexOf("/scheduling/") >= 0) {
|
119 | 125 | this.displaySample(await RouterScheduling.get(route));
|
120 | 126 | }
|
121 |
| - else if (route.indexOf("/notifications/") >= 0) { |
122 |
| - this.displaySample(await RouterNotifications.get(route)); |
123 |
| - } |
| 127 | +// AutoRouterConditionEnd |
124 | 128 | else if (route !== "/" && route !== "/index") {
|
125 | 129 | console.log("SB missing router for " + route)
|
126 | 130 | let sampleFile = await import('./core/SampleFallback');
|
|
0 commit comments