@webresto/graphql 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/package.json +1 -1
  2. package/src/additionalResolvers.js +1 -1
  3. package/src/additionalResolvers.ts +1 -1
  4. package/src/graphql.js +40 -22
  5. package/src/graphql.ts +42 -25
  6. package/src/resolvers/cart.d.ts +225 -7
  7. package/src/resolvers/cart.js +21 -7
  8. package/src/resolvers/cart.ts +23 -8
  9. package/src/resolvers/checkout.ts +1 -0
  10. package/test/{_bootstrap.js → bootstrap.js} +6 -7
  11. package/test/bootstrap.ts +3 -0
  12. package/test/fixture/.sailsrc +14 -0
  13. package/test/fixture/api/controllers/.gitkeep +0 -0
  14. package/test/fixture/api/models/.gitkeep +0 -0
  15. package/test/fixture/api/services/.gitkeep +0 -0
  16. package/test/fixture/app-export.js +73 -73
  17. package/test/fixture/app.js +56 -56
  18. package/test/fixture/config/adminpanel.js +25 -3
  19. package/test/fixture/config/bootstrap.js +161 -0
  20. package/test/fixture/config/connections.js +9 -9
  21. package/test/fixture/config/env/development.js +10 -10
  22. package/test/fixture/config/env/production.js +16 -16
  23. package/test/fixture/config/globals.js +16 -16
  24. package/test/fixture/config/hookTimeout.js +8 -8
  25. package/test/fixture/config/http.js +93 -93
  26. package/test/fixture/config/i18n.js +57 -57
  27. package/test/fixture/config/log.js +29 -29
  28. package/test/fixture/config/models.js +8 -8
  29. package/test/fixture/config/modulemanager.js +22 -22
  30. package/test/fixture/config/policies.js +51 -51
  31. package/test/fixture/config/routes.js +49 -49
  32. package/test/fixture/config/session.js +100 -100
  33. package/test/fixture/config/sockets.js +141 -141
  34. package/test/fixture/config/views.js +94 -94
  35. package/test/fixture/hacks/waterline.js +39 -0
  36. package/test/fixture/package.json +33 -30
  37. package/test/fixture/seeds/dish.json +37042 -0
  38. package/test/fixture/seeds/group.json +1418 -0
  39. package/test/fixture/seeds/iikoDiscount.json +365 -0
  40. package/test/fixture/views/403.ejs +68 -68
  41. package/test/fixture/views/404.ejs +68 -68
  42. package/test/fixture/views/500.ejs +73 -73
  43. package/test/fixture/views/homepage.ejs +74 -74
  44. package/test/fixture/views/layout.ejs +91 -91
  45. package/test/integration/graphql.test.js +11 -0
  46. package/test/integration/graphql.test.ts +15 -0
  47. package/test/{unit → integration}/sails_not_crash.test.js +0 -0
  48. package/test/{unit → integration}/sails_not_crash.test.ts +0 -0
  49. package/test/unit/first.test.js +1 -1
  50. package/test/unit/first.test.ts +1 -1
  51. package/test/fixture/.tmp/localDiskDb/archive.db +0 -1
  52. package/test/fixture/.tmp/localDiskDb/dish.db +0 -1
  53. package/test/fixture/.tmp/localDiskDb/dish_images__image_dish.db +0 -1
  54. package/test/fixture/.tmp/localDiskDb/group.db +0 -1
  55. package/test/fixture/.tmp/localDiskDb/group_images__image_group.db +0 -1
  56. package/test/fixture/.tmp/localDiskDb/image.db +0 -1
  57. package/test/fixture/.tmp/localDiskDb/maintenance.db +0 -1
  58. package/test/fixture/.tmp/localDiskDb/order.db +0 -1
  59. package/test/fixture/.tmp/localDiskDb/orderdish.db +0 -1
  60. package/test/fixture/.tmp/localDiskDb/paymentdocument.db +0 -1
  61. package/test/fixture/.tmp/localDiskDb/paymentmethod.db +0 -2
  62. package/test/fixture/.tmp/localDiskDb/place.db +0 -1
  63. package/test/fixture/.tmp/localDiskDb/settings.db +0 -2
  64. package/test/fixture/.tmp/localDiskDb/street.db +0 -1
  65. package/test/fixture/package-lock.json +0 -9805
  66. package/test.zip +0 -0
@@ -0,0 +1,365 @@
1
+ [
2
+ {
3
+ "id": "2b74fa7d-a31e-49c6-aad2-4b1bb95f6ccd",
4
+ "rmsId": "592722dd-5082-4cf9-980a-13f43b766123",
5
+ "name": "Скидка 10%",
6
+ "percent": 10,
7
+ "comment": "",
8
+ "mode": "PERCENT",
9
+ "sum": 0,
10
+ "isCategorisedDiscount": false,
11
+ "productCategoryDiscounts": [],
12
+ "canBeAppliedSelectively": true,
13
+ "minOrderSum": null,
14
+ "enable": false,
15
+ "order": null,
16
+ "isDeleted": false,
17
+ "isManual": true,
18
+ "isCard": false,
19
+ "canApplyByCardNumber": false,
20
+ "isAutomatic": false,
21
+ "workTime": null,
22
+ "createdAt": "2021-01-20T11:23:55.000Z",
23
+ "updatedAt": "2022-04-28T17:31:08.000Z"
24
+ },
25
+ {
26
+ "id": "989a6856-5c7b-4cc8-881a-c9f1490f39c4",
27
+ "rmsId": "3db6e63a-3004-4046-9c0f-6a6d9b87c9d6",
28
+ "name": "Скидка 10% на ДР",
29
+ "percent": 10,
30
+ "comment": "",
31
+ "mode": "PERCENT",
32
+ "sum": 0,
33
+ "isCategorisedDiscount": false,
34
+ "productCategoryDiscounts": [],
35
+ "canBeAppliedSelectively": false,
36
+ "minOrderSum": null,
37
+ "enable": false,
38
+ "order": null,
39
+ "isDeleted": false,
40
+ "isManual": true,
41
+ "isCard": false,
42
+ "canApplyByCardNumber": false,
43
+ "isAutomatic": false,
44
+ "createdAt": "2021-01-20T11:23:55.000Z",
45
+ "updatedAt": "2022-04-28T17:31:08.000Z"
46
+ },
47
+ {
48
+ "id": "b7b52a3f-2789-49a5-9a15-68c1fa89f4c7",
49
+ "rmsId": "6d75ef17-e622-49f9-afad-97ba6b6380fd",
50
+ "name": "Лови пиццу и сертификаты на пиццу",
51
+ "percent": 100,
52
+ "comment": "",
53
+ "mode": "PERCENT",
54
+ "sum": 0,
55
+ "isCategorisedDiscount": false,
56
+ "productCategoryDiscounts": [
57
+ {
58
+ "categoryId": "1483c868-aaf7-6a9b-0165-a31381241120",
59
+ "categoryName": "Пицца",
60
+ "percent": 100
61
+ }
62
+ ],
63
+ "canBeAppliedSelectively": true,
64
+ "minOrderSum": null,
65
+ "enable": false,
66
+ "order": null,
67
+ "isDeleted": false,
68
+ "isManual": true,
69
+ "isCard": false,
70
+ "canApplyByCardNumber": false,
71
+ "isAutomatic": false,
72
+ "createdAt": "2021-01-20T11:23:55.000Z",
73
+ "updatedAt": "2022-04-28T17:31:08.000Z"
74
+ },
75
+ {
76
+ "id": "2bff9526-7686-4baa-9a1c-3ba4fb6882bc",
77
+ "rmsId": "8cbf0507-295a-4074-b6ac-a12e424afcf1",
78
+ "name": "СКИДКА 15 %",
79
+ "percent": 15,
80
+ "comment": "",
81
+ "mode": "PERCENT",
82
+ "sum": 0,
83
+ "isCategorisedDiscount": false,
84
+ "productCategoryDiscounts": [],
85
+ "canBeAppliedSelectively": true,
86
+ "minOrderSum": null,
87
+ "enable": false,
88
+ "order": null,
89
+ "isDeleted": false,
90
+ "isManual": true,
91
+ "isCard": false,
92
+ "canApplyByCardNumber": false,
93
+ "isAutomatic": false,
94
+ "createdAt": "2021-12-17T11:16:03.000Z",
95
+ "updatedAt": "2022-04-28T17:31:08.000Z"
96
+ },
97
+ {
98
+ "id": "3ad66c7f-7304-4c94-a4a1-1f21a2dc7c18",
99
+ "rmsId": "269302da-7e0f-4775-888a-c6c9640e5a71",
100
+ "name": "ПОДАРОК",
101
+ "percent": 100,
102
+ "comment": "",
103
+ "mode": "PERCENT",
104
+ "sum": 0,
105
+ "isCategorisedDiscount": false,
106
+ "productCategoryDiscounts": [],
107
+ "canBeAppliedSelectively": true,
108
+ "minOrderSum": 1500,
109
+ "enable": false,
110
+ "order": null,
111
+ "isDeleted": false,
112
+ "isManual": true,
113
+ "isCard": false,
114
+ "canApplyByCardNumber": false,
115
+ "isAutomatic": false,
116
+ "createdAt": "2021-02-05T06:44:00.000Z",
117
+ "updatedAt": "2022-04-28T17:31:08.000Z"
118
+ },
119
+ {
120
+ "id": "2b3737ee-2419-4c58-b151-7947f51f2318",
121
+ "rmsId": "6668979c-658d-428b-9f85-c9f365208423",
122
+ "name": "Скидка 5%",
123
+ "percent": 5,
124
+ "comment": "",
125
+ "mode": "PERCENT",
126
+ "sum": 0,
127
+ "isCategorisedDiscount": false,
128
+ "productCategoryDiscounts": [],
129
+ "canBeAppliedSelectively": false,
130
+ "minOrderSum": null,
131
+ "enable": false,
132
+ "order": null,
133
+ "isDeleted": false,
134
+ "isManual": true,
135
+ "isCard": false,
136
+ "canApplyByCardNumber": false,
137
+ "isAutomatic": false,
138
+ "createdAt": "2021-01-20T11:23:55.000Z",
139
+ "updatedAt": "2022-04-28T17:31:08.000Z"
140
+ },
141
+ {
142
+ "id": "420f377c-ef3e-4d7f-b1b8-a3e0cc0f6ab2",
143
+ "rmsId": "eb462a00-39d5-4193-9829-d1dff5279efd",
144
+ "name": "Скидка 50% на кофе",
145
+ "percent": 50,
146
+ "comment": "",
147
+ "mode": "PERCENT",
148
+ "sum": 0,
149
+ "isCategorisedDiscount": true,
150
+ "productCategoryDiscounts": [
151
+ {
152
+ "categoryId": "8c89b763-10f4-432e-91a6-02740b524b3b",
153
+ "categoryName": "Кофе",
154
+ "percent": 50
155
+ }
156
+ ],
157
+ "canBeAppliedSelectively": true,
158
+ "minOrderSum": null,
159
+ "enable": false,
160
+ "order": null,
161
+ "isDeleted": false,
162
+ "isManual": true,
163
+ "isCard": true,
164
+ "canApplyByCardNumber": false,
165
+ "isAutomatic": false,
166
+ "workTime": null,
167
+ "createdAt": "2022-01-19T11:56:05.000Z",
168
+ "updatedAt": "2022-04-28T17:31:08.000Z"
169
+ },
170
+ {
171
+ "id": "b0892df7-a0f2-47c3-9b8c-574f4f0dea9f",
172
+ "rmsId": "11c58d76-9c2e-493f-a9ae-f1d5e240fd66",
173
+ "name": "Скидка 15% на др",
174
+ "percent": 15,
175
+ "comment": "",
176
+ "mode": "PERCENT",
177
+ "sum": 0,
178
+ "isCategorisedDiscount": false,
179
+ "productCategoryDiscounts": [],
180
+ "canBeAppliedSelectively": false,
181
+ "minOrderSum": null,
182
+ "enable": false,
183
+ "order": null,
184
+ "isDeleted": false,
185
+ "isManual": true,
186
+ "isCard": false,
187
+ "canApplyByCardNumber": false,
188
+ "isAutomatic": false,
189
+ "createdAt": "2021-01-20T11:23:55.000Z",
190
+ "updatedAt": "2022-04-28T17:31:08.000Z"
191
+ },
192
+ {
193
+ "id": "c0139436-a6bb-4f2b-a43a-985330ad3a75",
194
+ "rmsId": "0e3eee14-f175-4d95-b0ff-fb17296eed6c",
195
+ "name": "Скидка 20%",
196
+ "percent": 20,
197
+ "comment": "",
198
+ "mode": "PERCENT",
199
+ "sum": 0,
200
+ "isCategorisedDiscount": false,
201
+ "productCategoryDiscounts": [],
202
+ "canBeAppliedSelectively": false,
203
+ "minOrderSum": null,
204
+ "enable": false,
205
+ "order": null,
206
+ "isDeleted": false,
207
+ "isManual": true,
208
+ "isCard": false,
209
+ "canApplyByCardNumber": false,
210
+ "isAutomatic": false,
211
+ "createdAt": "2021-01-20T11:23:55.000Z",
212
+ "updatedAt": "2022-04-28T17:31:08.000Z"
213
+ },
214
+ {
215
+ "id": "bd60d07f-0503-43cc-a036-9050467e6f6c",
216
+ "rmsId": "05aecf09-9218-46aa-9efb-b0962cf0957d",
217
+ "name": "Скидка тест на самовывоз 10%",
218
+ "percent": 1,
219
+ "comment": "",
220
+ "mode": "PERCENT",
221
+ "sum": 0,
222
+ "isCategorisedDiscount": true,
223
+ "productCategoryDiscounts": [
224
+ {
225
+ "categoryId": "0e2f200b-3957-63fa-0165-65f55759e9d3",
226
+ "categoryName": "Кофе",
227
+ "percent": 10
228
+ }
229
+ ],
230
+ "canBeAppliedSelectively": false,
231
+ "minOrderSum": null,
232
+ "enable": false,
233
+ "order": null,
234
+ "isDeleted": true,
235
+ "isManual": true,
236
+ "isCard": false,
237
+ "canApplyByCardNumber": false,
238
+ "isAutomatic": false,
239
+ "createdAt": "2022-03-22T07:51:08.000Z",
240
+ "updatedAt": "2022-04-28T17:31:08.000Z"
241
+ },
242
+ {
243
+ "id": "7667c821-6905-4f7c-9362-282e7b2699ed",
244
+ "rmsId": "b78a3fd5-d741-4b7c-af97-d3a66543358d",
245
+ "name": "Самовывоз 8%",
246
+ "percent": 8,
247
+ "comment": "",
248
+ "mode": "PERCENT",
249
+ "sum": 0,
250
+ "isCategorisedDiscount": false,
251
+ "productCategoryDiscounts": [],
252
+ "canBeAppliedSelectively": false,
253
+ "minOrderSum": null,
254
+ "enable": false,
255
+ "order": null,
256
+ "isDeleted": true,
257
+ "isManual": true,
258
+ "isCard": false,
259
+ "canApplyByCardNumber": false,
260
+ "isAutomatic": false,
261
+ "createdAt": "2021-10-25T11:51:02.000Z",
262
+ "updatedAt": "2022-04-28T17:31:08.000Z"
263
+ },
264
+ {
265
+ "id": "ae0ae11d-8344-43ed-8768-888ba39ab99d",
266
+ "rmsId": "5ee7a9cd-101c-4b88-bf65-518dbbe84b5b",
267
+ "name": "Скидка 100% на пиво",
268
+ "percent": 1,
269
+ "comment": "",
270
+ "mode": "PERCENT",
271
+ "sum": 0,
272
+ "isCategorisedDiscount": true,
273
+ "productCategoryDiscounts": [
274
+ {
275
+ "categoryId": "15e14acc-cf09-f0f4-0165-7aeee26b745e",
276
+ "categoryName": "Пиво",
277
+ "percent": 100
278
+ }
279
+ ],
280
+ "canBeAppliedSelectively": true,
281
+ "minOrderSum": null,
282
+ "enable": false,
283
+ "order": null,
284
+ "isDeleted": true,
285
+ "isManual": true,
286
+ "isCard": false,
287
+ "canApplyByCardNumber": false,
288
+ "isAutomatic": false,
289
+ "createdAt": "2022-02-08T12:51:06.000Z",
290
+ "updatedAt": "2022-04-28T17:31:08.000Z"
291
+ },
292
+ {
293
+ "id": "790c3bb4-1786-4eb3-8d19-685a7d6d7373",
294
+ "rmsId": "072fffb3-e19f-4e21-83b1-ce38739bdbea",
295
+ "name": "САМОВЫВОЗ 10%",
296
+ "percent": 10,
297
+ "comment": "",
298
+ "mode": "PERCENT",
299
+ "sum": 0,
300
+ "isCategorisedDiscount": false,
301
+ "productCategoryDiscounts": [],
302
+ "canBeAppliedSelectively": false,
303
+ "minOrderSum": null,
304
+ "enable": false,
305
+ "order": null,
306
+ "isDeleted": false,
307
+ "isManual": true,
308
+ "isCard": false,
309
+ "canApplyByCardNumber": false,
310
+ "isAutomatic": false,
311
+ "createdAt": "2021-10-26T08:48:36.000Z",
312
+ "updatedAt": "2022-04-28T17:31:08.000Z"
313
+ },
314
+ {
315
+ "id": "b9fa8cbb-cbb5-4ea8-8424-14bd8ba5b0bb",
316
+ "rmsId": "127601c6-8c83-4474-b6e0-ff5e47947f77",
317
+ "name": "Тестовая самовывоз 5%",
318
+ "percent": 5,
319
+ "comment": "",
320
+ "mode": "PERCENT",
321
+ "sum": 0,
322
+ "isCategorisedDiscount": true,
323
+ "productCategoryDiscounts": [
324
+ {
325
+ "categoryId": "7c907b14-a4cb-4c54-92c0-140fb6a06d21",
326
+ "categoryName": "Десерты",
327
+ "percent": 5
328
+ }
329
+ ],
330
+ "canBeAppliedSelectively": false,
331
+ "minOrderSum": null,
332
+ "enable": false,
333
+ "order": null,
334
+ "isDeleted": false,
335
+ "isManual": true,
336
+ "isCard": true,
337
+ "canApplyByCardNumber": false,
338
+ "isAutomatic": false,
339
+ "workTime": null,
340
+ "createdAt": "2022-04-04T08:56:07.000Z",
341
+ "updatedAt": "2022-04-28T17:31:08.000Z"
342
+ },
343
+ {
344
+ "id": "2e9e7be1-a365-46b7-b841-d3d7b8b01438",
345
+ "rmsId": "b7992c74-e6f3-4c30-b803-2af11aa766c2",
346
+ "name": "Тестовая скидка 2",
347
+ "percent": 1,
348
+ "comment": "",
349
+ "mode": "PERCENT",
350
+ "sum": 0,
351
+ "isCategorisedDiscount": false,
352
+ "productCategoryDiscounts": [],
353
+ "canBeAppliedSelectively": false,
354
+ "minOrderSum": null,
355
+ "enable": false,
356
+ "order": null,
357
+ "isDeleted": true,
358
+ "isManual": true,
359
+ "isCard": true,
360
+ "canApplyByCardNumber": false,
361
+ "isAutomatic": false,
362
+ "createdAt": "2021-10-08T11:46:05.000Z",
363
+ "updatedAt": "2022-04-28T17:31:08.000Z"
364
+ }
365
+ ]
@@ -1,68 +1,68 @@
1
- <!--
2
-
3
-
4
- 444444444 000000000 333333333333333
5
- 4::::::::4 00:::::::::00 3:::::::::::::::33
6
- 4:::::::::4 00:::::::::::::00 3::::::33333::::::3
7
- 4::::44::::4 0:::::::000:::::::03333333 3:::::3
8
- 4::::4 4::::4 0::::::0 0::::::0 3:::::3
9
- 4::::4 4::::4 0:::::0 0:::::0 3:::::3
10
- 4::::4 4::::4 0:::::0 0:::::0 33333333:::::3
11
- 4::::444444::::4440:::::0 000 0:::::0 3:::::::::::3
12
- 4::::::::::::::::40:::::0 000 0:::::0 33333333:::::3
13
- 4444444444:::::4440:::::0 0:::::0 3:::::3
14
- 4::::4 0:::::0 0:::::0 3:::::3
15
- 4::::4 0::::::0 0::::::0 3:::::3
16
- 4::::4 0:::::::000:::::::03333333 3:::::3
17
- 44::::::44 00:::::::::::::00 3::::::33333::::::3
18
- 4::::::::4 00:::::::::00 3:::::::::::::::33
19
- 4444444444 000000000 333333333333333
20
-
21
-
22
-
23
- This is the default "403: Forbidden" page.
24
- User agents that don't "Accept" HTML will see a JSON version instead.
25
- You can customize the control logic for your needs in `config/403.js`
26
-
27
- You can trigger this response from one of your controllers or policies with:
28
- `return res.forbidden( msg );`
29
- (where `msg` is an optional error message to include in the response)
30
-
31
-
32
-
33
-
34
- -->
35
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600' rel='stylesheet' type='text/css'>
36
- <style>
37
- /* Styles included inline since you'll probably be deleting or replacing this page anyway */
38
- html,body{text-align:left;font-size:1em}html,body,img,form,textarea,input,fieldset,div,p,div,ul,li,ol,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code{margin:0;padding:0}ul,li{list-style:none}img{display:block}a img{border:0}a{text-decoration:none;font-weight:normal;font-family:inherit}*:active,*:focus{outline:0;-moz-outline-style:none}h1,h2,h3,h4,h5,h6,h7{font-weight:normal;font-size:1em}.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.page .ocean{background:url('http://sailsjs.com/images/waves.png') #0c8da0 no-repeat center 282px;height:315px}.page .ocean img{margin-right:auto;margin-left:auto}.page .waves{display:block;padding-top:25px;margin-right:auto;margin-left:auto}.page .main{display:block;margin-top:90px}.page .logo{width:150px;margin-top:3.5em;margin-left:auto;margin-right:auto}.page .fishy{display:block;padding-top:100px}.page .help{padding-top:2em}.page h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:bold;font-size:1.7em;color:#001c20;text-align:center}.page h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.page p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.page a{color:#118798}.page a:hover{color:#b1eef7}
39
- </style>
40
-
41
- <div class="page">
42
- <div class="ocean">
43
- <img class="fishy" src="http://sailsjs.com/images/image_devInTub.png">
44
- </div>
45
-
46
- <div class="main">
47
- <h1>
48
- Forbidden
49
- </h1>
50
- <h2>
51
- <% if (typeof data !== 'undefined') { %>
52
- <%= data %>
53
- <% } else { %>
54
- You don't have permission to see the page you're trying to reach.
55
- <% } %>
56
- </h2>
57
- <p class="help">
58
- <a href="http://en.wikipedia.org/wiki/HTTP_403">Why</a> might this be happening?
59
- </p>
60
- </div>
61
-
62
- <div class="logo">
63
- <a href="http://sailsjs.org">
64
- <img src="http://sailsjs.org/images/logo.png">
65
- </a>
66
- </div>
67
- </div>
68
-
1
+ <!--
2
+
3
+
4
+ 444444444 000000000 333333333333333
5
+ 4::::::::4 00:::::::::00 3:::::::::::::::33
6
+ 4:::::::::4 00:::::::::::::00 3::::::33333::::::3
7
+ 4::::44::::4 0:::::::000:::::::03333333 3:::::3
8
+ 4::::4 4::::4 0::::::0 0::::::0 3:::::3
9
+ 4::::4 4::::4 0:::::0 0:::::0 3:::::3
10
+ 4::::4 4::::4 0:::::0 0:::::0 33333333:::::3
11
+ 4::::444444::::4440:::::0 000 0:::::0 3:::::::::::3
12
+ 4::::::::::::::::40:::::0 000 0:::::0 33333333:::::3
13
+ 4444444444:::::4440:::::0 0:::::0 3:::::3
14
+ 4::::4 0:::::0 0:::::0 3:::::3
15
+ 4::::4 0::::::0 0::::::0 3:::::3
16
+ 4::::4 0:::::::000:::::::03333333 3:::::3
17
+ 44::::::44 00:::::::::::::00 3::::::33333::::::3
18
+ 4::::::::4 00:::::::::00 3:::::::::::::::33
19
+ 4444444444 000000000 333333333333333
20
+
21
+
22
+
23
+ This is the default "403: Forbidden" page.
24
+ User agents that don't "Accept" HTML will see a JSON version instead.
25
+ You can customize the control logic for your needs in `config/403.js`
26
+
27
+ You can trigger this response from one of your controllers or policies with:
28
+ `return res.forbidden( msg );`
29
+ (where `msg` is an optional error message to include in the response)
30
+
31
+
32
+
33
+
34
+ -->
35
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600' rel='stylesheet' type='text/css'>
36
+ <style>
37
+ /* Styles included inline since you'll probably be deleting or replacing this page anyway */
38
+ html,body{text-align:left;font-size:1em}html,body,img,form,textarea,input,fieldset,div,p,div,ul,li,ol,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code{margin:0;padding:0}ul,li{list-style:none}img{display:block}a img{border:0}a{text-decoration:none;font-weight:normal;font-family:inherit}*:active,*:focus{outline:0;-moz-outline-style:none}h1,h2,h3,h4,h5,h6,h7{font-weight:normal;font-size:1em}.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.page .ocean{background:url('http://sailsjs.com/images/waves.png') #0c8da0 no-repeat center 282px;height:315px}.page .ocean img{margin-right:auto;margin-left:auto}.page .waves{display:block;padding-top:25px;margin-right:auto;margin-left:auto}.page .main{display:block;margin-top:90px}.page .logo{width:150px;margin-top:3.5em;margin-left:auto;margin-right:auto}.page .fishy{display:block;padding-top:100px}.page .help{padding-top:2em}.page h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:bold;font-size:1.7em;color:#001c20;text-align:center}.page h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.page p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.page a{color:#118798}.page a:hover{color:#b1eef7}
39
+ </style>
40
+
41
+ <div class="page">
42
+ <div class="ocean">
43
+ <img class="fishy" src="http://sailsjs.com/images/image_devInTub.png">
44
+ </div>
45
+
46
+ <div class="main">
47
+ <h1>
48
+ Forbidden
49
+ </h1>
50
+ <h2>
51
+ <% if (typeof data !== 'undefined') { %>
52
+ <%= data %>
53
+ <% } else { %>
54
+ You don't have permission to see the page you're trying to reach.
55
+ <% } %>
56
+ </h2>
57
+ <p class="help">
58
+ <a href="http://en.wikipedia.org/wiki/HTTP_403">Why</a> might this be happening?
59
+ </p>
60
+ </div>
61
+
62
+ <div class="logo">
63
+ <a href="http://sailsjs.org">
64
+ <img src="http://sailsjs.org/images/logo.png">
65
+ </a>
66
+ </div>
67
+ </div>
68
+
@@ -1,68 +1,68 @@
1
- <!--
2
-
3
-
4
- 444444444 000000000 444444444
5
- 4::::::::4 00:::::::::00 4::::::::4
6
- 4:::::::::4 00:::::::::::::00 4:::::::::4
7
- 4::::44::::4 0:::::::000:::::::0 4::::44::::4
8
- 4::::4 4::::4 0::::::0 0::::::0 4::::4 4::::4
9
- 4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
10
- 4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
11
- 4::::444444::::4440:::::0 000 0:::::04::::444444::::444
12
- 4::::::::::::::::40:::::0 000 0:::::04::::::::::::::::4
13
- 4444444444:::::4440:::::0 0:::::04444444444:::::444
14
- 4::::4 0:::::0 0:::::0 4::::4
15
- 4::::4 0::::::0 0::::::0 4::::4
16
- 4::::4 0:::::::000:::::::0 4::::4
17
- 44::::::44 00:::::::::::::00 44::::::44
18
- 4::::::::4 00:::::::::00 4::::::::4
19
- 4444444444 000000000 4444444444
20
-
21
-
22
-
23
- This is the default "404: Not Found" page.
24
- User agents that don't "Accept" HTML will see a JSON version instead.
25
- You can customize the control logic for your needs in `config/404.js`
26
-
27
- Sails considers a request to be in a "404: Not Found" state when a user
28
- requests a URL which doesn't match any of your app's routes or blueprints.
29
-
30
- You can also trigger this response from one of your controllers or policies with:
31
- `return res.notFound();`
32
-
33
-
34
- -->
35
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600' rel='stylesheet' type='text/css'>
36
- <style>
37
- /* Styles included inline since you'll probably be deleting this page anyway */
38
- html,body{text-align:left;font-size:1em}html,body,img,form,textarea,input,fieldset,div,p,div,ul,li,ol,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code{margin:0;padding:0}ul,li{list-style:none}img{display:block}a img{border:0}a{text-decoration:none;font-weight:normal;font-family:inherit}*:active,*:focus{outline:0;-moz-outline-style:none}h1,h2,h3,h4,h5,h6,h7{font-weight:normal;font-size:1em}.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.fourohfour .ocean{background:url('http://sailsjs.com/images/waves.png') #0c8da0 no-repeat center 282px;height:315px}.fourohfour .ocean img{margin-right:auto;margin-left:auto}.fourohfour .waves{display:block;padding-top:25px;margin-right:auto;margin-left:auto}.fourohfour .main{display:block;margin-top:90px}.fourohfour .logo{width:150px;margin-top:3.5em;margin-left:auto;margin-right:auto}.fourohfour .fishy{display:block;padding-top:27px}.fourohfour .help{padding-top:2em}.fourohfour h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:bold;font-size:1.7em;color:#001c20;text-align:center}.fourohfour h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.fourohfour p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.fourohfour a{color:#118798}.fourohfour a:hover{color:#b1eef7}
39
- </style>
40
-
41
- <div class="fourohfour">
42
- <div class="ocean">
43
- <img class="fishy" src="http://sailsjs.org/images/fishy4.png">
44
- </div>
45
-
46
- <div class="main">
47
- <h1>
48
- Something's fishy here.
49
- </h1>
50
- <h2>
51
- <% if (typeof data!== 'undefined') { %>
52
- <%= data %>
53
- <% } else { %>
54
- The page you were trying to reach doesn't exist.
55
- <% } %>
56
- </h2>
57
- <p class="help">
58
- <a href="http://en.wikipedia.org/wiki/HTTP_404">Why</a> might this be happening?
59
- </p>
60
- </div>
61
-
62
- <div class="logo">
63
- <a href="http://sailsjs.org">
64
- <img src="http://sailsjs.org/images/logo.png">
65
- </a>
66
- </div>
67
- </div>
68
-
1
+ <!--
2
+
3
+
4
+ 444444444 000000000 444444444
5
+ 4::::::::4 00:::::::::00 4::::::::4
6
+ 4:::::::::4 00:::::::::::::00 4:::::::::4
7
+ 4::::44::::4 0:::::::000:::::::0 4::::44::::4
8
+ 4::::4 4::::4 0::::::0 0::::::0 4::::4 4::::4
9
+ 4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
10
+ 4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
11
+ 4::::444444::::4440:::::0 000 0:::::04::::444444::::444
12
+ 4::::::::::::::::40:::::0 000 0:::::04::::::::::::::::4
13
+ 4444444444:::::4440:::::0 0:::::04444444444:::::444
14
+ 4::::4 0:::::0 0:::::0 4::::4
15
+ 4::::4 0::::::0 0::::::0 4::::4
16
+ 4::::4 0:::::::000:::::::0 4::::4
17
+ 44::::::44 00:::::::::::::00 44::::::44
18
+ 4::::::::4 00:::::::::00 4::::::::4
19
+ 4444444444 000000000 4444444444
20
+
21
+
22
+
23
+ This is the default "404: Not Found" page.
24
+ User agents that don't "Accept" HTML will see a JSON version instead.
25
+ You can customize the control logic for your needs in `config/404.js`
26
+
27
+ Sails considers a request to be in a "404: Not Found" state when a user
28
+ requests a URL which doesn't match any of your app's routes or blueprints.
29
+
30
+ You can also trigger this response from one of your controllers or policies with:
31
+ `return res.notFound();`
32
+
33
+
34
+ -->
35
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600' rel='stylesheet' type='text/css'>
36
+ <style>
37
+ /* Styles included inline since you'll probably be deleting this page anyway */
38
+ html,body{text-align:left;font-size:1em}html,body,img,form,textarea,input,fieldset,div,p,div,ul,li,ol,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code{margin:0;padding:0}ul,li{list-style:none}img{display:block}a img{border:0}a{text-decoration:none;font-weight:normal;font-family:inherit}*:active,*:focus{outline:0;-moz-outline-style:none}h1,h2,h3,h4,h5,h6,h7{font-weight:normal;font-size:1em}.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.fourohfour .ocean{background:url('http://sailsjs.com/images/waves.png') #0c8da0 no-repeat center 282px;height:315px}.fourohfour .ocean img{margin-right:auto;margin-left:auto}.fourohfour .waves{display:block;padding-top:25px;margin-right:auto;margin-left:auto}.fourohfour .main{display:block;margin-top:90px}.fourohfour .logo{width:150px;margin-top:3.5em;margin-left:auto;margin-right:auto}.fourohfour .fishy{display:block;padding-top:27px}.fourohfour .help{padding-top:2em}.fourohfour h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:bold;font-size:1.7em;color:#001c20;text-align:center}.fourohfour h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.fourohfour p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.fourohfour a{color:#118798}.fourohfour a:hover{color:#b1eef7}
39
+ </style>
40
+
41
+ <div class="fourohfour">
42
+ <div class="ocean">
43
+ <img class="fishy" src="http://sailsjs.org/images/fishy4.png">
44
+ </div>
45
+
46
+ <div class="main">
47
+ <h1>
48
+ Something's fishy here.
49
+ </h1>
50
+ <h2>
51
+ <% if (typeof data!== 'undefined') { %>
52
+ <%= data %>
53
+ <% } else { %>
54
+ The page you were trying to reach doesn't exist.
55
+ <% } %>
56
+ </h2>
57
+ <p class="help">
58
+ <a href="http://en.wikipedia.org/wiki/HTTP_404">Why</a> might this be happening?
59
+ </p>
60
+ </div>
61
+
62
+ <div class="logo">
63
+ <a href="http://sailsjs.org">
64
+ <img src="http://sailsjs.org/images/logo.png">
65
+ </a>
66
+ </div>
67
+ </div>
68
+