@shakerquiz/utilities 0.6.16 → 0.6.18
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/package.json
CHANGED
|
@@ -10,13 +10,28 @@ let pathnames = Routes.map(route =>
|
|
|
10
10
|
.join('/')
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
-
let RoutePathnames = JSON.stringify(
|
|
13
|
+
let RoutePathnames = JSON.stringify(
|
|
14
|
+
pathnames,
|
|
15
|
+
undefined,
|
|
16
|
+
2,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
let RoutePathname = JSON.stringify(
|
|
20
|
+
Routes.reduce((o, x, i) => (o[x] = pathnames[i], o), {}),
|
|
21
|
+
null,
|
|
22
|
+
2,
|
|
23
|
+
)
|
|
14
24
|
|
|
15
|
-
let
|
|
25
|
+
let PathnameRoute = JSON.stringify(
|
|
26
|
+
pathnames.reduce((o, x, i) => (o[x] = Routes[i], o), {}),
|
|
27
|
+
null,
|
|
28
|
+
2,
|
|
29
|
+
)
|
|
16
30
|
|
|
17
31
|
Bun.write(
|
|
18
32
|
'./source/entities/route-pathname.js',
|
|
19
33
|
template
|
|
20
34
|
.replace('/* RoutePathnames */', RoutePathnames)
|
|
21
|
-
.replace('/* RoutePathname */', RoutePathname)
|
|
35
|
+
.replace('/* RoutePathname */', RoutePathname)
|
|
36
|
+
.replace('/* PathnameRoute */', PathnameRoute),
|
|
22
37
|
)
|
|
@@ -147,3 +147,77 @@ export const RoutePathname = Object.freeze(/** @type {const} */ ({
|
|
|
147
147
|
"registrations/game/theme": "registrations/game/:game/theme/:theme",
|
|
148
148
|
"registrations/export": "registrations/export/:export"
|
|
149
149
|
}))
|
|
150
|
+
|
|
151
|
+
export const PathnameRoute = Object.freeze(/** @type {const} */ ({
|
|
152
|
+
"role/:role": "role",
|
|
153
|
+
"roles": "roles",
|
|
154
|
+
"user/:user": "user",
|
|
155
|
+
"user/:user/password/:password": "user/password",
|
|
156
|
+
"user/:user/role/:role": "user/role",
|
|
157
|
+
"user/:user/city/:city": "user/city",
|
|
158
|
+
"user/:user/cities": "user/cities",
|
|
159
|
+
"users": "users",
|
|
160
|
+
"users/password/:password": "users/password",
|
|
161
|
+
"users/role/:role": "users/role",
|
|
162
|
+
"users/cities": "users/cities",
|
|
163
|
+
"checkin/:checkin": "checkin",
|
|
164
|
+
"cities": "cities",
|
|
165
|
+
"cities/country/:country": "cities/country",
|
|
166
|
+
"cities/currency/:currency": "cities/currency",
|
|
167
|
+
"cities/timezone/:timezone": "cities/timezone",
|
|
168
|
+
"cities/venues": "cities/venues",
|
|
169
|
+
"city/:city": "city",
|
|
170
|
+
"city/:city/vk_group_token/:vk_group_token": "city/vk_group_token",
|
|
171
|
+
"city/:city/country/:country": "city/country",
|
|
172
|
+
"city/:city/currency/:currency": "city/currency",
|
|
173
|
+
"city/:city/timezone/:timezone": "city/timezone",
|
|
174
|
+
"city/:city/venue/:venue": "city/venue",
|
|
175
|
+
"city/:city/venues": "city/venues",
|
|
176
|
+
"country/:country": "country",
|
|
177
|
+
"countries": "countries",
|
|
178
|
+
"currency/:currency": "currency",
|
|
179
|
+
"currencies": "currencies",
|
|
180
|
+
"timezone/:timezone": "timezone",
|
|
181
|
+
"timezones": "timezones",
|
|
182
|
+
"venue/:venue": "venue",
|
|
183
|
+
"venue/:venue/city/:city": "venue/city",
|
|
184
|
+
"venues": "venues",
|
|
185
|
+
"venues/city/:city": "venues/city",
|
|
186
|
+
"theme/:theme": "theme",
|
|
187
|
+
"theme/:theme/cover/:cover": "theme/cover",
|
|
188
|
+
"themes": "themes",
|
|
189
|
+
"themes/cover/:cover": "themes/cover",
|
|
190
|
+
"themes/games": "themes/games",
|
|
191
|
+
"game/:game": "game",
|
|
192
|
+
"game/:game/city/:city": "game/city",
|
|
193
|
+
"game/:game/registration/:registration": "game/registration",
|
|
194
|
+
"game/:game/registrations": "game/registrations",
|
|
195
|
+
"game/:game/registrations/export/:export": "game/registrations/export",
|
|
196
|
+
"game/:game/summary/:summary": "game/summary",
|
|
197
|
+
"game/:game/theme/:theme": "game/theme",
|
|
198
|
+
"game/:game/theme/:theme/cover/:cover": "game/theme/cover",
|
|
199
|
+
"game/:game/venue/:venue": "game/venue",
|
|
200
|
+
"games": "games",
|
|
201
|
+
"games/city/:city": "games/city",
|
|
202
|
+
"games/registrations": "games/registrations",
|
|
203
|
+
"games/registrations/export/:export": "games/registrations/export",
|
|
204
|
+
"games/summary/:summary": "games/summary",
|
|
205
|
+
"games/theme/:theme": "games/theme",
|
|
206
|
+
"games/theme/:theme/cover/:cover": "games/theme/cover",
|
|
207
|
+
"games/venue/:venue": "games/venue",
|
|
208
|
+
"registration/:registration": "registration",
|
|
209
|
+
"registration/:registration/cancellation/:cancellation": "registration/cancellation",
|
|
210
|
+
"registration/:registration/channel/:channel": "registration/channel",
|
|
211
|
+
"registration/:registration/confirmation/:confirmation": "registration/confirmation",
|
|
212
|
+
"registration/:registration/export/:export": "registration/export",
|
|
213
|
+
"registration/:registration/city/:city": "registration/city",
|
|
214
|
+
"registration/:registration/game/:game": "registration/game",
|
|
215
|
+
"registration/:registration/game/:game/theme/:theme": "registration/game/theme",
|
|
216
|
+
"registration/:registration/game/:game/theme/:theme/cover/:cover": "registration/game/theme/cover",
|
|
217
|
+
"registration/:registration/mailing/:mailing": "registration/mailing",
|
|
218
|
+
"registrations": "registrations",
|
|
219
|
+
"registrations/city/:city": "registrations/city",
|
|
220
|
+
"registrations/game/:game": "registrations/game",
|
|
221
|
+
"registrations/game/:game/theme/:theme": "registrations/game/theme",
|
|
222
|
+
"registrations/export/:export": "registrations/export"
|
|
223
|
+
}))
|