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,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import { AttachmentPreset } from "@shared/types";
import BaseSchema from "@server/routes/api/BaseSchema";

View File

@@ -1,6 +1,6 @@
import { subHours, subMinutes } from "date-fns";
import Router from "koa-router";
import { uniqBy } from "lodash";
import uniqBy from "lodash/uniqBy";
import { TeamPreference } from "@shared/types";
import { getCookieDomain, parseDomain } from "@shared/utils/domains";
import env from "@server/env";

View File

@@ -1,4 +1,4 @@
import { isUndefined } from "lodash";
import isUndefined from "lodash/isUndefined";
import { z } from "zod";
import { randomElement } from "@shared/random";
import { CollectionPermission, FileOperationFormat } from "@shared/types";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import BaseSchema from "../BaseSchema";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import isUUID from "validator/lib/isUUID";
import { z } from "zod";
import { SHARE_URL_SLUG_REGEX } from "@shared/utils/urlHelpers";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import z from "zod";
import { FileOperationType } from "@shared/types";
import { FileOperation } from "@server/models";

View File

@@ -1,5 +1,6 @@
import Router from "koa-router";
import { isNull, isUndefined } from "lodash";
import isNull from "lodash/isNull";
import isUndefined from "lodash/isUndefined";
import { WhereOptions, Op } from "sequelize";
import { NotificationEventType } from "@shared/types";
import notificationUpdater from "@server/commands/notificationUpdater";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import { NotificationEventType } from "@shared/types";
import BaseSchema from "../BaseSchema";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import { Revision } from "@server/models";
import BaseSchema from "@server/routes/api/BaseSchema";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import BaseSchema from "../BaseSchema";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import isUUID from "validator/lib/isUUID";
import { z } from "zod";
import { SHARE_URL_SLUG_REGEX, SLUG_URL_REGEX } from "@shared/utils/urlHelpers";

View File

@@ -1,5 +1,5 @@
import Router from "koa-router";
import { isUndefined } from "lodash";
import isUndefined from "lodash/isUndefined";
import { Op, WhereOptions } from "sequelize";
import { NotFoundError } from "@server/errors";
import auth from "@server/middlewares/authentication";

View File

@@ -1,4 +1,4 @@
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { z } from "zod";
import { ValidateDocumentId, ValidateIndex } from "@server/validation";
import BaseSchema from "../BaseSchema";

View File

@@ -1,4 +1,4 @@
import { isNil } from "lodash";
import isNil from "lodash/isNil";
import { z } from "zod";
import { isUrl } from "@shared/utils/urls";
import { ValidateURL } from "@server/validation";

View File

@@ -2,7 +2,7 @@ import fs from "fs";
import path from "path";
import util from "util";
import { Context, Next } from "koa";
import { escape } from "lodash";
import escape from "lodash/escape";
import { Sequelize } from "sequelize";
import isUUID from "validator/lib/isUUID";
import { IntegrationType, TeamPreference } from "@shared/types";