mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
* Clean up Vue initialization-related code * Rename folder: dispatcher -> interop * Rename folder: state -> providers * Comments and clarification * Rename JS dispatcher to subscription router * Assorted cleanup and renaming * Rename: js-messages.ts -> messages.ts * Comments * Remove unused Vue component injects * Clean up coming soon and add warning about freezing the app * Further cleanup * Dangerous changes * Simplify App.vue code * Move more disparate init code from components into managers * Rename folder: providers -> state-providers * Other * Move Document panel options bar separator to backend * Add destructors to managers to fix HMR * Comments and code style * Rename variable: font -> font_file_url * Fix async font loading; refactor janky floating menu openness and min-width measurement; fix Vetur errors * Fix misaligned canvas in viewport until panning on page (re)load * Add Vue bidirectional props documentation * More folder renaming for better terminology; add some documentation
18 lines
558 B
TypeScript
18 lines
558 B
TypeScript
// reflect-metadata allows for runtime reflection of types in JavaScript.
|
|
// It is needed for class-transformer to work and is imported as a side effect.
|
|
// The library replaces the Reflect API on the window to support more features.
|
|
import "reflect-metadata";
|
|
import { createApp } from "vue";
|
|
|
|
import { initWasm } from "@/wasm-communication/editor";
|
|
|
|
import App from "@/App.vue";
|
|
|
|
(async (): Promise<void> => {
|
|
// Initialize the WASM module for the editor backend
|
|
await initWasm();
|
|
|
|
// Initialize the Vue application
|
|
createApp(App).mount("#app");
|
|
})();
|