worsoft-frontend-codegen-local-mcp 0.1.71 → 0.1.72
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/mcp_server.js +2 -8
- package/package.json +1 -1
package/mcp_server.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
7
|
const SERVER_NAME = 'worsoft-codegen-local';
|
|
8
|
-
const SERVER_VERSION = '0.1.
|
|
8
|
+
const SERVER_VERSION = '0.1.72';
|
|
9
9
|
const PROTOCOL_VERSION = '2024-11-05';
|
|
10
10
|
const TOOL_NAME = 'worsoft_codegen_local_generate_frontend';
|
|
11
11
|
const STYLE_CATALOG_PATH = path.join(__dirname, 'assets', 'style-catalog.json');
|
|
@@ -794,12 +794,6 @@ function buildLocaleLeaf(model) {
|
|
|
794
794
|
fields: Object.fromEntries(model.optionFields.map((field) => [field.attrName, stripDictAnnotation(field.comment)])),
|
|
795
795
|
};
|
|
796
796
|
|
|
797
|
-
if (hasBusinessBillStateEditControl(model)) {
|
|
798
|
-
leaf.messages = {
|
|
799
|
-
completedCannotDelete: '单据状态为已完成的数据不能删除',
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
|
|
803
797
|
if (model.children.length) {
|
|
804
798
|
leaf.children = Object.fromEntries(
|
|
805
799
|
model.children.map((childModel) => [
|
|
@@ -3362,7 +3356,7 @@ function renderBusinessDeleteGuard(model) {
|
|
|
3362
3356
|
const i18nNamespace = buildI18nNamespace(model);
|
|
3363
3357
|
return [
|
|
3364
3358
|
' if (rows.some((row) => !showDeleteAction(row))) {',
|
|
3365
|
-
|
|
3359
|
+
" useMessage().warning(t('common.messages.completedBillCannotDelete'));",
|
|
3366
3360
|
' return;',
|
|
3367
3361
|
' }',
|
|
3368
3362
|
'',
|
package/package.json
CHANGED