Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled

Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
你的用户名
2025-11-04 15:37:50 +08:00
commit 237c7802e5
3674 changed files with 525172 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# @vben/constants
用于多个 `app` 公用的常量,继承了 `@vben-core/shared/constants` 的所有能力。业务上有通用常量可以放在这里。
## 用法
### 添加依赖
```bash
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/constants
```
### 使用
```ts
import { LOGIN_PATH } from '@vben/constants';
```

View File

@@ -0,0 +1,25 @@
{
"name": "@vben/constants",
"version": "5.5.8",
"homepage": "https://github.com/vbenjs/vue-vben-admin",
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
"directory": "packages/constants"
},
"license": "MIT",
"type": "module",
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"dependencies": {
"@vben-core/shared": "workspace:*"
}
}

View File

@@ -0,0 +1,45 @@
/**
* @zh_CN 登录页面 url 地址
*/
export const LOGIN_PATH = '/auth/login';
export interface LanguageOption {
label: string;
value: 'en-US' | 'zh-CN';
}
/**
* Supported languages
*/
export const SUPPORT_LANGUAGES: LanguageOption[] = [
{
label: '简体中文',
value: 'zh-CN',
},
{
label: 'English',
value: 'en-US',
},
];
/**
* 权限模式枚举
*/
export enum PermissionModeEnum {
// 角色权限
ROLE = 'ROLE',
// 后端权限菜单
BACK = 'BACK',
// 路由映射权限
ROUTE = 'ROUTE',
}
/**
* 权限缓存枚举
*/
export enum PermissionCacheEnum {
// 用户权限信息
USER_PERMISSION = 'USER_PERMISSION',
// 权限配置
PERMISSION_CONFIG = 'PERMISSION_CONFIG',
}

View File

@@ -0,0 +1,2 @@
export * from './core';
export * from '@vben-core/shared/constants';

View File

@@ -0,0 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@vben/tsconfig/web.json",
"include": ["src"],
"exclude": ["node_modules"]
}