mvframe 1.0.74 → 1.0.75
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/README.cn.md +1 -1
- package/README.md +1 -1
- package/dist/vendor.js +1 -1
- package/package.json +1 -1
- package/scripts/scaffold-app.js +30 -4
package/README.cn.md
CHANGED
|
@@ -279,7 +279,7 @@ yarn exec mvframe-install-cursor-skill
|
|
|
279
279
|
- 新增 `mvframe-notify`:只支持钉钉机器人的本地通知服务,钉钉 webhook / secret 留在 Node 环境变量。
|
|
280
280
|
- 新增 `mvframe/notify` 与全局 `$notify`:前端通过 `config.notify` 请求本地通知服务。
|
|
281
281
|
- 新增框架命令 `yarn d` / `mvframe-d`:同时启动 `yarn dev` 与钉钉通知服务。
|
|
282
|
-
- `mvframe-init-app` 初始化 `config.notify
|
|
282
|
+
- `mvframe-init-app` 初始化 `config.notify`、带测试钉钉机器人的 `.env.mvframe-notify` / `.env.mvframe-notify.example` 与 `.env.local.example`,不自动覆盖宿主 `d` 脚本。
|
|
283
283
|
|
|
284
284
|
---
|
|
285
285
|
|
package/README.md
CHANGED
|
@@ -264,7 +264,7 @@ Default target is **`./.cursor/skills/mvframe-app-init`** under the current work
|
|
|
264
264
|
- Added `mvframe-notify`, a DingTalk-only local Node notification service.
|
|
265
265
|
- Added `mvframe/notify` and global `$notify` for browser calls through `config.notify`.
|
|
266
266
|
- Added framework command `yarn d` / `mvframe-d` to run `yarn dev` with the notify service.
|
|
267
|
-
- `mvframe-init-app` now initializes `config.notify`, `.env.mvframe-notify.example
|
|
267
|
+
- `mvframe-init-app` now initializes `config.notify`, `.env.mvframe-notify` / `.env.mvframe-notify.example` with the MVFrame test DingTalk robot, and `.env.local.example` without forcing host `d` scripts.
|
|
268
268
|
|
|
269
269
|
---
|
|
270
270
|
|
package/dist/vendor.js
CHANGED
|
@@ -9323,7 +9323,7 @@ const gi = {
|
|
|
9323
9323
|
}, Ai = {
|
|
9324
9324
|
name: "Matt Avias Frame",
|
|
9325
9325
|
copyright: "©2026",
|
|
9326
|
-
version: "1.0.
|
|
9326
|
+
version: "1.0.75",
|
|
9327
9327
|
author: "Matt Avias",
|
|
9328
9328
|
date: "2026-02-26",
|
|
9329
9329
|
/** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
|
package/package.json
CHANGED
package/scripts/scaffold-app.js
CHANGED
|
@@ -99,6 +99,11 @@ const SCAFFOLD_SCRIPTS = {
|
|
|
99
99
|
preview: "vite preview",
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
const TEST_DINGTALK_WEBHOOK =
|
|
103
|
+
"https://oapi.dingtalk.com/robot/send?access_token=142b6ddc73e8656b7906a3cb3982836a59f430a6fe5ef619a5689eed91d5f9f7";
|
|
104
|
+
const TEST_DINGTALK_SECRET =
|
|
105
|
+
"SEC7140677a84a5190046e22d508548923dd2c4f485e38896aa0c3555ae003f4ef5";
|
|
106
|
+
|
|
102
107
|
/**
|
|
103
108
|
* 合并 package.json:保留原有字段与其它依赖;仅补足脚手架所需包与启动脚本。
|
|
104
109
|
* 同名依赖以目标项目已有版本为准({ ...建议, ...已有 })。
|
|
@@ -757,8 +762,29 @@ export default defineConfig({
|
|
|
757
762
|
|
|
758
763
|
write(
|
|
759
764
|
".env.mvframe-notify.example",
|
|
760
|
-
`# Copy to .env.mvframe-notify
|
|
765
|
+
`# Copy to .env.mvframe-notify for the local Node notify service.
|
|
761
766
|
# Do not put DingTalk webhook/secret in src/main.js or other browser-bundled files.
|
|
767
|
+
# The DingTalk values below are MVFrame's test robot config. Replace them for production.
|
|
768
|
+
|
|
769
|
+
MVFRAME_NOTIFY_PORT=3300
|
|
770
|
+
MVFRAME_NOTIFY_HOST=127.0.0.1
|
|
771
|
+
MVFRAME_NOTIFY_TOKEN=
|
|
772
|
+
MVFRAME_NOTIFY_TIMEOUT_MS=5000
|
|
773
|
+
MVFRAME_NOTIFY_CORS_ORIGIN=*
|
|
774
|
+
|
|
775
|
+
DINGTALK_WEBHOOK="${TEST_DINGTALK_WEBHOOK}"
|
|
776
|
+
DINGTALK_SECRET="${TEST_DINGTALK_SECRET}"
|
|
777
|
+
DINGTALK_AT_MOBILES=""
|
|
778
|
+
DINGTALK_AT_USER_IDS=""
|
|
779
|
+
DINGTALK_AT_ALL=""
|
|
780
|
+
`,
|
|
781
|
+
);
|
|
782
|
+
|
|
783
|
+
write(
|
|
784
|
+
".env.mvframe-notify",
|
|
785
|
+
`# Local MVFrame DingTalk notify service config.
|
|
786
|
+
# This file is generated for test use and is ignored by git.
|
|
787
|
+
# Replace the DingTalk webhook/secret before production use.
|
|
762
788
|
|
|
763
789
|
MVFRAME_NOTIFY_PORT=3300
|
|
764
790
|
MVFRAME_NOTIFY_HOST=127.0.0.1
|
|
@@ -766,8 +792,8 @@ MVFRAME_NOTIFY_TOKEN=
|
|
|
766
792
|
MVFRAME_NOTIFY_TIMEOUT_MS=5000
|
|
767
793
|
MVFRAME_NOTIFY_CORS_ORIGIN=*
|
|
768
794
|
|
|
769
|
-
DINGTALK_WEBHOOK="
|
|
770
|
-
DINGTALK_SECRET="
|
|
795
|
+
DINGTALK_WEBHOOK="${TEST_DINGTALK_WEBHOOK}"
|
|
796
|
+
DINGTALK_SECRET="${TEST_DINGTALK_SECRET}"
|
|
771
797
|
DINGTALK_AT_MOBILES=""
|
|
772
798
|
DINGTALK_AT_USER_IDS=""
|
|
773
799
|
DINGTALK_AT_ALL=""
|
|
@@ -843,7 +869,7 @@ yarn exec mvframe-d
|
|
|
843
869
|
脚手架已初始化:
|
|
844
870
|
|
|
845
871
|
- \`src/config/index.js\` 的 \`notify\` 节点:浏览器端只保存本地服务地址和访问 token。
|
|
846
|
-
- \`.env.mvframe-notify
|
|
872
|
+
- \`.env.mvframe-notify\` 与 \`.env.mvframe-notify.example\`:已写入 MVFrame 测试钉钉机器人配置,生产环境请替换 \`DINGTALK_WEBHOOK\` / \`DINGTALK_SECRET\`。
|
|
847
873
|
- \`.env.local.example\`:复制为 \`.env.local\`,填写 \`VITE_MVFRAME_NOTIFY_ENDPOINT\` / \`VITE_MVFRAME_NOTIFY_TOKEN\`。
|
|
848
874
|
|
|
849
875
|
启动通知服务:
|