enrecipes/app/main.js
vishnuraghavb 9dc8270709 new appbar
2021-03-23 15:29:00 +05:30

52 lines
1.3 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 { installMixins } from '@nativescript-community/ui-material-core'
installMixins()
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 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()