mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 03:12:09 +00:00

--------- Co-authored-by: Joep <jcbuhre@gmail.com> Co-authored-by: Omar Hussein <omarmohammad1951@gmail.com> Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
41 lines
829 B
Vue
41 lines
829 B
Vue
<template>
|
|
<div class="card floating" id="download">
|
|
<div class="card-title">
|
|
<h2>{{ t("prompts.download") }}</h2>
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
<p>{{ t("prompts.downloadMessage") }}</p>
|
|
|
|
<button
|
|
id="focus-prompt"
|
|
v-for="(ext, format) in formats"
|
|
:key="format"
|
|
class="button button--block"
|
|
@click="layoutStore.currentPrompt?.confirm(format)"
|
|
>
|
|
{{ ext }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useI18n } from "vue-i18n";
|
|
import { useLayoutStore } from "@/stores/layout";
|
|
|
|
const layoutStore = useLayoutStore();
|
|
|
|
const { t } = useI18n();
|
|
|
|
const formats = {
|
|
zip: "zip",
|
|
tar: "tar",
|
|
targz: "tar.gz",
|
|
tarbz2: "tar.bz2",
|
|
tarxz: "tar.xz",
|
|
tarlz4: "tar.lz4",
|
|
tarsz: "tar.sz",
|
|
};
|
|
</script>
|