enrecipes/app/main.js
2021-01-23 22:50:15 +05:30

52 lines
1.5 KiB
JavaScript

import {localize, androidLaunchEventLocalizationHandler} from '@nativescript/localize'
import {on, launchEvent} from '@nativescript/core/application';
on(launchEvent, (args) => {
if (args.android) {
androidLaunchEventLocalizationHandler();
}
})
import Vue from "nativescript-vue"
import App from "./components/App"
import store from "./store"
import {install} from '@nativescript-community/ui-drawer';
install();
import DrawerPlugin from '@nativescript-community/ui-drawer/vue';
Vue.use(DrawerPlugin);
// import CollectionView from '@nativescript-community/ui-collectionview/vue';
// Vue.use(CollectionView);
import ButtonPlugin from "@nativescript-community/ui-material-button/vue"
Vue.use(ButtonPlugin)
import ActivityIndicatorPlugin from "@nativescript-community/ui-material-activityindicator/vue"
Vue.use(ActivityIndicatorPlugin)
import RipplePlugin from "@nativescript-community/ui-material-ripple/vue"
Vue.use(RipplePlugin)
import FloatingActionButtonPlugin from "@nativescript-community/ui-material-floatingactionbutton/vue"
Vue.use(FloatingActionButtonPlugin)
import ProgressPlugin from "@nativescript-community/ui-material-progress/vue"
Vue.use(ProgressPlugin)
import {CheckBox} from "@nstudio/nativescript-checkbox"
Vue.registerElement("CheckBox", () => CheckBox, {
model: {
prop: "checked",
event: "checkedChange"
}
})
Vue.config.silent = TNS_ENV === "production"
Vue.filter('L', localize)
new Vue({
store,
render: h => h("frame", [h(App)])
}).$start()