初始化

This commit is contained in:
2026-02-22 18:56:10 +08:00
commit 26677972a6
3112 changed files with 255972 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,18 @@
{
"name": "@easyflow/constants",
"version": "1.0.0",
"license": "MIT",
"type": "module",
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"dependencies": {
"@easyflow-core/shared": "workspace:*"
}
}

View File

@@ -0,0 +1,23 @@
/**
* @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',
},
];

View File

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

View File

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