star-horse-lowcode 2.7.63 → 2.7.65
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/.env.development +3 -0
- package/.env.production +3 -0
- package/.eslintrc-auto-import.json +77 -0
- package/.gitignore +27 -0
- package/.idea/.gitignore +5 -0
- package/.idea/MarsCodeWorkspaceAppSettings.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +7 -0
- package/.idea/modules.xml +8 -0
- package/.idea/testcode.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/.idea/workspace.xml +207 -0
- package/.npmignore +21 -0
- package/.prettierignore +26 -0
- package/README.md +1 -0
- package/auto-imports.d.ts +137 -0
- package/components.d.ts +189 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +19 -19
- package/dist/types/index.d.ts +7 -7
- package/eslint.config.js +37 -0
- package/index.html +14 -0
- package/package-lock.json +8276 -0
- package/package.json +4 -4
- package/prettier.config.js +20 -0
- package/public/logo.svg +660 -0
- package/src/App.vue +11 -0
- package/src/api/date_utils.ts +219 -0
- package/src/api/finger_utils.ts +71 -0
- package/src/api/form_utils.ts +281 -0
- package/src/api/jquery.min.js +2 -0
- package/src/api/pcas-code.json +1 -0
- package/src/api/settings.ts +81 -0
- package/src/api/star_horse_apis.ts +196 -0
- package/src/api/star_horse_utils.ts +797 -0
- package/src/api/system.ts +351 -0
- package/src/api/user_func.ts +147 -0
- package/src/api/valid_utils.ts +165 -0
- package/src/assets/css/index.scss +908 -0
- package/src/assets/icons.css +574 -0
- package/src/assets/star-horse-icons.woff +0 -0
- package/src/components/comp/ShDynamicForm.vue +160 -0
- package/src/components/comp/ShForm.vue +30 -0
- package/src/components/comp/ShTableListColumn.vue +61 -0
- package/src/components/comp/StarHorseDataSelector.vue +139 -0
- package/src/components/comp/StarHorseDataView.vue +110 -0
- package/src/components/comp/StarHorseDataViewItems.vue +61 -0
- package/src/components/comp/StarHorseDataViewTable.vue +102 -0
- package/src/components/comp/StarHorseDialog.vue +383 -0
- package/src/components/comp/StarHorseDraggable.vue +401 -0
- package/src/components/comp/StarHorseForm.vue +458 -0
- package/src/components/comp/StarHorseFormItem.vue +82 -0
- package/src/components/comp/StarHorseFormList.vue +516 -0
- package/src/components/comp/StarHorseFormTable.vue +56 -0
- package/src/components/comp/StarHorseIcon.vue +76 -0
- package/src/components/comp/StarHorseItem.vue +302 -0
- package/src/components/comp/StarHorseJsonEditor.vue +115 -0
- package/src/components/comp/StarHorsePopover.vue +66 -0
- package/src/components/comp/StarHorseSearchComp.vue +253 -0
- package/src/components/comp/StarHorseStaticTable.vue +395 -0
- package/src/components/comp/StarHorseTableColumn.vue +249 -0
- package/src/components/comp/StarHorseTableComp.vue +1193 -0
- package/src/components/comp/StarHorseTableViewColumn.vue +61 -0
- package/src/components/comp/StarHorseTree.vue +494 -0
- package/src/components/comp/index.ts +22 -0
- package/src/components/comp/items/UTableColumn.vue +65 -0
- package/src/components/comp/items/boxItem.vue +98 -0
- package/src/components/comp/items/callitem.ts +9 -0
- package/src/components/comp/items/cardItem.vue +152 -0
- package/src/components/comp/items/collapseItem.vue +134 -0
- package/src/components/comp/items/dytableItem.vue +135 -0
- package/src/components/comp/items/otherItem.vue +65 -0
- package/src/components/comp/items/tabItem.vue +155 -0
- package/src/components/comp/items/tabPanelItem.vue +110 -0
- package/src/components/comp/items/tableColumn.vue +129 -0
- package/src/components/comp/items/tableItem.vue +97 -0
- package/src/components/comp/items/tablebtn.vue +158 -0
- package/src/components/comp/items/viewBoxItem.vue +55 -0
- package/src/components/comp/items/viewCardItem.vue +47 -0
- package/src/components/comp/items/viewCollapseItem.vue +71 -0
- package/src/components/comp/items/viewDytableItem.vue +77 -0
- package/src/components/comp/items/viewOtherItem.vue +55 -0
- package/src/components/comp/items/viewTabItem.vue +77 -0
- package/src/components/comp/items/viewTabPanelItem.vue +54 -0
- package/src/components/comp/items/viewTableItem.vue +74 -0
- package/src/components/comp/selfcomp.ts +9 -0
- package/src/components/comp/utils/DataPicker.vue +302 -0
- package/src/components/comp/utils/DataTag.vue +51 -0
- package/src/components/cron/Crontab-Day.vue +230 -0
- package/src/components/cron/Crontab-Hour.vue +165 -0
- package/src/components/cron/Crontab-Min.vue +166 -0
- package/src/components/cron/Crontab-Month.vue +166 -0
- package/src/components/cron/Crontab-Result.vue +615 -0
- package/src/components/cron/Crontab-Second.vue +185 -0
- package/src/components/cron/Crontab-Week.vue +208 -0
- package/src/components/cron/Crontab-Year.vue +183 -0
- package/src/components/cron/Crontab.vue +474 -0
- package/src/components/enums/ModuleEnums.ts +10 -0
- package/src/components/enums/ServiceEnums.ts +18 -0
- package/src/components/formcomp/container/box-container.vue +162 -0
- package/src/components/formcomp/container/callitem.ts +9 -0
- package/src/components/formcomp/container/card-container.vue +170 -0
- package/src/components/formcomp/container/collapse-container.vue +133 -0
- package/src/components/formcomp/container/dytable-col.vue +448 -0
- package/src/components/formcomp/container/dytable-container.vue +57 -0
- package/src/components/formcomp/container/dytableUtils.ts +358 -0
- package/src/components/formcomp/container/group-box-container.vue +331 -0
- package/src/components/formcomp/container/index.ts +6 -0
- package/src/components/formcomp/container/tab-container.vue +153 -0
- package/src/components/formcomp/container/table-container.vue +249 -0
- package/src/components/formcomp/items/allitem.ts +9 -0
- package/src/components/formcomp/items/area-item.vue +116 -0
- package/src/components/formcomp/items/audio-item.vue +163 -0
- package/src/components/formcomp/items/autocomplete-item.vue +118 -0
- package/src/components/formcomp/items/barcode-item.vue +87 -0
- package/src/components/formcomp/items/base-json-item.vue +207 -0
- package/src/components/formcomp/items/button-item.vue +228 -0
- package/src/components/formcomp/items/cascade-item.vue +113 -0
- package/src/components/formcomp/items/checkbox-item.vue +97 -0
- package/src/components/formcomp/items/color-item.vue +70 -0
- package/src/components/formcomp/items/cron-item.vue +115 -0
- package/src/components/formcomp/items/datetime-item.vue +99 -0
- package/src/components/formcomp/items/depart-item.vue +51 -0
- package/src/components/formcomp/items/dialog-input-item.vue +207 -0
- package/src/components/formcomp/items/divider-item.vue +66 -0
- package/src/components/formcomp/items/html-item.vue +65 -0
- package/src/components/formcomp/items/htmleditor-item.vue +104 -0
- package/src/components/formcomp/items/icon-item.vue +195 -0
- package/src/components/formcomp/items/image-item.vue +247 -0
- package/src/components/formcomp/items/index.ts +44 -0
- package/src/components/formcomp/items/input-item.vue +150 -0
- package/src/components/formcomp/items/json-array-item.vue +67 -0
- package/src/components/formcomp/items/json-item.vue +66 -0
- package/src/components/formcomp/items/markdown-item.vue +77 -0
- package/src/components/formcomp/items/number-item.vue +94 -0
- package/src/components/formcomp/items/number-range-item.vue +278 -0
- package/src/components/formcomp/items/page-select-item.vue +407 -0
- package/src/components/formcomp/items/password-item.vue +71 -0
- package/src/components/formcomp/items/qrcode-item.vue +84 -0
- package/src/components/formcomp/items/radio-item.vue +112 -0
- package/src/components/formcomp/items/rate-item.vue +68 -0
- package/src/components/formcomp/items/select-item.vue +133 -0
- package/src/components/formcomp/items/signature-item.vue +216 -0
- package/src/components/formcomp/items/slider-item.vue +68 -0
- package/src/components/formcomp/items/starhorse-form-item.vue +334 -0
- package/src/components/formcomp/items/switch-item.vue +77 -0
- package/src/components/formcomp/items/tag-item.vue +77 -0
- package/src/components/formcomp/items/text-item.vue +75 -0
- package/src/components/formcomp/items/textarea-item.vue +85 -0
- package/src/components/formcomp/items/time-item.vue +77 -0
- package/src/components/formcomp/items/time-picker-item.vue +74 -0
- package/src/components/formcomp/items/transfer-item.vue +93 -0
- package/src/components/formcomp/items/tselect-item.vue +121 -0
- package/src/components/formcomp/items/unknown-item.vue +51 -0
- package/src/components/formcomp/items/upload-item.vue +189 -0
- package/src/components/formcomp/items/user-item.vue +177 -0
- package/src/components/formcomp/items/usercomp-item.vue +85 -0
- package/src/components/formcomp/items/view-markdown-item.vue +77 -0
- package/src/components/formcomp/utils/EditDataDialog.vue +67 -0
- package/src/components/formcomp/utils/FieldList.vue +125 -0
- package/src/components/formcomp/utils/ItemRelationEventUtils.ts +284 -0
- package/src/components/help.vue +31 -0
- package/src/components/menu/MenuItem.vue +95 -0
- package/src/components/menu/SubMenu.vue +68 -0
- package/src/components/menu/SubSystemMenu.vue +142 -0
- package/src/components/register.ts +24 -0
- package/src/components/system/ContentMenu.vue +260 -0
- package/src/components/system/StarHorseButtonList.vue +344 -0
- package/src/components/system/StarHorseMenu.vue +97 -0
- package/src/components/system/StarHorseSvg.vue +62 -0
- package/src/components/system/SystemComp.ts +9 -0
- package/src/components/system/index.ts +4 -0
- package/src/components/types/ApiUrls.ts +168 -0
- package/src/components/types/BtnAction.ts +51 -0
- package/src/components/types/BtnAuth.ts +43 -0
- package/src/components/types/CompInfo.ts +81 -0
- package/src/components/types/DialogProps.ts +55 -0
- package/src/components/types/DyCompField.ts +23 -0
- package/src/components/types/DynamicNode.ts +42 -0
- package/src/components/types/MenusInfo.ts +45 -0
- package/src/components/types/PageFieldInfo.ts +530 -0
- package/src/components/types/PageProps.ts +25 -0
- package/src/components/types/Params.ts +93 -0
- package/src/components/types/RuleType.ts +10 -0
- package/src/components/types/SearchProps.ts +42 -0
- package/src/components/types/ShortKey.ts +30 -0
- package/src/components/types/StarHorseType.ts +18 -0
- package/src/components/types/index.ts +15 -0
- package/src/config/element.ts +15 -0
- package/src/config/styles.ts +4 -0
- package/src/index.ts +98 -0
- package/src/install.ts +33 -0
- package/src/lang/en_US.ts +81 -0
- package/src/lang/index.ts +35 -0
- package/src/lang/zh_CN.ts +84 -0
- package/src/main.ts +57 -0
- package/src/plugins/AblesPlugin.ts +618 -0
- package/src/plugins/registerCompPlugin.ts +15 -0
- package/src/sample/test.vue +9 -0
- package/src/store/ButtonPermission.ts +101 -0
- package/src/store/ConsumerView.ts +52 -0
- package/src/store/ContinusConfig.ts +78 -0
- package/src/store/CopyerOperation.ts +74 -0
- package/src/store/DesignForm.ts +481 -0
- package/src/store/DesignPage.ts +59 -0
- package/src/store/DynamicForm.ts +241 -0
- package/src/store/GlobalConfig.ts +90 -0
- package/src/store/SelfOperation.ts +95 -0
- package/src/store/UserInfo.ts +88 -0
- package/src/store/index.ts +6 -0
- package/src/theme/localStorge.ts +16 -0
- package/src/theme/theme.ts +27 -0
- package/src/utils/FieldOperationUtils.ts +91 -0
- package/src/utils/auth.ts +83 -0
- package/src/utils/message.ts +69 -0
- package/src/utils/preview.ts +125 -0
- package/tsconfig.json +39 -0
- package/tsconfig.node.json +10 -0
- package/vite-env.d.ts +16 -0
- package/vite.config.ts +162 -0
- package/yarn.lock +4627 -0
|
@@ -0,0 +1,15 @@
|
|
|
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";
|
|
@@ -0,0 +1,15 @@
|
|
|
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/index.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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");
|