enrecipes/app/main.js
2020-11-07 02:13:32 +05:30

31 lines
701 B
JavaScript

import Vue from "nativescript-vue"
import App from "./components/App"
import store from "./store"
import RadListView from "nativescript-ui-listview/vue"
Vue.use(RadListView)
Vue.registerElement(
"RadSideDrawer",
() => require("nativescript-ui-sidedrawer").RadSideDrawer
)
import { CheckBox } from "@nstudio/nativescript-checkbox"
Vue.registerElement("CheckBox", () => CheckBox, {
model: {
prop: "checked",
event: "checkedChange",
},
})
if (TNS_ENV !== "production") {
// Vue.use(VueDevtools)
}
// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = TNS_ENV === "production"
new Vue({
store,
render: (h) => h("frame", [h(App)]),
}).$start()