@vitnode/blog 1.2.0-canary.21 → 1.2.0-canary.22
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/routes/edit.route.d.ts +0 -7
- package/dist/src/api/modules/categories/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/routes/edit.route.js +1 -1
- package/dist/src/api/modules/posts/routes/edit.route.d.ts +0 -13
- package/dist/src/api/modules/posts/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/posts/routes/edit.route.js +1 -1
- package/dist/src/app_admin/blog/posts/page.d.ts.map +1 -1
- package/dist/src/app_admin/blog/posts/page.js +1 -1
- package/dist/src/views/admin/categories/row-actions/delete/delete-action.js +1 -1
- package/dist/src/views/admin/posts/actions/actions.d.ts +2 -0
- package/dist/src/views/admin/posts/actions/actions.d.ts.map +1 -0
- package/dist/src/views/admin/posts/actions/actions.js +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts +8 -0
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts.map +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.js +1 -0
- package/dist/src/views/admin/posts/row-actions/delete/delete-action.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/app_admin/blog/posts/page.tsx +4 -1
- package/src/locales/en.json +13 -0
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.22",
|
|
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.22"
|
|
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.22"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
|
|
@@ -4,6 +4,7 @@ import { I18nProvider } from '@vitnode/core/components/i18n-provider';
|
|
|
4
4
|
import { HeaderContent } from '@vitnode/core/components/ui/header-content';
|
|
5
5
|
import { getTranslations } from 'next-intl/server';
|
|
6
6
|
|
|
7
|
+
import { ActionsPostsAdmin } from '@/views/admin/posts/actions/actions';
|
|
7
8
|
import { PostsAdminView } from '@/views/admin/posts/posts-admin-view';
|
|
8
9
|
|
|
9
10
|
export const generateMetadata = async (): Promise<Metadata> => {
|
|
@@ -25,7 +26,9 @@ export default async function PostsPage(
|
|
|
25
26
|
return (
|
|
26
27
|
<I18nProvider namespaces={['@vitnode/blog.admin.posts']}>
|
|
27
28
|
<div className="container mx-auto p-4">
|
|
28
|
-
<HeaderContent desc={t('desc')} h1={tNav('posts')}
|
|
29
|
+
<HeaderContent desc={t('desc')} h1={tNav('posts')}>
|
|
30
|
+
<ActionsPostsAdmin />
|
|
31
|
+
</HeaderContent>
|
|
29
32
|
|
|
30
33
|
<PostsAdminView {...params} />
|
|
31
34
|
</div>
|
package/src/locales/en.json
CHANGED
|
@@ -41,6 +41,19 @@
|
|
|
41
41
|
"category": "Category",
|
|
42
42
|
"updated_at": "Updated At"
|
|
43
43
|
},
|
|
44
|
+
"create": {
|
|
45
|
+
"title": "Create Post",
|
|
46
|
+
"desc": "Write a new article for your blog.",
|
|
47
|
+
"form": {
|
|
48
|
+
"title": "Title",
|
|
49
|
+
"content": "Content"
|
|
50
|
+
},
|
|
51
|
+
"submit": "Create Post"
|
|
52
|
+
},
|
|
53
|
+
"edit": {
|
|
54
|
+
"title": "Edit Post",
|
|
55
|
+
"submit": "Save Changes"
|
|
56
|
+
},
|
|
44
57
|
"delete": {
|
|
45
58
|
"title": "Delete Post",
|
|
46
59
|
"desc": "Are you sure you want to delete <title></title> post? This action cannot be undone.",
|