@posx/core 5.5.392 → 5.5.395
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/CLAUDE.md +23 -23
- package/LICENSE +21 -21
- package/README.md +85 -85
- package/build/index.d.ts +6 -0
- package/build/index.js +1 -1
- package/jest.config.cjs +36 -36
- package/jest.setup.cjs +80 -80
- package/memo/technical-docs/01_ARCHITECTURE.md +147 -0
- package/memo/technical-docs/02_CORE_BUSINESS.md +292 -0
- package/memo/technical-docs/03_UI_COMPONENTS.md +59 -0
- package/memo/technical-docs/04_VIEWS.md +82 -0
- package/memo/technical-docs/05_DATA_LAYER.md +375 -0
- package/memo/technical-docs/06_CROSS_PLATFORM.md +246 -0
- package/memo/technical-docs/07_SIMILARITY_INDEX.md +195 -0
- package/memo/technical-docs/CHECKPOINT.md +46 -0
- package/memo/technical-docs/PROJECT_OVERVIEW.md +122 -0
- package/memo/technical-docs/TECHNICAL_DOCS_PLAN.md +77 -0
- package/package.json +1 -1
- package/package.publish.json +121 -120
- package/tsdown.config.ts +21 -21
- package/vite.config.ts +86 -86
- package/dev/.stfolder/syncthing-folder-9a95b7.txt +0 -5
- package/dev/98894488.xlsx +0 -0
- package/dev/HappyThaiSembawang.csv +0 -336
- package/dev/KB/create-new-model.md +0 -34
- package/dev/KB/markdown-lint.md +0 -14
- package/dev/KB/readmefirst.md +0 -6
- package/dev/Merchants/HappyThaiSembawang.csv +0 -400
- package/dev/Merchants/HappyThaiSembawang.xlsx +0 -0
- package/dev/Product_Import_Template.xlsx +0 -0
- package/dev/XPOS Invoice Module.pdf +0 -232
- package/dev/harbor-harness-deployment.md +0 -78
- package/dev/nginx-harbor-harness.conf +0 -84
- package/dev/test-logs/2026-02.md +0 -5
- package/dev//344/272/247/345/223/201/345/257/274/345/205/245/346/250/241/346/235/277.xlsx +0 -0
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Harbor + Harness 部署总结
|
|
2
|
-
|
|
3
|
-
## 服务端口
|
|
4
|
-
|
|
5
|
-
| 服务 | 端口 | 说明 |
|
|
6
|
-
|-------------|------|----------------|
|
|
7
|
-
| Harbor | 8081 | 容器镜像仓库 |
|
|
8
|
-
| Harness | 8082 | Git 代码托管 |
|
|
9
|
-
| Harness SSH | 3022 | Git SSH |
|
|
10
|
-
| PostgreSQL | 5433 | 数据库 |
|
|
11
|
-
| Redis | 6380 | 缓存 |
|
|
12
|
-
|
|
13
|
-
## 外部访问
|
|
14
|
-
|
|
15
|
-
| 服务 | 外部地址 | 内部地址 |
|
|
16
|
-
|---------|-------------------------|--------------|
|
|
17
|
-
| Harbor | https://harbor.wyo.sg | LAN_IP:8081 |
|
|
18
|
-
| Harness | https://harness.wyo.sg | LAN_IP:8082 |
|
|
19
|
-
|
|
20
|
-
## Harbor 登录
|
|
21
|
-
|
|
22
|
-
- URL: https://harbor.wyo.sg
|
|
23
|
-
- 用户名: `admin`
|
|
24
|
-
- 密码: `Harbor@2024!`
|
|
25
|
-
|
|
26
|
-
## Harness 登录
|
|
27
|
-
|
|
28
|
-
- URL: https://harness.wyo.sg
|
|
29
|
-
- 用户名: `admin@harness.local`
|
|
30
|
-
- 密码: `Harness@2024!`
|
|
31
|
-
|
|
32
|
-
## PostgreSQL
|
|
33
|
-
|
|
34
|
-
Host: `127.0.0.1:5433`
|
|
35
|
-
|
|
36
|
-
| 数据库 | 用户名 | 密码 |
|
|
37
|
-
|----------|----------|----------------|
|
|
38
|
-
| postgres | postgres | Postgres@2024! |
|
|
39
|
-
| harbor | harbor | Harbor@2024! |
|
|
40
|
-
| harness | harness | Harness@2024! |
|
|
41
|
-
|
|
42
|
-
## Redis
|
|
43
|
-
|
|
44
|
-
- Host: `127.0.0.1:6380`
|
|
45
|
-
- 密码: (无)
|
|
46
|
-
- Harbor DB Index: 1, 2, 5, 6, 7
|
|
47
|
-
|
|
48
|
-
## 文件位置
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
/opt/infra/docker-compose.yml # PostgreSQL + Redis
|
|
52
|
-
/opt/infra/config/postgresql.conf # PostgreSQL 配置
|
|
53
|
-
/opt/infra/config/redis.conf # Redis 配置
|
|
54
|
-
/opt/harbor/harbor.yml # Harbor 配置
|
|
55
|
-
/opt/harness/docker-compose.yml # Harness 配置
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## 管理命令
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
# 基础设施
|
|
62
|
-
cd /opt/infra && docker compose up -d
|
|
63
|
-
cd /opt/infra && docker compose down
|
|
64
|
-
|
|
65
|
-
# Harbor
|
|
66
|
-
cd /opt/harbor && docker compose up -d
|
|
67
|
-
cd /opt/harbor && docker compose down
|
|
68
|
-
|
|
69
|
-
# Harness
|
|
70
|
-
cd /opt/harness && docker compose up -d
|
|
71
|
-
cd /opt/harness && docker compose down
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Docker 登录 Harbor
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
docker login harbor.wyo.sg
|
|
78
|
-
```
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Harbor - 容器镜像仓库
|
|
2
|
-
server {
|
|
3
|
-
listen 80;
|
|
4
|
-
server_name harbor.wyo.sg;
|
|
5
|
-
return 301 https://$server_name$request_uri;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
server {
|
|
9
|
-
listen 443 ssl http2;
|
|
10
|
-
server_name harbor.wyo.sg;
|
|
11
|
-
|
|
12
|
-
ssl_certificate /etc/nginx/ssl/wyo.sg/fullchain.pem;
|
|
13
|
-
ssl_certificate_key /etc/nginx/ssl/wyo.sg/privkey.pem;
|
|
14
|
-
|
|
15
|
-
# SSL 配置
|
|
16
|
-
ssl_protocols TLSv1.2 TLSv1.3;
|
|
17
|
-
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
|
|
18
|
-
ssl_prefer_server_ciphers off;
|
|
19
|
-
ssl_session_cache shared:SSL:10m;
|
|
20
|
-
ssl_session_timeout 1d;
|
|
21
|
-
|
|
22
|
-
# 重要:Docker 镜像上传无大小限制
|
|
23
|
-
client_max_body_size 0;
|
|
24
|
-
chunked_transfer_encoding on;
|
|
25
|
-
|
|
26
|
-
# 禁用缓冲,支持大文件流式传输
|
|
27
|
-
proxy_buffering off;
|
|
28
|
-
proxy_request_buffering off;
|
|
29
|
-
|
|
30
|
-
location / {
|
|
31
|
-
proxy_pass http://LAN_IP:8081;
|
|
32
|
-
proxy_set_header Host $host;
|
|
33
|
-
proxy_set_header X-Real-IP $remote_addr;
|
|
34
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
35
|
-
proxy_set_header X-Forwarded-Proto $scheme;
|
|
36
|
-
|
|
37
|
-
# 超时设置(镜像推送可能耗时较长)
|
|
38
|
-
proxy_connect_timeout 900;
|
|
39
|
-
proxy_send_timeout 900;
|
|
40
|
-
proxy_read_timeout 900;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
# Harness - Git 代码托管
|
|
45
|
-
server {
|
|
46
|
-
listen 80;
|
|
47
|
-
server_name harness.wyo.sg;
|
|
48
|
-
return 301 https://$server_name$request_uri;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
server {
|
|
52
|
-
listen 443 ssl http2;
|
|
53
|
-
server_name harness.wyo.sg;
|
|
54
|
-
|
|
55
|
-
ssl_certificate /etc/nginx/ssl/wyo.sg/fullchain.pem;
|
|
56
|
-
ssl_certificate_key /etc/nginx/ssl/wyo.sg/privkey.pem;
|
|
57
|
-
|
|
58
|
-
ssl_protocols TLSv1.2 TLSv1.3;
|
|
59
|
-
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
|
|
60
|
-
ssl_prefer_server_ciphers off;
|
|
61
|
-
ssl_session_cache shared:SSL:10m;
|
|
62
|
-
ssl_session_timeout 1d;
|
|
63
|
-
|
|
64
|
-
# Git 仓库可能较大
|
|
65
|
-
client_max_body_size 0;
|
|
66
|
-
|
|
67
|
-
location / {
|
|
68
|
-
proxy_pass http://LAN_IP:8082;
|
|
69
|
-
proxy_set_header Host $host;
|
|
70
|
-
proxy_set_header X-Real-IP $remote_addr;
|
|
71
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
72
|
-
proxy_set_header X-Forwarded-Proto $scheme;
|
|
73
|
-
|
|
74
|
-
# WebSocket 支持(实时日志、通知等)
|
|
75
|
-
proxy_http_version 1.1;
|
|
76
|
-
proxy_set_header Upgrade $http_upgrade;
|
|
77
|
-
proxy_set_header Connection "upgrade";
|
|
78
|
-
|
|
79
|
-
# 超时设置
|
|
80
|
-
proxy_connect_timeout 300;
|
|
81
|
-
proxy_send_timeout 300;
|
|
82
|
-
proxy_read_timeout 300;
|
|
83
|
-
}
|
|
84
|
-
}
|
package/dev/test-logs/2026-02.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# 2026-02 测试日志
|
|
2
|
-
|
|
3
|
-
| # | 分支 | 时间 | 变更 | 测试 | 🌐 | 问题 | 状态 |
|
|
4
|
-
|---|------|------|------|------|:--:|------|------|
|
|
5
|
-
| 1 | bugfix/rounding-half-up-51 | 02-03 10:45 | roundingStep 实现 round half up | 19/20 passed | ✗ | `service-charge-and-tax-exempt.test.ts` 期望值需更新 5877→5876.9 | 🔧 需修复 |
|