mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 09:09:03 +03:00
chore: correct spelling and grammar in index.js (#216)
This commit is contained in:
@@ -103,7 +103,7 @@ function ready() {
|
|||||||
setupIndexPage();
|
setupIndexPage();
|
||||||
|
|
||||||
} else if (DATA.kind == "Edit") {
|
} else if (DATA.kind == "Edit") {
|
||||||
document.title = `Edit of ${DATA.href} - Dufs`;
|
document.title = `Edit ${DATA.href} - Dufs`;
|
||||||
document.querySelector(".editor-page").classList.remove("hidden");;
|
document.querySelector(".editor-page").classList.remove("hidden");;
|
||||||
|
|
||||||
setupEditPage();
|
setupEditPage();
|
||||||
@@ -266,7 +266,7 @@ function setupIndexPage() {
|
|||||||
if (DATA.allow_archive) {
|
if (DATA.allow_archive) {
|
||||||
const $download = document.querySelector(".download");
|
const $download = document.querySelector(".download");
|
||||||
$download.href = baseUrl() + "?zip";
|
$download.href = baseUrl() + "?zip";
|
||||||
$download.title = "Download folder as div .zip file";
|
$download.title = "Download folder as a .zip file";
|
||||||
$download.classList.remove("hidden");
|
$download.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -526,7 +526,7 @@ async function setupEditPage() {
|
|||||||
$notEditable.insertAdjacentHTML("afterend", `<iframe src="${url}" sandbox width="100%" height="${window.innerHeight - 100}px"></iframe>`)
|
$notEditable.insertAdjacentHTML("afterend", `<iframe src="${url}" sandbox width="100%" height="${window.innerHeight - 100}px"></iframe>`)
|
||||||
} else {
|
} else {
|
||||||
$notEditable.classList.remove("hidden");
|
$notEditable.classList.remove("hidden");
|
||||||
$notEditable.textContent = "Cannot edit because it is too large or binary.";
|
$notEditable.textContent = "Cannot edit because file is too large or binary.";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -620,7 +620,7 @@ async function doMovePath(fileUrl) {
|
|||||||
method: "HEAD",
|
method: "HEAD",
|
||||||
});
|
});
|
||||||
if (res1.status === 200) {
|
if (res1.status === 200) {
|
||||||
if (!confirm("Override exsis file?")) {
|
if (!confirm("Override existing file?")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user