Move components and css folder in src

This commit is contained in:
Deepen Timalsina 2025-04-15 20:15:16 +05:45
parent c9c6c47081
commit e75a7b45d6
288 changed files with 473 additions and 469 deletions

View file

@ -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,

View file

@ -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,

View file

@ -1,4 +1,4 @@
@import "../../packages/excalidraw/css/variables.module.scss";
@import "../../packages/excalidraw/src/css/variables.module.scss";
.excalidraw {
.collab-errors-button {

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -2,7 +2,7 @@ import {
ArrowheadArrowIcon,
CloseIcon,
TrashIcon,
} from "@excalidraw/excalidraw/components/icons";
} from "@excalidraw/excalidraw/src/components/icons";
import {
bootstrapCanvas,
getNormalizedCanvasDimensions,

View file

@ -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 = () => {

View file

@ -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,

View file

@ -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";

View file

@ -1,4 +1,4 @@
@import "../../packages/excalidraw/css/variables.module.scss";
@import "../../packages/excalidraw/src/css/variables.module.scss";
.excalidraw {
.ShareDialog {

View file

@ -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";

View file

@ -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",