From 639a24d8ad183135b779426decf66318e0cd1139 Mon Sep 17 00:00:00 2001
From: Andre Roelofs
Date: Sun, 26 Mar 2023 01:39:38 +0100
Subject: [PATCH] Replace TS relative @ import path (#1087)
Migrated the import shortcut used in Svelte from @ to @graphite for better future package compatibility
Co-authored-by: Andre Roelofs
Co-authored-by: Keavon Chambers
---
frontend/.eslintrc.js | 2 +-
frontend/src/App.svelte | 4 +-
frontend/src/components/Editor.svelte | 34 +--
.../floating-menus/ColorPicker.svelte | 26 +-
.../floating-menus/DialogModal.svelte | 14 +-
.../floating-menus/EyedropperPreview.svelte | 2 +-
.../components/floating-menus/MenuList.svelte | 16 +-
.../src/components/layout/FloatingMenu.svelte | 2 +-
.../src/components/panels/Document.svelte | 22 +-
.../src/components/panels/LayerTree.svelte | 18 +-
.../src/components/panels/NodeGraph.svelte | 22 +-
.../src/components/panels/Properties.svelte | 10 +-
.../components/widgets/WidgetLayout.svelte | 6 +-
.../src/components/widgets/WidgetRow.svelte | 50 ++--
.../widgets/assists/PivotAssist.svelte | 2 +-
.../buttons/BreadcrumbTrailButtons.svelte | 4 +-
.../widgets/buttons/IconButton.svelte | 4 +-
.../buttons/ParameterExposeButton.svelte | 2 +-
.../widgets/buttons/PopoverButton.svelte | 8 +-
.../widgets/buttons/TextButton.svelte | 6 +-
.../widgets/groups/WidgetSection.svelte | 10 +-
.../widgets/inputs/CheckboxInput.svelte | 6 +-
.../widgets/inputs/ColorInput.svelte | 8 +-
.../widgets/inputs/DropdownInput.svelte | 10 +-
.../widgets/inputs/FieldInput.svelte | 4 +-
.../widgets/inputs/FontInput.svelte | 12 +-
.../widgets/inputs/LayerReferenceInput.svelte | 14 +-
.../widgets/inputs/MenuBarInput.svelte | 12 +-
.../widgets/inputs/NumberInput.svelte | 4 +-
.../widgets/inputs/OptionalInput.svelte | 6 +-
.../widgets/inputs/RadioInput.svelte | 8 +-
.../widgets/inputs/SwatchPairInput.svelte | 10 +-
.../widgets/inputs/TextAreaInput.svelte | 2 +-
.../widgets/inputs/TextInput.svelte | 2 +-
.../widgets/labels/IconLabel.svelte | 4 +-
.../widgets/labels/Separator.svelte | 2 +-
.../widgets/labels/UserInputLabel.svelte | 16 +-
.../src/components/window/MainWindow.svelte | 8 +-
.../window/status-bar/StatusBar.svelte | 12 +-
.../window/title-bar/TitleBar.svelte | 14 +-
.../window/title-bar/WindowButtonsMac.svelte | 2 +-
.../window/title-bar/WindowButtonsWeb.svelte | 8 +-
.../title-bar/WindowButtonsWindows.svelte | 4 +-
.../window/title-bar/WindowTitle.svelte | 4 +-
.../components/window/workspace/Panel.svelte | 30 +--
.../window/workspace/Workspace.svelte | 18 +-
frontend/src/io-managers/clipboard.ts | 4 +-
frontend/src/io-managers/hyperlinks.ts | 4 +-
frontend/src/io-managers/input.ts | 18 +-
frontend/src/io-managers/localization.ts | 4 +-
frontend/src/io-managers/panic.ts | 16 +-
frontend/src/io-managers/persistence.ts | 6 +-
frontend/src/main.ts | 2 +-
frontend/src/state-providers/dialog.ts | 6 +-
frontend/src/state-providers/document.ts | 4 +-
frontend/src/state-providers/fonts.ts | 4 +-
frontend/src/state-providers/fullscreen.ts | 2 +-
frontend/src/state-providers/node-graph.ts | 4 +-
frontend/src/state-providers/portfolio.ts | 10 +-
frontend/src/state-providers/workspace.ts | 4 +-
frontend/src/utility-functions/icons.ts | 248 +++++++++---------
frontend/src/utility-functions/imaginate.ts | 12 +-
.../src/utility-functions/rasterization.ts | 2 +-
frontend/src/wasm-communication/editor.ts | 10 +-
frontend/src/wasm-communication/messages.ts | 6 +-
.../wasm-communication/subscription-router.ts | 4 +-
frontend/tsconfig.json | 2 +-
frontend/wasm/src/editor_api.rs | 2 +-
frontend/webpack.config.ts | 2 +-
website/.eslintrc.js | 2 +-
website/other/bezier-rs-demos/.eslintrc.js | 2 +-
.../src/components/BezierDemo.ts | 10 +-
.../src/components/BezierDemoPane.ts | 6 +-
.../src/components/SubpathDemo.ts | 10 +-
.../src/components/SubpathDemoPane.ts | 6 +-
.../src/features/bezier-features.ts | 6 +-
.../src/features/subpath-features.ts | 4 +-
website/other/bezier-rs-demos/src/main.ts | 14 +-
.../bezier-rs-demos/src/utils/options.ts | 2 +-
.../other/bezier-rs-demos/src/utils/render.ts | 2 +-
.../other/bezier-rs-demos/src/utils/types.ts | 2 +-
website/other/bezier-rs-demos/tsconfig.json | 2 +-
website/other/bezier-rs-demos/vue.config.js | 2 +-
83 files changed, 465 insertions(+), 465 deletions(-)
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 1232f3a8..35c9d136 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -48,7 +48,7 @@ module.exports = {
"no-bitwise": "off",
"no-shadow": "off",
"no-use-before-define": "off",
- "no-restricted-imports": ["error", { patterns: [".*", "!@/*"] }],
+ "no-restricted-imports": ["error", { patterns: [".*", "!@graphite/*"] }],
// TypeScript plugin config
"@typescript-eslint/indent": "off",
diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte
index 864f43ae..87899324 100644
--- a/frontend/src/App.svelte
+++ b/frontend/src/App.svelte
@@ -1,9 +1,9 @@
diff --git a/frontend/src/components/window/title-bar/WindowButtonsWeb.svelte b/frontend/src/components/window/title-bar/WindowButtonsWeb.svelte
index b0450cc9..939becdd 100644
--- a/frontend/src/components/window/title-bar/WindowButtonsWeb.svelte
+++ b/frontend/src/components/window/title-bar/WindowButtonsWeb.svelte
@@ -1,10 +1,10 @@
diff --git a/frontend/src/components/window/title-bar/WindowTitle.svelte b/frontend/src/components/window/title-bar/WindowTitle.svelte
index ee6be586..f0af261c 100644
--- a/frontend/src/components/window/title-bar/WindowTitle.svelte
+++ b/frontend/src/components/window/title-bar/WindowTitle.svelte
@@ -1,6 +1,6 @@
diff --git a/frontend/src/components/window/workspace/Panel.svelte b/frontend/src/components/window/workspace/Panel.svelte
index 21cd98b5..7bd17122 100644
--- a/frontend/src/components/window/workspace/Panel.svelte
+++ b/frontend/src/components/window/workspace/Panel.svelte
@@ -1,11 +1,11 @@