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
package/dist/index.es.js
CHANGED
|
@@ -62588,7 +62588,7 @@ const _hoisted_2$H = {
|
|
|
62588
62588
|
key: 0,
|
|
62589
62589
|
class: "m-message-icons"
|
|
62590
62590
|
};
|
|
62591
|
-
const _hoisted_3$
|
|
62591
|
+
const _hoisted_3$t = ["src"];
|
|
62592
62592
|
const _hoisted_4$k = { class: "m-message-content" };
|
|
62593
62593
|
const _hoisted_5$g = {
|
|
62594
62594
|
key: 0,
|
|
@@ -62652,7 +62652,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62652
62652
|
key: 0,
|
|
62653
62653
|
src: _ctx.iconURL,
|
|
62654
62654
|
class: "m-message--icon"
|
|
62655
|
-
}, null, 8, _hoisted_3$
|
|
62655
|
+
}, null, 8, _hoisted_3$t)) : _ctx.type ? (openBlock(), createBlock(_component_icon, {
|
|
62656
62656
|
key: 1,
|
|
62657
62657
|
name: _ctx.type,
|
|
62658
62658
|
class: "m-message--icon"
|
|
@@ -70432,7 +70432,7 @@ function i18n(key, ...args) {
|
|
|
70432
70432
|
|
|
70433
70433
|
const _hoisted_1$U = { class: "di animated animate__fadeIn" };
|
|
70434
70434
|
const _hoisted_2$G = { class: "my-header" };
|
|
70435
|
-
const _hoisted_3$
|
|
70435
|
+
const _hoisted_3$s = { class: "shdialog" };
|
|
70436
70436
|
const _hoisted_4$j = { class: "dialog-body" };
|
|
70437
70437
|
const _hoisted_5$f = {
|
|
70438
70438
|
key: 0,
|
|
@@ -70730,7 +70730,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
70730
70730
|
]),
|
|
70731
70731
|
default: withCtx(() => [
|
|
70732
70732
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
70733
|
-
createElementVNode("div", _hoisted_3$
|
|
70733
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
70734
70734
|
createElementVNode("div", _hoisted_4$j, [
|
|
70735
70735
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
70736
70736
|
])
|
|
@@ -70754,7 +70754,8 @@ const StarHorseDialog = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePro
|
|
|
70754
70754
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
70755
70755
|
|
|
70756
70756
|
const _hoisted_1$T = { class: "data-line" };
|
|
70757
|
-
const _hoisted_2$F = { class: "
|
|
70757
|
+
const _hoisted_2$F = { class: "menu-title" };
|
|
70758
|
+
const _hoisted_3$r = { class: "flex flex-row items-center" };
|
|
70758
70759
|
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
70759
70760
|
__name: "DataPicker",
|
|
70760
70761
|
props: {
|
|
@@ -70905,9 +70906,9 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
70905
70906
|
});
|
|
70906
70907
|
return (_ctx, _cache) => {
|
|
70907
70908
|
const _component_el_input = ElInput;
|
|
70908
|
-
const
|
|
70909
|
-
const _component_el_icon = ElIcon;
|
|
70909
|
+
const _component_star_horse_icon = __unplugin_components_0$a;
|
|
70910
70910
|
const _component_Check = resolveComponent("Check");
|
|
70911
|
+
const _component_el_icon = ElIcon;
|
|
70911
70912
|
const _component_el_tree = ElTree;
|
|
70912
70913
|
const _component_el_scrollbar = ElScrollbar;
|
|
70913
70914
|
const _component_el_pagination = ElPagination;
|
|
@@ -70959,13 +70960,12 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
70959
70960
|
default: withCtx(({ data }) => [
|
|
70960
70961
|
createElementVNode("div", _hoisted_1$T, [
|
|
70961
70962
|
createElementVNode("div", _hoisted_2$F, [
|
|
70962
|
-
|
|
70963
|
-
|
|
70964
|
-
|
|
70965
|
-
]),
|
|
70966
|
-
|
|
70967
|
-
|
|
70968
|
-
createTextVNode(" " + toDisplayString(data[_ctx.displayName]), 1)
|
|
70963
|
+
createElementVNode("div", _hoisted_3$r, [
|
|
70964
|
+
createVNode(_component_star_horse_icon, {
|
|
70965
|
+
"icon-class": data.children?.length > 0 ? "folder" : "document"
|
|
70966
|
+
}, null, 8, ["icon-class"]),
|
|
70967
|
+
createTextVNode(" " + toDisplayString(data[_ctx.displayName]), 1)
|
|
70968
|
+
])
|
|
70969
70969
|
]),
|
|
70970
70970
|
createVNode(_component_el_icon, { class: "is-selected" }, {
|
|
70971
70971
|
default: withCtx(() => [
|
|
@@ -71006,7 +71006,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
71006
71006
|
|
|
71007
71007
|
/* unplugin-vue-components disabled */
|
|
71008
71008
|
|
|
71009
|
-
const DataPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["__scopeId", "data-v-
|
|
71009
|
+
const DataPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["__scopeId", "data-v-e4748deb"]]);
|
|
71010
71010
|
|
|
71011
71011
|
const _hoisted_1$S = { class: "data-wrapper" };
|
|
71012
71012
|
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
@@ -76653,8 +76653,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
76653
76653
|
let batchName = [];
|
|
76654
76654
|
let batchFields = props.fieldList?.batchFieldList || [];
|
|
76655
76655
|
const analysis = (batchFields2) => {
|
|
76656
|
-
batchFields2
|
|
76657
|
-
if ("N" == item.subFormFlag) {
|
|
76656
|
+
batchFields2?.forEach((item) => {
|
|
76657
|
+
if (false === item.subFormFlag || "N" == item.subFormFlag) {
|
|
76658
76658
|
batchName.push(item.batchName);
|
|
76659
76659
|
}
|
|
76660
76660
|
});
|
|
@@ -76681,7 +76681,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
76681
76681
|
let mergeUrl = props.compUrl?.mergeUrl;
|
|
76682
76682
|
let flag = true;
|
|
76683
76683
|
let sameBatchNames = analysisSameToParentField();
|
|
76684
|
-
if (sameBatchNames
|
|
76684
|
+
if (sameBatchNames?.length > 0) {
|
|
76685
76685
|
flag = false;
|
|
76686
76686
|
mergeUrl = props.compUrl?.batchMergeUrl;
|
|
76687
76687
|
tempForm = [];
|
|
@@ -76731,7 +76731,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
76731
76731
|
const resetForm = () => {
|
|
76732
76732
|
dataForm.value = formFieldMapping(props.fieldList)?.defaultDatas;
|
|
76733
76733
|
let data = unref(props.outerFormData);
|
|
76734
|
-
if (
|
|
76734
|
+
if (Object.keys(data || {}).length > 0) {
|
|
76735
76735
|
dataForm.value = { ...dataForm.value, ...data };
|
|
76736
76736
|
}
|
|
76737
76737
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1023,7 +1023,7 @@ export declare interface BatchFieldInfo {
|
|
|
1023
1023
|
* batchFieldList 和fieldList 是否同一个表,组件会根据这个字段校验数据是一对多关系
|
|
1024
1024
|
* 还是单表的批量处理
|
|
1025
1025
|
*/
|
|
1026
|
-
subFormFlag?: string;
|
|
1026
|
+
subFormFlag?: string | boolean;
|
|
1027
1027
|
/**
|
|
1028
1028
|
* 表单标识,如果需要作为form表单显示,则需要将该属性设置为Y
|
|
1029
1029
|
*/
|
|
@@ -9610,7 +9610,7 @@ orOperList?: /*elided*/ any[];
|
|
|
9610
9610
|
}[];
|
|
9611
9611
|
};
|
|
9612
9612
|
staticData?: string;
|
|
9613
|
-
subFormFlag?: string;
|
|
9613
|
+
subFormFlag?: string | boolean;
|
|
9614
9614
|
formFlag?: string;
|
|
9615
9615
|
}[];
|
|
9616
9616
|
userTableFuncs?: {
|
|
@@ -9709,7 +9709,7 @@ orOperList?: /*elided*/ any[];
|
|
|
9709
9709
|
}[];
|
|
9710
9710
|
};
|
|
9711
9711
|
staticData?: string;
|
|
9712
|
-
subFormFlag?: string;
|
|
9712
|
+
subFormFlag?: string | boolean;
|
|
9713
9713
|
formFlag?: string;
|
|
9714
9714
|
}[];
|
|
9715
9715
|
userTableFuncs?: {
|
|
@@ -9821,7 +9821,7 @@ orOperList?: /*elided*/ any[];
|
|
|
9821
9821
|
}[];
|
|
9822
9822
|
};
|
|
9823
9823
|
staticData?: string;
|
|
9824
|
-
subFormFlag?: string;
|
|
9824
|
+
subFormFlag?: string | boolean;
|
|
9825
9825
|
formFlag?: string;
|
|
9826
9826
|
}[];
|
|
9827
9827
|
userTableFuncs?: {
|
|
@@ -9920,7 +9920,7 @@ orOperList?: /*elided*/ any[];
|
|
|
9920
9920
|
}[];
|
|
9921
9921
|
};
|
|
9922
9922
|
staticData?: string;
|
|
9923
|
-
subFormFlag?: string;
|
|
9923
|
+
subFormFlag?: string | boolean;
|
|
9924
9924
|
formFlag?: string;
|
|
9925
9925
|
}[];
|
|
9926
9926
|
userTableFuncs?: {
|
|
@@ -10032,7 +10032,7 @@ orOperList?: /*elided*/ any[];
|
|
|
10032
10032
|
}[];
|
|
10033
10033
|
};
|
|
10034
10034
|
staticData?: string;
|
|
10035
|
-
subFormFlag?: string;
|
|
10035
|
+
subFormFlag?: string | boolean;
|
|
10036
10036
|
formFlag?: string;
|
|
10037
10037
|
}[];
|
|
10038
10038
|
userTableFuncs?: {
|
|
@@ -10131,7 +10131,7 @@ orOperList?: /*elided*/ any[];
|
|
|
10131
10131
|
}[];
|
|
10132
10132
|
};
|
|
10133
10133
|
staticData?: string;
|
|
10134
|
-
subFormFlag?: string;
|
|
10134
|
+
subFormFlag?: string | boolean;
|
|
10135
10135
|
formFlag?: string;
|
|
10136
10136
|
}[];
|
|
10137
10137
|
userTableFuncs?: {
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
import vueParser from 'vue-eslint-parser';
|
|
4
|
+
import vuePlugin from 'eslint-plugin-vue';
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
{
|
|
8
|
+
files: ['**/*.vue', '**/*.js', '**/*.ts'],
|
|
9
|
+
ignores: ['node_modules/', 'dist/'],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
globals: {
|
|
14
|
+
...globals.browser,
|
|
15
|
+
...globals.node,
|
|
16
|
+
process: 'readonly'
|
|
17
|
+
},
|
|
18
|
+
parser: vueParser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
parser: '@typescript-eslint/parser',
|
|
21
|
+
extraFileExtensions: ['.vue']
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
plugins: {
|
|
25
|
+
vue: vuePlugin
|
|
26
|
+
},
|
|
27
|
+
rules: {
|
|
28
|
+
...js.configs.recommended.rules,
|
|
29
|
+
'vue/multi-word-component-names': 'off',
|
|
30
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
31
|
+
'no-unused-vars': 'off',
|
|
32
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
33
|
+
'quotes': ['error', 'single'],
|
|
34
|
+
'semi': ['error', 'always']
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
package/index.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" class="light" >
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
6
|
+
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
|
|
7
|
+
<title>StarHorseDevops</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
<script type="module" src="/src/api/jquery.min.js"></script>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|