@localazy/strapi-plugin 0.1.10 → 0.1.11-rc.1
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/.eslintrc +6 -2
- package/admin/src/modules/@common/models/supported-content-type-fields.js +8 -0
- package/admin/src/modules/plugin-settings/components/ContentTransferSetup/index.js +5 -0
- package/admin/src/modules/plugin-settings/components/Tree/index.js +22 -5
- package/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.js +1 -1
- package/admin/src/modules/plugin-settings/functions/has-model-changed.js +1 -1
- package/admin/src/modules/plugin-settings/locale/en.js +1 -1
- package/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.js +1 -7
- package/admin/src/modules/plugin-settings/utils/get-models-tree.js +21 -3
- package/package.json +4 -4
- package/server/bootstrap.js +15 -1
- package/server/controllers/localazy-transfer-controller.js +67 -52
- package/server/functions/should-set-downloaded-property.js +61 -0
- package/server/models/supported-content-type-fields.js +8 -0
- package/server/services/index.js +2 -0
- package/server/services/strapi-i18n-service.js +5 -4
- package/server/services/strapi-localazy-i18n-service.js +104 -0
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-cookbook.js +5761 -0
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-lesson-dz.js +392 -0
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-restaurant-simple-menu.js +536 -0
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-sample-json-dz.js +4675 -0
- package/server/tests/fixtures/parsed-localazy-entry-to-update-entry.js +35157 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook-empty-recipes.js +202 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook.js +2700 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-lesson-dz.js +309 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-simple.js +47 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-with-media.js +169 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-empty.js +3003 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-with-media.js +2057 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json-dz.js +884 -0
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json.js +46 -0
- package/server/tests/fixtures/strapi-plugin-all-models.js +2048 -0
- package/server/utils/__tests__/get-models-tree.test.js +1 -1
- package/server/utils/__tests__/parsed-localazy-entry-to-create-entry.test.js +237 -91
- package/server/utils/__tests__/parsed-localazy-entry-to-update-entry.test.js +417 -101
- package/server/utils/__tests__/pick-entries.test.js +936 -56
- package/server/utils/__tests__/populate-create-update-entry-with-base-entry.test.js +1139 -0
- package/server/utils/build-populate.js +5 -0
- package/server/utils/get-full-populate-object.js +56 -0
- package/server/utils/get-models-tree.js +3 -1
- package/server/utils/model-utils.js +43 -0
- package/server/utils/omit-deep.js +7 -0
- package/server/utils/parsed-localazy-entry-to-create-entry.js +58 -21
- package/server/utils/parsed-localazy-entry-to-update-entry.js +44 -4
- package/server/utils/pick-deep.js +22 -0
- package/server/utils/pick-entries.js +90 -5
- package/server/utils/populate-create-update-entry-with-base-entry.js +270 -0
- package/server/utils/transfer-setup-utils.js +14 -0
- package/server/tests/fixtures/all-models-with-multimedia.js +0 -1064
- package/server/tests/fixtures/collection-flattened.js +0 -76
- package/server/tests/fixtures/restaurant-flattened.js +0 -46
- package/server/tests/fixtures/restaurant-model.js +0 -230
- package/server/tests/fixtures/restaurants-entries.js +0 -152
- package/server/tests/fixtures/restaurants-pick-paths.js +0 -15
- package/server/tests/fixtures/strapi-book-with-multimedia-components-cs.js +0 -31
- package/server/tests/fixtures/stringified-book-cs.js +0 -3
- package/server/tests/fixtures/stringified-book-with-multimedia-components-cs.js +0 -3
- package/server/tests/fixtures/stringified-restaurant-cs.js +0 -3
- package/server/tests/fixtures/stringified-restaurant-de.js +0 -5
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const updateEntry = {
|
|
4
|
+
id: 4,
|
|
5
|
+
title: "Test: Sčítání",
|
|
6
|
+
start_time: "2022-10-01T13:00:00.000Z",
|
|
7
|
+
duration: "02:00:00.000",
|
|
8
|
+
description: "Otestujte si své dovednosti, které jsme se naučili v předchozí lekci.",
|
|
9
|
+
lesson_type: [
|
|
10
|
+
{
|
|
11
|
+
id: 2,
|
|
12
|
+
title: "Vyberte správnou odpověď",
|
|
13
|
+
questions: [
|
|
14
|
+
{
|
|
15
|
+
id: 4,
|
|
16
|
+
question: "1 + 1 = ",
|
|
17
|
+
is_active: true,
|
|
18
|
+
question_number: 1,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 5,
|
|
22
|
+
question: "5 + 15 = ",
|
|
23
|
+
is_active: false,
|
|
24
|
+
question_number: 2,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 6,
|
|
28
|
+
question: "Kolik pohárů je na fotce?",
|
|
29
|
+
is_active: false,
|
|
30
|
+
question_number: 3,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
answers: [
|
|
34
|
+
{
|
|
35
|
+
id: 4,
|
|
36
|
+
question_number: 1,
|
|
37
|
+
correct_answer: "2",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 5,
|
|
41
|
+
question_number: 2,
|
|
42
|
+
correct_answer: "20",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 6,
|
|
46
|
+
question_number: 3,
|
|
47
|
+
correct_answer: "15",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
__component: "lesson.quiz",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// filtered baseEntry
|
|
56
|
+
const baseEntry = {
|
|
57
|
+
id: 2,
|
|
58
|
+
title: "Test: Addition",
|
|
59
|
+
start_time: "2022-10-01T13:00:00.000Z",
|
|
60
|
+
duration: "02:00:00.000",
|
|
61
|
+
description: "Test your skills we've learnt in the previous lesson.",
|
|
62
|
+
lesson_type: [
|
|
63
|
+
{
|
|
64
|
+
__component: "lesson.quiz",
|
|
65
|
+
id: 1,
|
|
66
|
+
title: "Choose the correct answer",
|
|
67
|
+
questions: [
|
|
68
|
+
{
|
|
69
|
+
id: 1,
|
|
70
|
+
question: "1 + 1 = ",
|
|
71
|
+
is_active: true,
|
|
72
|
+
question_number: 1,
|
|
73
|
+
assets: null,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 2,
|
|
77
|
+
question: "5 + 15 = ",
|
|
78
|
+
is_active: false,
|
|
79
|
+
question_number: 2,
|
|
80
|
+
assets: null,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 3,
|
|
84
|
+
question: "How many cups are on the photo?",
|
|
85
|
+
is_active: false,
|
|
86
|
+
question_number: 3,
|
|
87
|
+
assets: [
|
|
88
|
+
{
|
|
89
|
+
id: 13,
|
|
90
|
+
name: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
91
|
+
alternativeText: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
92
|
+
caption: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
93
|
+
width: 3360,
|
|
94
|
+
height: 5040,
|
|
95
|
+
formats: {
|
|
96
|
+
thumbnail: {
|
|
97
|
+
name: "thumbnail_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
98
|
+
hash: "thumbnail_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
99
|
+
ext: ".jpg",
|
|
100
|
+
mime: "image/jpeg",
|
|
101
|
+
path: null,
|
|
102
|
+
width: 104,
|
|
103
|
+
height: 156,
|
|
104
|
+
size: 2.59,
|
|
105
|
+
url: "/uploads/thumbnail_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
106
|
+
},
|
|
107
|
+
large: {
|
|
108
|
+
name: "large_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
109
|
+
hash: "large_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
110
|
+
ext: ".jpg",
|
|
111
|
+
mime: "image/jpeg",
|
|
112
|
+
path: null,
|
|
113
|
+
width: 667,
|
|
114
|
+
height: 1000,
|
|
115
|
+
size: 38.91,
|
|
116
|
+
url: "/uploads/large_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
117
|
+
},
|
|
118
|
+
medium: {
|
|
119
|
+
name: "medium_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
120
|
+
hash: "medium_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
121
|
+
ext: ".jpg",
|
|
122
|
+
mime: "image/jpeg",
|
|
123
|
+
path: null,
|
|
124
|
+
width: 500,
|
|
125
|
+
height: 750,
|
|
126
|
+
size: 24.62,
|
|
127
|
+
url: "/uploads/medium_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
128
|
+
},
|
|
129
|
+
small: {
|
|
130
|
+
name: "small_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
131
|
+
hash: "small_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
132
|
+
ext: ".jpg",
|
|
133
|
+
mime: "image/jpeg",
|
|
134
|
+
path: null,
|
|
135
|
+
width: 333,
|
|
136
|
+
height: 500,
|
|
137
|
+
size: 12.98,
|
|
138
|
+
url: "/uploads/small_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
hash: "lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
142
|
+
ext: ".jpg",
|
|
143
|
+
mime: "image/jpeg",
|
|
144
|
+
size: 1536.82,
|
|
145
|
+
url: "/uploads/lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
146
|
+
previewUrl: null,
|
|
147
|
+
provider: "local",
|
|
148
|
+
provider_metadata: null,
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
answers: [
|
|
154
|
+
{
|
|
155
|
+
id: 1,
|
|
156
|
+
question_number: 1,
|
|
157
|
+
correct_answer: "2",
|
|
158
|
+
answer_asset: null,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 2,
|
|
162
|
+
question_number: 2,
|
|
163
|
+
correct_answer: "20",
|
|
164
|
+
answer_asset: null,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: 3,
|
|
168
|
+
question_number: 3,
|
|
169
|
+
correct_answer: "15",
|
|
170
|
+
answer_asset: null,
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
// filtered fullyPopulatedLocalizedEntry
|
|
178
|
+
const fullyPopulatedLocalizedEntry = {
|
|
179
|
+
id: 4,
|
|
180
|
+
title: "Test: Sčítání",
|
|
181
|
+
start_time: "2022-10-01T13:00:00.000Z",
|
|
182
|
+
duration: "02:00:00.000",
|
|
183
|
+
description: "Otestujte si své dovednosti, které jsme se naučili v předchozí lekci.",
|
|
184
|
+
lesson_type: [
|
|
185
|
+
{
|
|
186
|
+
__component: "lesson.quiz",
|
|
187
|
+
id: 2,
|
|
188
|
+
title: "Vyberte správnou odpověď",
|
|
189
|
+
questions: [
|
|
190
|
+
{
|
|
191
|
+
id: 4,
|
|
192
|
+
question: "1 + 1 = ",
|
|
193
|
+
is_active: true,
|
|
194
|
+
question_number: 1,
|
|
195
|
+
assets: null,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: 5,
|
|
199
|
+
question: "5 + 15 = ",
|
|
200
|
+
is_active: false,
|
|
201
|
+
question_number: 2,
|
|
202
|
+
assets: null,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: 6,
|
|
206
|
+
question: "Kolik pohárů je na fotce?",
|
|
207
|
+
is_active: false,
|
|
208
|
+
question_number: 3,
|
|
209
|
+
assets: [
|
|
210
|
+
{
|
|
211
|
+
id: 13,
|
|
212
|
+
name: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
213
|
+
alternativeText: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
214
|
+
caption: "lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
215
|
+
width: 3360,
|
|
216
|
+
height: 5040,
|
|
217
|
+
formats: {
|
|
218
|
+
thumbnail: {
|
|
219
|
+
name: "thumbnail_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
220
|
+
hash: "thumbnail_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
221
|
+
ext: ".jpg",
|
|
222
|
+
mime: "image/jpeg",
|
|
223
|
+
path: null,
|
|
224
|
+
width: 104,
|
|
225
|
+
height: 156,
|
|
226
|
+
size: 2.59,
|
|
227
|
+
url: "/uploads/thumbnail_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
228
|
+
},
|
|
229
|
+
large: {
|
|
230
|
+
name: "large_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
231
|
+
hash: "large_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
232
|
+
ext: ".jpg",
|
|
233
|
+
mime: "image/jpeg",
|
|
234
|
+
path: null,
|
|
235
|
+
width: 667,
|
|
236
|
+
height: 1000,
|
|
237
|
+
size: 38.91,
|
|
238
|
+
url: "/uploads/large_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
239
|
+
},
|
|
240
|
+
medium: {
|
|
241
|
+
name: "medium_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
242
|
+
hash: "medium_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
243
|
+
ext: ".jpg",
|
|
244
|
+
mime: "image/jpeg",
|
|
245
|
+
path: null,
|
|
246
|
+
width: 500,
|
|
247
|
+
height: 750,
|
|
248
|
+
size: 24.62,
|
|
249
|
+
url: "/uploads/medium_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
250
|
+
},
|
|
251
|
+
small: {
|
|
252
|
+
name: "small_lidya-nada-BnzqQwerUOY-unsplash.jpg",
|
|
253
|
+
hash: "small_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
254
|
+
ext: ".jpg",
|
|
255
|
+
mime: "image/jpeg",
|
|
256
|
+
path: null,
|
|
257
|
+
width: 333,
|
|
258
|
+
height: 500,
|
|
259
|
+
size: 12.98,
|
|
260
|
+
url: "/uploads/small_lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
hash: "lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12",
|
|
264
|
+
ext: ".jpg",
|
|
265
|
+
mime: "image/jpeg",
|
|
266
|
+
size: 1536.82,
|
|
267
|
+
url: "/uploads/lidya_nada_Bnzq_Qwer_UOY_unsplash_1c85b31b12.jpg",
|
|
268
|
+
previewUrl: null,
|
|
269
|
+
provider: "local",
|
|
270
|
+
provider_metadata: null,
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
answers: [
|
|
276
|
+
{
|
|
277
|
+
id: 4,
|
|
278
|
+
question_number: 1,
|
|
279
|
+
correct_answer: "2",
|
|
280
|
+
answer_asset: null,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
id: 5,
|
|
284
|
+
question_number: 2,
|
|
285
|
+
correct_answer: "20",
|
|
286
|
+
answer_asset: null,
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: 6,
|
|
290
|
+
question_number: 3,
|
|
291
|
+
correct_answer: "15",
|
|
292
|
+
answer_asset: null,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const uid = "api::lesson.lesson";
|
|
300
|
+
|
|
301
|
+
const locale = "cs";
|
|
302
|
+
|
|
303
|
+
module.exports = {
|
|
304
|
+
updateEntry,
|
|
305
|
+
baseEntry,
|
|
306
|
+
fullyPopulatedLocalizedEntry,
|
|
307
|
+
uid,
|
|
308
|
+
locale,
|
|
309
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const updateEntry = {
|
|
4
|
+
id: 47,
|
|
5
|
+
name: "hlad, okno",
|
|
6
|
+
description: "Orientální pouliční jídlo v ústech rychlé a snadné!",
|
|
7
|
+
established_at: "2022-10-01",
|
|
8
|
+
is_franchise: false,
|
|
9
|
+
contact_email: "david@localazy.com",
|
|
10
|
+
cuisine: "Thai",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// filtered baseEntry
|
|
14
|
+
const baseEntry = {
|
|
15
|
+
id: 1,
|
|
16
|
+
name: "Hungry Window",
|
|
17
|
+
description: "Oriental street food in your mouth quick and easy!",
|
|
18
|
+
established_at: "2022-10-01",
|
|
19
|
+
is_franchise: false,
|
|
20
|
+
contact_email: "david@localazy.com",
|
|
21
|
+
cuisine: "Thai",
|
|
22
|
+
featured_image: null,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// filtered fullyPopulatedLocalizedEntry
|
|
26
|
+
const fullyPopulatedLocalizedEntry = {
|
|
27
|
+
id: 47,
|
|
28
|
+
name: "hlad, okno",
|
|
29
|
+
description: "Orientální pouliční jídlo v ústech rychlé a snadné!",
|
|
30
|
+
established_at: "2022-10-01",
|
|
31
|
+
is_franchise: false,
|
|
32
|
+
contact_email: "david@localazy.com",
|
|
33
|
+
cuisine: "Thai",
|
|
34
|
+
featured_image: null,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const uid = "api::restaurant-simple-flat.restaurant-simple-flat";
|
|
38
|
+
|
|
39
|
+
const locale = "cs";
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
updateEntry,
|
|
43
|
+
baseEntry,
|
|
44
|
+
fullyPopulatedLocalizedEntry,
|
|
45
|
+
uid,
|
|
46
|
+
locale,
|
|
47
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const updateEntry = {
|
|
4
|
+
id: 52,
|
|
5
|
+
name: "Michelin",
|
|
6
|
+
description: "Najbardziej wyszukana restauracja w Układzie Słonecznym. Sprawdź nasze menu stworzone przez jedynego Gordona Ramsaya.",
|
|
7
|
+
established_at: "2002-06-23",
|
|
8
|
+
is_franchise: true,
|
|
9
|
+
contact_email: "david@localazy.com",
|
|
10
|
+
cuisine: "French",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// filtered baseEntry
|
|
14
|
+
const baseEntry = {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: "Michelin's",
|
|
17
|
+
description: "The most fancy restaurant in the Solar System. Check out our menu created by the one and only Gordon Ramsay.",
|
|
18
|
+
established_at: "2002-06-23",
|
|
19
|
+
is_franchise: true,
|
|
20
|
+
contact_email: "david@localazy.com",
|
|
21
|
+
cuisine: "French",
|
|
22
|
+
featured_image: {
|
|
23
|
+
id: 1,
|
|
24
|
+
name: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
25
|
+
alternativeText: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
26
|
+
caption: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
27
|
+
width: 5596,
|
|
28
|
+
height: 3731,
|
|
29
|
+
formats: {
|
|
30
|
+
thumbnail: {
|
|
31
|
+
name: "thumbnail_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
32
|
+
hash: "thumbnail_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
33
|
+
ext: ".jpg",
|
|
34
|
+
mime: "image/jpeg",
|
|
35
|
+
path: null,
|
|
36
|
+
width: 234,
|
|
37
|
+
height: 156,
|
|
38
|
+
size: 11.74,
|
|
39
|
+
url: "/uploads/thumbnail_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
40
|
+
},
|
|
41
|
+
large: {
|
|
42
|
+
name: "large_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
43
|
+
hash: "large_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
44
|
+
ext: ".jpg",
|
|
45
|
+
mime: "image/jpeg",
|
|
46
|
+
path: null,
|
|
47
|
+
width: 1000,
|
|
48
|
+
height: 666,
|
|
49
|
+
size: 140.2,
|
|
50
|
+
url: "/uploads/large_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
51
|
+
},
|
|
52
|
+
medium: {
|
|
53
|
+
name: "medium_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
54
|
+
hash: "medium_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
55
|
+
ext: ".jpg",
|
|
56
|
+
mime: "image/jpeg",
|
|
57
|
+
path: null,
|
|
58
|
+
width: 750,
|
|
59
|
+
height: 500,
|
|
60
|
+
size: 86.32,
|
|
61
|
+
url: "/uploads/medium_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
62
|
+
},
|
|
63
|
+
small: {
|
|
64
|
+
name: "small_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
65
|
+
hash: "small_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
66
|
+
ext: ".jpg",
|
|
67
|
+
mime: "image/jpeg",
|
|
68
|
+
path: null,
|
|
69
|
+
width: 500,
|
|
70
|
+
height: 333,
|
|
71
|
+
size: 42.51,
|
|
72
|
+
url: "/uploads/small_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
hash: "jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
76
|
+
ext: ".jpg",
|
|
77
|
+
mime: "image/jpeg",
|
|
78
|
+
size: 3461.64,
|
|
79
|
+
url: "/uploads/jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
80
|
+
previewUrl: null,
|
|
81
|
+
provider: "local",
|
|
82
|
+
provider_metadata: null,
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// filtered fullyPopulatedLocalizedEntry
|
|
87
|
+
const fullyPopulatedLocalizedEntry = {
|
|
88
|
+
id: 52,
|
|
89
|
+
name: "Michelin",
|
|
90
|
+
description: "Najbardziej wyszukana restauracja w Układzie Słonecznym. Sprawdź nasze menu stworzone przez jedynego Gordona Ramsaya.",
|
|
91
|
+
established_at: "2002-06-23",
|
|
92
|
+
is_franchise: true,
|
|
93
|
+
contact_email: "david@localazy.com",
|
|
94
|
+
cuisine: "French",
|
|
95
|
+
featured_image: {
|
|
96
|
+
id: 1,
|
|
97
|
+
name: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
98
|
+
alternativeText: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
99
|
+
caption: "jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
100
|
+
width: 5596,
|
|
101
|
+
height: 3731,
|
|
102
|
+
formats: {
|
|
103
|
+
thumbnail: {
|
|
104
|
+
name: "thumbnail_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
105
|
+
hash: "thumbnail_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
106
|
+
ext: ".jpg",
|
|
107
|
+
mime: "image/jpeg",
|
|
108
|
+
path: null,
|
|
109
|
+
width: 234,
|
|
110
|
+
height: 156,
|
|
111
|
+
size: 11.74,
|
|
112
|
+
url: "/uploads/thumbnail_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
113
|
+
},
|
|
114
|
+
large: {
|
|
115
|
+
name: "large_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
116
|
+
hash: "large_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
117
|
+
ext: ".jpg",
|
|
118
|
+
mime: "image/jpeg",
|
|
119
|
+
path: null,
|
|
120
|
+
width: 1000,
|
|
121
|
+
height: 666,
|
|
122
|
+
size: 140.2,
|
|
123
|
+
url: "/uploads/large_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
124
|
+
},
|
|
125
|
+
medium: {
|
|
126
|
+
name: "medium_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
127
|
+
hash: "medium_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
128
|
+
ext: ".jpg",
|
|
129
|
+
mime: "image/jpeg",
|
|
130
|
+
path: null,
|
|
131
|
+
width: 750,
|
|
132
|
+
height: 500,
|
|
133
|
+
size: 86.32,
|
|
134
|
+
url: "/uploads/medium_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
135
|
+
},
|
|
136
|
+
small: {
|
|
137
|
+
name: "small_jason-leung-poI7DelFiVA-unsplash.jpg",
|
|
138
|
+
hash: "small_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
139
|
+
ext: ".jpg",
|
|
140
|
+
mime: "image/jpeg",
|
|
141
|
+
path: null,
|
|
142
|
+
width: 500,
|
|
143
|
+
height: 333,
|
|
144
|
+
size: 42.51,
|
|
145
|
+
url: "/uploads/small_jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
hash: "jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b",
|
|
149
|
+
ext: ".jpg",
|
|
150
|
+
mime: "image/jpeg",
|
|
151
|
+
size: 3461.64,
|
|
152
|
+
url: "/uploads/jason_leung_po_I7_Del_Fi_VA_unsplash_508d22c55b.jpg",
|
|
153
|
+
previewUrl: null,
|
|
154
|
+
provider: "local",
|
|
155
|
+
provider_metadata: null,
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const uid = "api::restaurant-simple-flat.restaurant-simple-flat";
|
|
160
|
+
|
|
161
|
+
const locale = "pl";
|
|
162
|
+
|
|
163
|
+
module.exports = {
|
|
164
|
+
updateEntry,
|
|
165
|
+
baseEntry,
|
|
166
|
+
fullyPopulatedLocalizedEntry,
|
|
167
|
+
uid,
|
|
168
|
+
locale,
|
|
169
|
+
};
|