chore: fix frontend lint

This commit is contained in:
Oleg Lobanov
2024-08-18 13:51:16 +02:00
parent 090272e3b7
commit 83898d616f
9 changed files with 53 additions and 50 deletions

View File

@@ -61,7 +61,7 @@ export async function upload(
fileData.hasStarted = true;
fileData.lastProgressTimestamp = Date.now();
fileData.interval = setInterval(() => {
fileData.interval = window.setInterval(() => {
calcProgress(filePath);
}, SPEED_UPDATE_INTERVAL);
}

View File

@@ -14,7 +14,7 @@
width: 100%;
}
.shell__divider{
.shell__divider {
background: rgba(127, 127, 127, 0.3);
width: 100%;
height: 8px;
@@ -69,8 +69,6 @@ body.rtl .shell-content {
font-size: inherit;
}
.shell__prompt {
width: 1.2rem;
}
@@ -84,5 +82,5 @@ body.rtl .shell-content {
font-family: inherit;
white-space: pre-wrap;
width: 100%;
color:var(--textSecondary);
color: var(--textSecondary);
}

View File

@@ -54,5 +54,5 @@
--borderPrimary: rgba(255, 255, 255, 0.05);
--borderSecondary: rgba(255, 255, 255, 0.15);
--dividerPrimary: rgba(30, 30, 30, 0.4);
--dividerSecondary:rgba(30, 30, 30, 0.6);
--dividerSecondary: rgba(30, 30, 30, 0.6);
}

View File

@@ -261,4 +261,4 @@
"seconds": "Segons",
"unit": "Unitat"
}
}
}

View File

@@ -6,7 +6,7 @@
"copy": "複製",
"copyFile": "複製檔案",
"copyToClipboard": "複製到剪貼簿",
"copyDownloadLinkToClipboard": "複製到剪貼簿",
"copyDownloadLinkToClipboard": "複製到剪貼簿",
"create": "建立",
"delete": "刪除",
"download": "下載",
@@ -228,7 +228,7 @@
"title": "主題"
},
"user": "使用者",
"userCommands": "使用者命令Shell 命令)",
"userCommands": "使用者命令Shell 命令)",
"userCommandsHelp": "指定該使用者可以執行的命令Shell 命令),用空格分隔。例如:",
"userCreated": "使用者已建立!",
"userDefaults": "使用者預設選項",

View File

@@ -22,7 +22,7 @@ function formatSize(bytes: number): string {
const i = Math.floor(Math.log(bytes) / Math.log(k));
// Return the rounded size with two decimal places
return (bytes / k ** i).toFixed(2) + " " + sizes[i];
return (bytes / k ** i).toFixed(2) + " " + sizes[i];
}
export const useUploadStore = defineStore("upload", {

View File

@@ -413,7 +413,7 @@ const toggleNavigation = throttle(function () {
clearTimeout(navTimeout.value);
}
navTimeout.value = setTimeout(() => {
navTimeout.value = window.setTimeout(() => {
showNav.value = false || hoverNav.value;
navTimeout.value = null;
}, 1500);

View File

@@ -273,7 +273,7 @@ const formattedChunkSize = computed({
}
// Set a new timeout to apply the format after a short delay
debounceTimeout.value = setTimeout(() => {
debounceTimeout.value = window.setTimeout(() => {
if (settings.value) settings.value.tus.chunkSize = parseBytes(value);
}, 1500);
},