Migrate to vue3 (fix #126) #127

Merged
Xefir merged 32 commits from vue3 into main 2024-08-17 12:24:28 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 53543a259f - Show all commits

View File

@ -10,7 +10,7 @@ export default {
name: 'SafeHtml', name: 'SafeHtml',
directives: { directives: {
sanitize: { sanitize: {
inserted(el, binding) { mounted(el, binding) {
el.innerHTML = dompurify.sanitize( el.innerHTML = dompurify.sanitize(
linkifyHtml(binding.value, { linkifyHtml(binding.value, {
nl2br: true, nl2br: true,

View File

@ -1,10 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHashHistory } from 'vue-router'
import Discover from './views/Discover.vue' import Discover from './views/Discover.vue'
import Feed from './views/Feed.vue' import Feed from './views/Feed.vue'
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
const router = createRouter({ const router = createRouter({
history: createWebHistory(generateUrl('apps/repod')), history: createWebHashHistory(generateUrl('apps/repod')),
routes: [ routes: [
{ {
path: '/', path: '/',