mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Many large changes, including:
- TypeScript enums are now string unions throughout
- Strong type-checking throughout the TS and Vue codebase
- Vue component props now all specify `as PropType<...>`
- Usage of annotated return types on all functions
- Sorting of JS import statements
- Explicit usage of Vue bind attribute function call arguments (`@click="foo"` is now `@click=(e) => foo(e)`)
- Much improved code quality related to the color picker
- Consistent camelCase Vue bind and v-model attributes
- Consistent Vue HTML attribute strings with single quotes
- Bug fix and clarity improvement with incorrect hint class parameters
- Empty Vue component objects like `props: {}` and `components: {}` removed
19 lines
563 B
TypeScript
19 lines
563 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 "@/lifetime/errors";
|
|
import { initWasm } from "@/state/wasm-loader";
|
|
|
|
import App from "@/App.vue";
|
|
|
|
(async (): Promise<void> => {
|
|
// Initialize the WASM editor backend
|
|
await initWasm();
|
|
|
|
// Initialize the Vue application
|
|
createApp(App).mount("#app");
|
|
})();
|