enrecipes/app/main.ts

29 lines
656 B
TypeScript
Raw Permalink Normal View History

2021-02-28 15:10:26 +00:00
import {
localize,
androidLaunchEventLocalizationHandler,
} from '@nativescript/localize'
import { on, launchEvent } from '@nativescript/core/application'
on(launchEvent, (args) => {
if (args.android) {
2021-02-28 15:10:26 +00:00
androidLaunchEventLocalizationHandler()
}
})
2021-02-28 15:10:26 +00:00
import Vue from 'nativescript-vue'
2021-04-14 13:38:22 +00:00
import EnRecipes from './components/EnRecipes.vue'
2021-02-28 15:10:26 +00:00
import store from './store'
2020-10-14 19:32:32 +00:00
2021-04-01 10:55:35 +00:00
import CollectionView from '@nativescript-community/ui-collectionview/vue'
Vue.use(CollectionView)
2021-01-23 17:20:15 +00:00
2021-04-01 10:55:35 +00:00
import { lvMixin } from './shared/mixins.js'
Vue.mixin(lvMixin)
2020-10-22 18:36:50 +00:00
2021-04-12 18:09:48 +00:00
Vue.config.silent = false
2021-01-23 17:20:15 +00:00
Vue.filter('L', localize)
2020-09-15 11:10:16 +00:00
new Vue({
store,
2021-04-01 10:55:35 +00:00
render: (h) => h(EnRecipes),
2020-09-15 11:10:16 +00:00
}).$start()