Skip to content

Commit

Permalink
chore: Update vitnode
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jan 4, 2025
1 parent 7fd095c commit c040bf1
Show file tree
Hide file tree
Showing 10 changed files with 854 additions and 527 deletions.
8 changes: 4 additions & 4 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"reflect-metadata": "^0.2.2",
"vitnode-backend": "0.1.0-rc.0"
"vitnode-backend": "0.1.1"
},
"devDependencies": {
"@nestjs/cli": "^10.4.9",
"@nestjs/schematics": "^10.2.3",
"@swc/cli": "^0.5.2",
"@types/express": "^5.0.0",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"@types/react": "^19.0.2",
"cross-env": "^7.0.3",
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
"eslint-config-typescript-vitnode": "0.1.1",
"shared": "workspace:*",
"typescript": "^5.7.2",
"vitnode-shared": "0.1.0-rc.0"
"vitnode-shared": "0.1.1"
}
}
7 changes: 4 additions & 3 deletions apps/backend/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { INestApplication } from '@nestjs/common';
import { INestApplication, NestApplicationOptions } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { nestjsMainApp } from 'vitnode-backend/main';
import { nestFactoryOptions, nestjsMainApp } from 'vitnode-backend/main';

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

async function bootstrap() {
const app: INestApplication = await NestFactory.create(AppModule);
const options: NestApplicationOptions = nestFactoryOptions;
const app: INestApplication = await NestFactory.create(AppModule, options);

void nestjsMainApp(app, {});
}
Expand Down
4 changes: 2 additions & 2 deletions apps/backend/src/plugins/blog/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"keywords": []
}
],
"version": "0.0.2",
"version_code": 2
"version": "1.0.0",
"version_code": 3
}
6 changes: 4 additions & 2 deletions apps/frontend/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import type blog from '@/plugins/blog/langs/en.json';

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

declare global {
interface IntlMessages extends Messages {}
declare module 'next-intl' {
interface AppConfig {
Messages: Messages;
}
}
10 changes: 5 additions & 5 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@
"geist": "^1.3.1",
"lucide-react": "^0.469.0",
"next": "^15.1.3",
"next-intl": "^3.26.3",
"next-intl": "4.0.0-beta-ddd5ae5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"recharts": "^2.15.0",
"sonner": "^1.7.1",
"vitnode-frontend": "0.1.0-rc.0",
"vitnode-frontend": "0.1.1",
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"autoprefixer": "^10.4.20",
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
"eslint-config-typescript-vitnode": "0.1.1",
"postcss": "^8.4.49",
"shared": "workspace:*",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"vitnode-shared": "0.1.0-rc.0"
"vitnode-shared": "0.1.1"
}
}
58 changes: 27 additions & 31 deletions apps/frontend/src/plugins/admin/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,17 @@
},
"enable": "Enable",
"disable": "Disable",
"how_to_enable": "How to enable?"
"how_to_enable": "How to enable?",
"error_logs": {
"title": "Error Logs",
"desc": "If you have any issues with your website, you can check the error logs here.",
"name": "Name",
"message": "Message",
"created": "Created",
"more_info": "More Info",
"url": "URL",
"headers": "Headers"
}
},
"email": {
"hello": "Hello"
Expand Down Expand Up @@ -267,10 +277,6 @@
"label": "Icon",
"desc": "Represent your website on devices (PWA). Recommended size: 512x512px."
},
"favicon": {
"label": "Favicon",
"desc": "Icon in browser tab. Recommended size: 32x32px."
},
"display": {
"label": "Display",
"desc": "The display property controls how the app is displayed.",
Expand Down Expand Up @@ -347,32 +353,6 @@
"success": "Navigation has been deleted."
}
},
"permissions-admin": {
"title": "Admin Permissions",
"page_permission": "Page: <page></page>",
"lang_key": "Lang Key: <key></key>",
"create_edit": {
"id": {
"label": "ID",
"desc": "Unique ID for this permission.",
"exists": "Permission with this ID already exists."
},
"parent": {
"label": "Group",
"null": "No group permission"
},
"create_success": "Permission has been created."
},
"delete": {
"desc": "This action will delete the permission <id></id>. Remember to delete all conditions associated with this permission.",
"submit": "Yes, delete permission",
"success": "Permission has been deleted.",
"children_warn": {
"title": "This permission has children",
"desc": "If you delete this permission, all children will be deleted too."
}
}
},
"export": {
"title": "Export Plugin",
"desc": "Choose version to export.",
Expand Down Expand Up @@ -578,6 +558,22 @@
"success": "File has been deleted.",
"submit": "Yes, delete file"
}
},
"cron": {
"title": "Cron Jobs",
"desc": "Tasks that run automatically at a specific time.",
"name": "Name",
"schedule": "Schedule",
"next_date": "Next Date",
"running": {
"title": "Status",
"enabled": "Enabled",
"disabled": "Disabled"
},
"last_execution": {
"title": "Last Execution",
"never": "Never"
}
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions apps/frontend/src/plugins/core/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@
"styles_editor": "Editor",
"langs": "Languages",
"advanced": "Advanced",
"advanced_files": "Files"
"advanced_files": "Files",
"advanced_cron": "Cron Jobs"
},
"admin_permissions": {
"dashboard": "Dashboard",
Expand All @@ -383,7 +384,8 @@
"can_manage_styles_editor": "Can manage editor?",
"can_manage_langs": "Can manage languages?",
"advanced": "Advanced",
"can_manage_advanced_files": "Can manage files?"
"can_manage_advanced_files": "Can manage files?",
"can_manage_advanced_cron": "Can manage cron jobs?"
}
},
"admin_members": {
Expand Down
6 changes: 3 additions & 3 deletions apps/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
},
"devDependencies": {
"@types/multer": "^1.4.12",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
"eslint-config-typescript-vitnode": "0.1.1",
"typescript": "^5.7.2",
"vitnode-shared": "0.1.0-rc.0"
"vitnode-shared": "0.1.1"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"overrides": {},
"devDependencies": {
"eslint-config-typescript-vitnode": "0.1.0-rc.0",
"eslint-config-typescript-vitnode": "0.1.1",
"turbo": "^2.3.3"
},
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit c040bf1

Please sign in to comment.