mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Move components and css folder in src
This commit is contained in:
parent
c9c6c47081
commit
e75a7b45d6
288 changed files with 473 additions and 469 deletions
|
@ -10,12 +10,12 @@ import { getDefaultAppState } from "@excalidraw/excalidraw/appState";
|
|||
import {
|
||||
CommandPalette,
|
||||
DEFAULT_CATEGORIES,
|
||||
} from "@excalidraw/excalidraw/components/CommandPalette/CommandPalette";
|
||||
import { ErrorDialog } from "@excalidraw/excalidraw/components/ErrorDialog";
|
||||
import { OverwriteConfirmDialog } from "@excalidraw/excalidraw/components/OverwriteConfirm/OverwriteConfirm";
|
||||
import { openConfirmModal } from "@excalidraw/excalidraw/components/OverwriteConfirm/OverwriteConfirmState";
|
||||
import { ShareableLinkDialog } from "@excalidraw/excalidraw/components/ShareableLinkDialog";
|
||||
import Trans from "@excalidraw/excalidraw/components/Trans";
|
||||
} from "@excalidraw/excalidraw/src/components/CommandPalette/CommandPalette";
|
||||
import { ErrorDialog } from "@excalidraw/excalidraw/src/components/ErrorDialog";
|
||||
import { OverwriteConfirmDialog } from "@excalidraw/excalidraw/src/components/OverwriteConfirm/OverwriteConfirm";
|
||||
import { openConfirmModal } from "@excalidraw/excalidraw/src/components/OverwriteConfirm/OverwriteConfirmState";
|
||||
import { ShareableLinkDialog } from "@excalidraw/excalidraw/src/components/ShareableLinkDialog";
|
||||
import Trans from "@excalidraw/excalidraw/src/components/Trans";
|
||||
import {
|
||||
APP_NAME,
|
||||
EVENT,
|
||||
|
@ -46,7 +46,7 @@ import {
|
|||
exportToPlus,
|
||||
share,
|
||||
youtubeIcon,
|
||||
} from "@excalidraw/excalidraw/components/icons";
|
||||
} from "@excalidraw/excalidraw/src/components/icons";
|
||||
import { isElementLink } from "@excalidraw/element/elementLink";
|
||||
import {
|
||||
restore,
|
||||
|
|
|
@ -5,7 +5,7 @@ import {
|
|||
zoomToFitBounds,
|
||||
reconcileElements,
|
||||
} from "@excalidraw/excalidraw";
|
||||
import { ErrorDialog } from "@excalidraw/excalidraw/components/ErrorDialog";
|
||||
import { ErrorDialog } from "@excalidraw/excalidraw/src/components/ErrorDialog";
|
||||
import { APP_NAME, EVENT } from "@excalidraw/common";
|
||||
import {
|
||||
IDLE_THRESHOLD,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../../packages/excalidraw/css/variables.module.scss";
|
||||
@import "../../packages/excalidraw/src/css/variables.module.scss";
|
||||
|
||||
.excalidraw {
|
||||
.collab-errors-button {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Tooltip } from "@excalidraw/excalidraw/components/Tooltip";
|
||||
import { warning } from "@excalidraw/excalidraw/components/icons";
|
||||
import { Tooltip } from "@excalidraw/excalidraw/src/components/Tooltip";
|
||||
import { warning } from "@excalidraw/excalidraw/src/components/icons";
|
||||
import clsx from "clsx";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {
|
|||
loginIcon,
|
||||
ExcalLogo,
|
||||
eyeIcon,
|
||||
} from "@excalidraw/excalidraw/components/icons";
|
||||
} from "@excalidraw/excalidraw/src/components/icons";
|
||||
import { MainMenu } from "@excalidraw/excalidraw/index";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { loginIcon } from "@excalidraw/excalidraw/components/icons";
|
||||
import { loginIcon } from "@excalidraw/excalidraw/src/components/icons";
|
||||
import { POINTER_EVENTS } from "@excalidraw/common";
|
||||
import { useI18n } from "@excalidraw/excalidraw/i18n";
|
||||
import { WelcomeScreen } from "@excalidraw/excalidraw/index";
|
||||
|
|
|
@ -2,7 +2,7 @@ import {
|
|||
ArrowheadArrowIcon,
|
||||
CloseIcon,
|
||||
TrashIcon,
|
||||
} from "@excalidraw/excalidraw/components/icons";
|
||||
} from "@excalidraw/excalidraw/src/components/icons";
|
||||
import {
|
||||
bootstrapCanvas,
|
||||
getNormalizedCanvasDimensions,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Tooltip } from "@excalidraw/excalidraw/components/Tooltip";
|
||||
import { shield } from "@excalidraw/excalidraw/components/icons";
|
||||
import { Tooltip } from "@excalidraw/excalidraw/src/components/Tooltip";
|
||||
import { shield } from "@excalidraw/excalidraw/src/components/icons";
|
||||
import { useI18n } from "@excalidraw/excalidraw/i18n";
|
||||
|
||||
export const EncryptedIcon = () => {
|
||||
|
|
|
@ -3,9 +3,9 @@ import { uploadBytes, ref } from "firebase/storage";
|
|||
import { nanoid } from "nanoid";
|
||||
|
||||
import { trackEvent } from "@excalidraw/excalidraw/analytics";
|
||||
import { Card } from "@excalidraw/excalidraw/components/Card";
|
||||
import { ExcalidrawLogo } from "@excalidraw/excalidraw/components/ExcalidrawLogo";
|
||||
import { ToolButton } from "@excalidraw/excalidraw/components/ToolButton";
|
||||
import { Card } from "@excalidraw/excalidraw/src/components/Card";
|
||||
import { ExcalidrawLogo } from "@excalidraw/excalidraw/src/components/ExcalidrawLogo";
|
||||
import { ToolButton } from "@excalidraw/excalidraw/src/components/ToolButton";
|
||||
import { MIME_TYPES, getFrame } from "@excalidraw/common";
|
||||
import {
|
||||
encryptData,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Trans from "@excalidraw/excalidraw/components/Trans";
|
||||
import Trans from "@excalidraw/excalidraw/src/components/Trans";
|
||||
import { t } from "@excalidraw/excalidraw/i18n";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
import React from "react";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../../packages/excalidraw/css/variables.module.scss";
|
||||
@import "../../packages/excalidraw/src/css/variables.module.scss";
|
||||
|
||||
.excalidraw {
|
||||
.ShareDialog {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { trackEvent } from "@excalidraw/excalidraw/analytics";
|
||||
import { copyTextToSystemClipboard } from "@excalidraw/excalidraw/clipboard";
|
||||
import { Dialog } from "@excalidraw/excalidraw/components/Dialog";
|
||||
import { FilledButton } from "@excalidraw/excalidraw/components/FilledButton";
|
||||
import { TextField } from "@excalidraw/excalidraw/components/TextField";
|
||||
import { Dialog } from "@excalidraw/excalidraw/src/components/Dialog";
|
||||
import { FilledButton } from "@excalidraw/excalidraw/src/components/FilledButton";
|
||||
import { TextField } from "@excalidraw/excalidraw/src/components/TextField";
|
||||
import {
|
||||
copyIcon,
|
||||
LinkIcon,
|
||||
|
@ -11,7 +11,7 @@ import {
|
|||
share,
|
||||
shareIOS,
|
||||
shareWindows,
|
||||
} from "@excalidraw/excalidraw/components/icons";
|
||||
} from "@excalidraw/excalidraw/src/components/icons";
|
||||
import { useUIAppState } from "@excalidraw/excalidraw/src/context/ui-appState";
|
||||
import { useCopyStatus } from "@excalidraw/excalidraw/src/hooks/useCopiedIndicator";
|
||||
import { useI18n } from "@excalidraw/excalidraw/i18n";
|
||||
|
|
|
@ -140,7 +140,7 @@ export default defineConfig(({ mode }) => {
|
|||
},
|
||||
|
||||
workbox: {
|
||||
maximumFileSizeToCacheInBytes: 3000000,
|
||||
maximumFileSizeToCacheInBytes: 3 * 1000 * 1000,
|
||||
// don't precache fonts, locales and separate chunks
|
||||
globIgnores: [
|
||||
"fonts.css",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue