mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -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">
|
||||
// Importing video-js
|
||||
import videojs from 'video.js'
|
||||
import qualitySelector from 'videojs-hls-quality-selector'
|
||||
import qualityLevels from 'videojs-contrib-quality-levels'
|
||||
|
||||
videojs.registerPlugin('qualityLevels', qualityLevels)
|
||||
videojs.registerPlugin('hlsQualitySelector', qualitySelector)
|
||||
|
||||
export default {
|
||||
name: 'VideoJsPlayer',
|
||||
|
|
|
@ -17,7 +17,9 @@ import {
|
|||
BiInstagram,
|
||||
BiDiscord,
|
||||
BiYoutube,
|
||||
BiTiktok
|
||||
BiTiktok,
|
||||
BiHeartFill,
|
||||
IoPerson
|
||||
} from 'oh-vue-icons/icons'
|
||||
|
||||
addIcons(
|
||||
|
@ -28,7 +30,9 @@ addIcons(
|
|||
BiInstagram,
|
||||
BiDiscord,
|
||||
BiYoutube,
|
||||
BiTiktok
|
||||
BiTiktok,
|
||||
BiHeartFill,
|
||||
IoPerson
|
||||
)
|
||||
|
||||
app.component('v-icon', OhVueIcon)
|
||||
|
|
|
@ -2,10 +2,20 @@ import { createRouter, createWebHistory } from 'vue-router'
|
|||
import UserView from '../views/UserView.vue'
|
||||
import PageNotFound from '../views/PageNotFound.vue'
|
||||
import PrivacyPageView from '../views/PrivacyPageView.vue'
|
||||
import HomepageView from '../views/HomepageView.vue'
|
||||
import CategoryView from '../views/CategoryView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
component: HomepageView
|
||||
},
|
||||
{
|
||||
path:'/game/:game',
|
||||
component: CategoryView
|
||||
},
|
||||
{
|
||||
path: '/privacy',
|
||||
name: 'about',
|
||||
|
|
|
@ -10,5 +10,16 @@ export default defineConfig({
|
|||
alias: {
|
||||
'@': 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