Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Vue from "nativescript-vue";
import router from "./router";
import store from "./store";
import "./styles.scss";
// Uncommment the following to see NativeScript-Vue output logs
Vue.config.silent = false;
console.log(store.state);
store.dispatch("auth/init").then(user => {
if (user) {
router.replace("home");
} else {
router.replace("login");
}
});
new Vue({
router,
store,
template: `
TNSPusherBeams.addDeviceInterest('debug-hello');
TNSPusherBeams.addDeviceInterest('hello');
console.log(TNSPusherBeams.getDeviceInterests());
TNSPusherBeams.clearDeviceInterests();
setTimeout(() => {
TNSPusherBeams.addDeviceInterest('debug-hello');
TNSPusherBeams.addDeviceInterest('hello');
TNSPusherBeams.addDeviceInterest('osei');
}, 5000);
// TNSPusherBeams.addOnMessageReceivedCallback(message => {
// console.log('message', message);
// });
});
// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = TNS_ENV === 'production';
new Vue({
render: h => h('frame', [h(App)])
}).$start();
const Vue = require('nativescript-vue')
const application = require('tns-core-modules/application')
const platform = require('tns-core-modules/platform')
Vue.config.silent = false
Vue.config.debug = true
new Vue({
template: `
<label>
<label>
</label>
<label></label></label>
const Vue = require('nativescript-vue')
Vue.config.debug = true
Vue.config.silent = false
new Vue({
components: {
ComponentWithSlot: {
data() {
return {
counter: 0
}
},
template: `
<button>
`</button>
const Vue = require('nativescript-vue')
Vue.config.debug = true
Vue.config.silent = false
class User {
constructor(name) {
this.name = name.toUpperCase()
}
}
new Vue({
template: `
import firebase from "nativescript-plugin-firebase";
import config from "./shared/firebase-config";
import Vue from "nativescript-vue";
import RadListView from "nativescript-ui-listview/vue";
Vue.use(RadListView);
Vue.config.silent = (TNS_ENV === 'production');
import cars from "./shared/cars/car-service";
import CarList from "./components/CarList";
import CarDetails from "./components/CarDetails";
import CarDetailsEdit from "./components/CarDetailsEdit";
new Vue({
template: `
`,
components: {
CarList,
const Vue = require('nativescript-vue')
const VueDevtools = require('nativescript-vue-devtools')
Vue.use(VueDevtools)
Vue.config.silent = false
Vue.config.debug = true
let id = 1
const page = name => ({
template: `
<label>
</label>
`
})
new Vue({
template: `
const Vue = require('nativescript-vue')
const VueRouter = require('vue-router')
const application = require('tns-core-modules/application')
Vue.registerElement(
'RadSideDrawer',
() => require('nativescript-ui-sidedrawer').RadSideDrawer
)
Vue.config.silent = false
Vue.config.debug = true
Vue.use(VueRouter)
const Home = {
template: `
<label>
</label>
`
}
const Tabs = {
template: `
const Vue = require('nativescript-vue')
Vue.config.silent = false
Vue.config.debug = true
new Vue({
data() {
return {
a: true
}
},
template: `
<label>
<button>
</button></label>
import Vue from 'nativescript-vue'
Vue.config.debug = true
Vue.config.silent = false
const Step2 = {
template: `
<label>
<button>
`,
methods: {
prevStep() {</button></label>