chore: Remove optimize imports to allow vite upgrade (#5691)

This commit is contained in:
Tom Moor
2023-08-14 14:44:58 -04:00
committed by GitHub
parent a71ad43c31
commit b7bfc4bb1a
138 changed files with 207 additions and 171 deletions

View File

@@ -1,5 +1,6 @@
import invariant from "invariant";
import { lowerFirst, orderBy } from "lodash";
import lowerFirst from "lodash/lowerFirst";
import orderBy from "lodash/orderBy";
import { observable, action, computed, runInAction } from "mobx";
import { Class } from "utility-types";
import RootStore from "~/stores/RootStore";

View File

@@ -1,5 +1,8 @@
import invariant from "invariant";
import { concat, find, last, sortBy } from "lodash";
import concat from "lodash/concat";
import find from "lodash/find";
import last from "lodash/last";
import sortBy from "lodash/sortBy";
import { computed, action } from "mobx";
import {
CollectionPermission,

View File

@@ -1,5 +1,6 @@
import invariant from "invariant";
import { filter, orderBy } from "lodash";
import filter from "lodash/filter";
import orderBy from "lodash/orderBy";
import { action, runInAction, computed } from "mobx";
import Comment from "~/models/Comment";
import Document from "~/models/Document";

View File

@@ -1,5 +1,9 @@
import invariant from "invariant";
import { find, orderBy, filter, compact, omitBy } from "lodash";
import compact from "lodash/compact";
import filter from "lodash/filter";
import find from "lodash/find";
import omitBy from "lodash/omitBy";
import orderBy from "lodash/orderBy";
import { observable, action, computed, runInAction } from "mobx";
import { DateFilter, NavigationNode, PublicTeam } from "@shared/types";
import { subtractDate } from "@shared/utils/date";

View File

@@ -1,4 +1,5 @@
import { sortBy, filter } from "lodash";
import filter from "lodash/filter";
import sortBy from "lodash/sortBy";
import { computed } from "mobx";
import Event from "~/models/Event";
import BaseStore, { RPCAction } from "./BaseStore";

View File

@@ -1,4 +1,4 @@
import { orderBy } from "lodash";
import orderBy from "lodash/orderBy";
import { computed } from "mobx";
import { FileOperationType } from "@shared/types";
import FileOperation from "~/models/FileOperation";

View File

@@ -1,5 +1,5 @@
import invariant from "invariant";
import { filter } from "lodash";
import filter from "lodash/filter";
import { action, runInAction } from "mobx";
import GroupMembership from "~/models/GroupMembership";
import { PaginationParams } from "~/types";

View File

@@ -1,5 +1,5 @@
import invariant from "invariant";
import { filter } from "lodash";
import filter from "lodash/filter";
import { action, runInAction, computed } from "mobx";
import naturalSort from "@shared/utils/naturalSort";
import Group from "~/models/Group";

View File

@@ -1,4 +1,4 @@
import { filter } from "lodash";
import filter from "lodash/filter";
import { computed } from "mobx";
import { IntegrationService } from "@shared/types";
import naturalSort from "@shared/utils/naturalSort";

View File

@@ -1,5 +1,6 @@
import invariant from "invariant";
import { orderBy, sortBy } from "lodash";
import orderBy from "lodash/orderBy";
import sortBy from "lodash/sortBy";
import { action, computed, runInAction } from "mobx";
import Notification from "~/models/Notification";
import { PaginationParams } from "~/types";

View File

@@ -1,5 +1,5 @@
import invariant from "invariant";
import { filter } from "lodash";
import filter from "lodash/filter";
import { action, runInAction } from "mobx";
import BaseStore, { RPCAction } from "~/stores/BaseStore";
import RootStore from "~/stores/RootStore";

View File

@@ -1,4 +1,4 @@
import { uniqBy } from "lodash";
import uniqBy from "lodash/uniqBy";
import { computed } from "mobx";
import SearchQuery from "~/models/SearchQuery";
import BaseStore, { RPCAction } from "./BaseStore";

View File

@@ -1,5 +1,8 @@
import invariant from "invariant";
import { sortBy, filter, find, isUndefined } from "lodash";
import filter from "lodash/filter";
import find from "lodash/find";
import isUndefined from "lodash/isUndefined";
import sortBy from "lodash/sortBy";
import { action, computed } from "mobx";
import Share from "~/models/Share";
import { client } from "~/utils/ApiClient";

View File

@@ -1,4 +1,4 @@
import { orderBy } from "lodash";
import orderBy from "lodash/orderBy";
import { observable, action, computed } from "mobx";
import { v4 as uuidv4 } from "uuid";
import { Toast, ToastOptions } from "~/types";

View File

@@ -1,5 +1,6 @@
import invariant from "invariant";
import { filter, orderBy } from "lodash";
import filter from "lodash/filter";
import orderBy from "lodash/orderBy";
import { observable, computed, action, runInAction } from "mobx";
import { Role } from "@shared/types";
import User from "~/models/User";

View File

@@ -1,4 +1,7 @@
import { reduce, filter, find, orderBy } from "lodash";
import filter from "lodash/filter";
import find from "lodash/find";
import orderBy from "lodash/orderBy";
import reduce from "lodash/reduce";
import View from "~/models/View";
import BaseStore, { RPCAction } from "./BaseStore";
import RootStore from "./RootStore";