Skip to content

Commit c040bf1

Browse files
committed
chore: Update vitnode
1 parent 7fd095c commit c040bf1

File tree

10 files changed

+854
-527
lines changed

10 files changed

+854
-527
lines changed

apps/backend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"react": "^19.0.0",
2929
"react-dom": "^19.0.0",
3030
"reflect-metadata": "^0.2.2",
31-
"vitnode-backend": "0.1.0-rc.0"
31+
"vitnode-backend": "0.1.1"
3232
},
3333
"devDependencies": {
3434
"@nestjs/cli": "^10.4.9",
3535
"@nestjs/schematics": "^10.2.3",
3636
"@swc/cli": "^0.5.2",
3737
"@types/express": "^5.0.0",
38-
"@types/node": "^22.10.2",
38+
"@types/node": "^22.10.5",
3939
"@types/react": "^19.0.2",
4040
"cross-env": "^7.0.3",
41-
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
41+
"eslint-config-typescript-vitnode": "0.1.1",
4242
"shared": "workspace:*",
4343
"typescript": "^5.7.2",
44-
"vitnode-shared": "0.1.0-rc.0"
44+
"vitnode-shared": "0.1.1"
4545
}
4646
}

apps/backend/src/main.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { INestApplication } from '@nestjs/common';
1+
import { INestApplication, NestApplicationOptions } from '@nestjs/common';
22
import { NestFactory } from '@nestjs/core';
3-
import { nestjsMainApp } from 'vitnode-backend/main';
3+
import { nestFactoryOptions, nestjsMainApp } from 'vitnode-backend/main';
44

55
import { AppModule } from './app.module';
66

77
async function bootstrap() {
8-
const app: INestApplication = await NestFactory.create(AppModule);
8+
const options: NestApplicationOptions = nestFactoryOptions;
9+
const app: INestApplication = await NestFactory.create(AppModule, options);
910

1011
void nestjsMainApp(app, {});
1112
}

apps/backend/src/plugins/blog/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"keywords": []
1919
}
2020
],
21-
"version": "0.0.2",
22-
"version_code": 2
21+
"version": "1.0.0",
22+
"version_code": 3
2323
}

apps/frontend/global.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import type blog from '@/plugins/blog/langs/en.json';
44

55
type Messages = typeof core & typeof admin & typeof blog;
66

7-
declare global {
8-
interface IntlMessages extends Messages {}
7+
declare module 'next-intl' {
8+
interface AppConfig {
9+
Messages: Messages;
10+
}
911
}

apps/frontend/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
"geist": "^1.3.1",
1717
"lucide-react": "^0.469.0",
1818
"next": "^15.1.3",
19-
"next-intl": "^3.26.3",
19+
"next-intl": "4.0.0-beta-ddd5ae5",
2020
"react": "^19.0.0",
2121
"react-dom": "^19.0.0",
2222
"react-hook-form": "^7.54.2",
2323
"recharts": "^2.15.0",
2424
"sonner": "^1.7.1",
25-
"vitnode-frontend": "0.1.0-rc.0",
25+
"vitnode-frontend": "0.1.1",
2626
"zod": "^3.24.1"
2727
},
2828
"devDependencies": {
29-
"@types/node": "^22.10.2",
29+
"@types/node": "^22.10.5",
3030
"@types/react": "^19.0.2",
3131
"@types/react-dom": "^19.0.2",
3232
"autoprefixer": "^10.4.20",
33-
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
33+
"eslint-config-typescript-vitnode": "0.1.1",
3434
"postcss": "^8.4.49",
3535
"shared": "workspace:*",
3636
"tailwindcss": "^3.4.17",
3737
"typescript": "^5.7.2",
38-
"vitnode-shared": "0.1.0-rc.0"
38+
"vitnode-shared": "0.1.1"
3939
}
4040
}

apps/frontend/src/plugins/admin/langs/en.json

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,17 @@
8383
},
8484
"enable": "Enable",
8585
"disable": "Disable",
86-
"how_to_enable": "How to enable?"
86+
"how_to_enable": "How to enable?",
87+
"error_logs": {
88+
"title": "Error Logs",
89+
"desc": "If you have any issues with your website, you can check the error logs here.",
90+
"name": "Name",
91+
"message": "Message",
92+
"created": "Created",
93+
"more_info": "More Info",
94+
"url": "URL",
95+
"headers": "Headers"
96+
}
8797
},
8898
"email": {
8999
"hello": "Hello"
@@ -267,10 +277,6 @@
267277
"label": "Icon",
268278
"desc": "Represent your website on devices (PWA). Recommended size: 512x512px."
269279
},
270-
"favicon": {
271-
"label": "Favicon",
272-
"desc": "Icon in browser tab. Recommended size: 32x32px."
273-
},
274280
"display": {
275281
"label": "Display",
276282
"desc": "The display property controls how the app is displayed.",
@@ -347,32 +353,6 @@
347353
"success": "Navigation has been deleted."
348354
}
349355
},
350-
"permissions-admin": {
351-
"title": "Admin Permissions",
352-
"page_permission": "Page: <page></page>",
353-
"lang_key": "Lang Key: <key></key>",
354-
"create_edit": {
355-
"id": {
356-
"label": "ID",
357-
"desc": "Unique ID for this permission.",
358-
"exists": "Permission with this ID already exists."
359-
},
360-
"parent": {
361-
"label": "Group",
362-
"null": "No group permission"
363-
},
364-
"create_success": "Permission has been created."
365-
},
366-
"delete": {
367-
"desc": "This action will delete the permission <id></id>. Remember to delete all conditions associated with this permission.",
368-
"submit": "Yes, delete permission",
369-
"success": "Permission has been deleted.",
370-
"children_warn": {
371-
"title": "This permission has children",
372-
"desc": "If you delete this permission, all children will be deleted too."
373-
}
374-
}
375-
},
376356
"export": {
377357
"title": "Export Plugin",
378358
"desc": "Choose version to export.",
@@ -578,6 +558,22 @@
578558
"success": "File has been deleted.",
579559
"submit": "Yes, delete file"
580560
}
561+
},
562+
"cron": {
563+
"title": "Cron Jobs",
564+
"desc": "Tasks that run automatically at a specific time.",
565+
"name": "Name",
566+
"schedule": "Schedule",
567+
"next_date": "Next Date",
568+
"running": {
569+
"title": "Status",
570+
"enabled": "Enabled",
571+
"disabled": "Disabled"
572+
},
573+
"last_execution": {
574+
"title": "Last Execution",
575+
"never": "Never"
576+
}
581577
}
582578
}
583579
},

apps/frontend/src/plugins/core/langs/en.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@
365365
"styles_editor": "Editor",
366366
"langs": "Languages",
367367
"advanced": "Advanced",
368-
"advanced_files": "Files"
368+
"advanced_files": "Files",
369+
"advanced_cron": "Cron Jobs"
369370
},
370371
"admin_permissions": {
371372
"dashboard": "Dashboard",
@@ -383,7 +384,8 @@
383384
"can_manage_styles_editor": "Can manage editor?",
384385
"can_manage_langs": "Can manage languages?",
385386
"advanced": "Advanced",
386-
"can_manage_advanced_files": "Can manage files?"
387+
"can_manage_advanced_files": "Can manage files?",
388+
"can_manage_advanced_cron": "Can manage cron jobs?"
387389
}
388390
},
389391
"admin_members": {

apps/shared/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
},
2222
"devDependencies": {
2323
"@types/multer": "^1.4.12",
24-
"@types/node": "^22.10.2",
24+
"@types/node": "^22.10.5",
2525
"class-transformer": "^0.5.1",
2626
"class-validator": "^0.14.1",
27-
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
27+
"eslint-config-typescript-vitnode": "0.1.1",
2828
"typescript": "^5.7.2",
29-
"vitnode-shared": "0.1.0-rc.0"
29+
"vitnode-shared": "0.1.1"
3030
}
3131
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"overrides": {},
1717
"devDependencies": {
18-
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
18+
"eslint-config-typescript-vitnode": "0.1.1",
1919
"turbo": "^2.3.3"
2020
},
2121
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)