Skip to content

A self-hosted media server and file management system

chore: code smells

aminnausin06e5d1a8a539
diff --git a/public/css/main.css b/public/css/main.css
deleted file mode 100755
index 8b137891..00000000
--- a/public/css/main.css
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/resources/css/app.css b/resources/css/app.css
index e016fc6b..0be837db 100755
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -207,7 +207,6 @@
transition: all 200ms ease-in-out;
background: linear-gradient(to right, var(--buffer-color) calc(var(--buffer) * 1%), var(rgba(0, 0, 0, 0)) calc(var(--buffer) * 1%), var(rgba(0, 0, 0, 0)) 100%);
- /* background: transparent; */
border-radius: var(--track-rounded);
height: calc(var(--thumb-size) * 0.25rem);
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vue
index 2d8cb18e..4ad1f30d 100755
--- a/resources/js/components/video/VideoInfoPanel.vue
+++ b/resources/js/components/video/VideoInfoPanel.vue
@@ -2,7 +2,7 @@
import type { FolderResource, VideoResource } from '@/types/resources';
import type { Ref } from 'vue';
-import { computed, onMounted, ref, useTemplateRef, watch } from 'vue';
+import { computed, onMounted, ref, useTemplateRef, watch, nextTick } from 'vue';
import { handleStorageURL, toFormattedDate, toTimeSpan } from '@/service/util';
import { getUserViewCount } from '@/service/mediaAPI';
import { useContentStore } from '@/stores/ContentStore';
@@ -10,7 +10,6 @@ import { useAuthStore } from '@/stores/AuthStore';
import { storeToRefs } from 'pinia';
import { emitSeek } from '@/service/video/seekBus';
import { useRoute } from 'vue-router';
-import { nextTick } from 'vue';
import ButtonClipboard from '@/components/pinesUI/ButtonClipboard.vue';
import ContextMenuItem from '@/components/pinesUI/ContextMenuItem.vue';
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index d050f157..f8e125a2 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -410,15 +410,14 @@ const handleProgress = (override = false) => {
const onPlayerPlay = async (override = false, recordProgress = true) => {
if (!player.value || !stateVideo.value.id) return;
- // if (isLoading.value) {
- // const description = stateVideo.value.metadata?.codec ? ` Make sure your browser supports the format "${stateVideo.value.metadata.codec}"` : '';
-
- // toast.warning(`Content still loading...`, {
- // description,
- // });
- // onPlayerPause();
- // return;
- // }
+ /* if (isLoading.value) {
+ const description = stateVideo.value.metadata?.codec ? ` Make sure your browser supports the format "${stateVideo.value.metadata.codec}"` : '';
+ toast.warning(`Content still loading...`, {
+ description,
+ });
+ onPlayerPause();
+ return;
+ } */
const playRequestId = ++latestPlayRequestId.value;
try {
diff --git a/resources/js/composables/useMetaData.ts b/resources/js/composables/useMetaData.ts
index 6ee989a0..a74eacd3 100644
--- a/resources/js/composables/useMetaData.ts
+++ b/resources/js/composables/useMetaData.ts
@@ -4,7 +4,7 @@ import type { Ref } from 'vue';
import { formatFileSize, toFormattedDuration } from '@/service/util';
import { MediaType } from '@/types/types';
import { useRoute } from 'vue-router';
-import { computed, reactive } from 'vue';
+import { computed } from 'vue';
// This so does not work lol