star-horse-lowcode 2.7.65 → 2.7.66
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.md +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +491 -253
- package/package.json +1 -1
- package/.env.development +0 -3
- package/.env.production +0 -3
- package/.eslintrc-auto-import.json +0 -77
- package/.gitignore +0 -27
- package/.idea/.gitignore +0 -5
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/testcode.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -4
- package/.idea/workspace.xml +0 -207
- package/.npmignore +0 -21
- package/.prettierignore +0 -26
- package/auto-imports.d.ts +0 -137
- package/components.d.ts +0 -189
- package/eslint.config.js +0 -37
- package/index.html +0 -14
- package/package-lock.json +0 -8276
- package/prettier.config.js +0 -20
- package/public/logo.svg +0 -660
- package/src/App.vue +0 -11
- package/src/api/date_utils.ts +0 -219
- package/src/api/finger_utils.ts +0 -71
- package/src/api/form_utils.ts +0 -281
- package/src/api/jquery.min.js +0 -2
- package/src/api/pcas-code.json +0 -1
- package/src/api/settings.ts +0 -81
- package/src/api/star_horse_apis.ts +0 -196
- package/src/api/star_horse_utils.ts +0 -797
- package/src/api/system.ts +0 -351
- package/src/api/user_func.ts +0 -147
- package/src/api/valid_utils.ts +0 -165
- package/src/assets/css/index.scss +0 -908
- package/src/assets/icons.css +0 -574
- package/src/assets/star-horse-icons.woff +0 -0
- package/src/components/comp/ShDynamicForm.vue +0 -160
- package/src/components/comp/ShForm.vue +0 -30
- package/src/components/comp/ShTableListColumn.vue +0 -61
- package/src/components/comp/StarHorseDataSelector.vue +0 -139
- package/src/components/comp/StarHorseDataView.vue +0 -110
- package/src/components/comp/StarHorseDataViewItems.vue +0 -61
- package/src/components/comp/StarHorseDataViewTable.vue +0 -102
- package/src/components/comp/StarHorseDialog.vue +0 -383
- package/src/components/comp/StarHorseDraggable.vue +0 -401
- package/src/components/comp/StarHorseForm.vue +0 -458
- package/src/components/comp/StarHorseFormItem.vue +0 -82
- package/src/components/comp/StarHorseFormList.vue +0 -516
- package/src/components/comp/StarHorseFormTable.vue +0 -56
- package/src/components/comp/StarHorseIcon.vue +0 -76
- package/src/components/comp/StarHorseItem.vue +0 -302
- package/src/components/comp/StarHorseJsonEditor.vue +0 -115
- package/src/components/comp/StarHorsePopover.vue +0 -66
- package/src/components/comp/StarHorseSearchComp.vue +0 -253
- package/src/components/comp/StarHorseStaticTable.vue +0 -395
- package/src/components/comp/StarHorseTableColumn.vue +0 -249
- package/src/components/comp/StarHorseTableComp.vue +0 -1193
- package/src/components/comp/StarHorseTableViewColumn.vue +0 -61
- package/src/components/comp/StarHorseTree.vue +0 -494
- package/src/components/comp/index.ts +0 -22
- package/src/components/comp/items/UTableColumn.vue +0 -65
- package/src/components/comp/items/boxItem.vue +0 -98
- package/src/components/comp/items/callitem.ts +0 -9
- package/src/components/comp/items/cardItem.vue +0 -152
- package/src/components/comp/items/collapseItem.vue +0 -134
- package/src/components/comp/items/dytableItem.vue +0 -135
- package/src/components/comp/items/otherItem.vue +0 -65
- package/src/components/comp/items/tabItem.vue +0 -155
- package/src/components/comp/items/tabPanelItem.vue +0 -110
- package/src/components/comp/items/tableColumn.vue +0 -129
- package/src/components/comp/items/tableItem.vue +0 -97
- package/src/components/comp/items/tablebtn.vue +0 -158
- package/src/components/comp/items/viewBoxItem.vue +0 -55
- package/src/components/comp/items/viewCardItem.vue +0 -47
- package/src/components/comp/items/viewCollapseItem.vue +0 -71
- package/src/components/comp/items/viewDytableItem.vue +0 -77
- package/src/components/comp/items/viewOtherItem.vue +0 -55
- package/src/components/comp/items/viewTabItem.vue +0 -77
- package/src/components/comp/items/viewTabPanelItem.vue +0 -54
- package/src/components/comp/items/viewTableItem.vue +0 -74
- package/src/components/comp/selfcomp.ts +0 -9
- package/src/components/comp/utils/DataPicker.vue +0 -302
- package/src/components/comp/utils/DataTag.vue +0 -51
- package/src/components/cron/Crontab-Day.vue +0 -230
- package/src/components/cron/Crontab-Hour.vue +0 -165
- package/src/components/cron/Crontab-Min.vue +0 -166
- package/src/components/cron/Crontab-Month.vue +0 -166
- package/src/components/cron/Crontab-Result.vue +0 -615
- package/src/components/cron/Crontab-Second.vue +0 -185
- package/src/components/cron/Crontab-Week.vue +0 -208
- package/src/components/cron/Crontab-Year.vue +0 -183
- package/src/components/cron/Crontab.vue +0 -474
- package/src/components/enums/ModuleEnums.ts +0 -10
- package/src/components/enums/ServiceEnums.ts +0 -18
- package/src/components/formcomp/container/box-container.vue +0 -162
- package/src/components/formcomp/container/callitem.ts +0 -9
- package/src/components/formcomp/container/card-container.vue +0 -170
- package/src/components/formcomp/container/collapse-container.vue +0 -133
- package/src/components/formcomp/container/dytable-col.vue +0 -448
- package/src/components/formcomp/container/dytable-container.vue +0 -57
- package/src/components/formcomp/container/dytableUtils.ts +0 -358
- package/src/components/formcomp/container/group-box-container.vue +0 -331
- package/src/components/formcomp/container/index.ts +0 -6
- package/src/components/formcomp/container/tab-container.vue +0 -153
- package/src/components/formcomp/container/table-container.vue +0 -249
- package/src/components/formcomp/items/allitem.ts +0 -9
- package/src/components/formcomp/items/area-item.vue +0 -116
- package/src/components/formcomp/items/audio-item.vue +0 -163
- package/src/components/formcomp/items/autocomplete-item.vue +0 -118
- package/src/components/formcomp/items/barcode-item.vue +0 -87
- package/src/components/formcomp/items/base-json-item.vue +0 -207
- package/src/components/formcomp/items/button-item.vue +0 -228
- package/src/components/formcomp/items/cascade-item.vue +0 -113
- package/src/components/formcomp/items/checkbox-item.vue +0 -97
- package/src/components/formcomp/items/color-item.vue +0 -70
- package/src/components/formcomp/items/cron-item.vue +0 -115
- package/src/components/formcomp/items/datetime-item.vue +0 -99
- package/src/components/formcomp/items/depart-item.vue +0 -51
- package/src/components/formcomp/items/dialog-input-item.vue +0 -207
- package/src/components/formcomp/items/divider-item.vue +0 -66
- package/src/components/formcomp/items/html-item.vue +0 -65
- package/src/components/formcomp/items/htmleditor-item.vue +0 -104
- package/src/components/formcomp/items/icon-item.vue +0 -195
- package/src/components/formcomp/items/image-item.vue +0 -247
- package/src/components/formcomp/items/index.ts +0 -44
- package/src/components/formcomp/items/input-item.vue +0 -150
- package/src/components/formcomp/items/json-array-item.vue +0 -67
- package/src/components/formcomp/items/json-item.vue +0 -66
- package/src/components/formcomp/items/markdown-item.vue +0 -77
- package/src/components/formcomp/items/number-item.vue +0 -94
- package/src/components/formcomp/items/number-range-item.vue +0 -278
- package/src/components/formcomp/items/page-select-item.vue +0 -407
- package/src/components/formcomp/items/password-item.vue +0 -71
- package/src/components/formcomp/items/qrcode-item.vue +0 -84
- package/src/components/formcomp/items/radio-item.vue +0 -112
- package/src/components/formcomp/items/rate-item.vue +0 -68
- package/src/components/formcomp/items/select-item.vue +0 -133
- package/src/components/formcomp/items/signature-item.vue +0 -216
- package/src/components/formcomp/items/slider-item.vue +0 -68
- package/src/components/formcomp/items/starhorse-form-item.vue +0 -334
- package/src/components/formcomp/items/switch-item.vue +0 -77
- package/src/components/formcomp/items/tag-item.vue +0 -77
- package/src/components/formcomp/items/text-item.vue +0 -75
- package/src/components/formcomp/items/textarea-item.vue +0 -85
- package/src/components/formcomp/items/time-item.vue +0 -77
- package/src/components/formcomp/items/time-picker-item.vue +0 -74
- package/src/components/formcomp/items/transfer-item.vue +0 -93
- package/src/components/formcomp/items/tselect-item.vue +0 -121
- package/src/components/formcomp/items/unknown-item.vue +0 -51
- package/src/components/formcomp/items/upload-item.vue +0 -189
- package/src/components/formcomp/items/user-item.vue +0 -177
- package/src/components/formcomp/items/usercomp-item.vue +0 -85
- package/src/components/formcomp/items/view-markdown-item.vue +0 -77
- package/src/components/formcomp/utils/EditDataDialog.vue +0 -67
- package/src/components/formcomp/utils/FieldList.vue +0 -125
- package/src/components/formcomp/utils/ItemRelationEventUtils.ts +0 -284
- package/src/components/help.vue +0 -31
- package/src/components/menu/MenuItem.vue +0 -95
- package/src/components/menu/SubMenu.vue +0 -68
- package/src/components/menu/SubSystemMenu.vue +0 -142
- package/src/components/register.ts +0 -24
- package/src/components/system/ContentMenu.vue +0 -260
- package/src/components/system/StarHorseButtonList.vue +0 -344
- package/src/components/system/StarHorseMenu.vue +0 -97
- package/src/components/system/StarHorseSvg.vue +0 -62
- package/src/components/system/SystemComp.ts +0 -9
- package/src/components/system/index.ts +0 -4
- package/src/components/types/ApiUrls.ts +0 -168
- package/src/components/types/BtnAction.ts +0 -51
- package/src/components/types/BtnAuth.ts +0 -43
- package/src/components/types/CompInfo.ts +0 -81
- package/src/components/types/DialogProps.ts +0 -55
- package/src/components/types/DyCompField.ts +0 -23
- package/src/components/types/DynamicNode.ts +0 -42
- package/src/components/types/MenusInfo.ts +0 -45
- package/src/components/types/PageFieldInfo.ts +0 -530
- package/src/components/types/PageProps.ts +0 -25
- package/src/components/types/Params.ts +0 -93
- package/src/components/types/RuleType.ts +0 -10
- package/src/components/types/SearchProps.ts +0 -42
- package/src/components/types/ShortKey.ts +0 -30
- package/src/components/types/StarHorseType.ts +0 -18
- package/src/components/types/index.ts +0 -15
- package/src/config/element.ts +0 -15
- package/src/config/styles.ts +0 -4
- package/src/index.ts +0 -98
- package/src/install.ts +0 -33
- package/src/lang/en_US.ts +0 -81
- package/src/lang/index.ts +0 -35
- package/src/lang/zh_CN.ts +0 -84
- package/src/main.ts +0 -57
- package/src/plugins/AblesPlugin.ts +0 -618
- package/src/plugins/registerCompPlugin.ts +0 -15
- package/src/sample/test.vue +0 -9
- package/src/store/ButtonPermission.ts +0 -101
- package/src/store/ConsumerView.ts +0 -52
- package/src/store/ContinusConfig.ts +0 -78
- package/src/store/CopyerOperation.ts +0 -74
- package/src/store/DesignForm.ts +0 -481
- package/src/store/DesignPage.ts +0 -59
- package/src/store/DynamicForm.ts +0 -241
- package/src/store/GlobalConfig.ts +0 -90
- package/src/store/SelfOperation.ts +0 -95
- package/src/store/UserInfo.ts +0 -88
- package/src/store/index.ts +0 -6
- package/src/theme/localStorge.ts +0 -16
- package/src/theme/theme.ts +0 -27
- package/src/utils/FieldOperationUtils.ts +0 -91
- package/src/utils/auth.ts +0 -83
- package/src/utils/message.ts +0 -69
- package/src/utils/preview.ts +0 -125
- package/tsconfig.json +0 -39
- package/tsconfig.node.json +0 -10
- package/vite-env.d.ts +0 -16
- package/vite.config.ts +0 -162
- package/yarn.lock +0 -4627
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from "./ApiUrls";
|
|
2
|
-
export * from "./BtnAction";
|
|
3
|
-
export * from "./CompInfo";
|
|
4
|
-
export * from "./DialogProps";
|
|
5
|
-
export * from "./DyCompField";
|
|
6
|
-
export * from "./DynamicNode";
|
|
7
|
-
export * from "./MenusInfo";
|
|
8
|
-
export * from "./PageFieldInfo";
|
|
9
|
-
export * from "./PageProps";
|
|
10
|
-
export * from "./Params";
|
|
11
|
-
export * from "./RuleType";
|
|
12
|
-
export * from "./SearchProps";
|
|
13
|
-
export * from "./ShortKey";
|
|
14
|
-
export * from "./StarHorseType";
|
|
15
|
-
export * from "./BtnAuth";
|
package/src/config/element.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
2
|
-
import ElementPlus from "element-plus";
|
|
3
|
-
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
|
|
4
|
-
|
|
5
|
-
// Element Plus 配置函数
|
|
6
|
-
export const configureElementPlus = (app: App<Element>, options?: any) => {
|
|
7
|
-
// 只在没有配置时才设置中文
|
|
8
|
-
if (!options?.locale) {
|
|
9
|
-
app.use(ElementPlus, {
|
|
10
|
-
locale: zhCn,
|
|
11
|
-
});
|
|
12
|
-
} else {
|
|
13
|
-
app.use(ElementPlus, options);
|
|
14
|
-
}
|
|
15
|
-
};
|
package/src/config/styles.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// 在文件最顶部添加以下代码
|
|
2
|
-
import { App, defineAsyncComponent } from "vue";
|
|
3
|
-
import "tailwindcss/index.css";
|
|
4
|
-
import "@/assets/css/index.scss";
|
|
5
|
-
// import 'element-plus/theme-chalk/index.css';
|
|
6
|
-
import "@/assets/icons.css";
|
|
7
|
-
import piniaInstance from "@/store";
|
|
8
|
-
import { AxiosInstance } from "axios";
|
|
9
|
-
import type { Router } from "vue-router";
|
|
10
|
-
import ElementPlus from "element-plus";
|
|
11
|
-
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
|
|
12
|
-
import { starHorseAxios } from "@/api/star_horse_apis";
|
|
13
|
-
|
|
14
|
-
export * from "@/api/star_horse_apis";
|
|
15
|
-
export * from "@/api/star_horse_utils";
|
|
16
|
-
|
|
17
|
-
export * from "@/api/date_utils";
|
|
18
|
-
export * from "@/api/system";
|
|
19
|
-
export * from "@/api/user_func";
|
|
20
|
-
export * from "@/utils/message";
|
|
21
|
-
export * from "@/api/finger_utils";
|
|
22
|
-
const items = import.meta.glob([
|
|
23
|
-
"@/components/comp/*.vue",
|
|
24
|
-
"@/components/comp/items/*.vue",
|
|
25
|
-
"@/components/system/*.vue",
|
|
26
|
-
"@/components/formcomp/items/*.vue",
|
|
27
|
-
"@/components/formcomp/container/*.vue",
|
|
28
|
-
]);
|
|
29
|
-
// 声明全局变量存储宿主应用的 router
|
|
30
|
-
declare global {
|
|
31
|
-
var __hostRouter__: Router | undefined;
|
|
32
|
-
var __hostAxios__: AxiosInstance | undefined;
|
|
33
|
-
var __starHorseHostApp__: App<Element> | undefined;
|
|
34
|
-
}
|
|
35
|
-
// 插件安装方法
|
|
36
|
-
const install = (
|
|
37
|
-
app: App<Element>,
|
|
38
|
-
options?: {
|
|
39
|
-
router?: Router;
|
|
40
|
-
axiosInstance?: AxiosInstance; //如果外部传入axios实例,就使用外部传入的,否则使用默认的
|
|
41
|
-
elementPlusOptions?: any; // 添加Element Plus配置选项
|
|
42
|
-
},
|
|
43
|
-
) => {
|
|
44
|
-
// 注入宿主应用的 router 实例
|
|
45
|
-
if (options?.router) {
|
|
46
|
-
window.__hostRouter__ = options.router;
|
|
47
|
-
}
|
|
48
|
-
// 注入axios实例
|
|
49
|
-
if (options?.axiosInstance) {
|
|
50
|
-
window.__hostAxios__ = options.axiosInstance;
|
|
51
|
-
}
|
|
52
|
-
// 只在没有配置时才设置中文
|
|
53
|
-
if (!options?.elementPlusOptions?.locale) {
|
|
54
|
-
app.use(ElementPlus, {
|
|
55
|
-
locale: zhCn,
|
|
56
|
-
});
|
|
57
|
-
} else {
|
|
58
|
-
app.use(ElementPlus, options.elementPlusOptions);
|
|
59
|
-
}
|
|
60
|
-
window.__starHorseHostApp__ = app;
|
|
61
|
-
Object.entries(items).forEach(([path, component]) => {
|
|
62
|
-
const name = path
|
|
63
|
-
.split("/")
|
|
64
|
-
.pop() // 获取文件名
|
|
65
|
-
?.replace(/\.vue$/, ""); // 移除扩展名
|
|
66
|
-
|
|
67
|
-
if (name) {
|
|
68
|
-
app.component(name, defineAsyncComponent(component as any));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
//表单组件增加调用参数source: { type: Number, default: 1 },//调用来源1 表单新增 2 表单编辑 3 查看视图 4 查询 5 列表 6 表单设计 7 页面设计
|
|
73
|
-
// 导出所有组件用于按需引入
|
|
74
|
-
export * from "@/components/comp";
|
|
75
|
-
export * from "@/components/formcomp/container";
|
|
76
|
-
export * from "@/components/formcomp/items";
|
|
77
|
-
export * from "@/components/system";
|
|
78
|
-
export * from "@/components/types";
|
|
79
|
-
// 导出所有store
|
|
80
|
-
export * from "@/store/ButtonPermission";
|
|
81
|
-
export * from "@/store/ConsumerView";
|
|
82
|
-
export * from "@/store/ContinusConfig";
|
|
83
|
-
export * from "@/store/CopyerOperation";
|
|
84
|
-
export * from "@/store/DesignForm";
|
|
85
|
-
export * from "@/store/DesignPage";
|
|
86
|
-
export * from "@/store/DynamicForm";
|
|
87
|
-
export * from "@/store/GlobalConfig";
|
|
88
|
-
export * from "@/store/SelfOperation";
|
|
89
|
-
export * from "@/store/UserInfo";
|
|
90
|
-
|
|
91
|
-
//将pinia的实例导出,否则会导致在设计表单时数据不一致
|
|
92
|
-
export { piniaInstance, starHorseAxios };
|
|
93
|
-
|
|
94
|
-
export default {
|
|
95
|
-
install,
|
|
96
|
-
piniaInstance,
|
|
97
|
-
starHorseAxios,
|
|
98
|
-
};
|
package/src/install.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
2
|
-
import type { Router } from "vue-router";
|
|
3
|
-
import { registerGlobalComponents } from "./components/register";
|
|
4
|
-
import { configureElementPlus } from "./config/element";
|
|
5
|
-
|
|
6
|
-
// 声明全局变量(保持原有逻辑)
|
|
7
|
-
declare global {
|
|
8
|
-
var __hostRouter__: Router | undefined;
|
|
9
|
-
var __starHorseHostApp__: App<Element> | undefined;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// 插件安装方法(原 install 函数)
|
|
13
|
-
export const install = (
|
|
14
|
-
app: App<Element>,
|
|
15
|
-
options?: {
|
|
16
|
-
router?: Router;
|
|
17
|
-
elementPlusOptions?: any;
|
|
18
|
-
},
|
|
19
|
-
) => {
|
|
20
|
-
// 注入宿主应用的 router 实例
|
|
21
|
-
if (options?.router) {
|
|
22
|
-
app.provide("starHorseRouter", options.router);
|
|
23
|
-
window.__hostRouter__ = options.router;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Element Plus 配置(拆分至 config/element.ts)
|
|
27
|
-
configureElementPlus(app, options?.elementPlusOptions);
|
|
28
|
-
|
|
29
|
-
// 全局组件注册(拆分至 components/register.ts)
|
|
30
|
-
registerGlobalComponents(app);
|
|
31
|
-
|
|
32
|
-
window.__starHorseHostApp__ = app;
|
|
33
|
-
};
|
package/src/lang/en_US.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"starhorse.copyright": `©Copyright2020-${new Date().getFullYear()} Star Horse Personal Work House`,
|
|
3
|
-
"starhorse.pleaseInput": "Please input",
|
|
4
|
-
"starhorse.pleaseSelect": "Please select",
|
|
5
|
-
"starhorse.notAllowEmpty": "required",
|
|
6
|
-
/**
|
|
7
|
-
* 登录页面------------
|
|
8
|
-
*/
|
|
9
|
-
"loginType.password": "Security Login",
|
|
10
|
-
"loginType.rtCode": "rtCode Login",
|
|
11
|
-
"loginType.otherType": "Other Login",
|
|
12
|
-
"loginType.github": "GitHub",
|
|
13
|
-
"loginType.wechat": "WebChat",
|
|
14
|
-
"loginType.alipay": "Alipay",
|
|
15
|
-
"loginType.weibo": "Webo",
|
|
16
|
-
"loginType.validCode": "Valid Code",
|
|
17
|
-
"login.userName": "UserName",
|
|
18
|
-
"login.password": "Password",
|
|
19
|
-
"login.validCode": "Code",
|
|
20
|
-
"login.rememberMe": "Remember Me",
|
|
21
|
-
"login.forget": "Forget Password?",
|
|
22
|
-
"login.noAccount": "No Account?",
|
|
23
|
-
"loginButton.register": "Register",
|
|
24
|
-
"loginButton.login": "Login",
|
|
25
|
-
"loginButton.welcome": "Welcome",
|
|
26
|
-
"loginButton.welcomeBack": "Welcome Back",
|
|
27
|
-
"loginButton.description": " Welcome to StarHorse Devlopse Platform",
|
|
28
|
-
"loginButton.logging": "Logging...",
|
|
29
|
-
"main.header.authority": "User Center",
|
|
30
|
-
"main.header.calendar": "Calendar",
|
|
31
|
-
"main.header.layoutConfig": "Layout Config",
|
|
32
|
-
"main.header.userEdit": "Modify",
|
|
33
|
-
"main.header.logout": "Logout",
|
|
34
|
-
/**
|
|
35
|
-
* 对话框--------------
|
|
36
|
-
*/
|
|
37
|
-
"dialog.submit": "Submit",
|
|
38
|
-
"dialog.submitContinue": "Submit&Continue",
|
|
39
|
-
"dialog.save": "Save",
|
|
40
|
-
"dialog.saveContinue": "Save&Continue",
|
|
41
|
-
"dialog.reset": "Reset",
|
|
42
|
-
"dialog.fullScreen": "FullScreen",
|
|
43
|
-
"dialog.resize": "Restore",
|
|
44
|
-
"dialog.close": "Close",
|
|
45
|
-
"dialog.editTitle": "Edit",
|
|
46
|
-
"dialog.viewTitle": "View",
|
|
47
|
-
/**
|
|
48
|
-
* 流程设计器
|
|
49
|
-
*/
|
|
50
|
-
"flow.design": "Flow Design",
|
|
51
|
-
"flow.designer": "Flow Designer",
|
|
52
|
-
"flow.designer.addNode": "Add Node",
|
|
53
|
-
"flow.designer.addNode.start": "Start",
|
|
54
|
-
"flow.designer.addNode.end": "End",
|
|
55
|
-
"flow.designer.addNode.condition": "Condition",
|
|
56
|
-
"flow.designer.addNode.parallel": "Parallel",
|
|
57
|
-
"flow.designer.addNode.suggest": "Suggest",
|
|
58
|
-
"flow.designer.addNode.user": "User Node",
|
|
59
|
-
"flow.designer.addNode.form": "Form Node",
|
|
60
|
-
"flow.designer.addNode.approve": "Approve Node",
|
|
61
|
-
"flow.designer.addNode.sign": "Sign Node",
|
|
62
|
-
"flow.designer.addNode.branch": "Branch Node",
|
|
63
|
-
"flow.designer.addNode.loop": "Loop Node",
|
|
64
|
-
"flow.designer.addNode.subProcess": "Sub Process Node",
|
|
65
|
-
"flow.designer.addNode.auto": "Auto Node",
|
|
66
|
-
"flow.designer.addNode.manual": "Manual Node",
|
|
67
|
-
"flow.designer.addNode.autoApprove": "Auto Approve",
|
|
68
|
-
"flow.designer.addNode.manualApprove": "Manual Approve",
|
|
69
|
-
"flow.designer.addNode.autoSign": "Auto Sign",
|
|
70
|
-
"flow.designer.addNode.manualSign": "Manual Sign",
|
|
71
|
-
"flow.designer.addNode.autoBranch": "Auto Branch",
|
|
72
|
-
"flow.designer.addNode.manualBranch": "Manual Branch",
|
|
73
|
-
"flow.designer.addNode.autoLoop": "Auto Loop",
|
|
74
|
-
"flow.designer.addNode.manualLoop": "Manual Loop",
|
|
75
|
-
"flow.designer.addNode.autoSubProcess": "Auto Sub Process",
|
|
76
|
-
"flow.designer.addNode.manualSubProcess": "Manual Sub Process",
|
|
77
|
-
"flow.designer.delNode": "Delete Node",
|
|
78
|
-
"flow.designer.delNode.confirm": "Are you sure to delete?",
|
|
79
|
-
"flow.designer.delNode.confirm.tips":
|
|
80
|
-
"Delete this node will delete all the child nodes",
|
|
81
|
-
};
|
package/src/lang/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import zh_CN from "@/lang/zh_CN";
|
|
2
|
-
import en_US from "@/lang/en_US";
|
|
3
|
-
import { LangType } from "@/theme/theme";
|
|
4
|
-
import { getLang } from "@/theme/localStorge";
|
|
5
|
-
|
|
6
|
-
const language = {
|
|
7
|
-
zh_cn: zh_CN,
|
|
8
|
-
en_us: en_US,
|
|
9
|
-
};
|
|
10
|
-
export const currentLang: LangType = getLang() || LangType.ZH_CN;
|
|
11
|
-
export const isEn = currentLang === LangType.EN_US;
|
|
12
|
-
export const isZH = currentLang === LangType.ZH_CN;
|
|
13
|
-
const langSet: Record<string, string> = language[currentLang];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @param key
|
|
18
|
-
* @param args
|
|
19
|
-
*/
|
|
20
|
-
export function i18n(key: keyof typeof zh_CN, ...args: any[]) {
|
|
21
|
-
const result = langSet[key];
|
|
22
|
-
const resultList: Array<string> = [];
|
|
23
|
-
if (result === undefined) {
|
|
24
|
-
return `[${key}]`;
|
|
25
|
-
} else {
|
|
26
|
-
resultList.push(result);
|
|
27
|
-
args.forEach((arg: any) => {
|
|
28
|
-
const temp = langSet[arg];
|
|
29
|
-
if (temp) {
|
|
30
|
-
resultList.push(temp);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return resultList.join("en_us" === LangType.EN_US ? " " : "");
|
|
34
|
-
}
|
|
35
|
-
}
|
package/src/lang/zh_CN.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Config } from "@/api/settings";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
"starhorse.copyright": Config.footerTxt,
|
|
5
|
-
"starhorse.pleaseInput": "请输入",
|
|
6
|
-
"starhorse.pleaseSelect": "请选择",
|
|
7
|
-
"starhorse.notAllowEmpty": "不能为空",
|
|
8
|
-
/**
|
|
9
|
-
* 登录页面------------
|
|
10
|
-
*/
|
|
11
|
-
"loginType.password": "密码登录",
|
|
12
|
-
"loginType.rtCode": "扫码登录",
|
|
13
|
-
"loginType.otherType": "其它登录方式",
|
|
14
|
-
"loginType.github": "GitHub",
|
|
15
|
-
"loginType.wechat": "微信",
|
|
16
|
-
"loginType.alipay": "支付宝",
|
|
17
|
-
"loginType.weibo": "微博",
|
|
18
|
-
"loginType.validCode": "验证码",
|
|
19
|
-
"login.userName": "账 号",
|
|
20
|
-
"login.password": "密 码",
|
|
21
|
-
"login.validCode": "验证码",
|
|
22
|
-
"login.rememberMe": "记住我",
|
|
23
|
-
"login.forget": "忘记密码?",
|
|
24
|
-
"login.noAccount": "没有账号?",
|
|
25
|
-
"loginButton.register": "立即注册",
|
|
26
|
-
"loginButton.login": "登 录",
|
|
27
|
-
"loginButton.welcome": "欢迎光临",
|
|
28
|
-
"loginButton.welcomeBack": "欢迎回来",
|
|
29
|
-
"loginButton.description": ` StarHorse DevOps是一个企业级开发运维和全栈低代码开发平台!潜心打造强大核心技术底座:内置元数据引擎、业务流程引擎、业务触发器、可视化表单。
|
|
30
|
-
Sql查询、代码生成、CMDB、数据建模、数据可视化、报表、仪表盘、工作流、权限管理、消息推送、文件管理等功能一应俱全!`,
|
|
31
|
-
"loginButton.logging": "登 录 中...",
|
|
32
|
-
"main.header.authority": "用户中心",
|
|
33
|
-
"main.header.calendar": "日程表",
|
|
34
|
-
"main.header.layoutConfig": "布局设置",
|
|
35
|
-
"main.header.userEdit": "修改个人信息",
|
|
36
|
-
"main.header.logout": "退出",
|
|
37
|
-
/**
|
|
38
|
-
* 对话框--------------
|
|
39
|
-
*/
|
|
40
|
-
"dialog.submit": "提交",
|
|
41
|
-
"dialog.submitContinue": "提交并继续",
|
|
42
|
-
"dialog.save": "保存",
|
|
43
|
-
"dialog.saveContinue": "保存并继续",
|
|
44
|
-
"dialog.reset": "重置",
|
|
45
|
-
"dialog.fullScreen": "最大化",
|
|
46
|
-
"dialog.resize": "还原",
|
|
47
|
-
"dialog.close": "关闭",
|
|
48
|
-
"dialog.editTitle": "编辑",
|
|
49
|
-
"dialog.viewTitle": "查看",
|
|
50
|
-
/**
|
|
51
|
-
* 流程设计器
|
|
52
|
-
*/
|
|
53
|
-
"flow.design": "流程设计",
|
|
54
|
-
"flow.designer": "流程设计器",
|
|
55
|
-
"flow.designer.addNode": "添加节点",
|
|
56
|
-
"flow.designer.addNode.start": "开始",
|
|
57
|
-
"flow.designer.addNode.end": "结束",
|
|
58
|
-
"flow.designer.addNode.condition": "条件分支",
|
|
59
|
-
"flow.designer.addNode.parallel": "并行分支",
|
|
60
|
-
"flow.designer.addNode.suggest": "意见分支",
|
|
61
|
-
"flow.designer.addNode.user": "用户节点",
|
|
62
|
-
"flow.designer.addNode.form": "表单节点",
|
|
63
|
-
"flow.designer.addNode.approve": "审批节点",
|
|
64
|
-
"flow.designer.addNode.sign": "会签节点",
|
|
65
|
-
"flow.designer.addNode.branch": "分支节点",
|
|
66
|
-
"flow.designer.addNode.loop": "循环节点",
|
|
67
|
-
"flow.designer.addNode.subProcess": "子流程节点",
|
|
68
|
-
"flow.designer.addNode.auto": "自动节点",
|
|
69
|
-
"flow.designer.addNode.manual": "人工节点",
|
|
70
|
-
"flow.designer.addNode.autoApprove": "自动审批",
|
|
71
|
-
"flow.designer.addNode.manualApprove": "人工审批",
|
|
72
|
-
"flow.designer.addNode.autoSign": "自动会签",
|
|
73
|
-
"flow.designer.addNode.manualSign": "人工会签",
|
|
74
|
-
"flow.designer.addNode.autoBranch": "自动分支",
|
|
75
|
-
"flow.designer.addNode.manualBranch": "人工分支",
|
|
76
|
-
"flow.designer.addNode.autoLoop": "自动循环",
|
|
77
|
-
"flow.designer.addNode.manualLoop": "人工循环",
|
|
78
|
-
"flow.designer.addNode.autoSubProcess": "自动子流程",
|
|
79
|
-
"flow.designer.addNode.manualSubProcess": "人工子流程",
|
|
80
|
-
"flow.designer.delNode": "删除节点",
|
|
81
|
-
"flow.designer.delNode.confirm": "确认删除节点?",
|
|
82
|
-
"flow.designer.delNode.confirm.tips":
|
|
83
|
-
"删除节点后,该节点的所有子节点将被删除,确认删除?",
|
|
84
|
-
};
|
package/src/main.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import "tailwindcss/index.css";
|
|
2
|
-
// import 'element-plus/theme-chalk/index.css';
|
|
3
|
-
import "@/assets/css/index.scss";
|
|
4
|
-
import "@/assets/icons.css";
|
|
5
|
-
import userComponent from "@/components/comp/selfcomp";
|
|
6
|
-
import userContainerComponent from "@/components/comp/items/callitem";
|
|
7
|
-
import itemComponent from "@/components/formcomp/items/allitem";
|
|
8
|
-
import containerComponent from "@/components/formcomp/container/callitem";
|
|
9
|
-
import systemComponent from "@/components/system/SystemComp";
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
import App from "@/App.vue";
|
|
12
|
-
import { createApp } from "vue";
|
|
13
|
-
import draggable from "vuedraggable";
|
|
14
|
-
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|
15
|
-
import piniaInstance from "@/store";
|
|
16
|
-
import ElementPlus from "element-plus";
|
|
17
|
-
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
18
|
-
|
|
19
|
-
const app = createApp(App);
|
|
20
|
-
// window.app = app;
|
|
21
|
-
app.component("draggable", draggable);
|
|
22
|
-
/**
|
|
23
|
-
* 加载elementplus 自己提供的图标
|
|
24
|
-
*/
|
|
25
|
-
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
26
|
-
app.component(key, component);
|
|
27
|
-
}
|
|
28
|
-
app.use(userComponent);
|
|
29
|
-
app.use(itemComponent);
|
|
30
|
-
app.use(userContainerComponent);
|
|
31
|
-
app.use(systemComponent);
|
|
32
|
-
app.use(containerComponent);
|
|
33
|
-
|
|
34
|
-
app.use(piniaInstance);
|
|
35
|
-
|
|
36
|
-
app.use(ElementPlus, {
|
|
37
|
-
locale: zhCn,
|
|
38
|
-
});
|
|
39
|
-
app.config.performance = true;
|
|
40
|
-
/**
|
|
41
|
-
* 处理未捕获异常
|
|
42
|
-
* @param err
|
|
43
|
-
* @param instance
|
|
44
|
-
* @param info
|
|
45
|
-
*/
|
|
46
|
-
app.config.errorHandler = (err, instance, info) => {
|
|
47
|
-
console.error(err, instance, info);
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 处理警告
|
|
51
|
-
* @param err
|
|
52
|
-
* @param instance
|
|
53
|
-
* @param info
|
|
54
|
-
*/
|
|
55
|
-
app.config.warnHandler = () => null;
|
|
56
|
-
|
|
57
|
-
app.mount("#app");
|