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 'vue'
import { generateFilePath } from '@nextcloud/router'
import App from './App.vue'
// eslint-disable-next-line
__webpack_public_path__ = generateFilePath('firstrunwizard', '', 'js/');
/* global t oc_defaults */
// bind to window
Vue.prototype.t = t
// eslint-disable-next-line
Vue.prototype.oc_defaults = oc_defaults
const el = document.createElement('div')
el.id = 'firstrunwizard'
document.querySelector('body').appendChild(el)
const View = Vue.extend(App)
const vm = new View().$mount(el)
window.OCA.FirstRunWizard = {
open: vm.open,
async loadStaticSlides() {
try {
const response = await axios.get(generateUrl('/apps/firstrunwizard/wizard'))
this.slides.push(...response.data)
} catch (e) {
console.error('Failed to load slides')
}
},
async open(withIntro = true) {
data() {
return {
videoMp4: generateFilePath('firstrunwizard', 'img', 'Nextcloud.mp4'),
videoWebm: generateFilePath('firstrunwizard', 'img', 'Nextcloud.webm'),
}
},
}
data() {
return {
videoMp4: generateFilePath('firstrunwizard', 'img', 'Nextcloud.mp4'),
videoWebm: generateFilePath('firstrunwizard', 'img', 'Nextcloud.webm'),
}
},
}
close() {
this.showModal = false
axios.delete(generateUrl('/apps/firstrunwizard/wizard'))
},
next() {