How to use the @nextcloud/router.generateFilePath function in @nextcloud/router

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 / 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'),
		}
	},
}

@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 8 months ago

Package Health Score

72 / 100
Full package analysis