2021-02-28 15:10:26 +00:00
|
|
|
import {
|
|
|
|
localize,
|
|
|
|
androidLaunchEventLocalizationHandler,
|
|
|
|
} from '@nativescript/localize'
|
|
|
|
import { on, launchEvent } from '@nativescript/core/application'
|
2020-12-07 14:45:00 +00:00
|
|
|
on(launchEvent, (args) => {
|
|
|
|
if (args.android) {
|
2021-02-28 15:10:26 +00:00
|
|
|
androidLaunchEventLocalizationHandler()
|
2020-12-07 14:45:00 +00:00
|
|
|
}
|
|
|
|
})
|
2021-02-28 15:10:26 +00:00
|
|
|
import Vue from 'nativescript-vue'
|
|
|
|
import App from './components/App'
|
|
|
|
import store from './store'
|
2020-10-14 19:32:32 +00:00
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import { installMixins } from '@nativescript-community/ui-material-core'
|
|
|
|
installMixins()
|
2021-01-23 17:20:15 +00:00
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import { install } from '@nativescript-community/ui-drawer'
|
|
|
|
install()
|
2021-01-23 17:20:15 +00:00
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import DrawerPlugin from '@nativescript-community/ui-drawer/vue'
|
|
|
|
Vue.use(DrawerPlugin)
|
2020-10-14 19:32:32 +00:00
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import CollectionView from '@nativescript-community/ui-collectionview/vue';
|
|
|
|
Vue.use(CollectionView);
|
|
|
|
|
|
|
|
import ButtonPlugin from '@nativescript-community/ui-material-button/vue'
|
2020-11-10 18:28:48 +00:00
|
|
|
Vue.use(ButtonPlugin)
|
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import ActivityIndicatorPlugin from '@nativescript-community/ui-material-activityindicator/vue'
|
2020-11-10 18:28:48 +00:00
|
|
|
Vue.use(ActivityIndicatorPlugin)
|
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import FloatingActionButtonPlugin from '@nativescript-community/ui-material-floatingactionbutton/vue'
|
2020-11-10 18:28:48 +00:00
|
|
|
Vue.use(FloatingActionButtonPlugin)
|
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import ProgressPlugin from '@nativescript-community/ui-material-progress/vue'
|
2020-11-10 18:28:48 +00:00
|
|
|
Vue.use(ProgressPlugin)
|
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
import { CheckBox } from '@nstudio/nativescript-checkbox'
|
|
|
|
Vue.registerElement('CheckBox', () => CheckBox, {
|
2020-11-02 11:36:53 +00:00
|
|
|
model: {
|
2021-02-28 15:10:26 +00:00
|
|
|
prop: 'checked',
|
|
|
|
event: 'checkedChange',
|
|
|
|
},
|
2020-11-02 11:36:53 +00:00
|
|
|
})
|
2020-10-22 18:36:50 +00:00
|
|
|
|
2021-02-28 15:10:26 +00:00
|
|
|
Vue.config.silent = TNS_ENV === 'production'
|
2021-01-23 17:20:15 +00:00
|
|
|
|
2020-12-07 14:45:00 +00:00
|
|
|
Vue.filter('L', localize)
|
2020-09-15 11:10:16 +00:00
|
|
|
|
|
|
|
new Vue({
|
|
|
|
store,
|
2021-02-28 15:10:26 +00:00
|
|
|
render: (h) => h('frame', [h(App)]),
|
2020-09-15 11:10:16 +00:00
|
|
|
}).$start()
|