create-nextjs-cms 0.7.2 → 0.7.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextjs-cms",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,11 +24,22 @@ ui: {
24
24
  preserveExtension: true,
25
25
  },
26
26
  images: {
27
+ image: {
28
+ size: {
29
+ width: 1200,
30
+ height: 628,
31
+ fit: 'contain',
32
+ strict: false,
33
+ },
34
+ quality: 100,
35
+ },
27
36
  thumbnail: {
28
- width: 400,
29
- height: 209,
30
- crop: true,
31
- quality: 80,
37
+ size: {
38
+ width: 400,
39
+ height: 209,
40
+ fit: 'contain',
41
+ },
42
+ quality: 100,
32
43
  },
33
44
  watermark: false,
34
45
  },
@@ -8,4 +8,4 @@ export const revalidate = 0
8
8
 
9
9
  // @refresh reset
10
10
 
11
- export const configLastUpdated = 1770727627687
11
+ export const configLastUpdated = 1770880774270
@@ -75,7 +75,7 @@ export default function PhotoFormInput({ input, sectionName }: { input: PhotoFie
75
75
  <InfoIcon size={14} />
76
76
  <span>
77
77
  {t(
78
- input.size.crop ? 'imageRecommendedDimensions' : 'imageDimensionsMustBe',
78
+ 'strict' in input.size ? 'imageDimensionsMustBe' : 'imageRecommendedDimensions',
79
79
  )}
80
80
  :
81
81
  </span>
@@ -1,4 +1,4 @@
1
- import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,double,timestamp} from 'drizzle-orm/mysql-core'
1
+ import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,timestamp} from 'drizzle-orm/mysql-core'
2
2
 
3
3
  export const AppInfoTable = mysqlTable('app_info', {
4
4
  id: int('id').autoincrement().notNull().primaryKey(),
@@ -24,18 +24,6 @@ export const UserReportsTable = mysqlTable('user_reports', {
24
24
  });
25
25
 
26
26
 
27
- export const FeaturedSliderTable = mysqlTable('featured_slider', {
28
- id: int('id').autoincrement().notNull().primaryKey(),
29
- image: varchar('image', { length: 255 }).notNull(),
30
- titleEn: varchar('title_en', { length: 255 }).notNull(),
31
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
32
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
33
- descEn: longtext('desc_en').notNull(),
34
- descAr: longtext('desc_ar').notNull(),
35
- descTr: longtext('desc_tr').notNull()
36
- });
37
-
38
-
39
27
  export const MenuSettingsTable = mysqlTable('menu_settings', {
40
28
  id: int('id').autoincrement().notNull().primaryKey(),
41
29
  taxRate: varchar('tax_rate', { length: 255 }),
@@ -43,93 +31,6 @@ export const MenuSettingsTable = mysqlTable('menu_settings', {
43
31
  });
44
32
 
45
33
 
46
- export const ServicesTable = mysqlTable('services', {
47
- id: int('id').autoincrement().notNull().primaryKey(),
48
- title: varchar('title', { length: 255 }).notNull(),
49
- catId: int('cat_id').notNull(),
50
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
51
- price: int('price'),
52
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']),
53
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
54
- desc: longtext('desc'),
55
- latitude: double('latitude'),
56
- longitude: double('longitude'),
57
- viewCount: int('view_count'),
58
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
59
- govId: int('gov_id').notNull(),
60
- districtId: int('district_id').notNull(),
61
- subDistrictId: int('sub_district_id'),
62
- townId: int('town_id')
63
- });
64
-
65
-
66
- export const RealestateTable = mysqlTable('realestate', {
67
- id: int('id').autoincrement().notNull().primaryKey(),
68
- catId: int('cat_id').notNull(),
69
- title: varchar('title', { length: 255 }).notNull(),
70
- price: int('price').notNull(),
71
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
72
- spaceGross: int('space_gross').notNull(),
73
- spaceNet: int('space_net').notNull(),
74
- latitude: double('latitude').notNull(),
75
- longitude: double('longitude').notNull(),
76
- roomCount: varchar('room_count', { length: 255 }),
77
- buildingAge: varchar('building_age', { length: 255 }),
78
- floorCount: varchar('floor_count', { length: 255 }),
79
- bathroomCount: varchar('bathroom_count', { length: 255 }),
80
- floorLocation: varchar('floor_location', { length: 255 }),
81
- heatingType: varchar('heating_type', { length: 255 }),
82
- kitchenType: varchar('kitchen_type', { length: 255 }),
83
- balcony: boolean('balcony'),
84
- lift: boolean('lift'),
85
- parkingType: varchar('parking_type', { length: 255 }),
86
- furnished: boolean('furnished'),
87
- belongsToSite: boolean('belongs_to_site'),
88
- siteName: varchar('site_name', { length: 255 }),
89
- installments: boolean('installments'),
90
- exchangeable: boolean('exchangeable'),
91
- fromWhom: varchar('from_whom', { length: 255 }),
92
- buildingMembershipFees: int('building_membership_fees'),
93
- deposit: int('deposit'),
94
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
95
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
96
- desc: longtext('desc'),
97
- viewCount: int('view_count'),
98
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
99
- govId: int('gov_id').notNull(),
100
- districtId: int('district_id').notNull(),
101
- subDistrictId: int('sub_district_id'),
102
- townId: int('town_id')
103
- });
104
-
105
-
106
- export const HomepageSliderTable = mysqlTable('homepage_slider', {
107
- id: int('id').autoincrement().notNull().primaryKey(),
108
- titleEn: varchar('title_en', { length: 255 }).notNull(),
109
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
110
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
111
- subtitleEn: varchar('subtitle_en', { length: 255 }).notNull(),
112
- subtitleAr: varchar('subtitle_ar', { length: 255 }).notNull(),
113
- subtitleTr: varchar('subtitle_tr', { length: 255 }).notNull(),
114
- photo: varchar('photo', { length: 255 }).notNull(),
115
- buttonUrl: varchar('button_url', { length: 255 }),
116
- buttonTextEn: varchar('button_text_en', { length: 255 }),
117
- buttonTextAr: varchar('button_text_ar', { length: 255 }),
118
- buttonTextTr: varchar('button_text_tr', { length: 255 }),
119
- buttonUrlTarget: mysqlEnum('button_url_target', ['_blank', '_self'])
120
- });
121
-
122
-
123
- export const ProductsTable = mysqlTable('products', {
124
- id: int('id').autoincrement().notNull().primaryKey(),
125
- title: varchar('title', { length: 255 }).notNull(),
126
- slug: varchar('slug', { length: 255 }).notNull(),
127
- featured: boolean('featured'),
128
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
129
- description: longtext('description')
130
- });
131
-
132
-
133
34
  export const ContestSubscribersTable = mysqlTable('contest_subscribers', {
134
35
  id: int('id').autoincrement().notNull().primaryKey(),
135
36
  userId: int('user_id').notNull(),
@@ -167,53 +68,6 @@ export const ModerationTable = mysqlTable('moderation', {
167
68
  });
168
69
 
169
70
 
170
- export const JobsTable = mysqlTable('jobs', {
171
- id: int('id').autoincrement().notNull().primaryKey(),
172
- title: varchar('title', { length: 255 }).notNull(),
173
- catId: int('cat_id').notNull(),
174
- salary: int('salary'),
175
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
176
- workMethod: varchar('work_method', { length: 255 }).notNull(),
177
- minimumEducation: varchar('minimum_education', { length: 255 }).notNull(),
178
- experienceLevel: varchar('experience_level', { length: 255 }).notNull(),
179
- remote: boolean('remote'),
180
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
181
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
182
- desc: longtext('desc'),
183
- latitude: double('latitude'),
184
- longitude: double('longitude'),
185
- viewCount: int('view_count'),
186
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
187
- govId: int('gov_id').notNull(),
188
- districtId: int('district_id').notNull(),
189
- subDistrictId: int('sub_district_id'),
190
- townId: int('town_id')
191
- });
192
-
193
-
194
- export const FurnitureTable = mysqlTable('furniture', {
195
- id: int('id').autoincrement().notNull().primaryKey(),
196
- title: varchar('title', { length: 255 }).notNull(),
197
- catId: int('cat_id').notNull(),
198
- condition: varchar('condition', { length: 255 }).notNull(),
199
- price: int('price').notNull(),
200
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
201
- exchangeable: boolean('exchangeable'),
202
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
203
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
204
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
205
- desc: longtext('desc'),
206
- latitude: double('latitude'),
207
- longitude: double('longitude'),
208
- viewCount: int('view_count'),
209
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
210
- govId: int('gov_id').notNull(),
211
- districtId: int('district_id').notNull(),
212
- subDistrictId: int('sub_district_id'),
213
- townId: int('town_id')
214
- });
215
-
216
-
217
71
  export const FiltersTable = mysqlTable('filters', {
218
72
  id: int('id').autoincrement().notNull().primaryKey(),
219
73
  title: varchar('title', { length: 255 }).notNull(),
@@ -247,107 +101,6 @@ export const ErrorsTable = mysqlTable('errors', {
247
101
  });
248
102
 
249
103
 
250
- export const ElectronicsTable = mysqlTable('electronics', {
251
- id: int('id').autoincrement().notNull().primaryKey(),
252
- title: varchar('title', { length: 255 }).notNull(),
253
- catId: int('cat_id').notNull(),
254
- condition: varchar('condition', { length: 255 }).notNull(),
255
- price: int('price').notNull(),
256
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
257
- exchangeable: boolean('exchangeable'),
258
- installments: boolean('installments'),
259
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
260
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
261
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
262
- desc: longtext('desc'),
263
- latitude: double('latitude'),
264
- longitude: double('longitude'),
265
- viewCount: int('view_count'),
266
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
267
- govId: int('gov_id').notNull(),
268
- districtId: int('district_id').notNull(),
269
- subDistrictId: int('sub_district_id'),
270
- townId: int('town_id')
271
- });
272
-
273
-
274
- export const ClothesTable = mysqlTable('clothes', {
275
- id: int('id').autoincrement().notNull().primaryKey(),
276
- title: varchar('title', { length: 255 }).notNull(),
277
- catId: int('cat_id').notNull(),
278
- condition: varchar('condition', { length: 255 }).notNull(),
279
- price: int('price').notNull(),
280
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
281
- exchangeable: boolean('exchangeable'),
282
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
283
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
284
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
285
- desc: longtext('desc'),
286
- latitude: double('latitude'),
287
- longitude: double('longitude'),
288
- viewCount: int('view_count'),
289
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
290
- govId: int('gov_id').notNull(),
291
- districtId: int('district_id').notNull(),
292
- subDistrictId: int('sub_district_id'),
293
- townId: int('town_id')
294
- });
295
-
296
-
297
- export const CatsTable = mysqlTable('cats', {
298
- id: int('id').autoincrement().notNull().primaryKey(),
299
- catOrder: int('cat_order').notNull(),
300
- slug: varchar('slug', { length: 255 }).notNull(),
301
- titleEn: varchar('title_en', { length: 255 }).notNull(),
302
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
303
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
304
- fullTitleEn: varchar('full_title_en', { length: 255 }),
305
- fullTitleAr: varchar('full_title_ar', { length: 255 }),
306
- fullTitleTr: varchar('full_title_tr', { length: 255 }),
307
- image: varchar('image', { length: 255 }),
308
- metaDescEn: varchar('meta_desc_en', { length: 255 }),
309
- metaDescAr: varchar('meta_desc_ar', { length: 255 }),
310
- metaDescTr: varchar('meta_desc_tr', { length: 255 }),
311
- filters: varchar('filters', { length: 255 }),
312
- tableName: varchar('table_name', { length: 255 }).notNull(),
313
- adCount: int('ad_count'),
314
- parentId: int('parent_id'),
315
- level: int('level')
316
- });
317
-
318
-
319
- export const CarsTable = mysqlTable('cars', {
320
- id: int('id').autoincrement().notNull().primaryKey(),
321
- modelYear: int('model_year').notNull(),
322
- model: varchar('model', { length: 255 }).notNull(),
323
- title: varchar('title', { length: 255 }).notNull(),
324
- catId: int('cat_id').notNull(),
325
- govId: int('gov_id').notNull(),
326
- districtId: int('district_id').notNull(),
327
- subDistrictId: int('sub_district_id'),
328
- townId: int('town_id'),
329
- price: int('price').notNull(),
330
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
331
- condition: varchar('condition', { length: 255 }).notNull(),
332
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
333
- engineCapacity: varchar('engine_capacity', { length: 255 }).notNull(),
334
- enginePower: varchar('engine_power', { length: 255 }).notNull(),
335
- tractionType: varchar('traction_type', { length: 255 }).notNull(),
336
- bodyType: varchar('body_type', { length: 255 }).notNull(),
337
- gearType: varchar('gear_type', { length: 255 }).notNull(),
338
- fuelType: varchar('fuel_type', { length: 255 }).notNull(),
339
- exchangeable: boolean('exchangeable'),
340
- installments: boolean('installments'),
341
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
342
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
343
- desc: longtext('desc'),
344
- latitude: double('latitude'),
345
- longitude: double('longitude'),
346
- viewCount: int('view_count'),
347
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired'])
348
- });
349
-
350
-
351
104
  export const CarsDbTable = mysqlTable('cars_db', {
352
105
  id: int('id').autoincrement().notNull().primaryKey(),
353
106
  name: varchar('name', { length: 255 }).notNull(),
@@ -355,39 +108,3 @@ export const CarsDbTable = mysqlTable('cars_db', {
355
108
  level: int('level')
356
109
  });
357
110
 
358
-
359
- export const BooksTable = mysqlTable('books', {
360
- id: int('id').autoincrement().notNull().primaryKey(),
361
- title: varchar('title', { length: 255 }).notNull(),
362
- catId: int('cat_id').notNull(),
363
- condition: varchar('condition', { length: 255 }).notNull(),
364
- price: int('price').notNull(),
365
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
366
- exchangeable: boolean('exchangeable'),
367
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
368
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
369
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
370
- desc: longtext('desc'),
371
- latitude: double('latitude'),
372
- longitude: double('longitude'),
373
- viewCount: int('view_count'),
374
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
375
- govId: int('gov_id').notNull(),
376
- districtId: int('district_id').notNull(),
377
- subDistrictId: int('sub_district_id'),
378
- townId: int('town_id')
379
- });
380
-
381
-
382
- export const AddressTable = mysqlTable('address', {
383
- id: int('id').autoincrement().notNull().primaryKey(),
384
- catOrder: int('cat_order').notNull(),
385
- titleEn: varchar('title_en', { length: 255 }).notNull(),
386
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
387
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
388
- image: varchar('image', { length: 255 }),
389
- path: varchar('path', { length: 255 }),
390
- parentId: int('parent_id'),
391
- level: int('level')
392
- });
393
-
@@ -66,7 +66,7 @@
66
66
  "nanoid": "^5.1.2",
67
67
  "next": "16.1.1",
68
68
  "next-themes": "^0.4.6",
69
- "nextjs-cms": "0.7.2",
69
+ "nextjs-cms": "0.7.4",
70
70
  "plaiceholder": "^3.0.0",
71
71
  "prettier-plugin-tailwindcss": "^0.7.2",
72
72
  "qrcode": "^1.5.4",