From 3063b54a69038cc1636616044efa960594d4ed2f Mon Sep 17 00:00:00 2001 From: GMrrc <143954951+GMrrc@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:15:26 +0100 Subject: [PATCH 1/5] draw zip on list --- src/.gitignore | 1 + src/App.vue | 8 +++- src/components/WebContentViewer.vue | 63 ++++++++++++++++++++--------- 3 files changed, 50 insertions(+), 22 deletions(-) create mode 100644 src/.gitignore diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..147d7d2 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1 @@ +output.css \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 78fd1f0..b1148bc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,12 +5,12 @@
- +
- +
@@ -30,12 +30,16 @@ export default { data() { return { sharedFile: null, + zipUrl: null, }; }, methods: { handleFileUpload(file) { this.sharedFile = file; }, + handleZipUpload(zip) { + this.zip = zip; + }, }, } diff --git a/src/components/WebContentViewer.vue b/src/components/WebContentViewer.vue index 5ccc6b7..ed591cb 100644 --- a/src/components/WebContentViewer.vue +++ b/src/components/WebContentViewer.vue @@ -4,16 +4,33 @@
Nom
Taille
+ +
+ +
+
{{ zipName }}
+ +
+
+ {{ formatFileSize(zipSize) }} +
+
+
-
+