-
Notifications
You must be signed in to change notification settings - Fork 0
/
routemap.toml
262 lines (231 loc) · 9.6 KB
/
routemap.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
_ref = "ticket"
_handler = "page.BaseHandler"
_doc = "Shared base tempate and handler"
_entrypoint = "/ticket"
_template = "page/templates/base.html.tmpl"
[[nav]]
_ref = "page-nav"
_template = "page/templates/nav.html.tmpl"
_handler = 'treetop.Constant("ticket")'
_default = true
[[content]]
_ref = "ticket-form-content"
_template = "page/ticket/templates/content/ticket-form-content.html.tmpl"
_handler = "hlp.BindEnv(ticketFormContentHandler)"
_default = true
_partial = true
_doc = "Landing page for ticket wizard"
_path = "/ticket"
_method = "GET"
[[content.form]]
_ref = "get-department-form"
_doc = "redirect request to correct form or show placeholder message"
_template = "page/ticket/templates/content/form/choose-department-message.html.tmpl"
_handler = "hlp.BindEnv(getDepartmentFormHandler)"
_default = true
_fragment = true
_path = "/ticket/get-form"
_method = "GET"
[[content.form]]
_ref = "new-helpdesk-ticket"
_template = "page/ticket/templates/content/form/new-helpdesk-ticket.html.tmpl"
_handler = "hlp.BindEnv(newHelpdeskTicketHandler)"
_partial = true
_doc = "Form for creating helpdesk tickets specifically"
_path = "/ticket/helpdesk/new"
_method = "GET"
[[content.form.attachment-list]]
_ref = "helpdesk-attachment-file-list"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(attachmentFileListHandler)"
_fragment = true
_default = true
_doc = "Default attachment file list template handler, parse file info from query string"
[[content.form.attachment-list]]
_ref = "uploaded-helpdesk-files"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(uploadedFilesHandler)"
_fragment = true
_path = "/ticket/helpdesk/upload-attachment"
_method = "POST"
_doc = "Load a list of uploaded files, save to storage and return metadata to the form"
[[content.form.form-message]]
_ref = "submit-help-desk-ticket"
_template = "page/ticket/templates/content/form/form-message/submit-help-desk-ticket.html.tmpl"
_handler = "hlp.BindEnv(submitHelpDeskTicketHandler)"
_fragment = true
_path = "/ticket/helpdesk/submit"
_method = "POST"
_doc = "process creation of a new help desk ticket"
[[content.form.notes]]
_ref = "new-helpdesk-notes"
_template = "page/ticket/templates/content/form/notes/new-helpdesk-notes.html.tmpl"
_default = true
_handler = "treetop.Noop"
_doc = "Show this when helpdesk form is loaded"
[[content.form.reported-by]]
_ref = "helpdesk-reported-by"
_template = "page/ticket/templates/content/form/reported-by/helpdesk-reported-by.html.tmpl"
_handler = "hlp.BindEnv(helpdeskReportedByHandler)"
_fragment = true
_default = true
_path = "/ticket/helpdesk/update-reported-by"
_method = "GET"
_doc = "Options for notifying help desk of who reported the issue"
[[content.form.reported-by.find-user]]
_ref = "find-helpdesk-reported-by"
_template = "page/ticket/templates/content/form/reported-by/find-user/find-helpdesk-reported-by.html.tmpl"
_handler = "hlp.BindEnv(findHelpdeskReportedByHandler)"
_fragment = true
_default = true
_path = "/ticket/helpdesk/find-reported-by"
_method = "GET"
_doc = "query string to find a user to select"
[[content.form]]
_ref = "new-software-ticket"
_template = "page/ticket/templates/content/form/new-software-ticket.html.tmpl"
_handler = "hlp.BindEnv(newSoftwareTicketHandler)"
_partial = true
_doc = "Form for creating software tickets specifically"
_path = "/ticket/software/new"
_method = "GET"
[[content.form.assignee]]
_ref = "view-software-assignee"
_template = "page/ticket/templates/content/form/assignee/view-software-assignee.html.tmpl"
_handler = "hlp.BindEnv(viewSoftwareAssigneeHandler)"
_fragment = true
_default = true
_path = "/ticket/software/update-assignee"
_doc = "Select multiple users as assignees"
[[content.form.assignee.find-user]]
_ref = "find-software-assignee"
_template = "page/ticket/templates/content/form/assignee/find-user/find-software-assignee.html.tmpl"
_handler = "hlp.BindEnv(findSoftwareAssigneeHandler)"
_fragment = true
_path = "/ticket/software/find-assignee"
_method = "GET"
_doc = "query string to find a user to select"
[[content.form.attachment-list]]
_ref = "software-attachment-file-list"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(attachmentFileListHandler)"
_fragment = true
_default = true
_doc = "Default attachment file list template handler, parse file info from query string"
[[content.form.attachment-list]]
_ref = "uploaded-software-files"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(uploadedFilesHandler)"
_fragment = true
_path = "/ticket/software/upload-attachment"
_method = "POST"
_doc = "Load a list of uploaded files, save to storage and return metadata to the form"
[[content.form.form-message]]
_ref = "submit-software-ticket"
_template = "page/ticket/templates/content/form/form-message/submit-default.html.tmpl"
_handler = "hlp.BindEnv(submitSoftwareTicketHandler)"
_fragment = true
_path = "/ticket/software/submit"
_method = "POST"
_doc = "process creation of a new software department ticket"
[[content.form.notes]]
_ref = "new-software-notes"
_template = "page/ticket/templates/content/form/notes/new-software-notes.html.tmpl"
_default = true
_handler = "treetop.Noop"
_doc = "Show this when software form is loaded"
[[content.form]]
_ref = "new-systems-ticket"
_template = "page/ticket/templates/content/form/new-systems-ticket.html.tmpl"
_handler = "hlp.BindEnv(newSystemsTicketHandler)"
_partial = true
_doc = "Form for creating systems tickets specifically"
_path = "/ticket/systems/new"
_method = "GET"
[[content.form.component-tags]]
_ref = "systems-component-tags-input-group"
_template = "page/ticket/templates/content/form/component-tags/systems-component-tags-input-group.html.tmpl"
_handler = "hlp.BindEnv(systemsComponentTagsInputGroupHandler)"
_fragment = true
_default = true
_path = "/ticket/systems/update-tags"
_doc = "Load form input group for the component tags selector"
[[content.form.component-tags.tag-search]]
_ref = "systems-component-tag-search"
_template = "page/ticket/templates/content/form/component-tags/tag-search/systems-component-tag-search.html.tmpl"
_handler = "hlp.BindEnv(systemsComponentTagSearchHandler)"
_fragment = true
_path = "/ticket/systems/find-tag"
_doc = "fuzzy match query to available systems component tags"
[[content.form.attachment-list]]
_ref = "systems-attachment-file-list"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(attachmentFileListHandler)"
_fragment = true
_default = true
_doc = "Default attachment file list template handler, parse file info from query string"
[[content.form.attachment-list]]
_ref = "uploaded-systems-files"
_template = "page/ticket/templates/content/form/attachment-list/attachment-file-list.html.tmpl"
_handler = "hlp.BindEnv(uploadedFilesHandler)"
_fragment = true
_path = "/ticket/systems/upload-attachment"
_method = "POST"
_doc = "Load a list of uploaded files, save to storage and return metadata to the form"
[[content.form.form-message]]
_ref = "submit-systems-ticket"
_template = "page/ticket/templates/content/form/form-message/submit-default.html.tmpl"
_handler = "hlp.BindEnv(submitSystemsTicketHandler)"
_fragment = true
_path = "/ticket/systems/submit"
_method = "POST"
_doc = "process creation of a new systems department ticket"
[[content.form.notes]]
_ref = "new-systems-notes"
_template = "page/ticket/templates/content/form/notes/new-systems-notes.html.tmpl"
_default = true
_handler = "treetop.Noop"
_doc = "Show this when systems form is loaded"
[[content]]
_ref = "issue-preview"
_template = "page/ticket/templates/content/issue-preview.html.tmpl"
_handler = "hlp.BindEnv(issuePreviewHandler)"
_doc = "Content wrapper around preview for different ticket type"
[[content.notes]]
_ref = "preview-notes"
_template = "page/ticket/templates/content/notes/preview-notes.html.tmpl"
_default = true
_handler = "treetop.Noop"
[[content.preview]]
_ref = "preview-software-ticket"
_template = "page/ticket/templates/content/preview/preview-software-ticket.html.tmpl"
_handler = "hlp.BindEnv(previewSoftwareTicketHandler)"
_path = "/ticket/software/preview"
_method = "GET"
_doc = "Show preview of software ticket, no database so take details form query params"
[[content.preview]]
_ref = "preview-helpdesk-ticket"
_template = "page/ticket/templates/content/preview/preview-helpdesk-ticket.html.tmpl"
_handler = "hlp.BindEnv(previewHelpdeskTicketHandler)"
_path = "/ticket/helpdesk/preview"
_method = "GET"
_doc = "Show preview of help desk ticket, no database so take details form query params"
[[content.preview]]
_ref = "preview-systems-ticket"
_template = "page/ticket/templates/content/preview/preview-systems-ticket.html.tmpl"
_handler = "hlp.BindEnv(previewSystemsTicketHandler)"
_path = "/ticket/systems/preview"
_method = "GET"
_doc = "Show preview of systems ticket, no database so take details form query params"
[[styles]]
_ref = "site-styles"
_default = true
_doc = "Include page styles in document header"
_template = "page/ticket/templates/styles.html.tmpl"
_handler = "treetop.Noop"
[[scripts]]
_ref = "site-scripts"
_default = true
_doc = "Include page scripts"
_template = "page/ticket/templates/scripts.html.tmpl"
_handler = "treetop.Noop"