chore: Remove optimize imports to allow vite upgrade (#5691)
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
"eslint-plugin-import",
|
"eslint-plugin-import",
|
||||||
"eslint-plugin-node",
|
"eslint-plugin-node",
|
||||||
"eslint-plugin-react",
|
"eslint-plugin-react",
|
||||||
"import"
|
"eslint-plugin-lodash"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"eqeqeq": 2,
|
"eqeqeq": 2,
|
||||||
@@ -55,6 +55,7 @@
|
|||||||
],
|
],
|
||||||
"padding-line-between-statements": ["error", { "blankLine": "always", "prev": "*", "next": "export" }],
|
"padding-line-between-statements": ["error", { "blankLine": "always", "prev": "*", "next": "export" }],
|
||||||
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
||||||
|
"lodash/import-scope": ["warn", "method"],
|
||||||
"import/no-named-as-default": "off",
|
"import/no-named-as-default": "off",
|
||||||
"import/no-named-as-default-member": "off",
|
"import/no-named-as-default-member": "off",
|
||||||
"import/newline-after-import": 2,
|
"import/newline-after-import": 2,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { flattenDeep } from "lodash";
|
import flattenDeep from "lodash/flattenDeep";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Optional } from "utility-types";
|
import { Optional } from "utility-types";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable prefer-rest-params */
|
/* eslint-disable prefer-rest-params */
|
||||||
/* global ga */
|
/* global ga */
|
||||||
import { escape } from "lodash";
|
import escape from "lodash/escape";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { IntegrationService } from "@shared/types";
|
import { IntegrationService } from "@shared/types";
|
||||||
import env from "~/env";
|
import env from "~/env";
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { sortBy, filter, uniq, isEqual } from "lodash";
|
import filter from "lodash/filter";
|
||||||
|
import isEqual from "lodash/isEqual";
|
||||||
|
import sortBy from "lodash/sortBy";
|
||||||
|
import uniq from "lodash/uniq";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
import FuzzySearch from "fuzzy-search";
|
import FuzzySearch from "fuzzy-search";
|
||||||
import { includes, difference, concat, filter, map, fill } from "lodash";
|
import concat from "lodash/concat";
|
||||||
|
import difference from "lodash/difference";
|
||||||
|
import fill from "lodash/fill";
|
||||||
|
import filter from "lodash/filter";
|
||||||
|
import includes from "lodash/includes";
|
||||||
|
import map from "lodash/map";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { StarredIcon, DocumentIcon } from "outline-icons";
|
import { StarredIcon, DocumentIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { sortBy } from "lodash";
|
import sortBy from "lodash/sortBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { deburr, difference, sortBy } from "lodash";
|
import deburr from "lodash/deburr";
|
||||||
|
import difference from "lodash/difference";
|
||||||
|
import sortBy from "lodash/sortBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { DOMParser as ProsemirrorDOMParser } from "prosemirror-model";
|
import { DOMParser as ProsemirrorDOMParser } from "prosemirror-model";
|
||||||
import { TextSelection } from "prosemirror-state";
|
import { TextSelection } from "prosemirror-state";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { MenuIcon } from "outline-icons";
|
import { MenuIcon } from "outline-icons";
|
||||||
import { transparentize } from "polished";
|
import { transparentize } from "polished";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { escapeRegExp } from "lodash";
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import replace from "string-replace-to-array";
|
import replace from "string-replace-to-array";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { Trans, useTranslation } from "react-i18next";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { times } from "lodash";
|
import times from "lodash/times";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import Fade from "~/components/Fade";
|
import Fade from "~/components/Fade";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { isEqual } from "lodash";
|
import isEqual from "lodash/isEqual";
|
||||||
import { observable, action } from "mobx";
|
import { observable, action } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { groupBy } from "lodash";
|
import groupBy from "lodash/groupBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { BackIcon } from "outline-icons";
|
import { BackIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { isEqual } from "lodash";
|
import isEqual from "lodash/isEqual";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { CollapsedIcon } from "outline-icons";
|
import { CollapsedIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import { action, observable } from "mobx";
|
import { action, observable } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { some } from "lodash";
|
import some from "lodash/some";
|
||||||
import { EditorState, NodeSelection, TextSelection } from "prosemirror-state";
|
import { EditorState, NodeSelection, TextSelection } from "prosemirror-state";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import createAndInsertLink from "@shared/editor/commands/createAndInsertLink";
|
import createAndInsertLink from "@shared/editor/commands/createAndInsertLink";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import commandScore from "command-score";
|
import commandScore from "command-score";
|
||||||
import { capitalize } from "lodash";
|
import capitalize from "lodash/capitalize";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Trans } from "react-i18next";
|
import { Trans } from "react-i18next";
|
||||||
import { VisuallyHidden } from "reakit/VisuallyHidden";
|
import { VisuallyHidden } from "reakit/VisuallyHidden";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useRegisterActions } from "kbar";
|
import { useRegisterActions } from "kbar";
|
||||||
import { flattenDeep } from "lodash";
|
import flattenDeep from "lodash/flattenDeep";
|
||||||
import { useLocation } from "react-router-dom";
|
import { useLocation } from "react-router-dom";
|
||||||
import { actionToKBar } from "~/actions";
|
import { actionToKBar } from "~/actions";
|
||||||
import { Action } from "~/types";
|
import { Action } from "~/types";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import embeds, { EmbedDescriptor } from "@shared/editor/embeds";
|
import embeds, { EmbedDescriptor } from "@shared/editor/embeds";
|
||||||
import { IntegrationType } from "@shared/types";
|
import { IntegrationType } from "@shared/types";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Minute } from "@shared/utils/time";
|
import { Minute } from "@shared/utils/time";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { noop } from "lodash";
|
import noop from "lodash/noop";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
type MenuContextType = {
|
type MenuContextType = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import useEventListener from "./useEventListener";
|
import useEventListener from "./useEventListener";
|
||||||
import useIsMounted from "./useIsMounted";
|
import useIsMounted from "./useIsMounted";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Based on https://github.com/rehooks/window-scroll-position which is no longer
|
// Based on https://github.com/rehooks/window-scroll-position which is no longer
|
||||||
// maintained.
|
// maintained.
|
||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { supportsPassiveListener } from "~/utils/browser";
|
import { supportsPassiveListener } from "~/utils/browser";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { pick } from "lodash";
|
import pick from "lodash/pick";
|
||||||
import { set, observable } from "mobx";
|
import { set, observable } from "mobx";
|
||||||
import Logger from "~/utils/Logger";
|
import Logger from "~/utils/Logger";
|
||||||
import { getFieldsForModel } from "./decorators/Field";
|
import { getFieldsForModel } from "./decorators/Field";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { trim } from "lodash";
|
import trim from "lodash/trim";
|
||||||
import { action, computed, observable, reaction, runInAction } from "mobx";
|
import { action, computed, observable, reaction, runInAction } from "mobx";
|
||||||
import {
|
import {
|
||||||
CollectionPermission,
|
CollectionPermission,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { addDays, differenceInDays } from "date-fns";
|
import { addDays, differenceInDays } from "date-fns";
|
||||||
import { floor } from "lodash";
|
import floor from "lodash/floor";
|
||||||
import { action, autorun, computed, observable, set } from "mobx";
|
import { action, autorun, computed, observable, set } from "mobx";
|
||||||
import { ExportContentType } from "@shared/types";
|
import { ExportContentType } from "@shared/types";
|
||||||
import type { NavigationNode } from "@shared/types";
|
import type { NavigationNode } from "@shared/types";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { sortBy } from "lodash";
|
import sortBy from "lodash/sortBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { intersection } from "lodash";
|
import intersection from "lodash/intersection";
|
||||||
import { observable } from "mobx";
|
import { observable } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { action, observable } from "mobx";
|
import { action, observable } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { AllSelection } from "prosemirror-state";
|
import { AllSelection } from "prosemirror-state";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { HocuspocusProvider, WebSocketStatus } from "@hocuspocus/provider";
|
import { HocuspocusProvider, WebSocketStatus } from "@hocuspocus/provider";
|
||||||
import { throttle } from "lodash";
|
import throttle from "lodash/throttle";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useHistory } from "react-router-dom";
|
import { useHistory } from "react-router-dom";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { debounce, isEmpty } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
|
import isEmpty from "lodash/isEmpty";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { ExpandedIcon, GlobeIcon, PadlockIcon } from "outline-icons";
|
import { ExpandedIcon, GlobeIcon, PadlockIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { flatten } from "lodash";
|
import flatten from "lodash/flatten";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation, Trans } from "react-i18next";
|
import { useTranslation, Trans } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { flatten } from "lodash";
|
import flatten from "lodash/flatten";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation, Trans } from "react-i18next";
|
import { useTranslation, Trans } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { BackIcon, EmailIcon } from "outline-icons";
|
import { BackIcon, EmailIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { isEqual } from "lodash";
|
import isEqual from "lodash/isEqual";
|
||||||
import { observable, action } from "mobx";
|
import { observable, action } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { isHexColor } from "class-validator";
|
import { isHexColor } from "class-validator";
|
||||||
import { pickBy } from "lodash";
|
import pickBy from "lodash/pickBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { TeamIcon } from "outline-icons";
|
import { TeamIcon } from "outline-icons";
|
||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { sortBy } from "lodash";
|
import sortBy from "lodash/sortBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { PlusIcon, UserIcon } from "outline-icons";
|
import { PlusIcon, UserIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import {
|
import {
|
||||||
AcademicCapIcon,
|
AcademicCapIcon,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { debounce } from "lodash";
|
import debounce from "lodash/debounce";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { CheckboxIcon, EmailIcon, PadlockIcon } from "outline-icons";
|
import { CheckboxIcon, EmailIcon, PadlockIcon } from "outline-icons";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { BuildingBlocksIcon } from "outline-icons";
|
import { BuildingBlocksIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { sortBy } from "lodash";
|
import sortBy from "lodash/sortBy";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { LinkIcon, WarningIcon } from "outline-icons";
|
import { LinkIcon, WarningIcon } from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { compact } from "lodash";
|
import compact from "lodash/compact";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import invariant from "invariant";
|
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 { observable, action, computed, runInAction } from "mobx";
|
||||||
import { Class } from "utility-types";
|
import { Class } from "utility-types";
|
||||||
import RootStore from "~/stores/RootStore";
|
import RootStore from "~/stores/RootStore";
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import invariant from "invariant";
|
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 { computed, action } from "mobx";
|
||||||
import {
|
import {
|
||||||
CollectionPermission,
|
CollectionPermission,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import invariant from "invariant";
|
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 { action, runInAction, computed } from "mobx";
|
||||||
import Comment from "~/models/Comment";
|
import Comment from "~/models/Comment";
|
||||||
import Document from "~/models/Document";
|
import Document from "~/models/Document";
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
import invariant from "invariant";
|
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 { observable, action, computed, runInAction } from "mobx";
|
||||||
import { DateFilter, NavigationNode, PublicTeam } from "@shared/types";
|
import { DateFilter, NavigationNode, PublicTeam } from "@shared/types";
|
||||||
import { subtractDate } from "@shared/utils/date";
|
import { subtractDate } from "@shared/utils/date";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { sortBy, filter } from "lodash";
|
import filter from "lodash/filter";
|
||||||
|
import sortBy from "lodash/sortBy";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
import Event from "~/models/Event";
|
import Event from "~/models/Event";
|
||||||
import BaseStore, { RPCAction } from "./BaseStore";
|
import BaseStore, { RPCAction } from "./BaseStore";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { orderBy } from "lodash";
|
import orderBy from "lodash/orderBy";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
import { FileOperationType } from "@shared/types";
|
import { FileOperationType } from "@shared/types";
|
||||||
import FileOperation from "~/models/FileOperation";
|
import FileOperation from "~/models/FileOperation";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { filter } from "lodash";
|
import filter from "lodash/filter";
|
||||||
import { action, runInAction } from "mobx";
|
import { action, runInAction } from "mobx";
|
||||||
import GroupMembership from "~/models/GroupMembership";
|
import GroupMembership from "~/models/GroupMembership";
|
||||||
import { PaginationParams } from "~/types";
|
import { PaginationParams } from "~/types";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { filter } from "lodash";
|
import filter from "lodash/filter";
|
||||||
import { action, runInAction, computed } from "mobx";
|
import { action, runInAction, computed } from "mobx";
|
||||||
import naturalSort from "@shared/utils/naturalSort";
|
import naturalSort from "@shared/utils/naturalSort";
|
||||||
import Group from "~/models/Group";
|
import Group from "~/models/Group";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { filter } from "lodash";
|
import filter from "lodash/filter";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
import { IntegrationService } from "@shared/types";
|
import { IntegrationService } from "@shared/types";
|
||||||
import naturalSort from "@shared/utils/naturalSort";
|
import naturalSort from "@shared/utils/naturalSort";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import invariant from "invariant";
|
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 { action, computed, runInAction } from "mobx";
|
||||||
import Notification from "~/models/Notification";
|
import Notification from "~/models/Notification";
|
||||||
import { PaginationParams } from "~/types";
|
import { PaginationParams } from "~/types";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { filter } from "lodash";
|
import filter from "lodash/filter";
|
||||||
import { action, runInAction } from "mobx";
|
import { action, runInAction } from "mobx";
|
||||||
import BaseStore, { RPCAction } from "~/stores/BaseStore";
|
import BaseStore, { RPCAction } from "~/stores/BaseStore";
|
||||||
import RootStore from "~/stores/RootStore";
|
import RootStore from "~/stores/RootStore";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { uniqBy } from "lodash";
|
import uniqBy from "lodash/uniqBy";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
import SearchQuery from "~/models/SearchQuery";
|
import SearchQuery from "~/models/SearchQuery";
|
||||||
import BaseStore, { RPCAction } from "./BaseStore";
|
import BaseStore, { RPCAction } from "./BaseStore";
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import invariant from "invariant";
|
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 { action, computed } from "mobx";
|
||||||
import Share from "~/models/Share";
|
import Share from "~/models/Share";
|
||||||
import { client } from "~/utils/ApiClient";
|
import { client } from "~/utils/ApiClient";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { orderBy } from "lodash";
|
import orderBy from "lodash/orderBy";
|
||||||
import { observable, action, computed } from "mobx";
|
import { observable, action, computed } from "mobx";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import { Toast, ToastOptions } from "~/types";
|
import { Toast, ToastOptions } from "~/types";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import invariant from "invariant";
|
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 { observable, computed, action, runInAction } from "mobx";
|
||||||
import { Role } from "@shared/types";
|
import { Role } from "@shared/types";
|
||||||
import User from "~/models/User";
|
import User from "~/models/User";
|
||||||
|
|||||||
@@ -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 View from "~/models/View";
|
||||||
import BaseStore, { RPCAction } from "./BaseStore";
|
import BaseStore, { RPCAction } from "./BaseStore";
|
||||||
import RootStore from "./RootStore";
|
import RootStore from "./RootStore";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import retry from "fetch-retry";
|
import retry from "fetch-retry";
|
||||||
import { trim } from "lodash";
|
import trim from "lodash/trim";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
import EDITOR_VERSION from "@shared/editor/version";
|
import EDITOR_VERSION from "@shared/editor/version";
|
||||||
import stores from "~/stores";
|
import stores from "~/stores";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
format as formatDate,
|
format as formatDate,
|
||||||
} from "date-fns";
|
} from "date-fns";
|
||||||
import { TFunction } from "i18next";
|
import { TFunction } from "i18next";
|
||||||
import { startCase } from "lodash";
|
import startCase from "lodash/startCase";
|
||||||
import {
|
import {
|
||||||
getCurrentDateAsString,
|
getCurrentDateAsString,
|
||||||
getCurrentDateTimeAsString,
|
getCurrentDateTimeAsString,
|
||||||
|
|||||||
@@ -229,7 +229,6 @@
|
|||||||
"@babel/cli": "^7.21.5",
|
"@babel/cli": "^7.21.5",
|
||||||
"@babel/preset-typescript": "^7.21.4",
|
"@babel/preset-typescript": "^7.21.4",
|
||||||
"@getoutline/jest-runner-serial": "^2.0.0",
|
"@getoutline/jest-runner-serial": "^2.0.0",
|
||||||
"@optimize-lodash/rollup-plugin": "4.0.3",
|
|
||||||
"@relative-ci/agent": "^4.1.3",
|
"@relative-ci/agent": "^4.1.3",
|
||||||
"@types/addressparser": "^1.0.1",
|
"@types/addressparser": "^1.0.1",
|
||||||
"@types/body-scroll-lock": "^3.1.0",
|
"@types/body-scroll-lock": "^3.1.0",
|
||||||
@@ -308,6 +307,7 @@
|
|||||||
"eslint-plugin-es": "^4.1.0",
|
"eslint-plugin-es": "^4.1.0",
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.1.0",
|
"eslint-plugin-jsx-a11y": "^6.1.0",
|
||||||
|
"eslint-plugin-lodash": "^7.4.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-react": "^7.20.0",
|
"eslint-plugin-react": "^7.20.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import passport from "@outlinewiki/koa-passport";
|
import passport from "@outlinewiki/koa-passport";
|
||||||
import type { Context } from "koa";
|
import type { Context } from "koa";
|
||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { capitalize } from "lodash";
|
import capitalize from "lodash/capitalize";
|
||||||
import { Profile } from "passport";
|
import { Profile } from "passport";
|
||||||
import { Strategy as GoogleStrategy } from "passport-google-oauth2";
|
import { Strategy as GoogleStrategy } from "passport-google-oauth2";
|
||||||
import { slugifyDomain } from "@shared/utils/domains";
|
import { slugifyDomain } from "@shared/utils/domains";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import passport from "@outlinewiki/koa-passport";
|
import passport from "@outlinewiki/koa-passport";
|
||||||
import type { Context } from "koa";
|
import type { Context } from "koa";
|
||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { get } from "lodash";
|
import get from "lodash/get";
|
||||||
import { Strategy } from "passport-oauth2";
|
import { Strategy } from "passport-oauth2";
|
||||||
import { slugifyDomain } from "@shared/utils/domains";
|
import { slugifyDomain } from "@shared/utils/domains";
|
||||||
import accountProvisioner from "@server/commands/accountProvisioner";
|
import accountProvisioner from "@server/commands/accountProvisioner";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { find } from "lodash";
|
import find from "lodash/find";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation, Trans } from "react-i18next";
|
import { useTranslation, Trans } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { uniq } from "lodash";
|
import uniq from "lodash/uniq";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { Trans, useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { t } from "i18next";
|
import { t } from "i18next";
|
||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { escapeRegExp } from "lodash";
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
import { Op } from "sequelize";
|
import { Op } from "sequelize";
|
||||||
import { IntegrationService } from "@shared/types";
|
import { IntegrationService } from "@shared/types";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { isEqual, filter, includes } from "lodash";
|
import filter from "lodash/filter";
|
||||||
|
import includes from "lodash/includes";
|
||||||
|
import isEqual from "lodash/isEqual";
|
||||||
import randomstring from "randomstring";
|
import randomstring from "randomstring";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
@@ -269,9 +271,7 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) {
|
|||||||
needs to function.
|
needs to function.
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<EventCheckbox label={t("All events")} value="*" />
|
<EventCheckbox label={t("All events")} value="*" />
|
||||||
|
|
||||||
<FieldSet disabled={isAllEventSelected}>
|
<FieldSet disabled={isAllEventSelected}>
|
||||||
<GroupGrid isMobile={isMobile}>
|
<GroupGrid isMobile={isMobile}>
|
||||||
{Object.entries(WEBHOOK_EVENTS)
|
{Object.entries(WEBHOOK_EVENTS)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { compact, isEmpty } from "lodash";
|
import compact from "lodash/compact";
|
||||||
|
import isEmpty from "lodash/isEmpty";
|
||||||
import { ValidationError } from "@server/errors";
|
import { ValidationError } from "@server/errors";
|
||||||
import auth from "@server/middlewares/authentication";
|
import auth from "@server/middlewares/authentication";
|
||||||
import { WebhookSubscription, Event } from "@server/models";
|
import { WebhookSubscription, Event } from "@server/models";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { yDocToProsemirrorJSON } from "@getoutline/y-prosemirror";
|
import { yDocToProsemirrorJSON } from "@getoutline/y-prosemirror";
|
||||||
import { uniq } from "lodash";
|
import uniq from "lodash/uniq";
|
||||||
import { Node } from "prosemirror-model";
|
import { Node } from "prosemirror-model";
|
||||||
import * as Y from "yjs";
|
import * as Y from "yjs";
|
||||||
import { sequelize } from "@server/database/sequelize";
|
import { sequelize } from "@server/database/sequelize";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import emojiRegex from "emoji-regex";
|
import emojiRegex from "emoji-regex";
|
||||||
import { truncate } from "lodash";
|
import truncate from "lodash/truncate";
|
||||||
import mammoth from "mammoth";
|
import mammoth from "mammoth";
|
||||||
import quotedPrintable from "quoted-printable";
|
import quotedPrintable from "quoted-printable";
|
||||||
import { Transaction } from "sequelize";
|
import { Transaction } from "sequelize";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { uniq } from "lodash";
|
import uniq from "lodash/uniq";
|
||||||
import { QueryTypes } from "sequelize";
|
import { QueryTypes } from "sequelize";
|
||||||
import { sequelize } from "@server/database/sequelize";
|
import { sequelize } from "@server/database/sequelize";
|
||||||
import Logger from "@server/logging/Logger";
|
import Logger from "@server/logging/Logger";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { isUndefined } from "lodash";
|
import isUndefined from "lodash/isUndefined";
|
||||||
import { Transaction } from "sequelize";
|
import { Transaction } from "sequelize";
|
||||||
import { Event, Notification } from "@server/models";
|
import { Event, Notification } from "@server/models";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { has } from "lodash";
|
import has from "lodash/has";
|
||||||
import { Transaction } from "sequelize";
|
import { Transaction } from "sequelize";
|
||||||
import { TeamPreference } from "@shared/types";
|
import { TeamPreference } from "@shared/types";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { uniqBy } from "lodash";
|
import uniqBy from "lodash/uniqBy";
|
||||||
import { Role } from "@shared/types";
|
import { Role } from "@shared/types";
|
||||||
import InviteEmail from "@server/emails/templates/InviteEmail";
|
import InviteEmail from "@server/emails/templates/InviteEmail";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import Koa from "koa";
|
|||||||
import helmet from "koa-helmet";
|
import helmet from "koa-helmet";
|
||||||
import logger from "koa-logger";
|
import logger from "koa-logger";
|
||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { uniq } from "lodash";
|
import uniq from "lodash/uniq";
|
||||||
import { AddressInfo } from "net";
|
import { AddressInfo } from "net";
|
||||||
import stoppable from "stoppable";
|
import stoppable from "stoppable";
|
||||||
import throng from "throng";
|
import throng from "throng";
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
import { IncomingMessage } from "http";
|
import { IncomingMessage } from "http";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import { isEmpty, isArray, isObject, isString } from "lodash";
|
import isArray from "lodash/isArray";
|
||||||
|
import isEmpty from "lodash/isEmpty";
|
||||||
|
import isObject from "lodash/isObject";
|
||||||
|
import isString from "lodash/isString";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
import Metrics from "@server/logging/Metrics";
|
import Metrics from "@server/logging/Metrics";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Context, Next } from "koa";
|
import { Context, Next } from "koa";
|
||||||
import { defaults } from "lodash";
|
import defaults from "lodash/defaults";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
import { RateLimitExceededError } from "@server/errors";
|
import { RateLimitExceededError } from "@server/errors";
|
||||||
import Logger from "@server/logging/Logger";
|
import Logger from "@server/logging/Logger";
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { find, findIndex, remove, uniq } from "lodash";
|
import find from "lodash/find";
|
||||||
|
import findIndex from "lodash/findIndex";
|
||||||
|
import remove from "lodash/remove";
|
||||||
|
import uniq from "lodash/uniq";
|
||||||
import randomstring from "randomstring";
|
import randomstring from "randomstring";
|
||||||
import { Identifier, Transaction, Op, FindOptions } from "sequelize";
|
import { Identifier, Transaction, Op, FindOptions } from "sequelize";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { compact, uniq } from "lodash";
|
import compact from "lodash/compact";
|
||||||
|
import uniq from "lodash/uniq";
|
||||||
import randomstring from "randomstring";
|
import randomstring from "randomstring";
|
||||||
import type { SaveOptions } from "sequelize";
|
import type { SaveOptions } from "sequelize";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
import { isEmpty } from "lodash";
|
import isEmpty from "lodash/isEmpty";
|
||||||
import { SaveOptions } from "sequelize";
|
import { SaveOptions } from "sequelize";
|
||||||
import {
|
import {
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { isNil } from "lodash";
|
import isNil from "lodash/isNil";
|
||||||
import vaults from "@server/database/vaults";
|
import vaults from "@server/database/vaults";
|
||||||
import Logger from "@server/logging/Logger";
|
import Logger from "@server/logging/Logger";
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import { glob } from "glob";
|
import { glob } from "glob";
|
||||||
import Router from "koa-router";
|
import Router from "koa-router";
|
||||||
import { find, sortBy } from "lodash";
|
import find from "lodash/find";
|
||||||
|
import sortBy from "lodash/sortBy";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
import Team from "@server/models/Team";
|
import Team from "@server/models/Team";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import {
|
|||||||
yDocToProsemirrorJSON,
|
yDocToProsemirrorJSON,
|
||||||
} from "@getoutline/y-prosemirror";
|
} from "@getoutline/y-prosemirror";
|
||||||
import { JSDOM } from "jsdom";
|
import { JSDOM } from "jsdom";
|
||||||
import { escapeRegExp, startCase } from "lodash";
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
|
import startCase from "lodash/startCase";
|
||||||
import { Node } from "prosemirror-model";
|
import { Node } from "prosemirror-model";
|
||||||
import * as Y from "yjs";
|
import * as Y from "yjs";
|
||||||
import textBetween from "@shared/editor/lib/textBetween";
|
import textBetween from "@shared/editor/lib/textBetween";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import removeMarkdown from "@tommoor/remove-markdown";
|
import removeMarkdown from "@tommoor/remove-markdown";
|
||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { find, map } from "lodash";
|
import find from "lodash/find";
|
||||||
|
import map from "lodash/map";
|
||||||
import queryParser from "pg-tsquery";
|
import queryParser from "pg-tsquery";
|
||||||
import { Op, QueryTypes, WhereOptions } from "sequelize";
|
import { Op, QueryTypes, WhereOptions } from "sequelize";
|
||||||
import { DateFilter } from "@shared/types";
|
import { DateFilter } from "@shared/types";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { size } from "lodash";
|
import size from "lodash/size";
|
||||||
import { addAttributeOptions } from "sequelize-typescript";
|
import { addAttributeOptions } from "sequelize-typescript";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { size } from "lodash";
|
import size from "lodash/size";
|
||||||
import { Node } from "prosemirror-model";
|
import { Node } from "prosemirror-model";
|
||||||
import { addAttributeOptions } from "sequelize-typescript";
|
import { addAttributeOptions } from "sequelize-typescript";
|
||||||
import { ProsemirrorData } from "@shared/types";
|
import { ProsemirrorData } from "@shared/types";
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ import fs from "fs";
|
|||||||
import http from "http";
|
import http from "http";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import Koa, { Context } from "koa";
|
import Koa, { Context } from "koa";
|
||||||
import { isNil, escape, snakeCase } from "lodash";
|
import escape from "lodash/escape";
|
||||||
|
import isNil from "lodash/isNil";
|
||||||
|
import snakeCase from "lodash/snakeCase";
|
||||||
import { ValidationError, EmptyResultError } from "sequelize";
|
import { ValidationError, EmptyResultError } from "sequelize";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
import { InternalError } from "@server/errors";
|
import { InternalError } from "@server/errors";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import invariant from "invariant";
|
import invariant from "invariant";
|
||||||
import { some } from "lodash";
|
import some from "lodash/some";
|
||||||
import { CollectionPermission } from "@shared/types";
|
import { CollectionPermission } from "@shared/types";
|
||||||
import { Collection, User, Team } from "@server/models";
|
import { Collection, User, Team } from "@server/models";
|
||||||
import { AdminRequiredError } from "../errors";
|
import { AdminRequiredError } from "../errors";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { compact } from "lodash";
|
import compact from "lodash/compact";
|
||||||
import { traceFunction } from "@server/logging/tracing";
|
import { traceFunction } from "@server/logging/tracing";
|
||||||
import { User } from "@server/models";
|
import { User } from "@server/models";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import JSZip from "jszip";
|
import JSZip from "jszip";
|
||||||
import { omit } from "lodash";
|
import omit from "lodash/omit";
|
||||||
import { NavigationNode } from "@shared/types";
|
import { NavigationNode } from "@shared/types";
|
||||||
import { parser } from "@server/editor";
|
import { parser } from "@server/editor";
|
||||||
import env from "@server/env";
|
import env from "@server/env";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import { truncate } from "lodash";
|
import truncate from "lodash/truncate";
|
||||||
import { FileOperationState, NotificationEventType } from "@shared/types";
|
import { FileOperationState, NotificationEventType } from "@shared/types";
|
||||||
import ExportFailureEmail from "@server/emails/templates/ExportFailureEmail";
|
import ExportFailureEmail from "@server/emails/templates/ExportFailureEmail";
|
||||||
import ExportSuccessEmail from "@server/emails/templates/ExportSuccessEmail";
|
import ExportSuccessEmail from "@server/emails/templates/ExportSuccessEmail";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import JSZip from "jszip";
|
import JSZip from "jszip";
|
||||||
import { escapeRegExp, find } from "lodash";
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
|
import find from "lodash/find";
|
||||||
import mime from "mime-types";
|
import mime from "mime-types";
|
||||||
import { Node } from "prosemirror-model";
|
import { Node } from "prosemirror-model";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import JSZip from "jszip";
|
import JSZip from "jszip";
|
||||||
import { escapeRegExp } from "lodash";
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
import mime from "mime-types";
|
import mime from "mime-types";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import documentImporter from "@server/commands/documentImporter";
|
import documentImporter from "@server/commands/documentImporter";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import JSZip from "jszip";
|
import JSZip from "jszip";
|
||||||
import { compact, escapeRegExp } from "lodash";
|
import compact from "lodash/compact";
|
||||||
|
import escapeRegExp from "lodash/escapeRegExp";
|
||||||
import mime from "mime-types";
|
import mime from "mime-types";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import documentImporter from "@server/commands/documentImporter";
|
import documentImporter from "@server/commands/documentImporter";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { S3 } from "aws-sdk";
|
import { S3 } from "aws-sdk";
|
||||||
import { truncate } from "lodash";
|
import truncate from "lodash/truncate";
|
||||||
import {
|
import {
|
||||||
CollectionPermission,
|
CollectionPermission,
|
||||||
CollectionSort,
|
CollectionSort,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user