Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
73840ac
chore: update id-id.json
hyperz111 Aug 18, 2025
f8e6949
Merge branch 'Acode-Foundation:main' into main
hyperz111 Aug 24, 2025
3c56da5
Merge branch 'Acode-Foundation:main' into main
hyperz111 Aug 26, 2025
4954d48
Merge branch 'Acode-Foundation:main' into main
hyperz111 Aug 28, 2025
1adb8a1
Merge branch 'Acode-Foundation:main' into main
hyperz111 Aug 31, 2025
b635fe8
Merge branch 'Acode-Foundation:main' into main
hyperz111 Sep 4, 2025
0c4fe92
fix(i18n): fix typo in ./src/lang/id-id.json
hyperz111 Sep 4, 2025
8420daf
Merge branch 'Acode-Foundation:main' into main
hyperz111 Oct 16, 2025
c274981
chore(i18n): update id-id.json with new strings
hyperz111 Oct 16, 2025
a843912
Merge branch 'Acode-Foundation:main' into main
hyperz111 Oct 18, 2025
f0b550e
Merge branch 'Acode-Foundation:main' into main
hyperz111 Nov 7, 2025
7175ef4
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jan 29, 2026
0b4e8ac
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jan 30, 2026
70a4eb9
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jan 31, 2026
455b367
Merge branch 'Acode-Foundation:main' into main
hyperz111 Feb 2, 2026
35caac6
Merge branch 'Acode-Foundation:main' into main
hyperz111 Feb 18, 2026
0df813a
Merge branch 'Acode-Foundation:main' into main
hyperz111 Feb 26, 2026
effe41d
Merge branch 'Acode-Foundation:main' into main
hyperz111 Mar 21, 2026
5b51e75
Merge branch 'Acode-Foundation:main' into main
hyperz111 Mar 27, 2026
f154a2c
Merge branch 'Acode-Foundation:main' into main
hyperz111 Mar 30, 2026
0f35e84
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 1, 2026
df34c76
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 2, 2026
9e1ff61
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 2, 2026
9d67773
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 8, 2026
93b3ca7
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 14, 2026
8dca360
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 21, 2026
bbb43a7
Merge branch 'Acode-Foundation:main' into main
hyperz111 Apr 29, 2026
9083dc1
Merge branch 'Acode-Foundation:main' into main
hyperz111 May 15, 2026
e4f8413
Merge branch 'Acode-Foundation:main' into main
hyperz111 May 23, 2026
48b3e3d
Merge branch 'Acode-Foundation:main' into main
hyperz111 May 23, 2026
92e5031
Merge branch 'Acode-Foundation:main' into main
hyperz111 May 25, 2026
5b7e5f0
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 7, 2026
907bb7b
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 10, 2026
71b0268
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 13, 2026
4f94c8b
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 14, 2026
00c938f
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 14, 2026
39da57f
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 15, 2026
2dec10d
Merge branch 'Acode-Foundation:main' into main
hyperz111 Jun 15, 2026
2047b78
refactor: replace url-parse to WHATWG URL API
hyperz111 Jun 15, 2026
af92bd7
chore: remove url-parse
hyperz111 Jun 15, 2026
2663bf0
style: (manual) format
hyperz111 Jun 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
"mime-types": "^3.0.2",
"mustache": "^4.2.0",
"picomatch": "^4.0.4",
"url-parse": "^1.5.10",
"vanilla-picker": "^2.12.3",
"yargs": "^18.0.0"
},
Expand Down
9 changes: 5 additions & 4 deletions src/lib/remoteStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Ftp from "fileSystem/ftp";
import Sftp from "fileSystem/sftp";
import loader from "dialogs/loader";
import multiPrompt from "dialogs/multiPrompt";
import URLParse from "url-parse";
import helpers from "utils/helpers";
import Url from "utils/Url";
import { interstitialAd } from "./startAd";
Expand Down Expand Up @@ -367,7 +366,7 @@ export default {
}
},
edit({ name, storageType, url }) {
let { username, password, hostname, port, query } = URLParse(url, true);
let { username, password, hostname, port, searchParams } = new URL(url);

if (username) {
username = decodeURIComponent(username);
Expand All @@ -378,11 +377,12 @@ export default {
}

if (storageType === "ftp") {
let { security, mode } = query;
let security = searchParams.get("security");
if (security) {
security = decodeURIComponent(security);
}

let mode = searchParams.get("mode");
if (mode) {
mode = decodeURIComponent(mode);
}
Expand All @@ -399,11 +399,12 @@ export default {
}

if (storageType === "sftp") {
let { passPhrase, keyFile } = query;
let passPhrase = searchParams.get("passPhrase");
if (passPhrase) {
passPhrase = decodeURIComponent(passPhrase);
}

let keyFile = searchParams.get("keyFile");
if (keyFile) {
keyFile = decodeURIComponent(keyFile);
}
Expand Down
5 changes: 2 additions & 3 deletions src/pages/fileBrowser/fileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { hideAd } from "lib/startAd";
import mimeTypes from "mime-types";
import mustache from "mustache";
import filesSettings from "settings/filesSettings";
import URLParse from "url-parse";
import helpers from "utils/helpers";
import Url from "utils/Url";
import _addMenu from "./add-menu.hbs";
Expand Down Expand Up @@ -1162,9 +1161,9 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
}

if (storage.url) {
const parsedUrl = URLParse(storage.url, true);
const parsedUrl = new URL(storage.url);
const keyFile = decodeURIComponent(
parsedUrl.query["keyFile"] || "",
parsedUrl.searchParams.get("keyFile") || "",
);
if (keyFile) {
fsOperation(keyFile).delete();
Expand Down
10 changes: 4 additions & 6 deletions src/utils/Url.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import URLParse from "url-parse";
import path from "./Path";
import Uri from "./Uri";

Expand Down Expand Up @@ -268,7 +267,7 @@ export default {
* @returns {string}
*/
hidePassword(url) {
const { protocol, username, hostname, pathname } = URLParse(url);
const { protocol, username, hostname, pathname } = new URL(url);
if (protocol === "file:") {
return url;
} else {
Expand All @@ -287,10 +286,8 @@ export default {
url = url.replace(/#/g, uuid);
}

let { username, password, hostname, pathname, port, query } = URLParse(
url,
true,
);
let { username, password, hostname, pathname, port, searchParams } =
new URL(url);

if (pathname) {
pathname = decodeURIComponent(pathname);
Expand All @@ -309,6 +306,7 @@ export default {
port = Number.parseInt(port);
}

const query = Object.fromEntries(searchParams);
let { keyFile, passPhrase } = query;

if (keyFile) {
Expand Down