@vitnode/blog 1.2.0-canary.22 → 1.2.0-canary.23

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 (31) hide show
  1. package/dist/src/api/modules/categories/categories.module.d.ts +5 -0
  2. package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
  3. package/dist/src/api/modules/categories/routes/create.route.d.ts.map +1 -1
  4. package/dist/src/api/modules/categories/routes/create.route.js +1 -1
  5. package/dist/src/api/modules/categories/routes/get.route.d.ts +5 -0
  6. package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
  7. package/dist/src/api/modules/categories/routes/get.route.js +1 -1
  8. package/dist/src/api/modules/posts/routes/create.route.js +1 -1
  9. package/dist/src/api/modules/posts/routes/get.route.d.ts +48 -0
  10. package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
  11. package/dist/src/api/modules/posts/routes/get.route.js +1 -1
  12. package/dist/src/app_admin/blog/categories/page.js +1 -1
  13. package/dist/src/app_admin/blog/posts/page.js +1 -1
  14. package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts.map +1 -1
  15. package/dist/src/views/admin/categories/actions/create-edit/create-edit.js +1 -1
  16. package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts +2 -2
  17. package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts.map +1 -1
  18. package/dist/src/views/admin/posts/actions/create-edit/create-edit.js +1 -1
  19. package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts +11 -0
  20. package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts.map +1 -0
  21. package/dist/src/views/admin/posts/actions/create-edit/mutation-api.js +1 -0
  22. package/dist/src/views/admin/posts/posts-admin-view.d.ts.map +1 -1
  23. package/dist/src/views/admin/posts/posts-admin-view.js +1 -1
  24. package/dist/src/views/admin/posts/row-actions/edit-action.d.ts +9 -0
  25. package/dist/src/views/admin/posts/row-actions/edit-action.d.ts.map +1 -0
  26. package/dist/src/views/admin/posts/row-actions/edit-action.js +1 -0
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +3 -3
  29. package/src/app_admin/blog/categories/page.tsx +1 -1
  30. package/src/app_admin/blog/posts/page.tsx +1 -1
  31. package/src/locales/en.json +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/blog",
3
- "version": "1.2.0-canary.22",
3
+ "version": "1.2.0-canary.23",
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.22"
42
+ "@vitnode/core": "1.2.0-canary.23"
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.22"
53
+ "@vitnode/eslint-config": "1.2.0-canary.23"
54
54
  },
55
55
  "scripts": {
56
56
  "build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
@@ -26,7 +26,7 @@ export default async function CategoriesPage(
26
26
 
27
27
  return (
28
28
  <I18nProvider namespaces={['@vitnode/blog.admin.categories']}>
29
- <div className="container mx-auto p-4">
29
+ <div className="p-4">
30
30
  <HeaderContent desc={t('desc')} h1={tNav('categories')}>
31
31
  <ActionsCategoriesAdmin />
32
32
  </HeaderContent>
@@ -25,7 +25,7 @@ export default async function PostsPage(
25
25
 
26
26
  return (
27
27
  <I18nProvider namespaces={['@vitnode/blog.admin.posts']}>
28
- <div className="container mx-auto p-4">
28
+ <div className="p-4">
29
29
  <HeaderContent desc={t('desc')} h1={tNav('posts')}>
30
30
  <ActionsPostsAdmin />
31
31
  </HeaderContent>
@@ -45,8 +45,12 @@
45
45
  "title": "Create Post",
46
46
  "desc": "Write a new article for your blog.",
47
47
  "form": {
48
- "title": "Title",
49
- "content": "Content"
48
+ "title": {
49
+ "label": "Title",
50
+ "already_exists": "This post title already exists."
51
+ },
52
+ "content": "Content",
53
+ "category": "Category"
50
54
  },
51
55
  "submit": "Create Post"
52
56
  },