diff --git a/constants/Commands.js b/constants/Commands.js index 639757f..b7e7deb 100644 --- a/constants/Commands.js +++ b/constants/Commands.js @@ -1,10 +1,62 @@ export default { EXAMPLE_COMMAND: [ { argument: "tree", description: null}, - { argument: "-h", description: "Human readable size" }, + { argument: "-hpugD", description: "Add more data to output" }, { argument: "--du", description: "Calculate total folder size" }, - { argument: "-L 2", description: "Max depth" }, - { argument: "> tree.json", description: "Save output into file" }, - ] + { argument: "-J", description: "Output as JSON" }, + { argument: "-o tree.json", description: "Save output into file" }, + ], + MINIMUN_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-J", description: null}, + { argument: "-o tree.json", description: null}, + ], + ONLY_DIRECTORIES_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-d", description: null}, + ], + ALL_FILES_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-a", description: null}, + ], + PERMISSIONS_COMMNAND: [ + { argument: "tree", description: null}, + { argument: "-p", description: null}, + ], + USERNAME_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-u", description: null}, + ], + GROUP_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-g", description: null}, + ], + DATE_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-D", description: null}, + ], + SIZE_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-s", description: null}, + ], + HUMAN_SIZE_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-h", description: null}, + ], + TOTAL_FOLDER_SIZE_COMMAND: [ + { argument: "tree", description: null}, + { argument: "--du", description: null}, + ], + MAX_DEPTH_COMMAND: [ + { argument: "tree", description: null}, + { argument: "-L 1", description: null}, + ], + CAT_NON_VALID_NAMES: [ + { argument: "cat", description: null}, + { argument: "tree.json", description: null}, + { argument: "|", description: null}, + { argument: "grep", description: null}, + { argument: "\"\\\\\"", description: null}, + ], } diff --git a/package-lock.json b/package-lock.json index 3ab1088..1fcc4cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -177,6 +177,11 @@ "@vue/shared": "3.2.26" } }, + "@vue/devtools-api": { + "version": "6.0.0-beta.21.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.0.0-beta.21.1.tgz", + "integrity": "sha512-FqC4s3pm35qGVeXRGOjTsRzlkJjrBLriDS9YXbflHLsfA9FrcKzIyWnLXoNm+/7930E8rRakXuAc2QkC50swAw==" + }, "@vue/reactivity": { "version": "3.2.26", "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.26.tgz", @@ -1889,6 +1894,14 @@ "@vue/shared": "3.2.26" } }, + "vue-router": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.0.12.tgz", + "integrity": "sha512-CPXvfqe+mZLB1kBWssssTiWg4EQERyqJZes7USiqfW9B5N2x+nHlnsM1D3b5CaJ6qgCvMmYJnz+G0iWjNCvXrg==", + "requires": { + "@vue/devtools-api": "^6.0.0-beta.18" + } + }, "vue-svg-loader": { "version": "0.16.0", "resolved": "https://registry.npmjs.org/vue-svg-loader/-/vue-svg-loader-0.16.0.tgz", diff --git a/package.json b/package.json index 0f429fd..86ac33b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.25" + "vue": "^3.2.25", + "vue-router": "^4.0.12" }, "devDependencies": { "@vitejs/plugin-vue": "^2.0.0", diff --git a/src/App.vue b/src/App.vue index 3c6670c..e59ca1c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,57 +1,12 @@ diff --git a/src/components/About.vue b/src/components/About.vue new file mode 100644 index 0000000..ac25e36 --- /dev/null +++ b/src/components/About.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/components/Directory.vue b/src/components/Directory.vue index 562210d..d853b9f 100644 --- a/src/components/Directory.vue +++ b/src/components/Directory.vue @@ -12,13 +12,13 @@ const props = defineProps({
-
-
+
Upload another file
-
+
Number of directories:
@@ -26,7 +26,7 @@ const props = defineProps({ {{ fileInfo.directories }}
-
+
Number of files:
@@ -36,7 +36,7 @@ const props = defineProps({
-
+
diff --git a/src/components/Guide.vue b/src/components/Guide.vue new file mode 100644 index 0000000..c629ce4 --- /dev/null +++ b/src/components/Guide.vue @@ -0,0 +1,284 @@ + + + + diff --git a/src/components/Home.vue b/src/components/Home.vue new file mode 100644 index 0000000..f890934 --- /dev/null +++ b/src/components/Home.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index b2397b0..53bd962 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,18 +1,26 @@ diff --git a/src/components/Node.vue b/src/components/Node.vue index 68ee088..0198287 100644 --- a/src/components/Node.vue +++ b/src/components/Node.vue @@ -18,19 +18,19 @@ const props = defineProps({