A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A self hosted web media server to keep everything in one place.">
<meta property="og:title" content="{{ config('app.name', 'Media Server') }}" />
<title>{{ config('app.name', 'Media Server') }}</title>
@if (config('services.plausible.url'))
<script defer data-domain="{{ config('app.host') }}" src="{{ config('services.plausible.use_proxy') ? route('pageview.script') : config('services.plausible.url') }}"></script>
<script>
window.plausible = window.plausible || function() {
(plausible.q = plausible.q || []).push(arguments)
}, plausible.init = plausible.init || function(i) {
plausible.o = i || {}
};
</script>
@if(config('services.plausible.use_proxy'))
<script>
plausible.init({
endpoint: "/api/event"
})
</script>
@else
<script>
plausible.init()
</script>
@endif
@endif
<script>
function setVhUnit() {
const vh = (window.innerHeight * 100 * 0.01) / 100;
document.documentElement.style.setProperty('--vh', `${vh}px`)
}
setVhUnit();
window.addEventListener('resize', setVhUnit)
window.APP_NAME = "{{ config('app.name') }}";
// Temporary workaround: enables bfcache by bypassing vue router's forced visibility change listener
// https://github.com/vuejs/router/issues/2631
// Remove when fixed upstream.
const originalAddEventListener = document.addEventListener;
document.addEventListener = function(type, listener, options) {
const rawListener = typeof listener === 'function' ? listener.toString() : '';
if (type === 'visibilitychange' && rawListener.includes('replaceState') && rawListener.includes('scroll') && rawListener.includes('visibilityState')) {
console.info('Blocked Vue Router scroll listener');
document.addEventListener = originalAddEventListener;
return;
}
return originalAddEventListener.call(
this,
type,
listener,
options
);
};
</script>
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
<!-- local -->
@vite('resources/css/app.css')
<style>
/* body {
scrollbar-gutter: stable;
font-optical-sizing: auto;
}
@media (min-width: 640px) {
body {
scrollbar-gutter: stable both-edges;
}
}
body.fullscreen {
scrollbar-gutter: auto;
} */
#nprogress .bar {
background: #9333ea !important;
}
#nprogress-container {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10000;
pointer-events: none;
}
html {
overflow: hidden;
height: 100%;
padding-bottom: 32px;
}
.h-dynamic-screen {
height: calc(var(--vh, 1vh) * 100)
}
</style>
</head>
<body class="relative h-dynamic-screen overflow-y-auto bg-surface-1 sm:bg-surface-0 text-foreground-0 antialiased dark:scheme-dark scrollbar-minimal" id="root">
@php
$reverbConfig = [
"key" => config("reverb.apps.apps.0.key"),
"host" => config("reverb.apps.apps.0.options.host"),
"port" => config("reverb.apps.apps.0.options.port"),
"scheme" => config("reverb.apps.apps.0.options.scheme"),
"useTLS" => config("reverb.apps.apps.0.options.useTLS")
];
@endphp
<div
id="reverb-config"
data-reverb-config='@json($reverbConfig)'>
</div>
@vite('resources/js/app.ts')
<div id='app' class=""></div>
<div id="nprogress-container" class="h-2"></div>
{{ $slot }}
</body>
</html>