mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-03 03:10:04 -05:00
General improvements
This commit is contained in:
parent
e920c7d2f0
commit
08f7432d84
4 changed files with 27 additions and 4 deletions
|
@ -6,11 +6,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
// Importing video-js
|
// Importing video-js
|
||||||
import videojs from 'video.js'
|
import videojs from 'video.js'
|
||||||
import qualitySelector from 'videojs-hls-quality-selector'
|
|
||||||
import qualityLevels from 'videojs-contrib-quality-levels'
|
import qualityLevels from 'videojs-contrib-quality-levels'
|
||||||
|
|
||||||
videojs.registerPlugin('qualityLevels', qualityLevels)
|
videojs.registerPlugin('qualityLevels', qualityLevels)
|
||||||
videojs.registerPlugin('hlsQualitySelector', qualitySelector)
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'VideoJsPlayer',
|
name: 'VideoJsPlayer',
|
||||||
|
|
|
@ -17,7 +17,9 @@ import {
|
||||||
BiInstagram,
|
BiInstagram,
|
||||||
BiDiscord,
|
BiDiscord,
|
||||||
BiYoutube,
|
BiYoutube,
|
||||||
BiTiktok
|
BiTiktok,
|
||||||
|
BiHeartFill,
|
||||||
|
IoPerson
|
||||||
} from 'oh-vue-icons/icons'
|
} from 'oh-vue-icons/icons'
|
||||||
|
|
||||||
addIcons(
|
addIcons(
|
||||||
|
@ -28,7 +30,9 @@ addIcons(
|
||||||
BiInstagram,
|
BiInstagram,
|
||||||
BiDiscord,
|
BiDiscord,
|
||||||
BiYoutube,
|
BiYoutube,
|
||||||
BiTiktok
|
BiTiktok,
|
||||||
|
BiHeartFill,
|
||||||
|
IoPerson
|
||||||
)
|
)
|
||||||
|
|
||||||
app.component('v-icon', OhVueIcon)
|
app.component('v-icon', OhVueIcon)
|
||||||
|
|
|
@ -2,10 +2,20 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||||
import UserView from '../views/UserView.vue'
|
import UserView from '../views/UserView.vue'
|
||||||
import PageNotFound from '../views/PageNotFound.vue'
|
import PageNotFound from '../views/PageNotFound.vue'
|
||||||
import PrivacyPageView from '../views/PrivacyPageView.vue'
|
import PrivacyPageView from '../views/PrivacyPageView.vue'
|
||||||
|
import HomepageView from '../views/HomepageView.vue'
|
||||||
|
import CategoryView from '../views/CategoryView.vue'
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
component: HomepageView
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path:'/game/:game',
|
||||||
|
component: CategoryView
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/privacy',
|
path: '/privacy',
|
||||||
name: 'about',
|
name: 'about',
|
||||||
|
|
|
@ -10,5 +10,16 @@ export default defineConfig({
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks(id) {
|
||||||
|
if (id.includes('node_modules')) {
|
||||||
|
return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue