@lcap/nasl 2.20.0-beta.1 → 2.20.0-beta.3
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/out/automate/engine/index.d.ts +1 -1
- package/out/automate/engine/index.js +7 -7
- package/out/automate/engine/index.js.map +1 -1
- package/out/automate/engine/uniqueName.d.ts +1 -1
- package/out/automate/engine/uniqueName.js +3 -3
- package/out/automate/engine/uniqueName.js.map +1 -1
- package/out/automate/template/myProcess.js +1 -1
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/bak/translator.js +38 -85
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +10 -6
- package/out/common/BaseNode.js +53 -7
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +1 -0
- package/out/concepts/AnonymousFunction__.js +40 -2
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +89 -261
- package/out/concepts/App__.js +315 -367
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +5 -5
- package/out/concepts/AssignmentLine__.js +6 -6
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +1 -2
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +62 -60
- package/out/concepts/BatchAssignment__.js +113 -42
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +24 -0
- package/out/concepts/BindAttribute__.js +54 -4
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +5 -0
- package/out/concepts/BindDirective__.js +6 -0
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +5 -0
- package/out/concepts/BindEvent__.js +6 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -2
- package/out/concepts/BindStyle__.js +9 -3
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +0 -8
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.js +90 -38
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +7 -0
- package/out/concepts/CallInterface__.js +54 -7
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -1
- package/out/concepts/CallLogic__.js +171 -37
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +16 -1
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +3 -0
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +5 -0
- package/out/concepts/Constant__.js +6 -0
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +8 -0
- package/out/concepts/DataSource__.js +96 -1
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +11 -2
- package/out/concepts/Destination__.js +156 -51
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +21 -8
- package/out/concepts/EntityProperty__.js +109 -23
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +32 -0
- package/out/concepts/Entity__.js +117 -2
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +0 -4
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +73 -0
- package/out/concepts/ExternalDestination__.js +264 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +0 -4
- package/out/concepts/ForEachStatement__.js +4 -8
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +370 -0
- package/out/concepts/Frontend__.js +669 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +1 -0
- package/out/concepts/Identifier__.js +33 -10
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +8 -0
- package/out/concepts/IfStatement__.js +22 -0
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +6 -1
- package/out/concepts/LogicItem__.js +6 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +91 -80
- package/out/concepts/Logic__.js +178 -59
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +1 -1
- package/out/concepts/MatchCase__.js +15 -8
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +21 -19
- package/out/concepts/Match__.js +118 -26
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +4 -1
- package/out/concepts/MemberExpression__.js +30 -15
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +345 -0
- package/out/concepts/NewComposite__.js +1068 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +130 -0
- package/out/concepts/NewList__.js +349 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +221 -0
- package/out/concepts/NewMap__.js +480 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +19 -0
- package/out/concepts/New__.js +66 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NumericLiteral__.js +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +7 -3
- package/out/concepts/OqlQueryComponent__.js +56 -95
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.d.ts +8 -1
- package/out/concepts/Param__.js +85 -6
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +42 -13
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +30 -0
- package/out/concepts/ProcessOutcomes__.js +87 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +4 -20
- package/out/concepts/Process__.js +0 -7
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +3 -3
- package/out/concepts/QueryOrderByExpression__.js +3 -3
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.d.ts +5 -0
- package/out/concepts/Return__.js +45 -2
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +1 -1
- package/out/concepts/SelectMembers__.js +5 -5
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +2 -4
- package/out/concepts/SqlQueryComponent__.js +9 -88
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +113 -0
- package/out/concepts/StringInterpolation__.js +227 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.js +0 -7
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +5 -0
- package/out/concepts/Transactional__.js +6 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +4 -0
- package/out/concepts/TypeAnnotation__.js +67 -15
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +1 -0
- package/out/concepts/TypeParam__.js +2 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +6 -9
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +87 -22
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +5 -0
- package/out/concepts/Variable__.js +46 -3
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +35 -29
- package/out/concepts/ViewElement__.js +138 -54
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +10 -3
- package/out/concepts/View__.js +116 -86
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +1 -1
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +50 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.logging.js +5 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +38 -4
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +214 -62
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +9 -0
- package/out/concepts/index__.js +9 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/enums/KEYWORDS.d.ts +1 -0
- package/out/enums/KEYWORDS.js +9 -1
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +10 -4
- package/out/generator/genBundleFiles.js +127 -162
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.d.ts +2 -11
- package/out/generator/genMetaData.js +185 -51
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +57 -0
- package/out/generator/genReleaseBody.js +380 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/index.d.ts +2 -0
- package/out/generator/index.js +2 -0
- package/out/generator/index.js.map +1 -1
- package/out/generator/permission.d.ts +17 -0
- package/out/generator/permission.js +221 -0
- package/out/generator/permission.js.map +1 -0
- package/out/index.d.ts +3 -2
- package/out/index.js +7 -1
- package/out/index.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +100 -20
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +33 -20
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +1 -2
- package/out/server/formatTsUtils.js +46 -64
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.d.ts +2 -1
- package/out/server/getLogics.js +24 -6
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +11 -11
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +1 -1
- package/out/server/getProcesses.js +1 -1
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/index.d.ts +0 -1
- package/out/server/index.js +2 -27
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +50 -8
- package/out/server/naslServer.js +816 -429
- package/out/server/naslServer.js.map +1 -1
- package/out/server/naslStdlibMap.js +30 -28
- package/out/server/naslStdlibMap.js.map +1 -1
- package/out/server/process2LogicNamespace.js +8 -0
- package/out/server/process2LogicNamespace.js.map +1 -1
- package/out/server/translator.js +90 -12
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +4 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +97 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/init.js +48 -7
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +6 -4
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +7 -4
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +7 -5
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +4 -5
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +5 -2
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +4 -3
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +18 -16
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +7 -7
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.d.ts +2 -2
- package/out/templator/genQueryComponent.js +4 -1
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genTableBlock.js +8 -12
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +4 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/test/integration/node-nasl-server.js +10 -38
- package/out/test/integration/node-nasl-server.js.map +1 -1
- package/out/translator/index.d.ts +1 -0
- package/out/translator/index.js +1 -1
- package/out/translator/index.js.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.js +38 -1
- package/out/utils/index.js.map +1 -1
- package/out/utils/string.d.ts +15 -2
- package/out/utils/string.js +18 -3
- package/out/utils/string.js.map +1 -1
- package/package.json +1 -1
- package/src/concepts/App__.ts +11 -36
- package/src/concepts/Frontend__.ts +8 -0
- package/src/concepts/ViewElement__.ts +7 -28
- package/src/concepts/View__.ts +1 -1
- package/src/generator/permission.ts +1 -1
- package/src/server/getLogics.ts +2 -2
- package/src/server/naslServer.ts +8 -8
- package/src/service/storage/init.ts +3 -4
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { Params } from '../common/EventEmitter';
|
|
3
|
+
import BaseNode from '../common/BaseNode';
|
|
4
|
+
import View from './View__';
|
|
5
|
+
import Variable from './Variable__';
|
|
6
|
+
import Theme from './Theme__';
|
|
7
|
+
import Module from './Module__';
|
|
8
|
+
import App, { AssetsInfo } from './App__';
|
|
9
|
+
/**
|
|
10
|
+
* 端
|
|
11
|
+
*/
|
|
12
|
+
export declare class Frontend extends BaseNode {
|
|
13
|
+
/**
|
|
14
|
+
* 产品概念
|
|
15
|
+
*/
|
|
16
|
+
concept: 'Frontend';
|
|
17
|
+
/**
|
|
18
|
+
* 端标识
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* pc端
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* PC/H5 端
|
|
27
|
+
*/
|
|
28
|
+
type: 'pc' | 'h5';
|
|
29
|
+
/**
|
|
30
|
+
* 基础路径
|
|
31
|
+
*/
|
|
32
|
+
path: string;
|
|
33
|
+
/**
|
|
34
|
+
* 制品应用标题
|
|
35
|
+
*/
|
|
36
|
+
documentTitle: string;
|
|
37
|
+
/**
|
|
38
|
+
* 制品应用图标
|
|
39
|
+
*/
|
|
40
|
+
documentIcon: string;
|
|
41
|
+
/**
|
|
42
|
+
* 页面列表
|
|
43
|
+
*/
|
|
44
|
+
views: Array<View>;
|
|
45
|
+
/**
|
|
46
|
+
* 变量列表
|
|
47
|
+
*/
|
|
48
|
+
variables: Array<Variable>;
|
|
49
|
+
/**
|
|
50
|
+
* 主题配置
|
|
51
|
+
*/
|
|
52
|
+
theme: Theme;
|
|
53
|
+
/**
|
|
54
|
+
* 扩展组件列表(兼容老版)
|
|
55
|
+
*/
|
|
56
|
+
componentDependencies: Array<Module>;
|
|
57
|
+
/**
|
|
58
|
+
* 祖先 App
|
|
59
|
+
*/
|
|
60
|
+
get app(): App;
|
|
61
|
+
/**
|
|
62
|
+
* @param source 需要合并的部分参数
|
|
63
|
+
*/
|
|
64
|
+
constructor(source?: Partial<Frontend>);
|
|
65
|
+
static from(source: any, parentNode?: any, parentKey?: string): Frontend;
|
|
66
|
+
/**
|
|
67
|
+
* 从父级删除该节点
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
_delete(): Params;
|
|
71
|
+
/**
|
|
72
|
+
* 设置端标识
|
|
73
|
+
*/
|
|
74
|
+
setName(name: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* 设置pc端
|
|
77
|
+
*/
|
|
78
|
+
setTitle(title: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* 设置基础路径
|
|
81
|
+
*/
|
|
82
|
+
setPath(path: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* 设置制品应用标题
|
|
85
|
+
*/
|
|
86
|
+
setDocumentTitle(documentTitle: string): void;
|
|
87
|
+
/**
|
|
88
|
+
* 设置制品应用图标
|
|
89
|
+
*/
|
|
90
|
+
setDocumentIcon(documentIcon: string): void;
|
|
91
|
+
getViewExistingNames(excludedList?: Array<View>): string[];
|
|
92
|
+
getViewUniqueName(name?: string): string;
|
|
93
|
+
/**
|
|
94
|
+
* 插入页面
|
|
95
|
+
* @internal
|
|
96
|
+
* @param name 页面名称,如果不填会自动生成一个唯一名称
|
|
97
|
+
*/
|
|
98
|
+
_insertViewAt(name: string, index: number): View;
|
|
99
|
+
/**
|
|
100
|
+
* 插入页面
|
|
101
|
+
* @internal
|
|
102
|
+
* @param viewOptions 页面参数
|
|
103
|
+
*/
|
|
104
|
+
_insertViewAt(viewOptions: Partial<View>, index: number): View;
|
|
105
|
+
/**
|
|
106
|
+
* 插入页面
|
|
107
|
+
* @internal
|
|
108
|
+
* @param view 已有的页面实例
|
|
109
|
+
*/
|
|
110
|
+
_insertViewAt(view: View, index: number): View;
|
|
111
|
+
/**
|
|
112
|
+
* 插入页面
|
|
113
|
+
* @param name 页面名称,如果不填会自动生成一个唯一名称
|
|
114
|
+
*/
|
|
115
|
+
insertViewAt(name: string, index: number): View;
|
|
116
|
+
/**
|
|
117
|
+
* 插入页面
|
|
118
|
+
* @param viewOptions 页面参数
|
|
119
|
+
*/
|
|
120
|
+
insertViewAt(viewOptions: Partial<View>, index: number): View;
|
|
121
|
+
/**
|
|
122
|
+
* 插入页面
|
|
123
|
+
* @param view 已有的页面实例
|
|
124
|
+
*/
|
|
125
|
+
insertViewAt(view: View, index: number): View;
|
|
126
|
+
/**
|
|
127
|
+
* 添加页面
|
|
128
|
+
* @internal
|
|
129
|
+
* @param name 页面名称,如果不填会自动生成一个唯一名称
|
|
130
|
+
*/
|
|
131
|
+
_addView(name?: string): View;
|
|
132
|
+
/**
|
|
133
|
+
* 添加页面
|
|
134
|
+
* @internal
|
|
135
|
+
* @param viewOptions 页面参数
|
|
136
|
+
*/
|
|
137
|
+
_addView(viewOptions: Partial<View>): View;
|
|
138
|
+
/**
|
|
139
|
+
* 添加页面
|
|
140
|
+
* @internal
|
|
141
|
+
* @param view 已有的页面实例
|
|
142
|
+
*/
|
|
143
|
+
_addView(view: View): View;
|
|
144
|
+
/**
|
|
145
|
+
* 添加页面
|
|
146
|
+
* @internal
|
|
147
|
+
* @param name 页面名称,如果不填会自动生成一个唯一名称
|
|
148
|
+
*/
|
|
149
|
+
addView(name?: string): View;
|
|
150
|
+
/**
|
|
151
|
+
* 添加页面
|
|
152
|
+
* @param viewOptions 页面参数
|
|
153
|
+
*/
|
|
154
|
+
addView(viewOptions: Partial<View>): View;
|
|
155
|
+
/**
|
|
156
|
+
* 添加页面
|
|
157
|
+
* @param view 已有的页面实例
|
|
158
|
+
*/
|
|
159
|
+
addView(view: View): View;
|
|
160
|
+
getVarExistingNames(excludedList?: Array<Variable>): string[];
|
|
161
|
+
getVariableUniqueName(name?: string): string;
|
|
162
|
+
/**
|
|
163
|
+
* 插入变量
|
|
164
|
+
* @internal
|
|
165
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
166
|
+
*/
|
|
167
|
+
_insertVariableAt(name: string, index: number): Variable;
|
|
168
|
+
/**
|
|
169
|
+
* 插入变量
|
|
170
|
+
* @internal
|
|
171
|
+
* @param variableOptions 变量参数
|
|
172
|
+
*/
|
|
173
|
+
_insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
174
|
+
/**
|
|
175
|
+
* 插入变量
|
|
176
|
+
* @internal
|
|
177
|
+
* @param variable 已有的变量实例
|
|
178
|
+
*/
|
|
179
|
+
_insertVariableAt(variable: Variable, index: number): Variable;
|
|
180
|
+
/**
|
|
181
|
+
* 插入变量
|
|
182
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
183
|
+
*/
|
|
184
|
+
insertVariableAt(name: string, index: number): Variable;
|
|
185
|
+
/**
|
|
186
|
+
* 插入变量
|
|
187
|
+
* @param variableOptions 变量参数
|
|
188
|
+
*/
|
|
189
|
+
insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
190
|
+
/**
|
|
191
|
+
* 插入变量
|
|
192
|
+
* @param variable 已有的变量实例
|
|
193
|
+
*/
|
|
194
|
+
insertVariableAt(variable: Variable, index: number): Variable;
|
|
195
|
+
/**
|
|
196
|
+
* 添加变量
|
|
197
|
+
* @internal
|
|
198
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
199
|
+
*/
|
|
200
|
+
_addVariable(name?: string): Variable;
|
|
201
|
+
/**
|
|
202
|
+
* 添加变量
|
|
203
|
+
* @internal
|
|
204
|
+
* @param variableOptions 变量参数
|
|
205
|
+
*/
|
|
206
|
+
_addVariable(variableOptions: Partial<Variable>): Variable;
|
|
207
|
+
/**
|
|
208
|
+
* 添加变量
|
|
209
|
+
* @internal
|
|
210
|
+
* @param variable 已有的变量实例
|
|
211
|
+
*/
|
|
212
|
+
_addVariable(variable: Variable): Variable;
|
|
213
|
+
/**
|
|
214
|
+
* 添加变量
|
|
215
|
+
* @internal
|
|
216
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
217
|
+
*/
|
|
218
|
+
addVariable(name?: string): Variable;
|
|
219
|
+
/**
|
|
220
|
+
* 添加变量
|
|
221
|
+
* @param variableOptions 变量参数
|
|
222
|
+
*/
|
|
223
|
+
addVariable(variableOptions: Partial<Variable>): Variable;
|
|
224
|
+
/**
|
|
225
|
+
* 添加变量
|
|
226
|
+
* @param variable 已有的变量实例
|
|
227
|
+
*/
|
|
228
|
+
addVariable(variable: Variable): Variable;
|
|
229
|
+
getModuleExistingNames(excludedList?: Array<Module>): string[];
|
|
230
|
+
getModuleUniqueName(name?: string): string;
|
|
231
|
+
/**
|
|
232
|
+
* 插入模块
|
|
233
|
+
* @internal
|
|
234
|
+
* @param name 模块名称,如果不填会自动生成一个唯一名称
|
|
235
|
+
*/
|
|
236
|
+
_insertModuleAt(name: string, index: number): Module;
|
|
237
|
+
/**
|
|
238
|
+
* 插入模块
|
|
239
|
+
* @internal
|
|
240
|
+
* @param moduleOptions 模块参数
|
|
241
|
+
*/
|
|
242
|
+
_insertModuleAt(moduleOptions: Partial<Module>, index: number): Module;
|
|
243
|
+
/**
|
|
244
|
+
* 插入模块
|
|
245
|
+
* @internal
|
|
246
|
+
* @param module 已有的模块实例
|
|
247
|
+
*/
|
|
248
|
+
_insertModuleAt(module: Module, index: number): Module;
|
|
249
|
+
/**
|
|
250
|
+
* 插入模块
|
|
251
|
+
* @param name 模块名称,如果不填会自动生成一个唯一名称
|
|
252
|
+
*/
|
|
253
|
+
insertModuleAt(name: string, index: number): Module;
|
|
254
|
+
/**
|
|
255
|
+
* 插入模块
|
|
256
|
+
* @param moduleOptions 模块参数
|
|
257
|
+
*/
|
|
258
|
+
insertModuleAt(moduleOptions: Partial<Module>, index: number): Module;
|
|
259
|
+
/**
|
|
260
|
+
* 插入模块
|
|
261
|
+
* @param module 已有的模块实例
|
|
262
|
+
*/
|
|
263
|
+
insertModuleAt(module: Module, index: number): Module;
|
|
264
|
+
/**
|
|
265
|
+
* 添加模块
|
|
266
|
+
* @internal
|
|
267
|
+
* @param name 模块名称,如果不填会自动生成一个唯一名称
|
|
268
|
+
*/
|
|
269
|
+
_addModule(name?: string): Module;
|
|
270
|
+
/**
|
|
271
|
+
* 添加模块
|
|
272
|
+
* @internal
|
|
273
|
+
* @param moduleOptions 模块参数
|
|
274
|
+
*/
|
|
275
|
+
_addModule(moduleOptions: Partial<Module>): Module;
|
|
276
|
+
/**
|
|
277
|
+
* 添加模块
|
|
278
|
+
* @internal
|
|
279
|
+
* @param module 已有的模块实例
|
|
280
|
+
*/
|
|
281
|
+
_addModule(module: Module): Module;
|
|
282
|
+
/**
|
|
283
|
+
* 添加模块
|
|
284
|
+
* @internal
|
|
285
|
+
* @param name 模块名称,如果不填会自动生成一个唯一名称
|
|
286
|
+
*/
|
|
287
|
+
addModule(name?: string): Module;
|
|
288
|
+
/**
|
|
289
|
+
* 添加模块
|
|
290
|
+
* @param moduleOptions 模块参数
|
|
291
|
+
*/
|
|
292
|
+
addModule(moduleOptions: Partial<Module>): Module;
|
|
293
|
+
/**
|
|
294
|
+
* 添加模块
|
|
295
|
+
* @param module 已有的模块实例
|
|
296
|
+
*/
|
|
297
|
+
addModule(module: Module): Module;
|
|
298
|
+
/**
|
|
299
|
+
* 删除页面
|
|
300
|
+
* @param name 页面名称
|
|
301
|
+
*/
|
|
302
|
+
removeView(name: string): void;
|
|
303
|
+
/**
|
|
304
|
+
* 删除页面
|
|
305
|
+
* @param view 已有的页面实例
|
|
306
|
+
*/
|
|
307
|
+
removeView(view: View): void;
|
|
308
|
+
__removeView(view: View): Params;
|
|
309
|
+
/**
|
|
310
|
+
* 删除变量
|
|
311
|
+
* @param name 变量名称
|
|
312
|
+
*/
|
|
313
|
+
removeVariable(name: string): void;
|
|
314
|
+
/**
|
|
315
|
+
* 删除变量
|
|
316
|
+
* @param variable 已有的变量实例
|
|
317
|
+
*/
|
|
318
|
+
removeVariable(variable: Variable): void;
|
|
319
|
+
__removeVariable(variable: Variable): Params;
|
|
320
|
+
/**
|
|
321
|
+
* 删除主题
|
|
322
|
+
* @param name 主题名称
|
|
323
|
+
*/
|
|
324
|
+
removeTheme(name: string): void;
|
|
325
|
+
/**
|
|
326
|
+
* 删除主题
|
|
327
|
+
* @param theme 已有的主题实例
|
|
328
|
+
*/
|
|
329
|
+
removeTheme(theme: Theme): void;
|
|
330
|
+
__removeTheme(theme: Theme): Params;
|
|
331
|
+
/**
|
|
332
|
+
* 删除模块
|
|
333
|
+
* @param name 模块名称
|
|
334
|
+
*/
|
|
335
|
+
removeModule(name: string): void;
|
|
336
|
+
/**
|
|
337
|
+
* 删除模块
|
|
338
|
+
* @param module 已有的模块实例
|
|
339
|
+
*/
|
|
340
|
+
removeModule(module: Module): void;
|
|
341
|
+
__removeModule(module: Module): Params;
|
|
342
|
+
findComponentDependencyByName(name: string): Module;
|
|
343
|
+
/**
|
|
344
|
+
* @param path 路径
|
|
345
|
+
* path 为要查找路径:如 /dashboard/student/list、/dashboard/student/list
|
|
346
|
+
*/
|
|
347
|
+
findViewByPath(path: string): View;
|
|
348
|
+
findViewByName(name: string): View;
|
|
349
|
+
genThemeCSS(): string;
|
|
350
|
+
getNamespace(): string;
|
|
351
|
+
/**
|
|
352
|
+
* 生成宿主语言的文件路径
|
|
353
|
+
* @param name 一般不用传,用于 rename
|
|
354
|
+
*/
|
|
355
|
+
getEmbeddedFilePath(name?: string): string;
|
|
356
|
+
toEmbeddedTS(state?: TranslatorState): string;
|
|
357
|
+
toEmbeddedTSFile(): {
|
|
358
|
+
code: string;
|
|
359
|
+
filePath: string;
|
|
360
|
+
sourceMap: import("../translator").SourceMap;
|
|
361
|
+
};
|
|
362
|
+
getPath(): string;
|
|
363
|
+
/**
|
|
364
|
+
* 为/的转成'',便于url拼接
|
|
365
|
+
*/
|
|
366
|
+
get basePath(): string;
|
|
367
|
+
genCustomAssetsInfo(prefix: string): AssetsInfo;
|
|
368
|
+
getExtensionsCallbackLogics(): string[];
|
|
369
|
+
}
|
|
370
|
+
export default Frontend;
|