@vitnode/blog 1.2.0-canary.17 → 1.2.0-canary.18
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/modules/categories/categories.module.d.ts +343 -0
- package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -0
- package/dist/src/api/modules/categories/categories.module.js +1 -0
- package/dist/src/api/modules/categories/routes/create.route.d.ts +79 -0
- package/dist/src/api/modules/categories/routes/create.route.d.ts.map +1 -0
- package/dist/src/api/modules/categories/routes/create.route.js +1 -0
- package/dist/src/api/modules/categories/routes/delete.route.d.ts +40 -0
- package/dist/src/api/modules/categories/routes/delete.route.d.ts.map +1 -0
- package/dist/src/api/modules/categories/routes/delete.route.js +1 -0
- package/dist/src/api/modules/categories/routes/edit.route.d.ts +100 -0
- package/dist/src/api/modules/categories/routes/edit.route.d.ts.map +1 -0
- package/dist/src/api/modules/categories/routes/edit.route.js +1 -0
- package/dist/src/api/modules/categories/routes/get.route.d.ts +148 -0
- package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -0
- package/dist/src/api/modules/categories/routes/get.route.js +1 -0
- package/dist/src/api/modules/posts/posts.module.d.ts +448 -0
- package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -0
- package/dist/src/api/modules/posts/posts.module.js +1 -0
- package/dist/src/api/modules/posts/routes/create.route.d.ts +109 -0
- package/dist/src/api/modules/posts/routes/create.route.d.ts.map +1 -0
- package/dist/src/api/modules/posts/routes/create.route.js +1 -0
- package/dist/src/api/modules/posts/routes/delete.route.d.ts +40 -0
- package/dist/src/api/modules/posts/routes/delete.route.d.ts.map +1 -0
- package/dist/src/api/modules/posts/routes/delete.route.js +1 -0
- package/dist/src/api/modules/posts/routes/edit.route.d.ts +127 -0
- package/dist/src/api/modules/posts/routes/edit.route.d.ts.map +1 -0
- package/dist/src/api/modules/posts/routes/edit.route.js +1 -0
- package/dist/src/api/modules/posts/routes/get.route.d.ts +208 -0
- package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -0
- package/dist/src/api/modules/posts/routes/get.route.js +1 -0
- package/dist/src/app_admin/blog/categories/page.d.ts +5 -0
- package/dist/src/app_admin/blog/categories/page.d.ts.map +1 -0
- package/dist/src/app_admin/blog/categories/page.js +1 -0
- package/dist/src/config.api.d.ts +2 -0
- package/dist/src/config.api.d.ts.map +1 -0
- package/dist/src/config.api.js +1 -0
- package/dist/src/config.d.ts +4 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +1 -0
- package/dist/src/database/categories.d.ts +97 -0
- package/dist/src/database/categories.d.ts.map +1 -0
- package/dist/src/database/categories.js +1 -0
- package/{src/database/index.ts → dist/src/database/index.d.ts} +1 -3
- package/dist/src/database/index.d.ts.map +1 -0
- package/dist/src/database/index.js +1 -0
- package/dist/src/database/posts.d.ts +131 -0
- package/dist/src/database/posts.d.ts.map +1 -0
- package/dist/src/database/posts.js +1 -0
- package/dist/src/database/relations.d.ts +7 -0
- package/dist/src/database/relations.d.ts.map +1 -0
- package/dist/src/database/relations.js +1 -0
- package/dist/src/plugin.d.ts +2 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/plugin.js +1 -0
- package/dist/src/views/admin/categories/actions/actions.d.ts +2 -0
- package/dist/src/views/admin/categories/actions/actions.d.ts.map +1 -0
- package/dist/src/views/admin/categories/actions/actions.js +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts +8 -0
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts.map +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.js +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts +11 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js +1 -0
- package/dist/src/views/admin/categories/categories-admin-view.d.ts +4 -0
- package/dist/src/views/admin/categories/categories-admin-view.d.ts.map +1 -0
- package/dist/src/views/admin/categories/categories-admin-view.js +1 -0
- package/dist/src/views/admin/categories/row-actions/delete/delete-action.d.ts +5 -0
- package/dist/src/views/admin/categories/row-actions/delete/delete-action.d.ts.map +1 -0
- package/dist/src/views/admin/categories/row-actions/delete/delete-action.js +1 -0
- package/dist/src/views/admin/categories/row-actions/delete/mutation-api.d.ts +4 -0
- package/dist/src/views/admin/categories/row-actions/delete/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/categories/row-actions/delete/mutation-api.js +1 -0
- package/dist/src/views/admin/categories/row-actions/edit-action.d.ts +9 -0
- package/dist/src/views/admin/categories/row-actions/edit-action.d.ts.map +1 -0
- package/dist/src/views/admin/categories/row-actions/edit-action.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +3 -3
- package/src/database/categories.ts +0 -12
- package/src/database/posts.ts +0 -19
- package/src/database/relations.ts +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitnode/blog",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.18",
|
|
4
4
|
"description": "Blog plugin for VitNode, providing a blogging platform with Next.js and Hono.js.",
|
|
5
5
|
"author": "VitNode Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-hook-form": "^7.57.0",
|
|
40
40
|
"sonner": "^2.0.5",
|
|
41
41
|
"zod": "^3.25.56",
|
|
42
|
-
"@vitnode/core": "1.2.0-canary.
|
|
42
|
+
"@vitnode/core": "1.2.0-canary.18"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@swc/cli": "0.6.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint": "^9.25.1",
|
|
51
51
|
"tsc-alias": "^1.8.15",
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
|
-
"@vitnode/eslint-config": "1.2.0-canary.
|
|
53
|
+
"@vitnode/eslint-config": "1.2.0-canary.18"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { pgTable } from 'drizzle-orm/pg-core';
|
|
2
|
-
|
|
3
|
-
export const blog_categories = pgTable('blog_categories', t => ({
|
|
4
|
-
id: t.serial().primaryKey(),
|
|
5
|
-
title: t.varchar({ length: 100 }).notNull(),
|
|
6
|
-
createdAt: t.timestamp().notNull().defaultNow(),
|
|
7
|
-
updatedAt: t
|
|
8
|
-
.timestamp()
|
|
9
|
-
.notNull()
|
|
10
|
-
.$onUpdate(() => new Date()),
|
|
11
|
-
titleSeo: t.varchar({ length: 100 }).notNull().unique().default(''),
|
|
12
|
-
})).enableRLS();
|
package/src/database/posts.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { pgTable } from 'drizzle-orm/pg-core';
|
|
2
|
-
|
|
3
|
-
import { blog_categories } from './categories';
|
|
4
|
-
|
|
5
|
-
export const blog_posts = pgTable('blog_posts', t => ({
|
|
6
|
-
id: t.serial().primaryKey(),
|
|
7
|
-
title: t.varchar({ length: 255 }).notNull(),
|
|
8
|
-
titleSeo: t.varchar({ length: 255 }).notNull().unique(),
|
|
9
|
-
content: t.text().notNull(),
|
|
10
|
-
categoryId: t
|
|
11
|
-
.integer()
|
|
12
|
-
.references(() => blog_categories.id)
|
|
13
|
-
.notNull(),
|
|
14
|
-
createdAt: t.timestamp().notNull().defaultNow(),
|
|
15
|
-
updatedAt: t
|
|
16
|
-
.timestamp()
|
|
17
|
-
.notNull()
|
|
18
|
-
.$onUpdate(() => new Date()),
|
|
19
|
-
})).enableRLS();
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { relations } from 'drizzle-orm';
|
|
2
|
-
|
|
3
|
-
import { blog_categories } from './categories';
|
|
4
|
-
import { blog_posts } from './posts';
|
|
5
|
-
|
|
6
|
-
export const blog_posts_relations = relations(blog_posts, ({ one }) => ({
|
|
7
|
-
category: one(blog_categories, {
|
|
8
|
-
fields: [blog_posts.categoryId],
|
|
9
|
-
references: [blog_categories.id],
|
|
10
|
-
}),
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
export const blog_categories_relations = relations(
|
|
14
|
-
blog_categories,
|
|
15
|
-
({ many }) => ({
|
|
16
|
-
posts: many(blog_posts),
|
|
17
|
-
}),
|
|
18
|
-
);
|