From 5a739b543dd7f70ab71143234f1c623a0775ef79 Mon Sep 17 00:00:00 2001 From: Salem Yaslem Date: Mon, 4 Nov 2024 09:12:02 +0300 Subject: [PATCH] add binary view --- app.vue | 9 ++- components/binary-viewer.vue | 144 +++++++++++++++++++++++++++++++++++ composables/files-manager.ts | 3 +- package-lock.json | 6 +- 4 files changed, 157 insertions(+), 5 deletions(-) create mode 100644 components/binary-viewer.vue diff --git a/app.vue b/app.vue index e50a53a..7e9a888 100644 --- a/app.vue +++ b/app.vue @@ -5,6 +5,7 @@ import { useDisplay } from 'vuetify/lib/framework.mjs'; import { HistoryManager } from './composables/history-manager'; import { FilesManager } from './composables/files-manager'; import type { iFile } from "composables/worker/7zip-manager" +import { videoExtensions, binaryExtensions } from '#imports'; let display = useDisplay(); let drawer = ref(!display.mdAndDown.value); @@ -57,6 +58,8 @@ watchEffect(async () => { const file = filesManager.getFile(selectedPath.value); filesGridList.value = file?.content; + console.log("Selected file", file); + selectedList.value = []; for (const selectedElement of document.querySelectorAll(".selectable.selected")) { selectedElement.classList.remove("selected"); @@ -193,9 +196,13 @@ function stepUp(path: string) { +