create-nextjs-cms 0.7.3 → 0.7.5

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.3",
3
+ "version": "0.7.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,16 +25,20 @@ ui: {
25
25
  },
26
26
  images: {
27
27
  image: {
28
- width: 1200,
29
- height: 628,
30
- fit: 'contain',
28
+ size: {
29
+ width: 1200,
30
+ height: 628,
31
+ fit: 'contain',
32
+ strict: false,
33
+ },
31
34
  quality: 100,
32
- strict: false,
33
35
  },
34
36
  thumbnail: {
35
- width: 400,
36
- height: 209,
37
- fit: 'contain',
37
+ size: {
38
+ width: 400,
39
+ height: 209,
40
+ fit: 'contain',
41
+ },
38
42
  quality: 100,
39
43
  },
40
44
  watermark: false,
@@ -56,7 +56,7 @@ const Sidebar = (props: SidebarProps & { logoUrlPath: string; logoText: string;
56
56
  {/* logo and collapse button */}
57
57
  <div
58
58
  className={classNames({
59
- 'sticky top-0 flex h-[65px] items-center bg-indigo-700 transition-none dark:bg-slate-900': true,
59
+ 'sticky top-0 flex h-[65px] shrink-0 items-center bg-indigo-700 transition-none dark:bg-slate-900': true,
60
60
  'justify-start gap-2 p-4': true,
61
61
  })}
62
62
  >
@@ -8,4 +8,4 @@ export const revalidate = 0
8
8
 
9
9
  // @refresh reset
10
10
 
11
- export const configLastUpdated = 1770822884022
11
+ export const configLastUpdated = 1770880774270
@@ -1,4 +1,4 @@
1
- import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,timestamp} from 'drizzle-orm/mysql-core'
1
+ import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,double,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,6 +24,18 @@ 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
+
27
39
  export const MenuSettingsTable = mysqlTable('menu_settings', {
28
40
  id: int('id').autoincrement().notNull().primaryKey(),
29
41
  taxRate: varchar('tax_rate', { length: 255 }),
@@ -31,6 +43,83 @@ export const MenuSettingsTable = mysqlTable('menu_settings', {
31
43
  });
32
44
 
33
45
 
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
+
34
123
  export const ContestSubscribersTable = mysqlTable('contest_subscribers', {
35
124
  id: int('id').autoincrement().notNull().primaryKey(),
36
125
  userId: int('user_id').notNull(),
@@ -68,6 +157,53 @@ export const ModerationTable = mysqlTable('moderation', {
68
157
  });
69
158
 
70
159
 
160
+ export const JobsTable = mysqlTable('jobs', {
161
+ id: int('id').autoincrement().notNull().primaryKey(),
162
+ title: varchar('title', { length: 255 }).notNull(),
163
+ catId: int('cat_id').notNull(),
164
+ salary: int('salary'),
165
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
166
+ workMethod: varchar('work_method', { length: 255 }).notNull(),
167
+ minimumEducation: varchar('minimum_education', { length: 255 }).notNull(),
168
+ experienceLevel: varchar('experience_level', { length: 255 }).notNull(),
169
+ remote: boolean('remote'),
170
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
171
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
172
+ desc: longtext('desc'),
173
+ latitude: double('latitude'),
174
+ longitude: double('longitude'),
175
+ viewCount: int('view_count'),
176
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
177
+ govId: int('gov_id').notNull(),
178
+ districtId: int('district_id').notNull(),
179
+ subDistrictId: int('sub_district_id'),
180
+ townId: int('town_id')
181
+ });
182
+
183
+
184
+ export const FurnitureTable = mysqlTable('furniture', {
185
+ id: int('id').autoincrement().notNull().primaryKey(),
186
+ title: varchar('title', { length: 255 }).notNull(),
187
+ catId: int('cat_id').notNull(),
188
+ condition: varchar('condition', { length: 255 }).notNull(),
189
+ price: int('price').notNull(),
190
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
191
+ exchangeable: boolean('exchangeable'),
192
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
193
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
194
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
195
+ desc: longtext('desc'),
196
+ latitude: double('latitude'),
197
+ longitude: double('longitude'),
198
+ viewCount: int('view_count'),
199
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
200
+ govId: int('gov_id').notNull(),
201
+ districtId: int('district_id').notNull(),
202
+ subDistrictId: int('sub_district_id'),
203
+ townId: int('town_id')
204
+ });
205
+
206
+
71
207
  export const FiltersTable = mysqlTable('filters', {
72
208
  id: int('id').autoincrement().notNull().primaryKey(),
73
209
  title: varchar('title', { length: 255 }).notNull(),
@@ -101,6 +237,107 @@ export const ErrorsTable = mysqlTable('errors', {
101
237
  });
102
238
 
103
239
 
240
+ export const ElectronicsTable = mysqlTable('electronics', {
241
+ id: int('id').autoincrement().notNull().primaryKey(),
242
+ title: varchar('title', { length: 255 }).notNull(),
243
+ catId: int('cat_id').notNull(),
244
+ condition: varchar('condition', { length: 255 }).notNull(),
245
+ price: int('price').notNull(),
246
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
247
+ exchangeable: boolean('exchangeable'),
248
+ installments: boolean('installments'),
249
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
250
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
251
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
252
+ desc: longtext('desc'),
253
+ latitude: double('latitude'),
254
+ longitude: double('longitude'),
255
+ viewCount: int('view_count'),
256
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
257
+ govId: int('gov_id').notNull(),
258
+ districtId: int('district_id').notNull(),
259
+ subDistrictId: int('sub_district_id'),
260
+ townId: int('town_id')
261
+ });
262
+
263
+
264
+ export const ClothesTable = mysqlTable('clothes', {
265
+ id: int('id').autoincrement().notNull().primaryKey(),
266
+ title: varchar('title', { length: 255 }).notNull(),
267
+ catId: int('cat_id').notNull(),
268
+ condition: varchar('condition', { length: 255 }).notNull(),
269
+ price: int('price').notNull(),
270
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
271
+ exchangeable: boolean('exchangeable'),
272
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
273
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
274
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
275
+ desc: longtext('desc'),
276
+ latitude: double('latitude'),
277
+ longitude: double('longitude'),
278
+ viewCount: int('view_count'),
279
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
280
+ govId: int('gov_id').notNull(),
281
+ districtId: int('district_id').notNull(),
282
+ subDistrictId: int('sub_district_id'),
283
+ townId: int('town_id')
284
+ });
285
+
286
+
287
+ export const CatsTable = mysqlTable('cats', {
288
+ id: int('id').autoincrement().notNull().primaryKey(),
289
+ catOrder: int('cat_order').notNull(),
290
+ slug: varchar('slug', { length: 255 }).notNull(),
291
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
292
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
293
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
294
+ fullTitleEn: varchar('full_title_en', { length: 255 }),
295
+ fullTitleAr: varchar('full_title_ar', { length: 255 }),
296
+ fullTitleTr: varchar('full_title_tr', { length: 255 }),
297
+ image: varchar('image', { length: 255 }),
298
+ metaDescEn: varchar('meta_desc_en', { length: 255 }),
299
+ metaDescAr: varchar('meta_desc_ar', { length: 255 }),
300
+ metaDescTr: varchar('meta_desc_tr', { length: 255 }),
301
+ filters: varchar('filters', { length: 255 }),
302
+ tableName: varchar('table_name', { length: 255 }).notNull(),
303
+ adCount: int('ad_count'),
304
+ parentId: int('parent_id'),
305
+ level: int('level')
306
+ });
307
+
308
+
309
+ export const CarsTable = mysqlTable('cars', {
310
+ id: int('id').autoincrement().notNull().primaryKey(),
311
+ modelYear: int('model_year').notNull(),
312
+ model: varchar('model', { length: 255 }).notNull(),
313
+ title: varchar('title', { length: 255 }).notNull(),
314
+ catId: int('cat_id').notNull(),
315
+ govId: int('gov_id').notNull(),
316
+ districtId: int('district_id').notNull(),
317
+ subDistrictId: int('sub_district_id'),
318
+ townId: int('town_id'),
319
+ price: int('price').notNull(),
320
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
321
+ condition: varchar('condition', { length: 255 }).notNull(),
322
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
323
+ engineCapacity: varchar('engine_capacity', { length: 255 }).notNull(),
324
+ enginePower: varchar('engine_power', { length: 255 }).notNull(),
325
+ tractionType: varchar('traction_type', { length: 255 }).notNull(),
326
+ bodyType: varchar('body_type', { length: 255 }).notNull(),
327
+ gearType: varchar('gear_type', { length: 255 }).notNull(),
328
+ fuelType: varchar('fuel_type', { length: 255 }).notNull(),
329
+ exchangeable: boolean('exchangeable'),
330
+ installments: boolean('installments'),
331
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
332
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
333
+ desc: longtext('desc'),
334
+ latitude: double('latitude'),
335
+ longitude: double('longitude'),
336
+ viewCount: int('view_count'),
337
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired'])
338
+ });
339
+
340
+
104
341
  export const CarsDbTable = mysqlTable('cars_db', {
105
342
  id: int('id').autoincrement().notNull().primaryKey(),
106
343
  name: varchar('name', { length: 255 }).notNull(),
@@ -108,3 +345,39 @@ export const CarsDbTable = mysqlTable('cars_db', {
108
345
  level: int('level')
109
346
  });
110
347
 
348
+
349
+ export const BooksTable = mysqlTable('books', {
350
+ id: int('id').autoincrement().notNull().primaryKey(),
351
+ title: varchar('title', { length: 255 }).notNull(),
352
+ catId: int('cat_id').notNull(),
353
+ condition: varchar('condition', { length: 255 }).notNull(),
354
+ price: int('price').notNull(),
355
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
356
+ exchangeable: boolean('exchangeable'),
357
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
358
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
359
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
360
+ desc: longtext('desc'),
361
+ latitude: double('latitude'),
362
+ longitude: double('longitude'),
363
+ viewCount: int('view_count'),
364
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
365
+ govId: int('gov_id').notNull(),
366
+ districtId: int('district_id').notNull(),
367
+ subDistrictId: int('sub_district_id'),
368
+ townId: int('town_id')
369
+ });
370
+
371
+
372
+ export const AddressTable = mysqlTable('address', {
373
+ id: int('id').autoincrement().notNull().primaryKey(),
374
+ catOrder: int('cat_order').notNull(),
375
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
376
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
377
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
378
+ image: varchar('image', { length: 255 }),
379
+ path: varchar('path', { length: 255 }),
380
+ parentId: int('parent_id'),
381
+ level: int('level')
382
+ });
383
+
@@ -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.3",
69
+ "nextjs-cms": "0.7.5",
70
70
  "plaiceholder": "^3.0.0",
71
71
  "prettier-plugin-tailwindcss": "^0.7.2",
72
72
  "qrcode": "^1.5.4",