mirror of https://github.com/certd/certd
chore: lodash-es
parent
042535536e
commit
e5d902663b
|
@ -1,5 +1,5 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { get } from "lodash";
|
import { get } from "lodash-es";
|
||||||
import Adapter from "axios-mock-adapter";
|
import Adapter from "axios-mock-adapter";
|
||||||
import { errorLog, errorCreate } from "./tools";
|
import { errorLog, errorCreate } from "./tools";
|
||||||
import { env } from "/src/utils/util.env";
|
import { env } from "/src/utils/util.env";
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<script>
|
<script>
|
||||||
import i18n from "../../../i18n";
|
import i18n from "../../../i18n";
|
||||||
import { computed, inject } from "vue";
|
import { computed, inject } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export default {
|
export default {
|
||||||
name: "FsLocale",
|
name: "FsLocale",
|
||||||
setup() {
|
setup() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { ref, watch, onMounted, onUnmounted, resolveComponent, nextTick, defineComponent } from "vue";
|
import { ref, watch, onMounted, onUnmounted, resolveComponent, nextTick, defineComponent } from "vue";
|
||||||
import getEachDeep from "deepdash-es/getEachDeep";
|
import getEachDeep from "deepdash-es/getEachDeep";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import BScroll from "better-scroll";
|
import BScroll from "better-scroll";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
const eachDeep = getEachDeep(_);
|
const eachDeep = getEachDeep(_);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
function copyList(originList, newList, options, parentId) {
|
function copyList(originList, newList, options, parentId) {
|
||||||
for (const item of originList) {
|
for (const item of originList) {
|
||||||
const newItem = { ...item, parentId };
|
const newItem = { ...item, parentId };
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export async function getPcasData() {
|
export async function getPcasData() {
|
||||||
const pcasData = () => import("china-division/dist/pcas-code.json");
|
const pcasData = () => import("china-division/dist/pcas-code.json");
|
||||||
const ret = await pcasData();
|
const ret = await pcasData();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { mock } from "../api/service";
|
import { mock } from "../api/service";
|
||||||
import * as tools from "../api/tools";
|
import * as tools from "../api/tools";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
const commonMocks = import.meta.globEager("./common/mock.*.js");
|
const commonMocks = import.meta.globEager("./common/mock.*.js");
|
||||||
const apiMocks = import.meta.globEager("../api/modules/*.mock.ts");
|
const apiMocks = import.meta.globEager("../api/modules/*.mock.ts");
|
||||||
const viewMocks = import.meta.globEager("../views/**/mock.js");
|
const viewMocks = import.meta.globEager("../views/**/mock.js");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { usePermission } from "/@/plugin/permission";
|
import { usePermission } from "/@/plugin/permission";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置按钮动作权限
|
* 设置按钮动作权限
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import LayoutPass from "/src/layout/layout-pass.vue";
|
import LayoutPass from "/src/layout/layout-pass.vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { outsideResource } from "./source/outside";
|
import { outsideResource } from "./source/outside";
|
||||||
import { headerResource } from "./source/header";
|
import { headerResource } from "./source/header";
|
||||||
import { frameworkResource } from "./source/framework";
|
import { frameworkResource } from "./source/framework";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { cloneDeep, get, uniq } from "lodash";
|
import { cloneDeep, get, uniq } from "lodash-es";
|
||||||
import router from "/src/router";
|
import router from "/src/router";
|
||||||
import { frameworkRoutes } from "/src/router/resolve";
|
import { frameworkRoutes } from "/src/router/resolve";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { frameworkMenus, headerMenus, filterMenus, findMenus } from "/src/router/resolve";
|
import { frameworkMenus, headerMenus, filterMenus, findMenus } from "/src/router/resolve";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { mitter } from "/src/utils/util.mitt";
|
import { mitter } from "/src/utils/util.mitt";
|
||||||
//监听注销事件
|
//监听注销事件
|
||||||
mitter.on("app.logout", () => {
|
mitter.on("app.logout", () => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export default {
|
export default {
|
||||||
arrayToMap(array: any) {
|
arrayToMap(array: any) {
|
||||||
if (!array) {
|
if (!array) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export function getEnvValue(key: string) {
|
export function getEnvValue(key: string) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return import.meta.env["VITE_APP_" + key];
|
return import.meta.env["VITE_APP_" + key];
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { ColumnCompositionProps, dict } from "@fast-crud/fast-crud";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import * as api from "./api";
|
import * as api from "./api";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { toRef } from "vue";
|
import { toRef } from "vue";
|
||||||
|
|
||||||
export function getCommonColumnDefine(crudExpose: any, typeRef: any) {
|
export function getCommonColumnDefine(crudExpose: any, typeRef: any) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { request } from "/src/api/service";
|
import { request } from "/src/api/service";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
const apiPrefix = "/pi/plugin";
|
const apiPrefix = "/pi/plugin";
|
||||||
|
|
||||||
const defaultInputDefine = {
|
const defaultInputDefine = {
|
||||||
|
@ -9,7 +9,7 @@ const defaultInputDefine = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function GetList(query) {
|
export async function GetList(query: any) {
|
||||||
const plugins = await request({
|
const plugins = await request({
|
||||||
url: apiPrefix + "/list",
|
url: apiPrefix + "/list",
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import { useColumns, useExpose } from "@fast-crud/fast-crud";
|
import { useColumns, useExpose } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud.jsx";
|
import createCrudOptions from "./crud.jsx";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export default {
|
export default {
|
||||||
name: "PiCertdForm",
|
name: "PiCertdForm",
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Modal } from "ant-design-vue";
|
import { Modal } from "ant-design-vue";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
|
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
<script lang="tsx">
|
<script lang="tsx">
|
||||||
import { message, Modal } from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
import { computed, inject, Ref, ref } from "vue";
|
import { computed, inject, Ref, ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import { compute } from "@fast-crud/fast-crud";
|
import { compute } from "@fast-crud/fast-crud";
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { provide, Ref, ref } from "vue";
|
import { provide, Ref, ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import PiStepForm from "../step-form/index.vue";
|
import PiStepForm from "../step-form/index.vue";
|
||||||
import { message, Modal } from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { message, Modal } from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
import { inject, ref } from "vue";
|
import { inject, ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
export default {
|
export default {
|
||||||
name: "PiTriggerForm",
|
name: "PiTriggerForm",
|
||||||
|
|
|
@ -207,7 +207,7 @@ import PiTriggerForm from "./component/trigger-form/index.vue";
|
||||||
import PiNotificationForm from "./component/notification-form/index.vue";
|
import PiNotificationForm from "./component/notification-form/index.vue";
|
||||||
import PiTaskView from "./component/task-view/index.vue";
|
import PiTaskView from "./component/task-view/index.vue";
|
||||||
import PiStatusShow from "./component/status-show.vue";
|
import PiStatusShow from "./component/status-show.vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { message, Modal, notification } from "ant-design-vue";
|
import { message, Modal, notification } from "ant-design-vue";
|
||||||
import { pluginManager } from "/@/views/certd/pipeline/pipeline/plugin";
|
import { pluginManager } from "/@/views/certd/pipeline/pipeline/plugin";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { defineComponent, ref, onMounted } from "vue";
|
||||||
import { useCrud, dict, useExpose } from "@fast-crud/fast-crud";
|
import { useCrud, dict, useExpose } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud";
|
import createCrudOptions from "./crud";
|
||||||
import { GetCrud } from "./api";
|
import { GetCrud } from "./api";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "AdvancedFromBackend",
|
name: "AdvancedFromBackend",
|
||||||
setup() {
|
setup() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import mockUtil from "/src/mock/base";
|
import mockUtil from "/src/mock/base";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
const options = {
|
const options = {
|
||||||
name: "FormLinkage",
|
name: "FormLinkage",
|
||||||
idGenerator: 0
|
idGenerator: 0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as api from "./api";
|
import * as api from "./api";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { dict } from "@fast-crud/fast-crud";
|
import { dict } from "@fast-crud/fast-crud";
|
||||||
export default function ({ expose, localDataRef }) {
|
export default function ({ expose, localDataRef }) {
|
||||||
const pageRequest = async ({ page, query }) => {
|
const pageRequest = async ({ page, query }) => {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { defineComponent, ref, onMounted } from "vue";
|
import { defineComponent, ref, onMounted } from "vue";
|
||||||
import { dict, useCrud } from "@fast-crud/fast-crud";
|
import { dict, useCrud } from "@fast-crud/fast-crud";
|
||||||
import { useExpose } from "@fast-crud/fast-crud";
|
import { useExpose } from "@fast-crud/fast-crud";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
|
|
||||||
//此处为crudOptions配置
|
//此处为crudOptions配置
|
||||||
const createCrudOptions = function ({ expose }) {
|
const createCrudOptions = function ({ expose }) {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as api from "./api";
|
||||||
import { requestForMock } from "/src/api/service";
|
import { requestForMock } from "/src/api/service";
|
||||||
import { dict } from "@fast-crud/fast-crud";
|
import { dict } from "@fast-crud/fast-crud";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
function useSearchRemote() {
|
function useSearchRemote() {
|
||||||
let lastFetchId = 0;
|
let lastFetchId = 0;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
import { defineComponent, ref, onMounted } from "vue";
|
import { defineComponent, ref, onMounted } from "vue";
|
||||||
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud";
|
import createCrudOptions from "./crud";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "FormCustomForm",
|
name: "FormCustomForm",
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { defineComponent, ref, onMounted } from "vue";
|
||||||
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud";
|
import createCrudOptions from "./crud";
|
||||||
import * as api from "./api";
|
import * as api from "./api";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { usePageStore } from "/@/store/modules/page";
|
import { usePageStore } from "/@/store/modules/page";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
import { defineComponent, ref, onMounted } from "vue";
|
import { defineComponent, ref, onMounted } from "vue";
|
||||||
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
|
||||||
import createCrudOptions from "./crud";
|
import createCrudOptions from "./crud";
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "FormNewPage",
|
name: "FormNewPage",
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from "lodash";
|
import _ from "lodash-es";
|
||||||
import getEachDeep from "deepdash-es/getEachDeep";
|
import getEachDeep from "deepdash-es/getEachDeep";
|
||||||
const eachDeep = getEachDeep(_);
|
const eachDeep = getEachDeep(_);
|
||||||
import { defineComponent, ref, computed } from "vue";
|
import { defineComponent, ref, computed } from "vue";
|
||||||
|
|
Loading…
Reference in New Issue