@vitnode/blog 1.2.0-canary.76 → 1.2.0-canary.78
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/dist/src/api/lib/categories-language.d.ts +10 -0
- package/dist/src/api/lib/categories-language.d.ts.map +1 -0
- package/dist/src/api/lib/categories-language.js +1 -0
- package/dist/src/api/lib/events.d.ts +28 -0
- package/dist/src/api/lib/events.d.ts.map +1 -0
- package/dist/src/api/lib/events.js +1 -0
- package/dist/src/api/lib/posts-language.d.ts +17 -0
- package/dist/src/api/lib/posts-language.d.ts.map +1 -0
- package/dist/src/api/lib/posts-language.js +1 -0
- package/dist/src/api/lib/search.d.ts +13 -0
- package/dist/src/api/lib/search.d.ts.map +1 -0
- package/dist/src/api/lib/search.js +1 -0
- package/dist/src/api/modules/admin/admin.module.d.ts +197 -180
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +1 -2
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts +83 -80
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/categories.admin.module.js +1 -2
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts +38 -34
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/create.route.js +1 -2
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts +15 -18
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/delete.route.js +1 -2
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts +38 -38
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/edit.route.js +1 -2
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts +104 -93
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/posts.admin.module.js +1 -2
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts +58 -44
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/create.route.js +1 -2
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts +15 -18
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/delete.route.js +1 -2
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts +47 -43
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/edit.route.js +1 -2
- package/dist/src/api/modules/categories/categories.module.d.ts +65 -64
- package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
- package/dist/src/api/modules/categories/categories.module.js +1 -2
- package/dist/src/api/modules/categories/routes/get.route.d.ts +56 -45
- package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/routes/get.route.js +1 -2
- package/dist/src/api/modules/categories/test.route.d.ts +20 -23
- package/dist/src/api/modules/categories/test.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/test.route.js +1 -2
- package/dist/src/api/modules/posts/posts.module.d.ts +68 -54
- package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -1
- package/dist/src/api/modules/posts/posts.module.js +1 -2
- package/dist/src/api/modules/posts/routes/get.route.d.ts +97 -66
- package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/posts/routes/get.route.js +1 -2
- package/dist/src/config.api.d.ts +1 -4
- package/dist/src/config.api.d.ts.map +1 -1
- package/dist/src/config.api.js +1 -2
- package/dist/src/config.d.ts +1 -4
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +1 -2
- package/dist/src/const.d.ts +2 -5
- package/dist/src/const.d.ts.map +1 -1
- package/dist/src/const.js +1 -2
- package/dist/src/database/categories.d.ts +76 -98
- package/dist/src/database/categories.d.ts.map +1 -1
- package/dist/src/database/categories.js +1 -2
- package/dist/src/database/index.d.ts +4 -4
- package/dist/src/database/index.d.ts.map +1 -0
- package/dist/src/database/index.js +1 -1
- package/dist/src/database/posts.d.ts +91 -132
- package/dist/src/database/posts.d.ts.map +1 -1
- package/dist/src/database/posts.js +1 -2
- package/dist/src/database/relations.d.ts +4 -7
- package/dist/src/database/relations.d.ts.map +1 -1
- package/dist/src/database/relations.js +1 -2
- package/dist/src/emails/test-template.d.ts +18 -20
- package/dist/src/emails/test-template.d.ts.map +1 -1
- package/dist/src/emails/test-template.js +1 -2
- package/dist/src/globals.css +44 -0
- package/dist/src/locales/en.json +92 -0
- package/dist/src/locales/index.d.ts +4 -0
- package/dist/src/locales/index.d.ts.map +1 -0
- package/dist/src/locales/index.js +1 -0
- package/dist/src/routes/admin/blog/categories/page.d.ts +5 -7
- package/dist/src/routes/admin/blog/categories/page.d.ts.map +1 -1
- package/dist/src/routes/admin/blog/categories/page.js +1 -2
- package/dist/src/routes/admin/blog/posts/page.d.ts +5 -7
- package/dist/src/routes/admin/blog/posts/page.d.ts.map +1 -1
- package/dist/src/routes/admin/blog/posts/page.js +1 -2
- package/dist/src/routes/breadcrumb/admin/blog/categories/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/blog/categories/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/blog/categories/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/blog/posts/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/blog/posts/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/blog/posts/page.js +1 -0
- package/dist/src/views/admin/categories/actions/actions.d.ts +1 -4
- package/dist/src/views/admin/categories/actions/actions.d.ts.map +1 -1
- package/dist/src/views/admin/categories/actions/actions.js +1 -2
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts +5 -8
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts.map +1 -1
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.js +1 -2
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.server.d.ts +11 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.server.d.ts.map +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.server.js +1 -0
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.d.ts +3 -6
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.js +1 -2
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.server.d.ts +4 -0
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.server.d.ts.map +1 -0
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.server.js +1 -0
- package/dist/src/views/admin/categories/table/actions/edit-action.d.ts +5 -8
- package/dist/src/views/admin/categories/table/actions/edit-action.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/edit-action.js +1 -2
- package/dist/src/views/admin/categories/table/categories-admin-view.d.ts +2 -5
- package/dist/src/views/admin/categories/table/categories-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/categories-admin-view.js +1 -2
- package/dist/src/views/admin/posts/actions/actions.d.ts +1 -4
- package/dist/src/views/admin/posts/actions/actions.d.ts.map +1 -1
- package/dist/src/views/admin/posts/actions/actions.js +1 -2
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts +7 -9
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts.map +1 -1
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.js +1 -2
- package/dist/src/views/admin/posts/actions/create-edit/multi-lang-fields.d.ts +10 -0
- package/dist/src/views/admin/posts/actions/create-edit/multi-lang-fields.d.ts.map +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/multi-lang-fields.js +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.server.d.ts +11 -0
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.server.d.ts.map +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.server.js +1 -0
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.d.ts +3 -6
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.js +1 -2
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.server.d.ts +4 -0
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.server.d.ts.map +1 -0
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.server.js +1 -0
- package/dist/src/views/admin/posts/table/actions/edit-action.d.ts +5 -8
- package/dist/src/views/admin/posts/table/actions/edit-action.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/actions/edit-action.js +1 -2
- package/dist/src/views/admin/posts/table/posts-admin-view.d.ts +2 -5
- package/dist/src/views/admin/posts/table/posts-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/posts-admin-view.js +1 -2
- package/package.json +20 -18
- package/src/locales/en.json +17 -5
- package/src/locales/index.ts +11 -0
- package/src/routes/breadcrumb/admin/blog/categories/page.tsx +5 -0
- package/src/routes/breadcrumb/admin/blog/posts/page.tsx +5 -0
- package/dist/src/api/modules/admin/admin.module.js.map +0 -1
- package/dist/src/api/modules/admin/categories/categories.admin.module.js.map +0 -1
- package/dist/src/api/modules/admin/categories/routes/create.route.js.map +0 -1
- package/dist/src/api/modules/admin/categories/routes/delete.route.js.map +0 -1
- package/dist/src/api/modules/admin/categories/routes/edit.route.js.map +0 -1
- package/dist/src/api/modules/admin/posts/posts.admin.module.js.map +0 -1
- package/dist/src/api/modules/admin/posts/routes/create.route.js.map +0 -1
- package/dist/src/api/modules/admin/posts/routes/delete.route.js.map +0 -1
- package/dist/src/api/modules/admin/posts/routes/edit.route.js.map +0 -1
- package/dist/src/api/modules/categories/categories.module.js.map +0 -1
- package/dist/src/api/modules/categories/routes/get.route.js.map +0 -1
- package/dist/src/api/modules/categories/test.route.js.map +0 -1
- package/dist/src/api/modules/posts/posts.module.js.map +0 -1
- package/dist/src/api/modules/posts/routes/get.route.js.map +0 -1
- package/dist/src/config.api.js.map +0 -1
- package/dist/src/config.js.map +0 -1
- package/dist/src/const.js.map +0 -1
- package/dist/src/database/categories.js.map +0 -1
- package/dist/src/database/posts.js.map +0 -1
- package/dist/src/database/relations.js.map +0 -1
- package/dist/src/emails/test-template.js.map +0 -1
- package/dist/src/routes/admin/blog/categories/page.js.map +0 -1
- package/dist/src/routes/admin/blog/posts/page.js.map +0 -1
- package/dist/src/views/admin/categories/actions/actions.js.map +0 -1
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.js.map +0 -1
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts +0 -14
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts.map +0 -1
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js +0 -2
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js.map +0 -1
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.js.map +0 -1
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.d.ts +0 -7
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.d.ts.map +0 -1
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.js +0 -2
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.js.map +0 -1
- package/dist/src/views/admin/categories/table/actions/edit-action.js.map +0 -1
- package/dist/src/views/admin/categories/table/categories-admin-view.js.map +0 -1
- package/dist/src/views/admin/posts/actions/actions.js.map +0 -1
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.js.map +0 -1
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts +0 -14
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts.map +0 -1
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.js +0 -2
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.js.map +0 -1
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.js.map +0 -1
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.d.ts +0 -7
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.d.ts.map +0 -1
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.js +0 -2
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.js.map +0 -1
- package/dist/src/views/admin/posts/table/actions/edit-action.js.map +0 -1
- package/dist/src/views/admin/posts/table/posts-admin-view.js.map +0 -1
|
@@ -1,134 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
identity: undefined;
|
|
93
|
-
generated: undefined;
|
|
94
|
-
}, {}, {}>;
|
|
95
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
96
|
-
name: "createdAt";
|
|
97
|
-
tableName: "blog_posts";
|
|
98
|
-
dataType: "date";
|
|
99
|
-
columnType: "PgTimestamp";
|
|
100
|
-
data: Date;
|
|
101
|
-
driverParam: string;
|
|
102
|
-
notNull: true;
|
|
103
|
-
hasDefault: true;
|
|
104
|
-
isPrimaryKey: false;
|
|
105
|
-
isAutoincrement: false;
|
|
106
|
-
hasRuntimeDefault: false;
|
|
107
|
-
enumValues: undefined;
|
|
108
|
-
baseColumn: never;
|
|
109
|
-
identity: undefined;
|
|
110
|
-
generated: undefined;
|
|
111
|
-
}, {}, {}>;
|
|
112
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
113
|
-
name: "updatedAt";
|
|
114
|
-
tableName: "blog_posts";
|
|
115
|
-
dataType: "date";
|
|
116
|
-
columnType: "PgTimestamp";
|
|
117
|
-
data: Date;
|
|
118
|
-
driverParam: string;
|
|
119
|
-
notNull: true;
|
|
120
|
-
hasDefault: true;
|
|
121
|
-
isPrimaryKey: false;
|
|
122
|
-
isAutoincrement: false;
|
|
123
|
-
hasRuntimeDefault: false;
|
|
124
|
-
enumValues: undefined;
|
|
125
|
-
baseColumn: never;
|
|
126
|
-
identity: undefined;
|
|
127
|
-
generated: undefined;
|
|
128
|
-
}, {}, {}>;
|
|
129
|
-
};
|
|
130
|
-
dialect: "pg";
|
|
1
|
+
export declare const blog_posts: Omit<import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2
|
+
name: "blog_posts";
|
|
3
|
+
schema: undefined;
|
|
4
|
+
columns: {
|
|
5
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
6
|
+
name: "id";
|
|
7
|
+
tableName: "blog_posts";
|
|
8
|
+
dataType: "number";
|
|
9
|
+
columnType: "PgSerial";
|
|
10
|
+
data: number;
|
|
11
|
+
driverParam: number;
|
|
12
|
+
notNull: true;
|
|
13
|
+
hasDefault: true;
|
|
14
|
+
isPrimaryKey: true;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
17
|
+
enumValues: undefined;
|
|
18
|
+
baseColumn: never;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
categoryId: import("drizzle-orm/pg-core").PgColumn<{
|
|
23
|
+
name: "categoryId";
|
|
24
|
+
tableName: "blog_posts";
|
|
25
|
+
dataType: "number";
|
|
26
|
+
columnType: "PgInteger";
|
|
27
|
+
data: number;
|
|
28
|
+
driverParam: string | number;
|
|
29
|
+
notNull: true;
|
|
30
|
+
hasDefault: false;
|
|
31
|
+
isPrimaryKey: false;
|
|
32
|
+
isAutoincrement: false;
|
|
33
|
+
hasRuntimeDefault: false;
|
|
34
|
+
enumValues: undefined;
|
|
35
|
+
baseColumn: never;
|
|
36
|
+
identity: undefined;
|
|
37
|
+
generated: undefined;
|
|
38
|
+
}, {}, {}>;
|
|
39
|
+
authorId: import("drizzle-orm/pg-core").PgColumn<{
|
|
40
|
+
name: "authorId";
|
|
41
|
+
tableName: "blog_posts";
|
|
42
|
+
dataType: "number";
|
|
43
|
+
columnType: "PgInteger";
|
|
44
|
+
data: number;
|
|
45
|
+
driverParam: string | number;
|
|
46
|
+
notNull: false;
|
|
47
|
+
hasDefault: false;
|
|
48
|
+
isPrimaryKey: false;
|
|
49
|
+
isAutoincrement: false;
|
|
50
|
+
hasRuntimeDefault: false;
|
|
51
|
+
enumValues: undefined;
|
|
52
|
+
baseColumn: never;
|
|
53
|
+
identity: undefined;
|
|
54
|
+
generated: undefined;
|
|
55
|
+
}, {}, {}>;
|
|
56
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
57
|
+
name: "createdAt";
|
|
58
|
+
tableName: "blog_posts";
|
|
59
|
+
dataType: "date";
|
|
60
|
+
columnType: "PgTimestamp";
|
|
61
|
+
data: Date;
|
|
62
|
+
driverParam: string;
|
|
63
|
+
notNull: true;
|
|
64
|
+
hasDefault: true;
|
|
65
|
+
isPrimaryKey: false;
|
|
66
|
+
isAutoincrement: false;
|
|
67
|
+
hasRuntimeDefault: false;
|
|
68
|
+
enumValues: undefined;
|
|
69
|
+
baseColumn: never;
|
|
70
|
+
identity: undefined;
|
|
71
|
+
generated: undefined;
|
|
72
|
+
}, {}, {}>;
|
|
73
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
74
|
+
name: "updatedAt";
|
|
75
|
+
tableName: "blog_posts";
|
|
76
|
+
dataType: "date";
|
|
77
|
+
columnType: "PgTimestamp";
|
|
78
|
+
data: Date;
|
|
79
|
+
driverParam: string;
|
|
80
|
+
notNull: true;
|
|
81
|
+
hasDefault: true;
|
|
82
|
+
isPrimaryKey: false;
|
|
83
|
+
isAutoincrement: false;
|
|
84
|
+
hasRuntimeDefault: false;
|
|
85
|
+
enumValues: undefined;
|
|
86
|
+
baseColumn: never;
|
|
87
|
+
identity: undefined;
|
|
88
|
+
generated: undefined;
|
|
89
|
+
}, {}, {}>;
|
|
90
|
+
};
|
|
91
|
+
dialect: "pg";
|
|
131
92
|
}>, "enableRLS">;
|
|
132
|
-
//#endregion
|
|
133
|
-
export { blog_posts };
|
|
134
93
|
//# sourceMappingURL=posts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.ts","
|
|
1
|
+
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../../src/database/posts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAeR,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=posts.js.map
|
|
1
|
+
import{core_users}from"@vitnode/core/database/users";import{pgTable}from"drizzle-orm/pg-core";import{blog_categories}from"./categories.js";export const blog_posts=pgTable("blog_posts",t=>({id:t.serial().primaryKey(),categoryId:t.integer().references(()=>blog_categories.id).notNull(),authorId:t.integer().references(()=>core_users.id,{onDelete:"set null",onUpdate:"cascade"}),createdAt:t.timestamp().notNull().defaultNow(),updatedAt:t.timestamp().notNull().$onUpdate(()=>new Date)})).enableRLS();
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
category: import("drizzle-orm").One<"blog_categories", true>;
|
|
1
|
+
export declare const blog_posts_relations: import("drizzle-orm").Relations<"blog_posts", {
|
|
2
|
+
category: import("drizzle-orm").One<"blog_categories", true>;
|
|
4
3
|
}>;
|
|
5
|
-
declare const blog_categories_relations: import("drizzle-orm").Relations<"blog_categories", {
|
|
6
|
-
|
|
4
|
+
export declare const blog_categories_relations: import("drizzle-orm").Relations<"blog_categories", {
|
|
5
|
+
posts: import("drizzle-orm").Many<"blog_posts">;
|
|
7
6
|
}>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { blog_categories_relations, blog_posts_relations };
|
|
10
7
|
//# sourceMappingURL=relations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.d.ts","
|
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../src/database/relations.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;EAK9B,CAAC;AAEJ,eAAO,MAAM,yBAAyB;;EAKrC,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{blog_categories
|
|
2
|
-
//# sourceMappingURL=relations.js.map
|
|
1
|
+
import{relations}from"drizzle-orm";import{blog_categories}from"./categories.js";import{blog_posts}from"./posts.js";export const blog_posts_relations=relations(blog_posts,({one})=>({category:one(blog_categories,{fields:[blog_posts.categoryId],references:[blog_categories.id]})}));export const blog_categories_relations=relations(blog_categories,({many})=>({posts:many(blog_posts)}));
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { DefaultTemplateEmailProps } from "@vitnode/core/emails/default-template";
|
|
2
|
-
//#region src/emails/test-template.d.ts
|
|
1
|
+
import { type DefaultTemplateEmailProps } from "@vitnode/core/emails/default-template";
|
|
3
2
|
declare function TestTemplateEmail({ user, ...props }: DefaultTemplateEmailProps): import("react").JSX.Element | null;
|
|
4
3
|
declare namespace TestTemplateEmail {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
var PreviewProps: {
|
|
5
|
+
children: string;
|
|
6
|
+
templateProps: {
|
|
7
|
+
metadata: {
|
|
8
|
+
title: string;
|
|
9
|
+
shortTitle: string;
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
logo: {
|
|
13
|
+
src: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
i18n: {
|
|
17
|
+
messages: {};
|
|
18
|
+
locale: string;
|
|
19
|
+
};
|
|
16
20
|
};
|
|
17
|
-
i18n: {
|
|
18
|
-
messages: {};
|
|
19
|
-
locale: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
export { TestTemplateEmail as default };
|
|
22
|
+
export default TestTemplateEmail;
|
|
25
23
|
//# sourceMappingURL=test-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-template.d.ts","
|
|
1
|
+
{"version":3,"file":"test-template.d.ts","sourceRoot":"","sources":["../../../src/emails/test-template.tsx"],"names":[],"mappings":"AAAA,OAA6B,EAC3B,KAAK,yBAAyB,EAC/B,MAAM,uCAAuC,CAAC;AAM/C,iBAAwB,iBAAiB,CAAC,EACxC,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,yBAAyB,sCAQ3B;kBAXuB,iBAAiB;;;;;;;;;;;;;;;;;;;eAAjB,iBAAiB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//# sourceMappingURL=test-template.js.map
|
|
1
|
+
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import DefaultTemplateEmail from"@vitnode/core/emails/default-template";import{Text}from"react-email";TestTemplateEmail.PreviewProps=DefaultTemplateEmail.PreviewProps;export default function TestTemplateEmail({user,...props}){if(!user)return null;return _jsx(DefaultTemplateEmail,{...props,children:_jsxs(Text,{children:["This message is for ",user.name]})})}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@custom-variant dark (&:is(.dark *));
|
|
4
|
+
|
|
5
|
+
@import "tw-animate-css";
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
9
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
10
|
+
--radius-lg: var(--radius);
|
|
11
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
12
|
+
--color-background: var(--background);
|
|
13
|
+
--color-foreground: var(--foreground);
|
|
14
|
+
--color-card: var(--card);
|
|
15
|
+
--color-card-foreground: var(--card-foreground);
|
|
16
|
+
--color-popover: var(--popover);
|
|
17
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
18
|
+
--color-primary: var(--primary);
|
|
19
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
20
|
+
--color-secondary: var(--secondary);
|
|
21
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
22
|
+
--color-muted: var(--muted);
|
|
23
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
24
|
+
--color-accent: var(--accent);
|
|
25
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
26
|
+
--color-destructive: var(--destructive);
|
|
27
|
+
--color-warn: var(--warn);
|
|
28
|
+
--color-border: var(--border);
|
|
29
|
+
--color-input: var(--input);
|
|
30
|
+
--color-ring: var(--ring);
|
|
31
|
+
--color-chart-1: var(--chart-1);
|
|
32
|
+
--color-chart-2: var(--chart-2);
|
|
33
|
+
--color-chart-3: var(--chart-3);
|
|
34
|
+
--color-chart-4: var(--chart-4);
|
|
35
|
+
--color-chart-5: var(--chart-5);
|
|
36
|
+
--color-sidebar: var(--sidebar);
|
|
37
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
38
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
39
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
40
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
41
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
42
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
43
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
44
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@vitnode/blog": {
|
|
3
|
+
"title": "Blog",
|
|
4
|
+
"admin": {
|
|
5
|
+
"nav": {
|
|
6
|
+
"posts": "Posts",
|
|
7
|
+
"categories": "Categories"
|
|
8
|
+
},
|
|
9
|
+
"categories": {
|
|
10
|
+
"desc": "Manage categories for blog posts.",
|
|
11
|
+
"table": {
|
|
12
|
+
"title": "Title",
|
|
13
|
+
"color": "Color",
|
|
14
|
+
"updated_at": "Updated At"
|
|
15
|
+
},
|
|
16
|
+
"delete": {
|
|
17
|
+
"title": "Delete Category",
|
|
18
|
+
"desc": "Are you sure you want to delete <title></title> category? This action cannot be undone.",
|
|
19
|
+
"confirm": "Yes, delete this category",
|
|
20
|
+
"success": "Category has been deleted successfully."
|
|
21
|
+
},
|
|
22
|
+
"create": {
|
|
23
|
+
"title": "Create Category",
|
|
24
|
+
"desc": "A new category for your blog posts.",
|
|
25
|
+
"form": {
|
|
26
|
+
"title": {
|
|
27
|
+
"label": "Title",
|
|
28
|
+
"already_exists": "This category title already exists."
|
|
29
|
+
},
|
|
30
|
+
"color": "Color"
|
|
31
|
+
},
|
|
32
|
+
"submit": "Create",
|
|
33
|
+
"success": "Category has been created successfully."
|
|
34
|
+
},
|
|
35
|
+
"edit": {
|
|
36
|
+
"title": "Edit Category",
|
|
37
|
+
"submit": "Save Changes",
|
|
38
|
+
"success": "Category has been updated successfully."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"posts": {
|
|
42
|
+
"desc": "Write and manage your blog posts.",
|
|
43
|
+
"table": {
|
|
44
|
+
"title": "Title",
|
|
45
|
+
"category": "Category",
|
|
46
|
+
"author": "Author",
|
|
47
|
+
"updated_at": "Updated At"
|
|
48
|
+
},
|
|
49
|
+
"create": {
|
|
50
|
+
"title": "Create Post",
|
|
51
|
+
"desc": "Write a new article for your blog.",
|
|
52
|
+
"form": {
|
|
53
|
+
"title": {
|
|
54
|
+
"label": "Title",
|
|
55
|
+
"already_exists": "This post title already exists."
|
|
56
|
+
},
|
|
57
|
+
"friendly_url": {
|
|
58
|
+
"label": "Friendly URL",
|
|
59
|
+
"desc": "Used in the post address. Auto-filled from the title.",
|
|
60
|
+
"already_exists": "This friendly URL already exists."
|
|
61
|
+
},
|
|
62
|
+
"content": "Content",
|
|
63
|
+
"category": "Category"
|
|
64
|
+
},
|
|
65
|
+
"submit": "Create Post",
|
|
66
|
+
"success": "Post has been created successfully."
|
|
67
|
+
},
|
|
68
|
+
"edit": {
|
|
69
|
+
"title": "Edit Post",
|
|
70
|
+
"submit": "Save Changes",
|
|
71
|
+
"success": "Post has been updated successfully."
|
|
72
|
+
},
|
|
73
|
+
"delete": {
|
|
74
|
+
"title": "Delete Post",
|
|
75
|
+
"desc": "Are you sure you want to delete <title></title> post? This action cannot be undone.",
|
|
76
|
+
"confirm": "Yes, delete this post",
|
|
77
|
+
"success": "Post has been deleted successfully."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"@vitnode/blog:posts": "Posts",
|
|
83
|
+
"@vitnode/blog:posts:can_view": "View posts list",
|
|
84
|
+
"@vitnode/blog:posts:can_create": "Create posts",
|
|
85
|
+
"@vitnode/blog:posts:can_edit": "Edit posts",
|
|
86
|
+
"@vitnode/blog:posts:can_delete": "Delete posts",
|
|
87
|
+
"@vitnode/blog:categories": "Categories",
|
|
88
|
+
"@vitnode/blog:categories:can_view": "View categories list",
|
|
89
|
+
"@vitnode/blog:categories:can_create": "Create categories",
|
|
90
|
+
"@vitnode/blog:categories:can_edit": "Edit categories",
|
|
91
|
+
"@vitnode/blog:categories:can_delete": "Delete categories"
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAMtE,QAAA,MAAM,QAAQ,EAAE,iBAEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const messages={en:async()=>await import("./en.json",{with:{type:"json"}})};export default messages;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { Metadata } from "next";
|
|
3
|
-
//#region src/routes/admin/blog/categories/page.d.ts
|
|
4
3
|
declare const CategoriesAdminView: React.ComponentType<{
|
|
5
|
-
|
|
4
|
+
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
6
5
|
}>;
|
|
7
|
-
declare const generateMetadata: () => Promise<Metadata>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { CategoriesPage as default, generateMetadata };
|
|
6
|
+
export declare const generateMetadata: () => Promise<Metadata>;
|
|
7
|
+
export default function CategoriesPage(params: React.ComponentProps<typeof CategoriesAdminView>): Promise<React.JSX.Element>;
|
|
8
|
+
export {};
|
|
11
9
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../src/routes/admin/blog/categories/page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AASrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,mBAAmB;;EAIxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,QAAQ,CAMzD,CAAC;AAEF,wBAA8B,cAAc,CAC1C,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,8BAkCzD"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=page.js.map
|
|
1
|
+
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{I18nProvider}from"@vitnode/core/components/i18n-provider";import{DataTableSkeleton}from"@vitnode/core/components/table/data-table";import{HeaderContent}from"@vitnode/core/components/ui/header-content";import{checkAdminPermissionApi}from"@vitnode/core/lib/api/get-session-admin-api";import{getTranslations}from"next-intl/server";import dynamic from"next/dynamic";import{notFound}from"next/navigation";import React from"react";import{CONFIG_PLUGIN}from"../../../../const.js";import{ActionsCategoriesAdmin}from"../../../../views/admin/categories/actions/actions.js";const CategoriesAdminView=dynamic(async()=>import("../../../../views/admin/categories/table/categories-admin-view.js").then(mod=>({default:mod.CategoriesAdminView})));export const generateMetadata=async()=>{const t=await getTranslations("@vitnode/blog.admin.nav");return{title:t("categories")}};export default async function CategoriesPage(params){const[t,tNav,canView,canCreate]=await Promise.all([getTranslations("@vitnode/blog.admin.categories"),getTranslations("@vitnode/blog.admin.nav"),checkAdminPermissionApi({plugin:CONFIG_PLUGIN.pluginId,module:"categories",permission:"can_view"}),checkAdminPermissionApi({plugin:CONFIG_PLUGIN.pluginId,module:"categories",permission:"can_create"})]);if(!canView){notFound()}return _jsx(I18nProvider,{namespaces:["@vitnode/blog.admin.categories"],children:_jsxs("div",{className:"p-4",children:[_jsx(HeaderContent,{desc:t("desc"),h1:tNav("categories"),children:canCreate&&_jsx(ActionsCategoriesAdmin,{})}),_jsx(React.Suspense,{fallback:_jsx(DataTableSkeleton,{columns:4}),children:_jsx(CategoriesAdminView,{...params})})]})})}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { Metadata } from "next";
|
|
3
|
-
//#region src/routes/admin/blog/posts/page.d.ts
|
|
4
3
|
declare const PostsAdminView: React.ComponentType<{
|
|
5
|
-
|
|
4
|
+
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
6
5
|
}>;
|
|
7
|
-
declare const generateMetadata: () => Promise<Metadata>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { PostsPage as default, generateMetadata };
|
|
6
|
+
export declare const generateMetadata: () => Promise<Metadata>;
|
|
7
|
+
export default function PostsPage(params: React.ComponentProps<typeof PostsAdminView>): Promise<React.JSX.Element>;
|
|
8
|
+
export {};
|
|
11
9
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../src/routes/admin/blog/posts/page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AASrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,cAAc;;EAInB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,QAAQ,CAMzD,CAAC;AAEF,wBAA8B,SAAS,CACrC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,8BAkCpD"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=page.js.map
|
|
1
|
+
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{I18nProvider}from"@vitnode/core/components/i18n-provider";import{DataTableSkeleton}from"@vitnode/core/components/table/data-table";import{HeaderContent}from"@vitnode/core/components/ui/header-content";import{checkAdminPermissionApi}from"@vitnode/core/lib/api/get-session-admin-api";import{getTranslations}from"next-intl/server";import dynamic from"next/dynamic";import{notFound}from"next/navigation";import React from"react";import{CONFIG_PLUGIN}from"../../../../const.js";import{ActionsPostsAdmin}from"../../../../views/admin/posts/actions/actions.js";const PostsAdminView=dynamic(async()=>import("../../../../views/admin/posts/table/posts-admin-view.js").then(mod=>({default:mod.PostsAdminView})));export const generateMetadata=async()=>{const t=await getTranslations("@vitnode/blog.admin.nav");return{title:t("posts")}};export default async function PostsPage(params){const[t,tNav,canView,canCreate]=await Promise.all([getTranslations("@vitnode/blog.admin.posts"),getTranslations("@vitnode/blog.admin.nav"),checkAdminPermissionApi({plugin:CONFIG_PLUGIN.pluginId,module:"posts",permission:"can_view"}),checkAdminPermissionApi({plugin:CONFIG_PLUGIN.pluginId,module:"posts",permission:"can_create"})]);if(!canView){notFound()}return _jsx(I18nProvider,{namespaces:["@vitnode/blog.admin.posts"],children:_jsxs("div",{className:"p-4",children:[_jsx(HeaderContent,{desc:t("desc"),h1:tNav("posts"),children:canCreate&&_jsx(ActionsPostsAdmin,{})}),_jsx(React.Suspense,{fallback:_jsx(DataTableSkeleton,{columns:5}),children:_jsx(PostsAdminView,{...params})})]})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../src/routes/breadcrumb/admin/blog/categories/page.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc,gCAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as _jsx}from"react/jsx-runtime";import{BreadcrumbAdmin}from"@vitnode/core/views/admin/layouts/breadcrumb/breadcrumb-admin";export default function BreadcrumbSlot(){return _jsx(BreadcrumbAdmin,{segments:["blog","categories"]})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../src/routes/breadcrumb/admin/blog/posts/page.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc,gCAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as _jsx}from"react/jsx-runtime";import{BreadcrumbAdmin}from"@vitnode/core/views/admin/layouts/breadcrumb/breadcrumb-admin";export default function BreadcrumbSlot(){return _jsx(BreadcrumbAdmin,{segments:["blog","posts"]})}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
declare const ActionsCategoriesAdmin: () => React.JSX.Element;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { ActionsCategoriesAdmin };
|
|
2
|
+
export declare const ActionsCategoriesAdmin: () => React.JSX.Element;
|
|
6
3
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/categories/actions/actions.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,sBAAsB,yBAsBlC,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
2
|
-
//# sourceMappingURL=actions.js.map
|
|
1
|
+
"use client";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{Button}from"@vitnode/core/components/ui/button";import{Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,DialogTrigger}from"@vitnode/core/components/ui/dialog";import{Loader}from"@vitnode/core/components/ui/loader";import{PlusIcon}from"lucide-react";import{useTranslations}from"next-intl";import dynamic from"next/dynamic";import React from"react";const CreateEditActionCategoriesAdmin=dynamic(async()=>import("./create-edit/create-edit.js").then(mod=>({default:mod.CreateEditActionCategoriesAdmin})));export const ActionsCategoriesAdmin=()=>{const t=useTranslations("@vitnode/blog.admin.categories.create");return _jsxs(Dialog,{children:[_jsxs(DialogTrigger,{render:_jsx(Button,{}),children:[_jsx(PlusIcon,{}),t("title")]}),_jsxs(DialogContent,{children:[_jsxs(DialogHeader,{children:[_jsx(DialogTitle,{children:t("title")}),_jsx(DialogDescription,{children:t("desc")})]}),_jsx(React.Suspense,{fallback:_jsx(Loader,{}),children:_jsx(CreateEditActionCategoriesAdmin,{})})]})]})};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { zodCreateCategorySchema } from "../../../../../api/modules/admin/categories/routes/create.route.js";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
declare const CreateEditActionCategoriesAdmin: ({ data }: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import type { zodCategorySchema } from "../../../../../api/modules/categories/routes/get.route";
|
|
3
|
+
export declare const CreateEditActionCategoriesAdmin: ({ data, }: {
|
|
4
|
+
data?: z.infer<typeof zodCategorySchema> & {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
8
7
|
}) => import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { CreateEditActionCategoriesAdmin };
|
|
11
8
|
//# sourceMappingURL=create-edit.d.ts.map
|