How to use @nextcloud/router - 5 common examples

To help you get started, we’ve selected a few @nextcloud/router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nextcloud / firstrunwizard / src / main.js View on Github external
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,
github nextcloud / firstrunwizard / src / App.vue View on Github external
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) {
github nextcloud / firstrunwizard / src / components / IntroVideo.vue View on Github external
data() {
		return {
			videoMp4: generateFilePath('firstrunwizard', 'img', 'Nextcloud.mp4'),
			videoWebm: generateFilePath('firstrunwizard', 'img', 'Nextcloud.webm'),
		}
	},
}
github nextcloud / firstrunwizard / src / components / IntroVideo.vue View on Github external
data() {
		return {
			videoMp4: generateFilePath('firstrunwizard', 'img', 'Nextcloud.mp4'),
			videoWebm: generateFilePath('firstrunwizard', 'img', 'Nextcloud.webm'),
		}
	},
}
github nextcloud / firstrunwizard / src / App.vue View on Github external
close() {
			this.showModal = false
			axios.delete(generateUrl('/apps/firstrunwizard/wizard'))
		},
		next() {

@nextcloud/router

[![npm](https://img.shields.io/npm/v/@nextcloud/router?style=for-the-badge)](https://www.npmjs.com/package/@nextcloud/router) [![Code coverage](https://img.shields.io/codecov/c/github/nextcloud-libraries/nextcloud-router/master?style=for-the-badge)](https

GPL-3.0
Latest version published 2 months ago

Package Health Score

81 / 100
Full package analysis