网页端:平台桥与部署修复(宝塔/Nginx)

- lib/platform:网页 Electron 统一 bridge/web/electron,子目录 API 基路径、返回首页跳站点根、路径末尾斜杠兼容
- index/design*.web.html:网页入口,web.js 加缓存参数避免旧脚本缓存
- api:PHP 读写 soon;文档说明目录权限与 Nginx
- lib/design*、lib/index:与 platformBridge 对接及网页侧逻辑
- 公共资源 JsBarcode/jr-qrcode;文档与 package/README/.gitignore 等同步更新

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
24kycj
2026-05-09 18:57:53 +08:00
parent ee6ef462ca
commit 2e6578247e
27 changed files with 6606 additions and 3542 deletions
+27 -10
View File
@@ -1,12 +1,19 @@
{
"name": "soondesign",
"version": "3.2.101",
"homepage": "https://www.cardsoon.com/index.php/cn/products/cardsoonsoft.html",
"author": "",
"description": "tools of design soon files",
"description": "SoonDesign - 专业的卡片和光盘设计工具,支持单面/双面模板设计、二维码/条形码生成、图片编辑等功能,提供桌面端(Electron)和网页端两种使用方式",
"main": "main.js",
"homepage": "https://www.cardsoon.com/index.php/cn/products/cardsoonsoft.html",
"author": "CardSoon Team",
"license": "MIT",
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"scripts": {
"start": "electron .",
"web": "npx http-server . -p 8080 -o index.web.html",
"web:dev": "npx http-server . -p 8080 -o index.web.html -c-1",
"package": "electron-packager ./ SoonDesign --out ./OutApp --platform=win32 --arch=x64 --electron-version 15.1.1 --icon public/images/favicon.icns --asar --overwrite --download.mirrorOptions.mirror=https://npmmirror.com/mirrors/electron/",
"dist": "webpack",
"build": "electron-builder --arm64 --x64",
@@ -79,15 +86,25 @@
]
}
},
"repository": "",
"repository": {
"type": "git",
"url": ""
},
"bugs": {
"url": ""
},
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo"
"soondesign",
"card-design",
"disc-design",
"design-tool",
"electron",
"fabricjs",
"qr-code",
"barcode",
"template-editor",
"cardsoon"
],
"license": "MIT",
"devDependencies": {
"app-builder-bin": "^4.2.0",
"electron": "^15.2.0",