forked from frappe/builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
38 lines (30 loc) · 992 Bytes
/
main.ts
File metadata and controls
38 lines (30 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { createApp } from "vue";
import { Button, FeatherIcon, FormControl, FrappeUI } from "frappe-ui";
import { createPinia } from "pinia";
import "./index.css";
import router from "./router";
import "./setupFrappeUIResource";
import "./telemetry";
import "./utils/arrayFunctions";
import App from "@/App.vue";
import BuilderButton from "@/components/Controls/BuilderButton.vue";
import Input from "@/components/Controls/Input.vue";
const app = createApp(App);
const pinia = createPinia();
app.use(router);
app.use(FrappeUI);
app.use(pinia);
window.name = "frappe-builder";
app.config.globalProperties.window = window;
app.component("Button", Button);
app.component("BuilderButton", BuilderButton);
app.component("FormControl", FormControl);
app.component("BuilderInput", Input);
app.component("FeatherIcon", FeatherIcon);
app.mount("#app");
declare global {
interface Window {
is_developer_mode?: boolean;
}
}
window.is_developer_mode = process.env.NODE_ENV === "development";