|
1 | 1 | <script lang="ts"> |
2 | 2 | import { onMount, onDestroy, setContext } from "svelte"; |
3 | | -
|
4 | | - import type { EditorHandle } from "@graphite/../wasm/pkg/graphite_wasm"; |
5 | | - import { createClipboardManager, destroyClipboardManager } from "@graphite/managers/clipboard"; |
6 | | - import { createFontsManager, destroyFontsManager } from "@graphite/managers/fonts"; |
7 | | - import { createHyperlinkManager, destroyHyperlinkManager } from "@graphite/managers/hyperlink"; |
8 | | - import { createInputManager, destroyInputManager } from "@graphite/managers/input"; |
9 | | - import { createLocalizationManager, destroyLocalizationManager } from "@graphite/managers/localization"; |
10 | | - import { createPanicManager, destroyPanicManager } from "@graphite/managers/panic"; |
11 | | - import { createPersistenceManager, destroyPersistenceManager } from "@graphite/managers/persistence"; |
12 | | - import { createAppWindowStore, destroyAppWindowStore } from "@graphite/stores/app-window"; |
13 | | - import { createDialogStore, destroyDialogStore } from "@graphite/stores/dialog"; |
14 | | - import { createDocumentStore, destroyDocumentStore } from "@graphite/stores/document"; |
15 | | - import { createFullscreenStore, destroyFullscreenStore } from "@graphite/stores/fullscreen"; |
16 | | - import { createNodeGraphStore, destroyNodeGraphStore } from "@graphite/stores/node-graph"; |
17 | | - import { createPortfolioStore, destroyPortfolioStore } from "@graphite/stores/portfolio"; |
18 | | - import { createTooltipStore, destroyTooltipStore } from "@graphite/stores/tooltip"; |
| 3 | + import MainWindow from "/src/components/window/MainWindow.svelte"; |
| 4 | + import { createClipboardManager, destroyClipboardManager } from "/src/managers/clipboard"; |
| 5 | + import { createFontsManager, destroyFontsManager } from "/src/managers/fonts"; |
| 6 | + import { createHyperlinkManager, destroyHyperlinkManager } from "/src/managers/hyperlink"; |
| 7 | + import { createInputManager, destroyInputManager } from "/src/managers/input"; |
| 8 | + import { createLocalizationManager, destroyLocalizationManager } from "/src/managers/localization"; |
| 9 | + import { createPanicManager, destroyPanicManager } from "/src/managers/panic"; |
| 10 | + import { createPersistenceManager, destroyPersistenceManager } from "/src/managers/persistence"; |
| 11 | + import { createAppWindowStore, destroyAppWindowStore } from "/src/stores/app-window"; |
| 12 | + import { createDialogStore, destroyDialogStore } from "/src/stores/dialog"; |
| 13 | + import { createDocumentStore, destroyDocumentStore } from "/src/stores/document"; |
| 14 | + import { createFullscreenStore, destroyFullscreenStore } from "/src/stores/fullscreen"; |
| 15 | + import { createNodeGraphStore, destroyNodeGraphStore } from "/src/stores/node-graph"; |
| 16 | + import { createPortfolioStore, destroyPortfolioStore } from "/src/stores/portfolio"; |
| 17 | + import { createTooltipStore, destroyTooltipStore } from "/src/stores/tooltip"; |
19 | 18 | import type { SubscriptionsRouter } from "/src/subscriptions-router"; |
20 | | -
|
21 | | - import MainWindow from "@graphite/components/window/MainWindow.svelte"; |
| 19 | + import type { EditorHandle } from "/wasm/pkg/graphite_wasm"; |
22 | 20 |
|
23 | 21 | // Graphite Wasm editor and subscriptions router |
24 | 22 | export let subscriptions: SubscriptionsRouter; |
|
346 | 344 | font-weight: 400; |
347 | 345 | font-style: normal; |
348 | 346 | font-stretch: normal; |
349 | | - src: url("@graphite/../node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-Regular.ttf.woff2") format("woff2"); |
| 347 | + src: url("/node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-Regular.ttf.woff2") format("woff2"); |
350 | 348 | } |
351 | 349 |
|
352 | 350 | @font-face { |
353 | 351 | font-family: "Source Sans Pro"; |
354 | 352 | font-weight: 400; |
355 | 353 | font-style: italic; |
356 | 354 | font-stretch: normal; |
357 | | - src: url("@graphite/../node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-It.ttf.woff2") format("woff2"); |
| 355 | + src: url("/node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-It.ttf.woff2") format("woff2"); |
358 | 356 | } |
359 | 357 |
|
360 | 358 | @font-face { |
361 | 359 | font-family: "Source Sans Pro"; |
362 | 360 | font-weight: 700; |
363 | 361 | font-style: normal; |
364 | 362 | font-stretch: normal; |
365 | | - src: url("@graphite/../node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-Bold.ttf.woff2") format("woff2"); |
| 363 | + src: url("/node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-Bold.ttf.woff2") format("woff2"); |
366 | 364 | } |
367 | 365 |
|
368 | 366 | @font-face { |
369 | 367 | font-family: "Source Sans Pro"; |
370 | 368 | font-weight: 700; |
371 | 369 | font-style: italic; |
372 | 370 | font-stretch: normal; |
373 | | - src: url("@graphite/../node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-BoldIt.ttf.woff2") format("woff2"); |
| 371 | + src: url("/node_modules/source-sans-pro/WOFF2/TTF/SourceSansPro-BoldIt.ttf.woff2") format("woff2"); |
374 | 372 | } |
375 | 373 |
|
376 | 374 | @font-face { |
377 | 375 | font-family: "Source Code Pro"; |
378 | 376 | font-weight: 400; |
379 | 377 | font-style: normal; |
380 | 378 | font-stretch: normal; |
381 | | - src: url("@graphite/../node_modules/source-code-pro/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2") format("woff2"); |
| 379 | + src: url("/node_modules/source-code-pro/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2") format("woff2"); |
382 | 380 | } |
383 | 381 | </style> |
0 commit comments