enrecipes/app/main.js

32 lines
724 B
JavaScript
Raw Normal View History

2020-09-15 11:10:16 +00:00
import Vue from "nativescript-vue"
import App from "./components/App"
2020-10-21 17:54:45 +00:00
import store from "./store"
2020-10-14 19:32:32 +00:00
2020-10-21 17:54:45 +00:00
import RadListView from "nativescript-ui-listview/vue"
2020-10-14 19:32:32 +00:00
Vue.use(RadListView)
2020-10-22 18:36:50 +00:00
import DateTimePicker from "@nativescript/datetimepicker/vue"
2020-10-14 19:32:32 +00:00
Vue.use(DateTimePicker)
2020-09-15 11:10:16 +00:00
2020-10-21 17:54:45 +00:00
Vue.registerElement(
"RadSideDrawer",
() => require("nativescript-ui-sidedrawer").RadSideDrawer
)
2020-09-15 11:10:16 +00:00
2020-10-26 20:49:54 +00:00
// Vue.registerElement(
// 'Fab',
// () => require('@nstudio/nativescript-floatingactionbutton').Fab
// );
2020-10-22 18:36:50 +00:00
2020-09-15 11:10:16 +00:00
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()