Skip to content

A self-hosted media server and file management system

remove some bootstrap code

aminnausin40fa9720a7af
diff --git a/public/js/main.js b/public/js/main.js
index d0412a7a..f9c6e589 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -302,9 +302,9 @@ async function loadVideosAndParse(data){
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
var folderTemplate = function(folderName, folderCount, fileElements) {
return `
- <div class="col-sm-12">
- <div class="folder-header row mb-4">
- <h4 class="col-sm-8 col-lg-10 ps-0 text-center text-sm-start"> ${folderName} </h4>
+ <div class="w-full">
+ <div class="folder-header flex justify-center sm:justify-start">
+ <h3 class="text-2xl py-4"> ${folderName} </h3>
</div>
<div class="" id="dataTable-${folderCount}-collapse" data-state="1">
<table class="vid-table hover stripe" id="dataTable-${folderCount}" data-folder="${folderName}">
@@ -332,8 +332,8 @@ async function loadVideosAndParse(data){
const filePrefix = '../';
return `
<tr class="vid-row" data-id="${id}" data-path="${filePrefix}${filePath}">
- <td class="vid-row-title line-clamp-1 truncate">${title}</td>
- <td class="vid-row-date line-clamp-1 truncate">${date}</td>
+ <td class="vid-row-title line-clamp-1">${title}</td>
+ <td class="vid-row-date line-clamp-1 truncate overflow-hidden">${date}</td>
</tr>
`
}
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index ce42bf47..28dce6a9 100644
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -61,12 +61,11 @@
<button id="user_header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center" >
@auth
<span id="user_name">{{ Auth::user()->name }}</span>
- <img src="{{ URL::asset('storage/avatars/12345.jpg')}}" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg object-cover">
-
@else
<span id="user_name_unauth" class="w-[10vw] text-right">Guest</span>
- <img src="{{ URL::asset('storage/avatars/12345.jpg')}}" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg object-cover">
@endauth
+
+ <img src="{{ URL::asset('storage/avatars/12345.jpg')}}" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg object-cover" alt="profile picture">
</button>
<div role="menu" id="user_dropdown" aria-orientation="vertical" aria-labelledby="user_options" class="hidden absolute left-0 z-30 mt-4 w-56 origin-top-right divide-y divide-gray-300 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none text-gray-700">
@@ -102,19 +101,19 @@
<section id="navbar-video" class="flex items-center space-x-2">
- <button id="btn-nav-folders" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200 bg-gray-300 hover:bg-slate-200">
+ <button id="btn-nav-folders" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200" aria-label="folders">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" height="24" width="24" class="stroke-slate-900">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" />
</svg>
</button>
@auth
- <button id="btn-nav-history" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-purple-300 hover:bg-purple-200">
+ <button id="btn-nav-history" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-purple-300 hover:bg-purple-200" aria-label="watch history">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">
<path d="M0 0h24v24H0z" fill="none" />
<path fill-rule="evenodd" d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z" />
</svg>
</button>
- <button id="btn-nav-settings" class=" hidden flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200">
+ <button id="btn-nav-settings" class=" hidden flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200" aria-label="settings">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">
<path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />
</svg>
@@ -135,6 +134,7 @@
<section id="content-video">
<div id="video-container">
<video id="vid-source" width="100%" src="" type="video/mp4" controls class="focus:outline-none aspect-video">
+ <track kind="captions">
</video>
<hr class="mt-4 mb-3">