zova-cli-set-front 1.2.44 → 1.2.45
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/cli/templates/create/module/boilerplate/_package.json +1 -1
- package/dist/index.js +0 -23
- package/dist/lib/bean/toolsMetadata/utils.d.ts +0 -1
- package/package.json +3 -3
- /package/cli/templates/create/component/{boilerplateActionRow → boilerplateFormActionRow}/controller.tsx_ +0 -0
- /package/cli/templates/create/component/{boilerplateActionBulk → boilerplateTableActionBulk}/controller.tsx_ +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"description": "<%=argv.description%>",
|
|
15
15
|
"keywords": ["Zova Module"],
|
|
16
16
|
"author": "<%=argv.author%>",
|
|
17
|
-
"files": ["mock", "dist", "src", "icons", "assets"
|
|
17
|
+
"files": ["mock", "dist", "src", "icons", "assets"],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
20
20
|
"tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
package/dist/index.js
CHANGED
|
@@ -2966,20 +2966,9 @@ ${contentResourceIcons}
|
|
|
2966
2966
|
}
|
|
2967
2967
|
/** icons: end */
|
|
2968
2968
|
`;
|
|
2969
|
-
// restComponent
|
|
2970
|
-
await generateRestIcon(moduleName, modulePath);
|
|
2971
2969
|
// ok
|
|
2972
2970
|
return content;
|
|
2973
2971
|
}
|
|
2974
|
-
async function generateRestIcon(moduleName, modulePath, _resourceIcons) {
|
|
2975
|
-
// icons
|
|
2976
|
-
const contentResourceIcons = `export * from 'zova-module-${moduleName}';\n`;
|
|
2977
|
-
const fileIcons = path.join(modulePath, 'rest/icons.ts');
|
|
2978
|
-
await fse.outputFile(fileIcons, contentResourceIcons);
|
|
2979
|
-
// index
|
|
2980
|
-
const exportIndexContent = "export * from './icons.js';";
|
|
2981
|
-
await generateRestIndex(modulePath, exportIndexContent);
|
|
2982
|
-
}
|
|
2983
2972
|
async function _generateFileConfigIcons(groups) {
|
|
2984
2973
|
const groupsFrontImport = [];
|
|
2985
2974
|
const groupsFrontExport = [];
|
|
@@ -3062,18 +3051,6 @@ function _getRecordId(moduleName, groupName, iconName) {
|
|
|
3062
3051
|
if (groupName === 'default') groupName = '';
|
|
3063
3052
|
return `${moduleName}:${groupName}:${iconName}`;
|
|
3064
3053
|
}
|
|
3065
|
-
async function generateRestIndex(modulePath, append) {
|
|
3066
|
-
// index
|
|
3067
|
-
const fileIndex = path.join(modulePath, 'rest/index.ts');
|
|
3068
|
-
let contentIndex = '';
|
|
3069
|
-
if (fse.existsSync(fileIndex)) {
|
|
3070
|
-
contentIndex = (await fse.readFile(fileIndex)).toString();
|
|
3071
|
-
}
|
|
3072
|
-
if (!contentIndex.includes(append)) {
|
|
3073
|
-
contentIndex = `${contentIndex}${append}\n`;
|
|
3074
|
-
await fse.outputFile(fileIndex, contentIndex);
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3077
3054
|
|
|
3078
3055
|
// import SVGCompiler from 'svg-baker';
|
|
3079
3056
|
// const svgSymbol = await new SVGCompiler().addSymbol({
|
|
@@ -10,4 +10,3 @@ export declare function extractBeanInfo(sceneName: string, fileContent: string,
|
|
|
10
10
|
};
|
|
11
11
|
export declare function beanFullNameFromOnionName(onionName: string, sceneName: string): string;
|
|
12
12
|
export declare function onionNameFromBeanFullName(beanFullName: string, sceneName: string): string;
|
|
13
|
-
export declare function generateRestIndex(modulePath: string, append: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.2.45",
|
|
4
|
+
"gitHead": "343c61ad189fe3f0fc997ee9f4c710567657e05c",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@cabloy/extend": "^3.1.0",
|
|
41
41
|
"@cabloy/module-info": "^2.0.0",
|
|
42
42
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
43
|
-
"@cabloy/utils": "^2.1.
|
|
43
|
+
"@cabloy/utils": "^2.1.16",
|
|
44
44
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
45
45
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
46
46
|
"@cabloy/word-utils": "^2.1.9",
|
|
File without changes
|
|
File without changes
|