@mxmweb/zui 1.1.10 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +38 -0
- package/.prettierignore +16 -0
- package/.prettierrc +17 -0
- package/.releaserc.json +36 -0
- package/CHANGELOG.md +58 -0
- package/CONTRIBUTING.md +111 -0
- package/NPMREADME.md +0 -0
- package/README.md +4 -0
- package/bash.exe.stackdump +40 -0
- package/components.json +21 -0
- package/dist/README.md +4 -0
- package/dist/assets/style.css +1 -0
- package/{elements → dist/elements}/DropdownMenu.d.ts +1 -0
- package/dist/examples/Dropdown.d.ts +2 -0
- package/{index.js → dist/index.js} +4 -2
- package/dist/package.json +30 -0
- package/eslint.config.js +92 -0
- package/index.html +13 -0
- package/package.json +39 -15
- package/postcss.config.cjs +19 -0
- package/public/mock.csv +16 -0
- package/public/mock_/345/211/257/346/234/254.csv +16 -0
- package/public/vite.svg +1 -0
- package/src/Preview.tsx +15 -0
- package/src/assets/img/excel.png +0 -0
- package/src/assets/img/img.png +0 -0
- package/src/assets/img/pdf.png +0 -0
- package/src/assets/img/ppt.png +0 -0
- package/src/assets/img/txt.png +0 -0
- package/src/assets/img/word.png +0 -0
- package/src/containers/DashboardContainer.tsx +507 -0
- package/src/containers/DockContainer.tsx +186 -0
- package/src/containers/style.css +37 -0
- package/src/elements/Button.tsx +118 -0
- package/src/elements/CustomDock.tsx +287 -0
- package/src/elements/DropDownButton.tsx +249 -0
- package/src/elements/DropdownMenu.tsx +186 -0
- package/src/elements/GoggleNavbar.tsx +184 -0
- package/src/elements/Uploader/README.md +249 -0
- package/src/elements/Uploader/UploadItem.tsx +298 -0
- package/src/elements/Uploader/example.tsx +95 -0
- package/src/elements/Uploader/index.tsx +702 -0
- package/src/elements/Uploader/styles.tsx +291 -0
- package/src/elements/Uploader/types.ts +119 -0
- package/src/elements/Uploader/utils.ts +200 -0
- package/src/elements/Uploader.tsx +3 -0
- package/src/examples/DockContainerExample.tsx +254 -0
- package/src/examples/Dropdown.tsx +27 -0
- package/src/icons/Icon.tsx +82 -0
- package/src/icons/index.tsx +92 -0
- package/src/icons/lazyIndex.tsx +49 -0
- package/src/icons/rag/csv.svg +3 -0
- package/src/icons/rag/document.svg +3 -0
- package/src/icons/rag/excel.svg +3 -0
- package/src/icons/rag/file.svg +3 -0
- package/src/icons/rag/folder.svg +5 -0
- package/src/icons/rag/json.svg +3 -0
- package/src/icons/rag/knowledgebase.svg +3 -0
- package/src/icons/rag/netretrive.svg +3 -0
- package/src/icons/rag/odf.svg +7 -0
- package/src/icons/rag/pdf.svg +3 -0
- package/src/icons/rag/pic.svg +3 -0
- package/src/icons/rag/ppt.svg +3 -0
- package/src/icons/rag/think.svg +6 -0
- package/src/icons/rag/txt.svg +3 -0
- package/src/icons/rag/url.svg +3 -0
- package/src/icons/rag/word.svg +3 -0
- package/src/icons/rag/wps.svg +3 -0
- package/src/icons/rag/zip.svg +7 -0
- package/src/lib_enter.ts +27 -0
- package/src/main.tsx +11 -0
- package/src/style.css +9 -0
- package/src/theme/styledTheme.tsx +253 -0
- package/src/type.d.ts +0 -0
- package/src/types/images.d.ts +12 -0
- package/src/types/svg-modules.d.ts +24 -0
- package/src/vite-env.d.ts +11 -0
- package/tailwind.config.js +170 -0
- package/tsconfig.app.json +29 -0
- package/tsconfig.app.tsbuildinfo +11 -0
- package/tsconfig.json +13 -0
- package/tsconfig.node.json +22 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/vite.config.ts +165 -0
- package/assets/style.css +0 -1
- /package/{Preview.d.ts → dist/Preview.d.ts} +0 -0
- /package/{containers → dist/containers}/DashboardContainer.d.ts +0 -0
- /package/{containers → dist/containers}/DockContainer.d.ts +0 -0
- /package/{elements → dist/elements}/Button.d.ts +0 -0
- /package/{elements → dist/elements}/CustomDock.d.ts +0 -0
- /package/{elements → dist/elements}/DropDownButton.d.ts +0 -0
- /package/{elements → dist/elements}/GoggleNavbar.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/UploadItem.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/example.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/index.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/styles.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/types.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader/utils.d.ts +0 -0
- /package/{elements → dist/elements}/Uploader.d.ts +0 -0
- /package/{examples → dist/examples}/DockContainerExample.d.ts +0 -0
- /package/{icons → dist/icons}/Icon.d.ts +0 -0
- /package/{icons → dist/icons}/Icon.tsx +0 -0
- /package/{icons → dist/icons}/index.d.ts +0 -0
- /package/{icons → dist/icons}/index.tsx +0 -0
- /package/{icons → dist/icons}/lazyIndex.d.ts +0 -0
- /package/{icons → dist/icons}/lazyIndex.tsx +0 -0
- /package/{icons → dist/icons}/rag/csv.svg +0 -0
- /package/{icons → dist/icons}/rag/document.svg +0 -0
- /package/{icons → dist/icons}/rag/excel.svg +0 -0
- /package/{icons → dist/icons}/rag/file.svg +0 -0
- /package/{icons → dist/icons}/rag/folder.svg +0 -0
- /package/{icons → dist/icons}/rag/json.svg +0 -0
- /package/{icons → dist/icons}/rag/knowledgebase.svg +0 -0
- /package/{icons → dist/icons}/rag/netretrive.svg +0 -0
- /package/{icons → dist/icons}/rag/odf.svg +0 -0
- /package/{icons → dist/icons}/rag/pdf.svg +0 -0
- /package/{icons → dist/icons}/rag/pic.svg +0 -0
- /package/{icons → dist/icons}/rag/ppt.svg +0 -0
- /package/{icons → dist/icons}/rag/think.svg +0 -0
- /package/{icons → dist/icons}/rag/txt.svg +0 -0
- /package/{icons → dist/icons}/rag/url.svg +0 -0
- /package/{icons → dist/icons}/rag/word.svg +0 -0
- /package/{icons → dist/icons}/rag/wps.svg +0 -0
- /package/{icons → dist/icons}/rag/zip.svg +0 -0
- /package/{lib_enter.d.ts → dist/lib_enter.d.ts} +0 -0
- /package/{main.d.ts → dist/main.d.ts} +0 -0
- /package/{mock.csv → dist/mock.csv} +0 -0
- /package/{mock_ → dist/mock_}/345/211/257/346/234/254.csv" +0 -0
- /package/{theme → dist/theme}/styledTheme.d.ts +0 -0
- /package/{vite.svg → dist/vite.svg} +0 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
+
|
|
3
|
+
# top-most EditorConfig file
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
# Unix-style newlines with a newline ending every file
|
|
7
|
+
[*]
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
|
|
13
|
+
# TypeScript and JavaScript files
|
|
14
|
+
[*.{ts,tsx,js,jsx}]
|
|
15
|
+
indent_style = space
|
|
16
|
+
indent_size = 2
|
|
17
|
+
quote_type = single
|
|
18
|
+
max_line_length = 100
|
|
19
|
+
|
|
20
|
+
# CSS files
|
|
21
|
+
[*.css]
|
|
22
|
+
indent_style = space
|
|
23
|
+
indent_size = 2
|
|
24
|
+
|
|
25
|
+
# Markdown files
|
|
26
|
+
[*.md]
|
|
27
|
+
trim_trailing_whitespace = false
|
|
28
|
+
max_line_length = off
|
|
29
|
+
|
|
30
|
+
# JSON files
|
|
31
|
+
[*.json]
|
|
32
|
+
indent_style = space
|
|
33
|
+
indent_size = 2
|
|
34
|
+
|
|
35
|
+
# YAML files
|
|
36
|
+
[*.{yml,yaml}]
|
|
37
|
+
indent_style = space
|
|
38
|
+
indent_size = 2
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"semi": true,
|
|
3
|
+
"singleQuote": true,
|
|
4
|
+
"tabWidth": 2,
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"trailingComma": "es5",
|
|
7
|
+
"bracketSpacing": true,
|
|
8
|
+
"arrowParens": "avoid",
|
|
9
|
+
"endOfLine": "lf",
|
|
10
|
+
"jsxSingleQuote": false,
|
|
11
|
+
"quoteProps": "as-needed",
|
|
12
|
+
"useTabs": false,
|
|
13
|
+
"htmlWhitespaceSensitivity": "css",
|
|
14
|
+
"embeddedLanguageFormatting": "auto",
|
|
15
|
+
"singleAttributePerLine": false,
|
|
16
|
+
"bracketSameLine": false
|
|
17
|
+
}
|
package/.releaserc.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": ["main"],
|
|
3
|
+
"plugins": [
|
|
4
|
+
["@semantic-release/commit-analyzer", {
|
|
5
|
+
"preset": "angular",
|
|
6
|
+
"releaseRules": [
|
|
7
|
+
{"type": "docs", "scope": "README", "release": "patch"},
|
|
8
|
+
{"type": "feat", "release": "minor"},
|
|
9
|
+
{"type": "fix", "release": "patch"},
|
|
10
|
+
{"type": "perf", "release": "patch"},
|
|
11
|
+
{"type": "revert", "release": "patch"},
|
|
12
|
+
{"type": "style", "release": "patch"},
|
|
13
|
+
{"type": "test", "release": "patch"},
|
|
14
|
+
{"type": "ci", "release": "patch"},
|
|
15
|
+
{"type": "chore", "release": "patch"}
|
|
16
|
+
]
|
|
17
|
+
}],
|
|
18
|
+
["@semantic-release/release-notes-generator", {
|
|
19
|
+
"preset": "angular"
|
|
20
|
+
}],
|
|
21
|
+
["@semantic-release/changelog", {
|
|
22
|
+
"changelogFile": "CHANGELOG.md"
|
|
23
|
+
}],
|
|
24
|
+
["@semantic-release/npm", {
|
|
25
|
+
"npmPublish": true,
|
|
26
|
+
"tarballDir": "dist"
|
|
27
|
+
}],
|
|
28
|
+
["@semantic-release/git", {
|
|
29
|
+
"assets": ["package.json", "CHANGELOG.md"],
|
|
30
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
31
|
+
}],
|
|
32
|
+
["@semantic-release/github", {
|
|
33
|
+
"assets": "dist/*.tgz"
|
|
34
|
+
}]
|
|
35
|
+
]
|
|
36
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# 1.0.0 (2025-04-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 优化发布配置,只发布 dist 目录 ([0b8bbfd](https://github.com/mxm-web-develop/mxm/commit/0b8bbfde3ffad1d58dd6681c03ba821b67c04071))
|
|
7
|
+
* 优化发布配置,确保 GitHub 保持源代码更新 ([be203dc](https://github.com/mxm-web-develop/mxm/commit/be203dc8738cf432b2a2781efe9ad5db1ded5827))
|
|
8
|
+
* 修复 README.md 复制时机 ([79fccd8](https://github.com/mxm-web-develop/mxm/commit/79fccd8d9efec486611f559c693157187fb9d219))
|
|
9
|
+
* 调整文件结果,减轻打包体积 ([e291921](https://github.com/mxm-web-develop/mxm/commit/e291921ef24d78ee67403ab2dcc6f7bde3a24f72))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* 修复文件预览组件发布配置 ([fc534ea](https://github.com/mxm-web-develop/mxm/commit/fc534ea37b1f50705b7e3900801ca496ae04ddca))
|
|
15
|
+
* 渲染和标注完成 ([a18fe85](https://github.com/mxm-web-develop/mxm/commit/a18fe857537325855c021207647d5f98e9a09ee0))
|
|
16
|
+
* 配置子项目独立发布 ([d2907a5](https://github.com/mxm-web-develop/mxm/commit/d2907a54eb282c195d3846b6330bc0633fc4f667))
|
|
17
|
+
* 配置子项目独立发布 ([5e9d97d](https://github.com/mxm-web-develop/mxm/commit/5e9d97d34500a31f63b0b1d1772d1652362d8b86))
|
|
18
|
+
* 配置根目录release脚本,支持文档自动部署 ([aa38669](https://github.com/mxm-web-develop/mxm/commit/aa38669c55ceeae8d50e526fdbc47e7d4f83c2c8))
|
|
19
|
+
|
|
20
|
+
# Changelog
|
|
21
|
+
|
|
22
|
+
所有重要的更改都会记录在这个文件中。
|
|
23
|
+
|
|
24
|
+
## [1.0.13] - 2024-03-27
|
|
25
|
+
|
|
26
|
+
### 新增
|
|
27
|
+
- 初始化项目
|
|
28
|
+
- 添加基础组件结构
|
|
29
|
+
- 配置 Vite 开发环境
|
|
30
|
+
- 添加 TypeScript 支持
|
|
31
|
+
- 添加 ESLint 和 Prettier 配置
|
|
32
|
+
- 添加 Tailwind CSS 支持
|
|
33
|
+
- 添加 Zustand 状态管理
|
|
34
|
+
- 添加基础文件预览功能
|
|
35
|
+
|
|
36
|
+
### 变更
|
|
37
|
+
- 无
|
|
38
|
+
|
|
39
|
+
### 修复
|
|
40
|
+
- 无
|
|
41
|
+
|
|
42
|
+
### 移除
|
|
43
|
+
- 无
|
|
44
|
+
|
|
45
|
+
## 版本格式
|
|
46
|
+
|
|
47
|
+
我们遵循 [语义化版本 2.0.0](https://semver.org/lang/zh-CN/) 的版本格式。
|
|
48
|
+
|
|
49
|
+
### 版本号格式
|
|
50
|
+
- 主版本号:重大更新,不兼容的 API 修改
|
|
51
|
+
- 次版本号:向下兼容的功能性新增
|
|
52
|
+
- 修订号:向下兼容的问题修正
|
|
53
|
+
|
|
54
|
+
### 更新类型
|
|
55
|
+
- `新增`:新功能
|
|
56
|
+
- `变更`:对现有功能的变更
|
|
57
|
+
- `修复`:问题修复
|
|
58
|
+
- `移除`:移除的功能
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# 贡献指南
|
|
2
|
+
|
|
3
|
+
感谢你考虑为 `@mxmweb/fileviewer` 做出贡献!我们欢迎任何形式的贡献,包括但不限于:问题报告、功能建议、文档改进、代码提交等。
|
|
4
|
+
|
|
5
|
+
## 开发环境设置
|
|
6
|
+
|
|
7
|
+
1. 克隆仓库
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/your-username/fileviewer.git
|
|
10
|
+
cd fileviewer
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. 安装依赖
|
|
14
|
+
```bash
|
|
15
|
+
pnpm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3. 启动开发服务器
|
|
19
|
+
```bash
|
|
20
|
+
pnpm dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 开发流程
|
|
24
|
+
|
|
25
|
+
1. 创建新的分支
|
|
26
|
+
```bash
|
|
27
|
+
git checkout -b feature/your-feature-name
|
|
28
|
+
# 或
|
|
29
|
+
git checkout -b fix/your-fix-name
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
2. 提交代码
|
|
33
|
+
```bash
|
|
34
|
+
git add .
|
|
35
|
+
git commit -m "feat: your feature description"
|
|
36
|
+
# 或
|
|
37
|
+
git commit -m "fix: your fix description"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
3. 推送到远程仓库
|
|
41
|
+
```bash
|
|
42
|
+
git push origin feature/your-feature-name
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
4. 创建 Pull Request
|
|
46
|
+
|
|
47
|
+
## 代码规范
|
|
48
|
+
|
|
49
|
+
- 使用 TypeScript 编写代码
|
|
50
|
+
- 遵循 ESLint 和 Prettier 配置
|
|
51
|
+
- 使用 EditorConfig 保持一致的代码风格
|
|
52
|
+
- 编写清晰的提交信息,遵循 [Conventional Commits](https://www.conventionalcommits.org/)
|
|
53
|
+
|
|
54
|
+
## 提交信息规范
|
|
55
|
+
|
|
56
|
+
提交信息应该遵循以下格式:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
<type>(<scope>): <subject>
|
|
60
|
+
|
|
61
|
+
<body>
|
|
62
|
+
|
|
63
|
+
<footer>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
类型(type):
|
|
67
|
+
- feat: 新功能
|
|
68
|
+
- fix: 修复
|
|
69
|
+
- docs: 文档
|
|
70
|
+
- style: 格式
|
|
71
|
+
- refactor: 重构
|
|
72
|
+
- test: 测试
|
|
73
|
+
- chore: 构建过程或辅助工具的变动
|
|
74
|
+
|
|
75
|
+
## 测试
|
|
76
|
+
|
|
77
|
+
- 编写单元测试
|
|
78
|
+
- 确保所有测试通过
|
|
79
|
+
- 保持测试覆盖率
|
|
80
|
+
|
|
81
|
+
## 文档
|
|
82
|
+
|
|
83
|
+
- 更新 README.md
|
|
84
|
+
- 更新 CHANGELOG.md
|
|
85
|
+
- 添加必要的注释
|
|
86
|
+
- 更新 API 文档
|
|
87
|
+
|
|
88
|
+
## 发布流程
|
|
89
|
+
|
|
90
|
+
1. 更新版本号
|
|
91
|
+
2. 更新 CHANGELOG.md
|
|
92
|
+
3. 提交更改
|
|
93
|
+
4. 创建发布标签
|
|
94
|
+
5. 发布到 npm
|
|
95
|
+
|
|
96
|
+
## 问题反馈
|
|
97
|
+
|
|
98
|
+
如果你发现了问题或有改进建议,请:
|
|
99
|
+
|
|
100
|
+
1. 查看是否已经存在相关 issue
|
|
101
|
+
2. 如果不存在,创建新的 issue
|
|
102
|
+
3. 提供清晰的问题描述和复现步骤
|
|
103
|
+
4. 添加相关的错误信息或截图
|
|
104
|
+
|
|
105
|
+
## 行为准则
|
|
106
|
+
|
|
107
|
+
请阅读并遵守我们的 [行为准则](CODE_OF_CONDUCT.md)。
|
|
108
|
+
|
|
109
|
+
## 许可证
|
|
110
|
+
|
|
111
|
+
通过提交代码,你同意你的代码将使用与项目相同的许可证。
|
package/NPMREADME.md
ADDED
|
File without changes
|
package/README.md
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Stack trace:
|
|
2
|
+
Frame Function Args
|
|
3
|
+
0007FFFFCD30 00021006118E (0002102A6010, 000210272B51, 000000000063, 0007FFFFB660) msys-2.0.dll+0x2118E
|
|
4
|
+
0007FFFFCD30 0002100469BA (0007FFFFC710, 000200000000, 000700000000, 000700000001) msys-2.0.dll+0x69BA
|
|
5
|
+
0007FFFFCD30 0002100469F2 (000000000000, 000000000000, 000000000063, 000700000003) msys-2.0.dll+0x69F2
|
|
6
|
+
0007FFFFCD30 000210101D21 (000210177B53, 000800007798, 000000000000, 0002102752E0) msys-2.0.dll+0xC1D21
|
|
7
|
+
0007FFFFCD30 000210101D39 (0002101779A0, 0003000000FF, 000000000006, 0007FFFFC890) msys-2.0.dll+0xC1D39
|
|
8
|
+
0007FFFFCD30 000210104704 (0007FFFFCD30, 000000000000, 0007FFFFC890, 0002102752E0) msys-2.0.dll+0xC4704
|
|
9
|
+
0007FFFFCD30 000210059095 (000000000004, 000000000004, 0007FFFFC9E8, 0000FFFFFFFF) msys-2.0.dll+0x19095
|
|
10
|
+
0007FFFFCD30 000210059865 (000210070B52, 00021024CB20, 000800004540, 000000000030) msys-2.0.dll+0x19865
|
|
11
|
+
0007FFFFCD30 000210059D77 (00021017DB25, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x19D77
|
|
12
|
+
0007FFFFCD30 00021005A0B6 (0002100CB9A0, 000000000000, FFFFFFFFFFFFFF43, 000200000000) msys-2.0.dll+0x1A0B6
|
|
13
|
+
0007FFFFCD30 000210047151 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7151
|
|
14
|
+
0007FFFFFFF0 000210045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86
|
|
15
|
+
0007FFFFFFF0 000210045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34
|
|
16
|
+
End of stack trace
|
|
17
|
+
Loaded modules:
|
|
18
|
+
000100400000 bash.exe
|
|
19
|
+
7FFD10F50000 ntdll.dll
|
|
20
|
+
7FFD0FA20000 KERNEL32.DLL
|
|
21
|
+
7FFD0E710000 KERNELBASE.dll
|
|
22
|
+
7FFD10800000 USER32.dll
|
|
23
|
+
7FFD0EB80000 win32u.dll
|
|
24
|
+
7FFD10370000 GDI32.dll
|
|
25
|
+
7FFD0E220000 gdi32full.dll
|
|
26
|
+
000210040000 msys-2.0.dll
|
|
27
|
+
7FFD0EBB0000 msvcp_win.dll
|
|
28
|
+
7FFD0E5F0000 ucrtbase.dll
|
|
29
|
+
7FFD0F630000 advapi32.dll
|
|
30
|
+
7FFD10430000 msvcrt.dll
|
|
31
|
+
7FFD0F350000 sechost.dll
|
|
32
|
+
7FFD0EAD0000 bcrypt.dll
|
|
33
|
+
7FFD104E0000 RPCRT4.dll
|
|
34
|
+
7FFD0DA20000 CRYPTBASE.DLL
|
|
35
|
+
7FFD0EB00000 bcryptPrimitives.dll
|
|
36
|
+
7FFD0F5F0000 IMM32.DLL
|
|
37
|
+
7FFD02F20000 netapi32.dll
|
|
38
|
+
7FFCFB7A0000 SAMCLI.DLL
|
|
39
|
+
7FFD05410000 SAMLIB.dll
|
|
40
|
+
7FFD0CD40000 NETUTILS.DLL
|
package/components.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "new-york",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "tailwind.config.js",
|
|
8
|
+
"css": "src/style.css",
|
|
9
|
+
"baseColor": "slate",
|
|
10
|
+
"cssVariables": false,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"aliases": {
|
|
14
|
+
"components": "@/components",
|
|
15
|
+
"utils": "@/components/shadcn/utils",
|
|
16
|
+
"ui": "@/components/shadcn/ui",
|
|
17
|
+
"lib": "@/components/shadcn/lib",
|
|
18
|
+
"hooks": "@/components/shadcn/hooks"
|
|
19
|
+
},
|
|
20
|
+
"iconLibrary": "lucide"
|
|
21
|
+
}
|
package/dist/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.-top-1{top:calc(var(--spacing)*-1)}.top-1\/2{top:50%}.-right-1{right:calc(var(--spacing)*-1)}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.z-20{z-index:20}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.list-item{display:list-item}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-9{height:calc(var(--spacing)*9)}.h-\[200px\]{height:200px}.h-full{height:100%}.h-screen{height:100vh}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-9{width:calc(var(--spacing)*9)}.w-32{width:calc(var(--spacing)*32)}.w-\[2px\]{width:2px}.w-\[500px\]{width:500px}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[16px\]{min-width:16px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.origin-bottom-right{transform-origin:100% 100%}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-0{rotate:none}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.cursor-pointer\!{cursor:pointer!important}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-y-\[2px\]{row-gap:2px}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.bg-blue-50{background-color:var(--color-blue-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-red-500{background-color:var(--color-red-500)}.stroke-gray-400{stroke:var(--color-gray-400)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\[2px\]{padding-inline:2px}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-6{padding-block:calc(var(--spacing)*6)}.text-center{text-align:center}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[14px\]{font-size:14px}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.whitespace-nowrap{white-space:nowrap}.text-blue-500{color:var(--color-blue-500)}.text-gray-500{color:var(--color-gray-500)}.text-white{color:var(--color-white)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\:scale-105:is(:where(.group):hover *),.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}*{margin:0;padding:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
|
@@ -379,13 +379,15 @@ const N0 = m.button`
|
|
|
379
379
|
) : /* @__PURE__ */ k(
|
|
380
380
|
"button",
|
|
381
381
|
{
|
|
382
|
-
className: "w-full rounded flex
|
|
382
|
+
className: "w-full rounded flex items-center px-4 py-2 text-sm transition whitespace-nowrap",
|
|
383
383
|
style: {
|
|
384
384
|
color: c.colors.text,
|
|
385
385
|
background: "transparent",
|
|
386
386
|
border: "none",
|
|
387
387
|
// borderRadius: theme.space.radius,
|
|
388
|
-
fontSize: 12
|
|
388
|
+
fontSize: 12,
|
|
389
|
+
opacity: h.disabled ? 0.5 : 1,
|
|
390
|
+
cursor: h.disabled ? "not-allowed" : "pointer"
|
|
389
391
|
},
|
|
390
392
|
onClick: (F) => {
|
|
391
393
|
F.stopPropagation(), g(!1), o(h.key), h.onClick && h.onClick();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mxmweb/zui",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"style": "assets/style.css",
|
|
6
|
+
"types": "lib_enter.d.ts",
|
|
7
|
+
"private": false,
|
|
8
|
+
"version": "1.1.14",
|
|
9
|
+
"author": "hanfeng_Zhang",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@mxmweb/xviewer": "^1.1.31",
|
|
13
|
+
"animejs": "*",
|
|
14
|
+
"react": "*",
|
|
15
|
+
"react-dom": "*",
|
|
16
|
+
"styled-components": "*"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "yarn link",
|
|
20
|
+
"disconnect": "yarn unlink"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./lib_enter.d.ts",
|
|
25
|
+
"import": "./index.js",
|
|
26
|
+
"default": "./index.js"
|
|
27
|
+
},
|
|
28
|
+
"./style.css": "./assets/style.css"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
+
import reactRefresh from "eslint-plugin-react-refresh";
|
|
5
|
+
import tseslint from "typescript-eslint";
|
|
6
|
+
import reactPlugin from "eslint-plugin-react";
|
|
7
|
+
import importPlugin from "eslint-plugin-import";
|
|
8
|
+
import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
|
|
9
|
+
import prettierPlugin from "eslint-plugin-prettier";
|
|
10
|
+
|
|
11
|
+
export default tseslint.config(
|
|
12
|
+
{ ignores: ["dist", "node_modules", "coverage"] },
|
|
13
|
+
{
|
|
14
|
+
extends: [
|
|
15
|
+
js.configs.recommended,
|
|
16
|
+
...tseslint.configs.recommended,
|
|
17
|
+
"plugin:react/recommended",
|
|
18
|
+
"plugin:react-hooks/recommended",
|
|
19
|
+
"plugin:react-refresh/recommended",
|
|
20
|
+
"plugin:prettier/recommended",
|
|
21
|
+
"plugin:import/recommended",
|
|
22
|
+
"plugin:import/typescript",
|
|
23
|
+
"plugin:jsx-a11y/recommended",
|
|
24
|
+
],
|
|
25
|
+
files: ["**/*.{ts,tsx}"],
|
|
26
|
+
languageOptions: {
|
|
27
|
+
ecmaVersion: 2020,
|
|
28
|
+
globals: {
|
|
29
|
+
...globals.browser,
|
|
30
|
+
...globals.node,
|
|
31
|
+
},
|
|
32
|
+
parserOptions: {
|
|
33
|
+
ecmaFeatures: {
|
|
34
|
+
jsx: true,
|
|
35
|
+
},
|
|
36
|
+
sourceType: "module",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
plugins: {
|
|
40
|
+
"react": reactPlugin,
|
|
41
|
+
"react-hooks": reactHooks,
|
|
42
|
+
"react-refresh": reactRefresh,
|
|
43
|
+
"@typescript-eslint": tseslint.plugin,
|
|
44
|
+
"import": importPlugin,
|
|
45
|
+
"jsx-a11y": jsxA11yPlugin,
|
|
46
|
+
"prettier": prettierPlugin,
|
|
47
|
+
},
|
|
48
|
+
settings: {
|
|
49
|
+
react: {
|
|
50
|
+
version: "detect",
|
|
51
|
+
},
|
|
52
|
+
"import/resolver": {
|
|
53
|
+
typescript: {},
|
|
54
|
+
node: {
|
|
55
|
+
extensions: [".js", ".jsx", ".ts", ".tsx"],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
rules: {
|
|
60
|
+
// React 相关规则
|
|
61
|
+
"react/react-in-jsx-scope": "off",
|
|
62
|
+
"react/prop-types": "off",
|
|
63
|
+
"react/jsx-uses-react": "off",
|
|
64
|
+
"react-hooks/rules-of-hooks": "error",
|
|
65
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
66
|
+
"react-refresh/only-export-components": [
|
|
67
|
+
"warn",
|
|
68
|
+
{ allowConstantExports: true },
|
|
69
|
+
],
|
|
70
|
+
|
|
71
|
+
// TypeScript 相关规则
|
|
72
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
73
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
74
|
+
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
75
|
+
|
|
76
|
+
// 导入相关规则
|
|
77
|
+
"import/order": [
|
|
78
|
+
"error",
|
|
79
|
+
{
|
|
80
|
+
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
|
|
81
|
+
"newlines-between": "always",
|
|
82
|
+
alphabetize: { order: "asc", caseInsensitive: true },
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
|
|
86
|
+
// 通用规则
|
|
87
|
+
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
88
|
+
"prettier/prettier": "error",
|
|
89
|
+
"no-unused-vars": "off", // 使用 @typescript-eslint/no-unused-vars 替代
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
);
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>UI 组件库预览</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,26 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxmweb/zui",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"style": "assets/style.css",
|
|
6
|
-
"types": "lib_enter.d.ts",
|
|
7
|
-
"private": false,
|
|
8
|
-
"version": "1.1.10",
|
|
9
3
|
"author": "hanfeng_Zhang",
|
|
4
|
+
"version": "1.1.14",
|
|
10
5
|
"type": "module",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"disconnect": "yarn unlink"
|
|
14
|
-
},
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/lib_enter.d.ts",
|
|
15
8
|
"exports": {
|
|
16
9
|
".": {
|
|
17
|
-
"types": "./lib_enter.d.ts",
|
|
18
|
-
"import": "./index.js",
|
|
19
|
-
"default": "./index.js"
|
|
10
|
+
"types": "./dist/lib_enter.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
20
13
|
},
|
|
21
|
-
"./style.css": "./assets/style.css"
|
|
14
|
+
"./style.css": "./dist/assets/style.css",
|
|
15
|
+
"./icons/*": "./dist/icons/*"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "vite build --mode production",
|
|
20
|
+
"publish": "npm publish --access public",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
23
|
+
"lint:fix": "eslint src --ext ts,tsx --fix",
|
|
24
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,css,md}\"",
|
|
25
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,css,md}\"",
|
|
26
|
+
"release": "semantic-release",
|
|
27
|
+
"release:dry": "semantic-release --dry-run"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "*",
|
|
31
|
+
"react-dom": "*",
|
|
32
|
+
"styled-components": "*",
|
|
33
|
+
"animejs": "*",
|
|
34
|
+
"@mxmweb/xviewer": "^1.1.31"
|
|
22
35
|
},
|
|
23
|
-
"
|
|
36
|
+
"include": [
|
|
37
|
+
"src/application/**/*"
|
|
38
|
+
],
|
|
39
|
+
"exclude": [
|
|
40
|
+
"node_modules",
|
|
41
|
+
"src/main.tsx",
|
|
42
|
+
"src/Preview.tsx",
|
|
43
|
+
"type.d.ts",
|
|
44
|
+
"vite-env.d.ts"
|
|
45
|
+
],
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/validator": "^13.15.3",
|
|
24
48
|
"@mxmweb/xviewer": "workspace:*"
|
|
25
49
|
}
|
|
26
50
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: [
|
|
3
|
+
require('@tailwindcss/postcss')(),
|
|
4
|
+
// 自定义插件:去除所有@layer指令,展开为普通CSS
|
|
5
|
+
function discardLayerPlugin() {
|
|
6
|
+
return {
|
|
7
|
+
postcssPlugin: 'discard-layer',
|
|
8
|
+
AtRule: {
|
|
9
|
+
layer: (atRule) => {
|
|
10
|
+
atRule.replaceWith(atRule.nodes || []);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
require('autoprefixer')(),
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
// 标记自定义插件为postcss插件
|
|
19
|
+
module.exports.plugins[1].postcss = true;
|