diff --git a/frontend/src/api/files.ts b/frontend/src/api/files.ts
index 01498b83..8de0196d 100644
--- a/frontend/src/api/files.ts
+++ b/frontend/src/api/files.ts
@@ -188,10 +188,15 @@ export async function diskUsage(url: string) {
return await data.json();
}
-export async function archive(url: string, name: string, format: string, ...files: string[]) {
+export async function archive(
+ url: string,
+ name: string,
+ format: string,
+ ...files: string[]
+) {
let arg = "";
- for (let file of files) {
+ for (const file of files) {
arg += file + ",";
}
@@ -214,7 +219,12 @@ export async function unarchive(path: string, name: string, override: boolean) {
return resourceAction(url, "PATCH");
}
-export async function chmod(path: string, perms: number, recursive: boolean, recursionType: string) {
+export async function chmod(
+ path: string,
+ perms: number,
+ recursive: boolean,
+ recursionType: string
+) {
const action = `chmod`;
let url = `${path}?action=${action}&permissions=${perms}&recursive=${recursive}`;
if (recursive) {
diff --git a/frontend/src/components/Quota.vue b/frontend/src/components/Quota.vue
index 24f97571..bb096370 100644
--- a/frontend/src/components/Quota.vue
+++ b/frontend/src/components/Quota.vue
@@ -44,23 +44,37 @@ const quotaStore = useQuotaStore();
const { t } = useI18n();
const loaded = computed(() =>
- quotaStore.quota ? quotaStore.quota.inodes !== null && quotaStore.quota.space !== null : false
+ quotaStore.quota
+ ? quotaStore.quota.inodes !== null && quotaStore.quota.space !== null
+ : false
);
const spaceProgress = computed(() =>
- quotaStore.quota && quotaStore.quota.space !== null ? progress(quotaStore.quota.space) : 0
+ quotaStore.quota && quotaStore.quota.space !== null
+ ? progress(quotaStore.quota.space)
+ : 0
);
const inodeProgress = computed(() =>
- quotaStore.quota && quotaStore.quota.inodes !== null ? progress(quotaStore.quota.inodes) : 0
+ quotaStore.quota && quotaStore.quota.inodes !== null
+ ? progress(quotaStore.quota.inodes)
+ : 0
);
const spaceUsageTitle = computed(() =>
- !quotaStore.quota ? "- / -" : filesize(quotaStore.quota.space.usage) + " / " + filesize(quotaStore.quota.space.quota)
+ !quotaStore.quota
+ ? "- / -"
+ : filesize(quotaStore.quota.space.usage) +
+ " / " +
+ filesize(quotaStore.quota.space.quota)
);
const inodeUsageTitle = computed(() =>
- !quotaStore.quota ? "- / -" : filesize(quotaStore.quota.inodes.usage) + " / " + filesize(quotaStore.quota.inodes.quota)
+ !quotaStore.quota
+ ? "- / -"
+ : filesize(quotaStore.quota.inodes.usage) +
+ " / " +
+ filesize(quotaStore.quota.inodes.quota)
);
const progress = (info: QuotaInfo) => {
@@ -71,5 +85,5 @@ const progress = (info: QuotaInfo) => {
onMounted(() => {
quotaStore.fetchQuota();
-})
+});
diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue
index e89062b1..c90a5073 100644
--- a/frontend/src/components/Sidebar.vue
+++ b/frontend/src/components/Sidebar.vue
@@ -131,7 +131,7 @@
href="https://github.com/filebrowser/filebrowser"
>File Browser
- {{ ' ' }} {{ version }}
+ {{ " " }} {{ version }}
{{ $t("sidebar.help") }}
diff --git a/frontend/src/components/files/ContextMenu.vue b/frontend/src/components/files/ContextMenu.vue
index b10d3b8d..3c02be1a 100644
--- a/frontend/src/components/files/ContextMenu.vue
+++ b/frontend/src/components/files/ContextMenu.vue
@@ -1,10 +1,5 @@
-