nextjs-cms 0.9.0 → 0.9.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/LICENSE +21 -21
- package/README.md +290 -290
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/lib/serverActions.d.ts +6 -6
- package/dist/api/root.d.ts +12 -12
- package/dist/api/root.d.ts.map +1 -1
- package/dist/api/routers/config.d.ts.map +1 -1
- package/dist/api/routers/hasItemsSection.d.ts +2 -2
- package/dist/api/routers/hasItemsSection.d.ts.map +1 -1
- package/dist/api/routers/navigation.d.ts +3 -3
- package/dist/api/routers/simpleSection.d.ts +1 -1
- package/dist/api/routers/simpleSection.d.ts.map +1 -1
- package/dist/cli/lib/db-config.js +10 -10
- package/dist/core/db/table-checker/MysqlTable.js +8 -8
- package/dist/core/factories/FieldFactory.d.ts +1 -1
- package/dist/core/factories/section-factory-with-esbuild.js +9 -9
- package/dist/core/factories/section-factory-with-jiti.js +9 -9
- package/dist/core/fields/checkbox.d.ts +1 -1
- package/dist/core/fields/color.d.ts +1 -1
- package/dist/core/fields/date.d.ts +1 -1
- package/dist/core/fields/document.d.ts +1 -1
- package/dist/core/fields/field.d.ts +1 -1
- package/dist/core/fields/field.d.ts.map +1 -1
- package/dist/core/fields/map.d.ts +1 -1
- package/dist/core/fields/number.d.ts +1 -1
- package/dist/core/fields/password.d.ts +1 -1
- package/dist/core/fields/photo.d.ts +1 -1
- package/dist/core/fields/richText.d.ts +1 -1
- package/dist/core/fields/select.d.ts +2 -2
- package/dist/core/fields/selectMultiple.d.ts +1 -1
- package/dist/core/fields/slug.d.ts +1 -1
- package/dist/core/fields/tags.d.ts +1 -1
- package/dist/core/fields/text.d.ts +1 -1
- package/dist/core/fields/textArea.d.ts +1 -1
- package/dist/core/fields/video.d.ts +1 -1
- package/dist/core/sections/category.d.ts +40 -40
- package/dist/core/sections/hasItems.d.ts +40 -40
- package/dist/core/sections/section.d.ts +21 -21
- package/dist/core/sections/simple.d.ts +8 -8
- package/dist/translations/client.d.ts +4 -4
- package/dist/translations/dictionaries/ar.d.ts +433 -0
- package/dist/translations/dictionaries/ar.d.ts.map +1 -0
- package/dist/translations/dictionaries/ar.js +444 -0
- package/dist/translations/dictionaries/en.d.ts +433 -0
- package/dist/translations/dictionaries/en.d.ts.map +1 -0
- package/dist/translations/dictionaries/en.js +444 -0
- package/dist/translations/localization.d.ts +1 -39
- package/dist/translations/localization.d.ts.map +1 -1
- package/dist/translations/localization.js +0 -48
- package/dist/translations/server.d.ts +4 -4
- package/package.json +1 -1
|
@@ -64,7 +64,7 @@ export declare const simpleSectionRouter: import("@trpc/server").TRPCBuiltRouter
|
|
|
64
64
|
name: string;
|
|
65
65
|
label: import("../../index.js").MultilingualString;
|
|
66
66
|
required: boolean;
|
|
67
|
-
localized
|
|
67
|
+
localized?: boolean;
|
|
68
68
|
conditionalFields: import("../../core/types/index.js").ConditionalField[];
|
|
69
69
|
readonly: boolean;
|
|
70
70
|
defaultValue: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleSection.d.ts","sourceRoot":"","sources":["../../../src/api/routers/simpleSection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAOxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"simpleSection.d.ts","sourceRoot":"","sources":["../../../src/api/routers/simpleSection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAOxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2Du4a,CAAC;;;;;uBAAuE,CAAC;;;;;;uBAA6G,CAAC;;;;;;;;;;;;;;;GAD5lb,CAAA"}
|
|
@@ -140,16 +140,16 @@ export async function dbConfigSetup(options) {
|
|
|
140
140
|
/**
|
|
141
141
|
* Prepare new environment variables block
|
|
142
142
|
*/
|
|
143
|
-
const newEnvBlock = `
|
|
144
|
-
|
|
145
|
-
####
|
|
146
|
-
# generated by the init script
|
|
147
|
-
####
|
|
148
|
-
DB_HOST=${dbHost}
|
|
149
|
-
DB_PORT=${dbPort}
|
|
150
|
-
DB_NAME=${dbName}
|
|
151
|
-
DB_USER=${dbUser}
|
|
152
|
-
DB_PASSWORD='${dbPassword}'
|
|
143
|
+
const newEnvBlock = `
|
|
144
|
+
|
|
145
|
+
####
|
|
146
|
+
# generated by the init script
|
|
147
|
+
####
|
|
148
|
+
DB_HOST=${dbHost}
|
|
149
|
+
DB_PORT=${dbPort}
|
|
150
|
+
DB_NAME=${dbName}
|
|
151
|
+
DB_USER=${dbUser}
|
|
152
|
+
DB_PASSWORD='${dbPassword}'
|
|
153
153
|
`;
|
|
154
154
|
/**
|
|
155
155
|
* Append the new credentials to the .env file
|
|
@@ -22,10 +22,10 @@ export class MysqlTableChecker extends DbTableChecker {
|
|
|
22
22
|
return _tables;
|
|
23
23
|
}
|
|
24
24
|
static async getColumns(tableName) {
|
|
25
|
-
const statement = sql `
|
|
26
|
-
SELECT COLUMN_NAME
|
|
27
|
-
FROM information_schema.COLUMNS c
|
|
28
|
-
inner join information_schema.TABLES t ON t.TABLE_NAME = c.TABLE_NAME
|
|
25
|
+
const statement = sql `
|
|
26
|
+
SELECT COLUMN_NAME
|
|
27
|
+
FROM information_schema.COLUMNS c
|
|
28
|
+
inner join information_schema.TABLES t ON t.TABLE_NAME = c.TABLE_NAME
|
|
29
29
|
WHERE t.TABLE_NAME = ${tableName}`;
|
|
30
30
|
const _cols = [];
|
|
31
31
|
const _res = await db.execute(statement);
|
|
@@ -82,10 +82,10 @@ export class MysqlTableChecker extends DbTableChecker {
|
|
|
82
82
|
fullTextKeys.push({ name: key, columns: _fullTextKeyMap[key] });
|
|
83
83
|
}
|
|
84
84
|
// Foreign keys should be retrieved from information_schema
|
|
85
|
-
const [foreignKeys] = await db.execute(sql `
|
|
86
|
-
SELECT COLUMN_NAME, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME
|
|
87
|
-
FROM information_schema.KEY_COLUMN_USAGE
|
|
88
|
-
WHERE TABLE_NAME = ${table} AND CONSTRAINT_NAME != 'PRIMARY' AND REFERENCED_TABLE_NAME IS NOT NULL;
|
|
85
|
+
const [foreignKeys] = await db.execute(sql `
|
|
86
|
+
SELECT COLUMN_NAME, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME
|
|
87
|
+
FROM information_schema.KEY_COLUMN_USAGE
|
|
88
|
+
WHERE TABLE_NAME = ${table} AND CONSTRAINT_NAME != 'PRIMARY' AND REFERENCED_TABLE_NAME IS NOT NULL;
|
|
89
89
|
`);
|
|
90
90
|
return { primaryKeys, uniqueKeys, indexKeys, foreignKeys, fullTextKeys };
|
|
91
91
|
}
|
|
@@ -118,7 +118,7 @@ export declare class FieldFactory {
|
|
|
118
118
|
name: string;
|
|
119
119
|
label: import("../../index.js").MultilingualString;
|
|
120
120
|
required: boolean;
|
|
121
|
-
localized
|
|
121
|
+
localized?: boolean;
|
|
122
122
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
123
123
|
readonly: boolean;
|
|
124
124
|
defaultValue: any;
|
|
@@ -442,15 +442,15 @@ export class SectionFactory {
|
|
|
442
442
|
importErr.message.includes('Cannot find module') &&
|
|
443
443
|
importErr.message.includes('.section')) {
|
|
444
444
|
this.sectionProcessingErrors[file] ??= [];
|
|
445
|
-
this.sectionProcessingErrors[file].push(`❌ Invalid section import detected.
|
|
446
|
-
|
|
447
|
-
Sections MUST use extensionless relative imports:
|
|
448
|
-
|
|
449
|
-
✅ import exampleSection from './example.section'
|
|
450
|
-
❌ import exampleSection from './example.section.ts'
|
|
451
|
-
❌ import exampleSection from './example.section.js'
|
|
452
|
-
|
|
453
|
-
This file is bundled with esbuild, so Node never resolves the import directly.
|
|
445
|
+
this.sectionProcessingErrors[file].push(`❌ Invalid section import detected.
|
|
446
|
+
|
|
447
|
+
Sections MUST use extensionless relative imports:
|
|
448
|
+
|
|
449
|
+
✅ import exampleSection from './example.section'
|
|
450
|
+
❌ import exampleSection from './example.section.ts'
|
|
451
|
+
❌ import exampleSection from './example.section.js'
|
|
452
|
+
|
|
453
|
+
This file is bundled with esbuild, so Node never resolves the import directly.
|
|
454
454
|
If you added an extension manually, remove it.`);
|
|
455
455
|
this.errorCount++;
|
|
456
456
|
continue;
|
|
@@ -398,15 +398,15 @@ export class SectionFactory {
|
|
|
398
398
|
importErr.message.includes('Cannot find module') &&
|
|
399
399
|
importErr.message.includes('.section')) {
|
|
400
400
|
this.sectionProcessingErrors[file] ??= [];
|
|
401
|
-
this.sectionProcessingErrors[file].push(`❌ Invalid section import detected.
|
|
402
|
-
|
|
403
|
-
Sections MUST use extensionless relative imports:
|
|
404
|
-
|
|
405
|
-
✅ import exampleSection from './example.section'
|
|
406
|
-
❌ import exampleSection from './example.section.ts'
|
|
407
|
-
❌ import exampleSection from './example.section.js'
|
|
408
|
-
|
|
409
|
-
This file is bundled with jiti, so Node never resolves the import directly.
|
|
401
|
+
this.sectionProcessingErrors[file].push(`❌ Invalid section import detected.
|
|
402
|
+
|
|
403
|
+
Sections MUST use extensionless relative imports:
|
|
404
|
+
|
|
405
|
+
✅ import exampleSection from './example.section'
|
|
406
|
+
❌ import exampleSection from './example.section.ts'
|
|
407
|
+
❌ import exampleSection from './example.section.js'
|
|
408
|
+
|
|
409
|
+
This file is bundled with jiti, so Node never resolves the import directly.
|
|
410
410
|
If you added an extension manually, remove it.`);
|
|
411
411
|
this.errorCount++;
|
|
412
412
|
continue;
|
|
@@ -20,7 +20,7 @@ export declare class CheckboxField extends Field<'checkbox', Config> {
|
|
|
20
20
|
name: string;
|
|
21
21
|
label: import("../../index.js").MultilingualString;
|
|
22
22
|
required: boolean;
|
|
23
|
-
localized
|
|
23
|
+
localized?: boolean;
|
|
24
24
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
25
25
|
readonly: boolean;
|
|
26
26
|
defaultValue: any;
|
|
@@ -25,7 +25,7 @@ export declare class ColorField extends Field<'color', Config> {
|
|
|
25
25
|
name: string;
|
|
26
26
|
label: import("../../index.js").MultilingualString;
|
|
27
27
|
required: boolean;
|
|
28
|
-
localized
|
|
28
|
+
localized?: boolean;
|
|
29
29
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
30
30
|
readonly: boolean;
|
|
31
31
|
defaultValue: any;
|
|
@@ -42,7 +42,7 @@ export declare class DateField extends Field<'date', Config> {
|
|
|
42
42
|
name: string;
|
|
43
43
|
label: import("../../index.js").MultilingualString;
|
|
44
44
|
required: boolean;
|
|
45
|
-
localized
|
|
45
|
+
localized?: boolean;
|
|
46
46
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
47
47
|
readonly: boolean;
|
|
48
48
|
defaultValue: any;
|
|
@@ -66,7 +66,7 @@ export declare class DocumentField extends FileField<'document', Config> {
|
|
|
66
66
|
name: string;
|
|
67
67
|
label: import("../../index.js").MultilingualString;
|
|
68
68
|
required: boolean;
|
|
69
|
-
localized
|
|
69
|
+
localized?: boolean;
|
|
70
70
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
71
71
|
readonly: boolean;
|
|
72
72
|
defaultValue: any;
|
|
@@ -79,7 +79,7 @@ export declare abstract class Field<TType extends FieldType = FieldType, TExtraF
|
|
|
79
79
|
name: string;
|
|
80
80
|
label: MultilingualString;
|
|
81
81
|
required: boolean;
|
|
82
|
-
localized
|
|
82
|
+
localized?: boolean;
|
|
83
83
|
conditionalFields: ConditionalField[];
|
|
84
84
|
readonly: boolean;
|
|
85
85
|
defaultValue: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/core/fields/field.ts"],"names":[],"mappings":"AAAA,OAAO,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C,KAAK,SAAS,SAAS,CAAE,SAAQ,eAAe,CAAC,EAAE,CAAC;IACnE,IAAI,EAAE,KAAK,CAAA;CACd"}
|
|
@@ -74,7 +74,7 @@ export declare class MapField extends Field<'map', Config> {
|
|
|
74
74
|
name: string;
|
|
75
75
|
label: import("../../index.js").MultilingualString;
|
|
76
76
|
required: boolean;
|
|
77
|
-
localized
|
|
77
|
+
localized?: boolean;
|
|
78
78
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
79
79
|
readonly: boolean;
|
|
80
80
|
defaultValue: any;
|
|
@@ -70,7 +70,7 @@ export declare class NumberField extends Field<'number', Config> {
|
|
|
70
70
|
name: string;
|
|
71
71
|
label: import("../../index.js").MultilingualString;
|
|
72
72
|
required: boolean;
|
|
73
|
-
localized
|
|
73
|
+
localized?: boolean;
|
|
74
74
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
75
75
|
readonly: boolean;
|
|
76
76
|
defaultValue: any;
|
|
@@ -41,7 +41,7 @@ export declare class PasswordField extends Field<'password', Config> {
|
|
|
41
41
|
name: string;
|
|
42
42
|
label: import("../../index.js").MultilingualString;
|
|
43
43
|
required: boolean;
|
|
44
|
-
localized
|
|
44
|
+
localized?: boolean;
|
|
45
45
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
46
46
|
readonly: boolean;
|
|
47
47
|
defaultValue: any;
|
|
@@ -197,7 +197,7 @@ export declare class PhotoField extends FileField<'photo', Config> {
|
|
|
197
197
|
name: string;
|
|
198
198
|
label: import("../../index.js").MultilingualString;
|
|
199
199
|
required: boolean;
|
|
200
|
-
localized
|
|
200
|
+
localized?: boolean;
|
|
201
201
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
202
202
|
readonly: boolean;
|
|
203
203
|
defaultValue: any;
|
|
@@ -129,7 +129,7 @@ export declare class RichTextField extends Field<'rich_text', Config> {
|
|
|
129
129
|
name: string;
|
|
130
130
|
label: import("../../index.js").MultilingualString;
|
|
131
131
|
required: boolean;
|
|
132
|
-
localized
|
|
132
|
+
localized?: boolean;
|
|
133
133
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
134
134
|
readonly: boolean;
|
|
135
135
|
defaultValue: any;
|
|
@@ -144,7 +144,7 @@ export declare class SelectField extends Field<'select', SelectFieldConfig> {
|
|
|
144
144
|
name: string;
|
|
145
145
|
label: import("../../index.js").MultilingualString;
|
|
146
146
|
required: boolean;
|
|
147
|
-
localized
|
|
147
|
+
localized?: boolean;
|
|
148
148
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
149
149
|
readonly: boolean;
|
|
150
150
|
defaultValue: any;
|
|
@@ -353,8 +353,8 @@ declare const selectFieldConfigSchema: z.ZodIntersection<z.ZodUnion<readonly [z.
|
|
|
353
353
|
}, z.core.$strict>]>, z.ZodObject<{
|
|
354
354
|
type: z.ZodLiteral<"select">;
|
|
355
355
|
optionsType: z.ZodEnum<{
|
|
356
|
-
section: "section";
|
|
357
356
|
db: "db";
|
|
357
|
+
section: "section";
|
|
358
358
|
static: "static";
|
|
359
359
|
}>;
|
|
360
360
|
build: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodCustom<SelectField, SelectField>>;
|
|
@@ -108,7 +108,7 @@ export declare class SelectMultipleField extends Field<'select_multiple', Select
|
|
|
108
108
|
name: string;
|
|
109
109
|
label: import("../../index.js").MultilingualString;
|
|
110
110
|
required: boolean;
|
|
111
|
-
localized
|
|
111
|
+
localized?: boolean;
|
|
112
112
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
113
113
|
readonly: boolean;
|
|
114
114
|
defaultValue: any;
|
|
@@ -80,7 +80,7 @@ export declare class SlugField extends Field<'slug', Config> {
|
|
|
80
80
|
name: string;
|
|
81
81
|
label: import("../../index.js").MultilingualString;
|
|
82
82
|
required: boolean;
|
|
83
|
-
localized
|
|
83
|
+
localized?: boolean;
|
|
84
84
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
85
85
|
readonly: boolean;
|
|
86
86
|
defaultValue: any;
|
|
@@ -63,7 +63,7 @@ export declare class TagsField extends Field<'tags', Config> {
|
|
|
63
63
|
name: string;
|
|
64
64
|
label: import("../../index.js").MultilingualString;
|
|
65
65
|
required: boolean;
|
|
66
|
-
localized
|
|
66
|
+
localized?: boolean;
|
|
67
67
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
68
68
|
readonly: boolean;
|
|
69
69
|
defaultValue: any;
|
|
@@ -51,7 +51,7 @@ export declare class TextField extends Field<'text', Config> {
|
|
|
51
51
|
name: string;
|
|
52
52
|
label: import("../../index.js").MultilingualString;
|
|
53
53
|
required: boolean;
|
|
54
|
-
localized
|
|
54
|
+
localized?: boolean;
|
|
55
55
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
56
56
|
readonly: boolean;
|
|
57
57
|
defaultValue: any;
|
|
@@ -39,7 +39,7 @@ export declare class TextAreaField extends Field<'textarea', Config> {
|
|
|
39
39
|
name: string;
|
|
40
40
|
label: import("../../index.js").MultilingualString;
|
|
41
41
|
required: boolean;
|
|
42
|
-
localized
|
|
42
|
+
localized?: boolean;
|
|
43
43
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
44
44
|
readonly: boolean;
|
|
45
45
|
defaultValue: any;
|
|
@@ -52,7 +52,7 @@ export declare class VideoField extends FileField<'video', Config> {
|
|
|
52
52
|
name: string;
|
|
53
53
|
label: import("../../index.js").MultilingualString;
|
|
54
54
|
required: boolean;
|
|
55
|
-
localized
|
|
55
|
+
localized?: boolean;
|
|
56
56
|
conditionalFields: import("../types/index.js").ConditionalField[];
|
|
57
57
|
readonly: boolean;
|
|
58
58
|
defaultValue: any;
|