@easyv/admin-utils
Advanced tools
Comparing version 0.0.3-beta.1 to 0.0.3-beta.2
@@ -314,17 +314,17 @@ type ComponentConfig = any[]; | ||
interface FetchRequest { | ||
url: string | ||
params?: Record<string, any> | ||
query?: Record<string, any> | ||
body?: string | FormData | ||
keys?: unknown[] | ||
url: string; | ||
params?: Record<string, any>; | ||
query?: Record<string, any>; | ||
body?: string | FormData; | ||
keys?: unknown[]; | ||
options?: { | ||
headers?: HeadersInit // Record<string, unknown> | ||
credentials?: 'omit' | 'same-origin' | 'include' | ||
signal?: AbortSignal | ||
hideError?: boolean | ||
error?: (...args) => void | ||
} | ||
headers?: HeadersInit; // Record<string, unknown> | ||
credentials?: 'omit' | 'same-origin' | 'include'; | ||
signal?: AbortSignal; | ||
hideError?: boolean; | ||
error?: (...args) => void; | ||
}; | ||
} | ||
declare function request({ url, params, query, body, options }: FetchRequest): Promise<Response>; | ||
declare function request({ url, params, query, body, options, }: FetchRequest): Promise<Response>; | ||
@@ -331,0 +331,0 @@ /** |
{ | ||
"name": "@easyv/admin-utils", | ||
"version": "0.0.3-beta.1", | ||
"version": "0.0.3-beta.2", | ||
"description": "easyv/twin 公共 utils 集合", | ||
@@ -5,0 +5,0 @@ "types": "./dist/types/index.d.ts", |
@@ -1,46 +0,49 @@ | ||
# Modern.js Package | ||
# EasyV 平台侧 utils 合集 | ||
## Setup | ||
**用途**: 主要解决不同项目(easyv/twin)使用相同函数,维护起来麻烦且易漏 | ||
Install the dependencies: | ||
**目标**: 平台内部项目公共函数大合集 | ||
```bash | ||
pnpm run install | ||
``` | ||
## 安装 | ||
## Get Started | ||
`pnpm add @easyv/admin-utils` | ||
Run and debug the module: | ||
`npm install @easyv/admin-utils` | ||
```bash | ||
pnpm run dev | ||
``` | ||
`yarn add @easyv/admin-utils` | ||
Run test cases: | ||
## 用法 | ||
```bash | ||
pnpm run test | ||
``` | ||
**当前主要分为以下四类** (按照业务划分) | ||
Build the module for production: | ||
- twin | ||
- gui | ||
- easyv | ||
- common | ||
```bash | ||
pnpm run build | ||
``` | ||
## 贡献 | ||
Enable optional features: | ||
易知微引擎团队负责维护 | ||
```bash | ||
pnpm run new | ||
``` | ||
## 联系方式 | ||
Other commands: | ||
若有需求可直接 pr 或者联系当前易知微引擎团队主管@逍遥 | ||
```bash | ||
pnpm run lint # Lint and fix source files | ||
pnpm run change # Add a new changeset | ||
pnpm run bump # Update version and changelog via changeset | ||
pnpm run release # Release the package | ||
``` | ||
## 附录 | ||
For more information, see the [Modern.js Module documentation](https://modernjs.dev/module-tools/en). | ||
包含任何其他相关信息,例如: | ||
- 常见问题解答 | ||
问:后端有使用吗? | ||
答:后端前端共同使用了 `src/easyv/theme*.ts`,用于 easyv 主题替换功能 | ||
*** | ||
问:gui 是@easyv/gui 全量 utils 吗? | ||
答:是全量 (@easyv/gui@1.20.6) | ||
- 已知问题 | ||
- 更新日志 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
155134
4532
50
4