@vitnode/blog 1.2.0-canary.16 → 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.
Files changed (80) hide show
  1. package/dist/src/api/modules/categories/categories.module.d.ts +343 -0
  2. package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -0
  3. package/dist/src/api/modules/categories/categories.module.js +1 -0
  4. package/dist/src/api/modules/categories/routes/create.route.d.ts +79 -0
  5. package/dist/src/api/modules/categories/routes/create.route.d.ts.map +1 -0
  6. package/dist/src/api/modules/categories/routes/create.route.js +1 -0
  7. package/dist/src/api/modules/categories/routes/delete.route.d.ts +40 -0
  8. package/dist/src/api/modules/categories/routes/delete.route.d.ts.map +1 -0
  9. package/dist/src/api/modules/categories/routes/delete.route.js +1 -0
  10. package/dist/src/api/modules/categories/routes/edit.route.d.ts +100 -0
  11. package/dist/src/api/modules/categories/routes/edit.route.d.ts.map +1 -0
  12. package/dist/src/api/modules/categories/routes/edit.route.js +1 -0
  13. package/dist/src/api/modules/categories/routes/get.route.d.ts +148 -0
  14. package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -0
  15. package/dist/src/api/modules/categories/routes/get.route.js +1 -0
  16. package/dist/src/api/modules/posts/posts.module.d.ts +448 -0
  17. package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -0
  18. package/dist/src/api/modules/posts/posts.module.js +1 -0
  19. package/dist/src/api/modules/posts/routes/create.route.d.ts +109 -0
  20. package/dist/src/api/modules/posts/routes/create.route.d.ts.map +1 -0
  21. package/dist/src/api/modules/posts/routes/create.route.js +1 -0
  22. package/dist/src/api/modules/posts/routes/delete.route.d.ts +40 -0
  23. package/dist/src/api/modules/posts/routes/delete.route.d.ts.map +1 -0
  24. package/dist/src/api/modules/posts/routes/delete.route.js +1 -0
  25. package/dist/src/api/modules/posts/routes/edit.route.d.ts +127 -0
  26. package/dist/src/api/modules/posts/routes/edit.route.d.ts.map +1 -0
  27. package/dist/src/api/modules/posts/routes/edit.route.js +1 -0
  28. package/dist/src/api/modules/posts/routes/get.route.d.ts +208 -0
  29. package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -0
  30. package/dist/src/api/modules/posts/routes/get.route.js +1 -0
  31. package/dist/src/app_admin/blog/categories/page.d.ts +5 -0
  32. package/dist/src/app_admin/blog/categories/page.d.ts.map +1 -0
  33. package/dist/src/app_admin/blog/categories/page.js +1 -0
  34. package/dist/src/config.api.d.ts +2 -0
  35. package/dist/src/config.api.d.ts.map +1 -0
  36. package/dist/src/config.api.js +1 -0
  37. package/dist/src/config.d.ts +4 -0
  38. package/dist/src/config.d.ts.map +1 -0
  39. package/dist/src/config.js +1 -0
  40. package/dist/src/database/categories.d.ts +97 -0
  41. package/dist/src/database/categories.d.ts.map +1 -0
  42. package/dist/src/database/categories.js +1 -0
  43. package/{src/database/index.ts → dist/src/database/index.d.ts} +1 -3
  44. package/dist/src/database/index.d.ts.map +1 -0
  45. package/dist/src/database/index.js +1 -0
  46. package/dist/src/database/posts.d.ts +131 -0
  47. package/dist/src/database/posts.d.ts.map +1 -0
  48. package/dist/src/database/posts.js +1 -0
  49. package/dist/src/database/relations.d.ts +7 -0
  50. package/dist/src/database/relations.d.ts.map +1 -0
  51. package/dist/src/database/relations.js +1 -0
  52. package/dist/src/plugin.d.ts +2 -0
  53. package/dist/src/plugin.d.ts.map +1 -0
  54. package/dist/src/plugin.js +1 -0
  55. package/dist/src/views/admin/categories/actions/actions.d.ts +2 -0
  56. package/dist/src/views/admin/categories/actions/actions.d.ts.map +1 -0
  57. package/dist/src/views/admin/categories/actions/actions.js +1 -0
  58. package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts +8 -0
  59. package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts.map +1 -0
  60. package/dist/src/views/admin/categories/actions/create-edit/create-edit.js +1 -0
  61. package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts +11 -0
  62. package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts.map +1 -0
  63. package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js +1 -0
  64. package/dist/src/views/admin/categories/categories-admin-view.d.ts +4 -0
  65. package/dist/src/views/admin/categories/categories-admin-view.d.ts.map +1 -0
  66. package/dist/src/views/admin/categories/categories-admin-view.js +1 -0
  67. package/dist/src/views/admin/categories/row-actions/delete/delete-action.d.ts +5 -0
  68. package/dist/src/views/admin/categories/row-actions/delete/delete-action.d.ts.map +1 -0
  69. package/dist/src/views/admin/categories/row-actions/delete/delete-action.js +1 -0
  70. package/dist/src/views/admin/categories/row-actions/delete/mutation-api.d.ts +4 -0
  71. package/dist/src/views/admin/categories/row-actions/delete/mutation-api.d.ts.map +1 -0
  72. package/dist/src/views/admin/categories/row-actions/delete/mutation-api.js +1 -0
  73. package/dist/src/views/admin/categories/row-actions/edit-action.d.ts +9 -0
  74. package/dist/src/views/admin/categories/row-actions/edit-action.d.ts.map +1 -0
  75. package/dist/src/views/admin/categories/row-actions/edit-action.js +1 -0
  76. package/dist/tsconfig.tsbuildinfo +1 -0
  77. package/package.json +3 -3
  78. package/src/database/categories.ts +0 -12
  79. package/src/database/posts.ts +0 -19
  80. 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.16",
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.16"
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.16"
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();
@@ -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
- );