-
{{ file.name }}
+
-
+
{{ formatFileSize(file.size) }}
@@ -89,6 +95,7 @@ import ChevronRightIcon from 'vue-material-design-icons/ChevronRight.vue';
import ChevronDownIcon from 'vue-material-design-icons/ChevronDown.vue';
import Loading from 'vue-material-design-icons/Loading.vue';
import { ref } from 'vue';
+import path from 'path';
export default {
name: 'WebContentViewer',
@@ -186,6 +193,7 @@ export default {
size: isDirectory ? 0 : file._data.uncompressedSize,
content: isDirectory ? null : '', // Initialiser 'content' pour les fichiers
children: isDirectory ? [] : null,
+ depth: pathParts.length, // Profondeur du fichier dans l'arborescence
//remove the name of the file from the path
parentPath: i > 0 ? pathParts[i - 1] : '',
unzip: promise
diff --git a/src/output.css b/src/output.css
index 10da219..f034c22 100644
--- a/src/output.css
+++ b/src/output.css
@@ -707,10 +707,18 @@ video {
width: 100%;
}
+.w-5\/6 {
+ width: 83.333333%;
+}
+
.max-w-64 {
max-width: 16rem;
}
+.max-w-96 {
+ max-width: 24rem;
+}
+
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@@ -1031,6 +1039,18 @@ video {
margin: 1.5rem;
}
+ .sm\:ml-0 {
+ margin-left: 0px;
+ }
+
+ .sm\:mr-0 {
+ margin-right: 0px;
+ }
+
+ .sm\:ml-4 {
+ margin-left: 1rem;
+ }
+
.sm\:w-1\/3 {
width: 33.333333%;
}
From f6d0146aa02f5626821a8d083b93b2d6954fa5f7 Mon Sep 17 00:00:00 2001
From: GMrrc <143954951+GMrrc@users.noreply.github.com>
Date: Thu, 28 Nov 2024 15:29:47 +0100
Subject: [PATCH 2/2] Update WebContentViewer.vue
---
src/components/WebContentViewer.vue | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/components/WebContentViewer.vue b/src/components/WebContentViewer.vue
index 16b72d4..126f8be 100644
--- a/src/components/WebContentViewer.vue
+++ b/src/components/WebContentViewer.vue
@@ -5,7 +5,7 @@
Taille