diff --git a/app.vue b/app.vue index d5eb14a..3ce490b 100644 --- a/app.vue +++ b/app.vue @@ -130,11 +130,11 @@ function onSelectEnd(e: any) { // step up from current path function stepUp(path: string) { let pathArray = path.split("/"); - if(path.endsWith("/")) { + if (path.endsWith("/")) { pathArray.pop(); } pathArray.pop(); - return (pathArray.join("/") || "")+ "/"; + return (pathArray.join("/") || "") + "/"; } @@ -156,17 +156,35 @@ function stepUp(path: string) { - + + @click="history.undo();"> - - + @click="history.redo();"> + + - - + + + + + + + + + + + + @@ -206,7 +224,8 @@ function stepUp(path: string) { Extract and Explore compressed files online and securely.

- mdi-shield nothing leave your browser + mdi-shield nothing leave + your browser

diff --git a/composables/history-switcher.ts b/composables/history-switcher.ts index 2cd9d9a..21d131d 100644 --- a/composables/history-switcher.ts +++ b/composables/history-switcher.ts @@ -72,4 +72,9 @@ export class HistorySwitcher { refresh() { this.path.value = this.history.value[this.index.value] } + + reset() { + this.history.value = [this.path.value] + this.index.value = 0 + } } \ No newline at end of file