mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
Compare commits
171 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e089ca8705 | ||
|
|
bf8fd0dacf | ||
|
|
c9b289cbde | ||
|
|
45b822ba10 | ||
|
|
cb758cceda | ||
|
|
8b804271bd | ||
|
|
57813784d2 | ||
|
|
7cbb8a00c4 | ||
|
|
4a4cb57348 | ||
|
|
7a82467933 | ||
|
|
6a65d191af | ||
|
|
d047d7a105 | ||
|
|
f05d0c2047 | ||
|
|
98e5b70f2e | ||
|
|
100ddd79aa | ||
|
|
0b2d4e2ba0 | ||
|
|
0c379d6c49 | ||
|
|
8e6f9fdb00 | ||
|
|
6b1713e54b | ||
|
|
44db5f9813 | ||
|
|
7d0fbbd960 | ||
|
|
4552256038 | ||
|
|
c5be5e94e8 | ||
|
|
3a6693c8b1 | ||
|
|
e9032ae6e4 | ||
|
|
7202f740d3 | ||
|
|
2a74526b0f | ||
|
|
bacf6804e4 | ||
|
|
c60584c613 | ||
|
|
e2482a6c8f | ||
|
|
27cbe755bf | ||
|
|
046debffa0 | ||
|
|
4b32015a73 | ||
|
|
4d950b30fb | ||
|
|
f50f1e51e4 | ||
|
|
97a414e77f | ||
|
|
46a6c8c987 | ||
|
|
5305e5ca18 | ||
|
|
6757ebe13c | ||
|
|
1dc91562ec | ||
|
|
2e2785c33c | ||
|
|
cf14f5a758 | ||
|
|
2ebd43d55c | ||
|
|
dac29767bd | ||
|
|
4571c7cf33 | ||
|
|
b8e3756dd9 | ||
|
|
df92852123 | ||
|
|
d6afcff5d2 | ||
|
|
9e9adfcc07 | ||
|
|
7c425eeccc | ||
|
|
b55e33f61a | ||
|
|
358c15163a | ||
|
|
0225e31947 | ||
|
|
d2b3508b5b | ||
|
|
1c6bc49ed0 | ||
|
|
e2ecfa3e3c | ||
|
|
875ef47938 | ||
|
|
550ac383e9 | ||
|
|
7a196e4315 | ||
|
|
8a6ed411ef | ||
|
|
4893d61ee3 | ||
|
|
a8482b2311 | ||
|
|
e734b6937a | ||
|
|
eab9f92b3e | ||
|
|
772aea69a9 | ||
|
|
f9d5cfce73 | ||
|
|
33cad40d5c | ||
|
|
ab7f29099d | ||
|
|
70d63934a6 | ||
|
|
61dae4cf84 | ||
|
|
022673322b | ||
|
|
9e321e9c69 | ||
|
|
0fc46236fc | ||
|
|
91c03ef5a5 | ||
|
|
ba6d04ced7 | ||
|
|
d26635784f | ||
|
|
12fc2fc1fb | ||
|
|
05e8d53783 | ||
|
|
ae77444b2d | ||
|
|
88dae597ea | ||
|
|
4dd11db8f4 | ||
|
|
4ac8f1f246 | ||
|
|
72f031b0ae | ||
|
|
c8c492bf1a | ||
|
|
eb3c1a0c8b | ||
|
|
c8ad04b065 | ||
|
|
efbdaab27b | ||
|
|
5f7b6158a2 | ||
|
|
51931df2d2 | ||
|
|
2b8fd61c16 | ||
|
|
7c2a847024 | ||
|
|
659f811c09 | ||
|
|
2224b00c57 | ||
|
|
b56ed48855 | ||
|
|
d3ed8dee7c | ||
|
|
54a40d0ccc | ||
|
|
186837d9f9 | ||
|
|
ec3920fc34 | ||
|
|
5a3aa7e8c6 | ||
|
|
7bb7d2e388 | ||
|
|
b1fc9073d6 | ||
|
|
a1a86c7045 | ||
|
|
81cecfe558 | ||
|
|
9a0e3bfc65 | ||
|
|
f7b88b6d31 | ||
|
|
a996519bd8 | ||
|
|
e85d08422e | ||
|
|
73de69b5a6 | ||
|
|
9172098027 | ||
|
|
f19391200c | ||
|
|
5e51877660 | ||
|
|
6bc2d83ffb | ||
|
|
75ac9e8281 | ||
|
|
650b02e673 | ||
|
|
93929ae15f | ||
|
|
95eecb7161 | ||
|
|
0b83554565 | ||
|
|
4485f62946 | ||
|
|
42c3671965 | ||
|
|
a5aabe0ad7 | ||
|
|
276c098fbc | ||
|
|
3455812a43 | ||
|
|
87a994f0f0 | ||
|
|
15ddc71445 | ||
|
|
ee916b998a | ||
|
|
914942d328 | ||
|
|
5ae67a3dc7 | ||
|
|
5475708b36 | ||
|
|
c85f46844e | ||
|
|
1247a105a0 | ||
|
|
3cc4ee3ee4 | ||
|
|
7fca31338c | ||
|
|
0d747d03ab | ||
|
|
6a59036e21 | ||
|
|
baddd4a99b | ||
|
|
c40d26ef0a | ||
|
|
e4f7747200 | ||
|
|
bc06ae5c03 | ||
|
|
39c073634c | ||
|
|
c5beeb861e | ||
|
|
0a4bdf160c | ||
|
|
6f43da8d28 | ||
|
|
42e8a68c08 | ||
|
|
f960bb4f6f | ||
|
|
7f988c0bba | ||
|
|
dcf05d3386 | ||
|
|
96385d90d8 | ||
|
|
96cfa8c015 | ||
|
|
ae067efd5e | ||
|
|
8c16779052 | ||
|
|
5c7a289299 | ||
|
|
e8e524182a | ||
|
|
521d9faa0c | ||
|
|
ca7ac73836 | ||
|
|
ed42935e7b | ||
|
|
f0c5ec6f1a | ||
|
|
66ced3c779 | ||
|
|
4f8212f8e3 | ||
|
|
86de5aa89e | ||
|
|
00065ab0c9 | ||
|
|
e89202f750 | ||
|
|
1df2353f06 | ||
|
|
475ab4119b | ||
|
|
1346ff49a5 | ||
|
|
4ff0132d53 | ||
|
|
749a88b2b6 | ||
|
|
427b77c597 | ||
|
|
e901df9ac7 | ||
|
|
43e565bcc9 | ||
|
|
f4e710c7d1 | ||
|
|
592ac45740 |
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -99,3 +99,4 @@ jobs:
|
|||||||
dist/*.yml
|
dist/*.yml
|
||||||
dist/*.blockmap
|
dist/*.blockmap
|
||||||
dist/*.pacman
|
dist/*.pacman
|
||||||
|
dist/*.AppImage
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,7 +7,8 @@ out
|
|||||||
*.log*
|
*.log*
|
||||||
.env
|
.env
|
||||||
.vite
|
.vite
|
||||||
ludusavi/
|
ludusavi/**
|
||||||
|
!ludusavi/config.yaml
|
||||||
hydra-python-rpc/
|
hydra-python-rpc/
|
||||||
.python-version
|
.python-version
|
||||||
|
|
||||||
|
|||||||
BIN
binaries/aria2c
Executable file
BIN
binaries/aria2c
Executable file
Binary file not shown.
BIN
binaries/aria2c.exe
Executable file
BIN
binaries/aria2c.exe
Executable file
Binary file not shown.
@@ -3,7 +3,6 @@ productName: Hydra
|
|||||||
directories:
|
directories:
|
||||||
buildResources: build
|
buildResources: build
|
||||||
extraResources:
|
extraResources:
|
||||||
- aria2
|
|
||||||
- ludusavi
|
- ludusavi
|
||||||
- hydra-python-rpc
|
- hydra-python-rpc
|
||||||
- seeds
|
- seeds
|
||||||
@@ -21,6 +20,7 @@ asarUnpack:
|
|||||||
win:
|
win:
|
||||||
executableName: Hydra
|
executableName: Hydra
|
||||||
extraResources:
|
extraResources:
|
||||||
|
- from: binaries/aria2c.exe
|
||||||
- from: binaries/7z.exe
|
- from: binaries/7z.exe
|
||||||
- from: binaries/7z.dll
|
- from: binaries/7z.dll
|
||||||
target:
|
target:
|
||||||
@@ -51,6 +51,7 @@ dmg:
|
|||||||
linux:
|
linux:
|
||||||
extraResources:
|
extraResources:
|
||||||
- from: binaries/7zzs
|
- from: binaries/7zzs
|
||||||
|
- from: binaries/aria2c
|
||||||
target:
|
target:
|
||||||
- AppImage
|
- AppImage
|
||||||
- snap
|
- snap
|
||||||
|
|||||||
6
ludusavi/config.yaml
Normal file
6
ludusavi/config.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
manifest:
|
||||||
|
enable: false
|
||||||
|
secondary:
|
||||||
|
- url: https://cdn.losbroxas.org/manifest.yaml
|
||||||
|
enable: true
|
||||||
|
customGames: []
|
||||||
24
package.json
24
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydralauncher",
|
"name": "hydralauncher",
|
||||||
"version": "3.4.10",
|
"version": "3.6.2",
|
||||||
"description": "Hydra",
|
"description": "Hydra",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "Los Broxas",
|
"author": "Los Broxas",
|
||||||
@@ -49,32 +49,36 @@
|
|||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"color": "^4.2.3",
|
"color": "^4.2.3",
|
||||||
"color.js": "^1.2.0",
|
"color.js": "^1.2.0",
|
||||||
|
"crc": "^4.3.2",
|
||||||
"create-desktop-shortcuts": "^1.11.1",
|
"create-desktop-shortcuts": "^1.11.1",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"dexie": "^4.0.10",
|
"dexie": "^4.0.10",
|
||||||
"diskusage": "^1.2.0",
|
"diskusage": "^1.2.0",
|
||||||
"electron-log": "^5.2.4",
|
"electron-log": "^5.2.4",
|
||||||
"electron-updater": "^6.6.2",
|
"electron-updater": "^6.6.2",
|
||||||
"file-type": "^19.6.0",
|
"file-type": "^20.5.0",
|
||||||
|
"framer-motion": "^12.15.0",
|
||||||
"i18next": "^23.11.2",
|
"i18next": "^23.11.2",
|
||||||
"i18next-browser-languagedetector": "^7.2.1",
|
"i18next-browser-languagedetector": "^7.2.1",
|
||||||
"jsdom": "^24.0.0",
|
"jsdom": "^24.0.0",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"parse-torrent": "^11.0.17",
|
"parse-torrent": "^11.0.18",
|
||||||
"piscina": "^4.7.0",
|
"rc-virtual-list": "^3.18.3",
|
||||||
"rc-virtual-list": "^3.16.1",
|
|
||||||
"react-hook-form": "^7.53.0",
|
"react-hook-form": "^7.53.0",
|
||||||
"react-i18next": "^14.1.0",
|
"react-i18next": "^14.1.0",
|
||||||
"react-loading-skeleton": "^3.4.0",
|
"react-loading-skeleton": "^3.4.0",
|
||||||
"react-redux": "^9.1.1",
|
"react-redux": "^9.1.1",
|
||||||
"react-router-dom": "^6.22.3",
|
"react-router-dom": "^6.22.3",
|
||||||
"react-tooltip": "^5.28.0",
|
"react-shadow": "^20.6.0",
|
||||||
|
"react-tooltip": "^5.28.1",
|
||||||
"sound-play": "^1.1.0",
|
"sound-play": "^1.1.0",
|
||||||
|
"steam-shortcut-editor": "https://github.com/hydralauncher/steam-shortcut-editor",
|
||||||
"sudo-prompt": "^9.2.1",
|
"sudo-prompt": "^9.2.1",
|
||||||
"tar": "^7.4.3",
|
"tar": "^7.4.3",
|
||||||
"tough-cookie": "^5.1.1",
|
"tough-cookie": "^5.1.1",
|
||||||
"user-agents": "^1.1.387",
|
"user-agents": "^1.1.387",
|
||||||
|
"winreg": "^1.2.5",
|
||||||
"ws": "^8.18.1",
|
"ws": "^8.18.1",
|
||||||
"yaml": "^2.6.1",
|
"yaml": "^2.6.1",
|
||||||
"yup": "^1.5.0",
|
"yup": "^1.5.0",
|
||||||
@@ -100,11 +104,12 @@
|
|||||||
"@types/react-dom": "^18.2.18",
|
"@types/react-dom": "^18.2.18",
|
||||||
"@types/sound-play": "^1.1.3",
|
"@types/sound-play": "^1.1.3",
|
||||||
"@types/user-agents": "^1.0.4",
|
"@types/user-agents": "^1.0.4",
|
||||||
|
"@types/winreg": "^1.2.36",
|
||||||
"@types/ws": "^8.18.1",
|
"@types/ws": "^8.18.1",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"electron": "^31.7.7",
|
"electron": "^32.3.3",
|
||||||
"electron-builder": "^26.0.12",
|
"electron-builder": "^26.0.12",
|
||||||
"electron-vite": "^2.3.0",
|
"electron-vite": "^3.0.0",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||||
"eslint-plugin-react": "^7.37.4",
|
"eslint-plugin-react": "^7.37.4",
|
||||||
@@ -118,5 +123,6 @@
|
|||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.12",
|
"vite": "^5.0.12",
|
||||||
"vite-plugin-svgr": "^4.2.0"
|
"vite-plugin-svgr": "^4.2.0"
|
||||||
}
|
},
|
||||||
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,8 +101,13 @@ def process_list():
|
|||||||
auth_error = validate_rpc_password()
|
auth_error = validate_rpc_password()
|
||||||
if auth_error:
|
if auth_error:
|
||||||
return auth_error
|
return auth_error
|
||||||
|
|
||||||
|
iter_list = ['exe', 'pid', 'name']
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
iter_list.append('cwd')
|
||||||
|
iter_list.append('environ')
|
||||||
|
|
||||||
process_list = [proc.info for proc in psutil.process_iter(['exe', 'pid', 'name'])]
|
process_list = [proc.info for proc in psutil.process_iter(iter_list)]
|
||||||
return jsonify(process_list), 200
|
return jsonify(process_list), 200
|
||||||
|
|
||||||
@app.route("/profile-image", methods=["POST"])
|
@app.route("/profile-image", methods=["POST"])
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ const tar = require("tar");
|
|||||||
const util = require("node:util");
|
const util = require("node:util");
|
||||||
const fs = require("node:fs");
|
const fs = require("node:fs");
|
||||||
const path = require("node:path");
|
const path = require("node:path");
|
||||||
const { spawnSync } = require("node:child_process");
|
|
||||||
|
|
||||||
const exec = util.promisify(require("node:child_process").exec);
|
const exec = util.promisify(require("node:child_process").exec);
|
||||||
|
|
||||||
@@ -15,8 +14,18 @@ const fileName = {
|
|||||||
darwin: `ludusavi-v${ludusaviVersion}-mac.tar.gz`,
|
darwin: `ludusavi-v${ludusaviVersion}-mac.tar.gz`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const ludusaviBinaryName = {
|
||||||
|
win32: "ludusavi.exe",
|
||||||
|
linux: "ludusavi",
|
||||||
|
darwin: "ludusavi",
|
||||||
|
};
|
||||||
|
|
||||||
const downloadLudusavi = async () => {
|
const downloadLudusavi = async () => {
|
||||||
if (fs.existsSync("ludusavi")) {
|
if (
|
||||||
|
fs.existsSync(
|
||||||
|
path.join(process.cwd(), "ludusavi", ludusaviBinaryName[process.platform])
|
||||||
|
)
|
||||||
|
) {
|
||||||
console.log("Ludusavi already exists, skipping download...");
|
console.log("Ludusavi already exists, skipping download...");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -58,79 +67,4 @@ const downloadLudusavi = async () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const downloadAria2WindowsAndLinux = async () => {
|
|
||||||
const file =
|
|
||||||
process.platform === "win32"
|
|
||||||
? "aria2-1.37.0-win-64bit-build1.zip"
|
|
||||||
: "aria2-1.37.0-1-x86_64.pkg.tar.zst";
|
|
||||||
|
|
||||||
const downloadUrl =
|
|
||||||
process.platform === "win32"
|
|
||||||
? `https://github.com/aria2/aria2/releases/download/release-1.37.0/${file}`
|
|
||||||
: "https://archlinux.org/packages/extra/x86_64/aria2/download/";
|
|
||||||
|
|
||||||
console.log(`Downloading ${file}...`);
|
|
||||||
|
|
||||||
const response = await axios.get(downloadUrl, { responseType: "stream" });
|
|
||||||
|
|
||||||
const stream = response.data.pipe(fs.createWriteStream(file));
|
|
||||||
|
|
||||||
stream.on("finish", async () => {
|
|
||||||
console.log(`Downloaded ${file}, extracting...`);
|
|
||||||
|
|
||||||
if (process.platform === "win32") {
|
|
||||||
await exec(`npx extract-zip ${file}`);
|
|
||||||
console.log("Extracted. Renaming folder...");
|
|
||||||
|
|
||||||
fs.mkdirSync("aria2");
|
|
||||||
fs.copyFileSync(
|
|
||||||
path.join(file.replace(".zip", ""), "aria2c.exe"),
|
|
||||||
"aria2/aria2c.exe"
|
|
||||||
);
|
|
||||||
fs.rmSync(file.replace(".zip", ""), { recursive: true });
|
|
||||||
} else {
|
|
||||||
await exec(`tar --zstd -xvf ${file} usr/bin/aria2c`);
|
|
||||||
console.log("Extracted. Copying binary file...");
|
|
||||||
fs.mkdirSync("aria2");
|
|
||||||
fs.copyFileSync("usr/bin/aria2c", "aria2/aria2c");
|
|
||||||
fs.rmSync("usr", { recursive: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`Extracted ${file}, removing compressed downloaded file...`);
|
|
||||||
fs.rmSync(file);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const copyAria2Macos = async () => {
|
|
||||||
console.log("Checking if aria2 is installed...");
|
|
||||||
|
|
||||||
const isAria2Installed = spawnSync("which", ["aria2c"]).status;
|
|
||||||
|
|
||||||
if (isAria2Installed != 0) {
|
|
||||||
console.log("Please install aria2");
|
|
||||||
console.log("brew install aria2");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("Copying aria2 binary...");
|
|
||||||
fs.mkdirSync("aria2");
|
|
||||||
await exec(`cp $(which aria2c) aria2/aria2c`);
|
|
||||||
};
|
|
||||||
|
|
||||||
const copyAria2 = () => {
|
|
||||||
const aria2Path =
|
|
||||||
process.platform === "win32" ? "aria2/aria2c.exe" : "aria2/aria2c";
|
|
||||||
|
|
||||||
if (fs.existsSync(aria2Path)) {
|
|
||||||
console.log("Aria2 already exists, skipping download...");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (process.platform == "darwin") {
|
|
||||||
copyAria2Macos();
|
|
||||||
} else {
|
|
||||||
downloadAria2WindowsAndLinux();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
copyAria2();
|
|
||||||
downloadLudusavi();
|
downloadLudusavi();
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const s3 = new S3Client({
|
|||||||
|
|
||||||
const dist = path.resolve(__dirname, "..", "dist");
|
const dist = path.resolve(__dirname, "..", "dist");
|
||||||
|
|
||||||
const extensionsToUpload = [".deb", ".exe", ".pacman"];
|
const extensionsToUpload = [".deb", ".exe", ".pacman", ".AppImage"];
|
||||||
|
|
||||||
fs.readdir(dist, async (err, files) => {
|
fs.readdir(dist, async (err, files) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|||||||
@@ -1,88 +1,88 @@
|
|||||||
{
|
{
|
||||||
"language_name": "Български",
|
"language_name": "Български",
|
||||||
"app": {
|
"app": {
|
||||||
"successfully_signed_in": "Успешно вписване"
|
"successfully_signed_in": "Успешно влизане"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"featured": "Препоръчани",
|
"featured": "Препоръчани",
|
||||||
"surprise_me": "Изненадай ме",
|
"surprise_me": "Изненадай ме",
|
||||||
"no_results": "Не са намерени резултати",
|
"no_results": "Няма намерени резултати",
|
||||||
"start_typing": "Търсене...",
|
"start_typing": "Започнете да пишете за търсене...",
|
||||||
"hot": "Актуално сега",
|
"hot": "Горещи сега",
|
||||||
"weekly": "📅 Най-доброто от седмицата",
|
"weekly": "📅 Топ игри на седмицата",
|
||||||
"achievements": "🏆 Игри, които да победите"
|
"achievements": "🏆 Игри които да победите"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"catalogue": "Каталог",
|
"catalogue": "Каталог",
|
||||||
"downloads": "Изтегляния",
|
"downloads": "Изтегляния",
|
||||||
"settings": "Настройки",
|
"settings": "Настройки",
|
||||||
"my_library": "Моята библиотека",
|
"my_library": "Моята библиотека",
|
||||||
"downloading_metadata": "{{title}} (Сваляне на метаданни…)",
|
"downloading_metadata": "{{title}} (Изтегляне на метаданни…)",
|
||||||
"paused": "{{title}} (Пауза)",
|
"paused": "{{title}} (На пауза)",
|
||||||
"downloading": "{{title}} ({{percentage}} - Изтегляне…)",
|
"downloading": "{{title}} ({{percentage}} - Изтегляне…)",
|
||||||
"filter": "Търсене по име",
|
"filter": "Филтрирай библиотеката",
|
||||||
"home": "Начало",
|
"home": "Начало",
|
||||||
"queued": "{{title}} (Опашка)",
|
"queued": "{{title}} (В опашката)",
|
||||||
"game_has_no_executable": "Играта няма избран изпълним файл",
|
"game_has_no_executable": "Няма избран изпълним файл за играта",
|
||||||
"sign_in": "Вписване",
|
"sign_in": "Вход",
|
||||||
"friends": "Приятели",
|
"friends": "Приятели",
|
||||||
"need_help": "Имате нужда от помощ??",
|
"need_help": "Нужда от помощ?",
|
||||||
"favorites": "Любими игри"
|
"favorites": "Любими"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Търсене",
|
"search": "Търси игри",
|
||||||
"home": "Начало",
|
"home": "Начало",
|
||||||
"catalogue": "Каталог",
|
"catalogue": "Каталог",
|
||||||
"downloads": "Изтегляния",
|
"downloads": "Изтегляния",
|
||||||
"search_results": "Резултати от търсене",
|
"search_results": "Резултати от търсенето",
|
||||||
"settings": "Настройки",
|
"settings": "Настройки",
|
||||||
"version_available_install": "Версия {{version}} е налична. Кликни тук, за да рестартирате и инсталирате.",
|
"version_available_install": "Версия {{version}} е налична. Кликнете тук за рестарт и инсталация.",
|
||||||
"version_available_download": "Версия {{version}} е налична. Кликни тук за изтегляне."
|
"version_available_download": "Версия {{version}} е налична. Кликнете тук за изтегляне."
|
||||||
},
|
},
|
||||||
"bottom_panel": {
|
"bottom_panel": {
|
||||||
"no_downloads_in_progress": "Няма изтегляния в ход",
|
"no_downloads_in_progress": "Няма текущи изтегляния",
|
||||||
"downloading_metadata": "Сваляне на {{title}} метадата…",
|
"downloading_metadata": "Изтегляне на метаданни за {{title}}…",
|
||||||
"downloading": "Изтегляне на {{title}}… ({{percentage}} готово) - Остават {{eta}} - {{speed}}",
|
"downloading": "Изтегля се {{title}}… ({{percentage}} завършено) - Завършване {{eta}} - {{speed}}",
|
||||||
"calculating_eta": "Изтегляне на {{title}}… ({{percentage}} готово) - Изчисляване на оставащо време…",
|
"calculating_eta": "Изтегля се {{title}}… ({{percentage}} завършено) - Изчисляване на оставащо време…",
|
||||||
"checking_files": "Проверка на {{title}} файловете… ({{percentage}} готово)"
|
"checking_files": "Проверка на файловете за {{title}}… ({{percentage}} завършено)",
|
||||||
|
"installing_common_redist": "{{log}}…",
|
||||||
|
"installation_complete": "Инсталацията завършена",
|
||||||
|
"installation_complete_message": "Общите компоненти са инсталирани успешно"
|
||||||
},
|
},
|
||||||
"catalogue": {
|
"catalogue": {
|
||||||
"search": "Филтър…",
|
"search": "Филтрирай…",
|
||||||
"developers": "Разработчици",
|
"developers": "Разработчици",
|
||||||
"genres": "Жанрове",
|
"genres": "Жанрове",
|
||||||
"tags": "Тагове",
|
"tags": "Тагове",
|
||||||
"publishers": "Издатели",
|
"publishers": "Издатели",
|
||||||
"download_sources": "Източници за изтегляне",
|
"download_sources": "Източници за изтегляне",
|
||||||
"result_count": "{{resultCount}} резултати",
|
"result_count": "{{resultCount}} резултата",
|
||||||
"filter_count": "{{filterCount}} налични",
|
"filter_count": "{{filterCount}} налични",
|
||||||
"clear_filters": "Изчисти {{filterCount}} избрани"
|
"clear_filters": "Изчисти {{filterCount}} избрани"
|
||||||
},
|
},
|
||||||
"game_details": {
|
"game_details": {
|
||||||
"launch_options": "Опции за стартиране",
|
"open_download_options": "Отвори опциите за изтегляне",
|
||||||
"launch_options_description": "Напредналите потребители могат да въведат модификации на своите опции за стартиране (экспериментальный)",
|
"download_options_zero": "Няма опции за изтегляне",
|
||||||
"launch_options_placeholder": "Няма зададен параметър",
|
"download_options_one": "{{count}} опция за изтегляне",
|
||||||
"open_download_options": "Варианти за изтегляне",
|
"download_options_other": "{{count}} опции за изтегляне",
|
||||||
"download_options_zero": "Няма варианти за изтегляне",
|
|
||||||
"download_options_one": "{{count}} варианти за изтегляне",
|
|
||||||
"download_options_other": "{{count}} варианти за изтегляне",
|
|
||||||
"updated_at": "Обновено на {{updated_at}}",
|
"updated_at": "Обновено на {{updated_at}}",
|
||||||
"install": "Инсталирай",
|
"install": "Инсталирай",
|
||||||
"resume": "Продължи",
|
"resume": "Продължи",
|
||||||
"pause": "Пауза",
|
"pause": "Пауза",
|
||||||
"cancel": "Отказ",
|
"cancel": "Отказ",
|
||||||
"remove": "Премахни",
|
"remove": "Премахни",
|
||||||
"space_left_on_disk": "{{space}} място на диска",
|
"space_left_on_disk": "{{space}} свободно на диска",
|
||||||
"eta": "Заклчение {{eta}}",
|
"eta": "Завършване {{eta}}",
|
||||||
"calculating_eta": "Калкулиране на оставащо време…",
|
"calculating_eta": "Изчисляване на оставащо време…",
|
||||||
"downloading_metadata": "Изтегляне на метадата…",
|
"downloading_metadata": "Изтегляне на метаданни…",
|
||||||
"filter": "Филтрирай repacks",
|
"filter": "Филтрирай репаковки",
|
||||||
"requirements": "Системни изисквания",
|
"requirements": "Системни изисквания",
|
||||||
"minimum": "Минимални",
|
"minimum": "Минимални",
|
||||||
"recommended": "Препоръчителни",
|
"recommended": "Препоръчителни",
|
||||||
"paused": "Паузирано",
|
"paused": "На пауза",
|
||||||
"release_date": "Издадено на {{date}}",
|
"release_date": "Издадена на {{date}}",
|
||||||
"publisher": "Публикувано от {{publisher}}",
|
"publisher": "Издател: {{publisher}}",
|
||||||
"hours": "часове",
|
"hours": "часа",
|
||||||
"minutes": "минути",
|
"minutes": "минути",
|
||||||
"amount_hours": "{{amount}} часа",
|
"amount_hours": "{{amount}} часа",
|
||||||
"amount_minutes": "{{amount}} минути",
|
"amount_minutes": "{{amount}} минути",
|
||||||
@@ -90,333 +90,425 @@
|
|||||||
"add_to_library": "Добави в библиотеката",
|
"add_to_library": "Добави в библиотеката",
|
||||||
"remove_from_library": "Премахни от библиотеката",
|
"remove_from_library": "Премахни от библиотеката",
|
||||||
"no_downloads": "Няма налични изтегляния",
|
"no_downloads": "Няма налични изтегляния",
|
||||||
"play_time": "Игрално време {{amount}}",
|
"play_time": "Играно: {{amount}}",
|
||||||
"last_time_played": "Последно пускане {{period}}",
|
"last_time_played": "Последно играно: {{period}}",
|
||||||
"not_played_yet": "Не сте играли {{title}} все още",
|
"not_played_yet": "Все още не сте играли {{title}}",
|
||||||
"next_suggestion": "Следващо предложение",
|
"next_suggestion": "Следващо предложение",
|
||||||
"play": "Пускане",
|
"play": "Играй",
|
||||||
"deleting": "Изтриване на инсталация…",
|
"deleting": "Изтриване на инсталатора…",
|
||||||
"close": "Затвори",
|
"close": "Затвори",
|
||||||
"playing_now": "Играй сега",
|
"playing_now": "Играе се сега",
|
||||||
"change": "Промяна",
|
"change": "Промени",
|
||||||
"repacks_modal_description": "Избери repack който искаш да изтеглиш",
|
"repacks_modal_description": "Изберете репак за изтегляне",
|
||||||
"select_folder_hint": "За да промените стандартната папка отидете в <0>Настройки</0>",
|
"select_folder_hint": "За да промените папката по подразбиране, отидете в <0>Настройки</0>",
|
||||||
"download_now": "Изтегли сега",
|
"download_now": "Изтегли сега",
|
||||||
"no_shop_details": "Не може да се извлекат данни за магазина.",
|
"no_shop_details": "Неуспешно извличане на детайли от магазина.",
|
||||||
"download_options": "Опции за сваляне",
|
"download_options": "Опции за изтегляне",
|
||||||
"download_path": "Път за сваляне",
|
"download_path": "Път за изтегляне",
|
||||||
"previous_screenshot": "Предишна снимка",
|
"previous_screenshot": "Предишен скрийншот",
|
||||||
"next_screenshot": "Следваща снимка",
|
"next_screenshot": "Следващ скрийншот",
|
||||||
"screenshot": "Снимка {{number}}",
|
"screenshot": "Скрийншот {{number}}",
|
||||||
"open_screenshot": "Отвори снимки {{number}}",
|
"open_screenshot": "Отвори скрийншот {{number}}",
|
||||||
"download_settings": "Настройки за сваляне",
|
"download_settings": "Настройки за изтегляне",
|
||||||
"downloader": "Downloader",
|
"downloader": "Изтегляч",
|
||||||
"select_executable": "Избери",
|
"select_executable": "Избери",
|
||||||
"no_executable_selected": "Няма избран стартиращ файл",
|
"no_executable_selected": "Няма избран изпълним файл",
|
||||||
"open_folder": "Отвори папка",
|
"open_folder": "Отвори папка",
|
||||||
"open_download_location": "Виж свалените файлове",
|
"open_download_location": "Виж изтеглените файлове",
|
||||||
"create_shortcut": "Пряк път на Десктопа",
|
"create_shortcut": "Създай пряк път на работния плот",
|
||||||
|
"clear": "Изчисти",
|
||||||
"remove_files": "Премахни файловете",
|
"remove_files": "Премахни файловете",
|
||||||
"remove_from_library_title": "Сигурен ли си?",
|
"remove_from_library_title": "Сигурни ли сте?",
|
||||||
"remove_from_library_description": "Това ще премахне {{game}} от Библиотеката",
|
"remove_from_library_description": "Това ще премахне {{game}} от вашата библиотека",
|
||||||
"options": "Опции",
|
"options": "Опции",
|
||||||
"executable_section_title": "Стартиращ файл",
|
"executable_section_title": "Изпълним файл",
|
||||||
"executable_section_description": "Пътят на файла, който ще се изпълни, когато се щракне върху \"Пускане\"",
|
"executable_section_description": "Пътят на файла, който ще се изпълни при \"Играй\"",
|
||||||
"downloads_section_title": "Свалени",
|
"downloads_section_title": "Изтегляния",
|
||||||
"downloads_section_description": "Вижте актуализации или други версии на тази игра",
|
"downloads_section_description": "Вижте обновления или други версии на тази игра",
|
||||||
"danger_zone_section_title": "Опасна зона",
|
"danger_zone_section_title": "Опасна зона",
|
||||||
"danger_zone_section_description": "Премахнете тази игра от библиотеката си или от файловете, изтеглени от Hydra",
|
"danger_zone_section_description": "Премахнете тази игра от библиотеката или файловете, изтеглени от Hydra",
|
||||||
"download_in_progress": "Изтегляне в ход",
|
"download_in_progress": "Изтеглянето е в ход",
|
||||||
"download_paused": "Изтеглянето е паузирано",
|
"download_paused": "Изтеглянето е на пауза",
|
||||||
"last_downloaded_option": "Опция от последно изтегляне",
|
"last_downloaded_option": "Последно изтеглена опция",
|
||||||
|
"create_steam_shortcut": "Създай пряк път за Steam",
|
||||||
"create_shortcut_success": "Прекият път е създаден успешно",
|
"create_shortcut_success": "Прекият път е създаден успешно",
|
||||||
"create_shortcut_error": "Грешка при създаването на пряк път",
|
"you_might_need_to_restart_steam": "Може да е необходимо да рестартирате Steam, за да видите промените",
|
||||||
|
"create_shortcut_error": "Грешка при създаване на пряк път",
|
||||||
"nsfw_content_title": "Тази игра съдържа неподходящо съдържание",
|
"nsfw_content_title": "Тази игра съдържа неподходящо съдържание",
|
||||||
"nsfw_content_description": "{{title}} съдържа съдържание, което може да не е подходящо за всички възрасти. Сигурни ли сте, че искате да продължите?",
|
"nsfw_content_description": "{{title}} съдържа съдържание, което може да не е подходящо за всички възрасти. Сигурни ли сте, че искате да продължите?",
|
||||||
"allow_nsfw_content": "Продължи",
|
"allow_nsfw_content": "Продължи",
|
||||||
"refuse_nsfw_content": "Назад",
|
"refuse_nsfw_content": "Върни се",
|
||||||
"stats": "Статистики",
|
"stats": "Статистики",
|
||||||
"download_count": "Сваляния",
|
"download_count": "Изтегляния",
|
||||||
"player_count": "Активни играчи",
|
"player_count": "Активни играчи",
|
||||||
"download_error": "Тази опция за изтегляне не е налична",
|
"download_error": "Тази опция за изтегляне не е налична",
|
||||||
"download": "Свали",
|
"download": "Изтегли",
|
||||||
"executable_path_in_use": "Изпълнимият файл вече се използва от \"{{game}}\"",
|
"executable_path_in_use": "Изпълнимият файл вече се използва от \"{{game}}\"",
|
||||||
"warning": "Внимание:",
|
"warning": "Внимание:",
|
||||||
"hydra_needs_to_remain_open": "за това изтегляне, Hydra трябва да остане отворена, когато е завършено. Ако Hydra се затвори преди завършването, ще загубите напредъка си..",
|
"hydra_needs_to_remain_open": "за това изтегляне, Hydra трябва да остане отворена до завършване. Ако затворите преди завършване, ще загубите прогреса.",
|
||||||
"achievements": "Постижения",
|
"achievements": "Постижения",
|
||||||
"achievements_count": "Постижения {{unlockedCount}}/{{achievementsCount}}",
|
"achievements_count": "Постижения {{unlockedCount}}/{{achievementsCount}}",
|
||||||
"cloud_save": "Запазване в облака",
|
"cloud_save": "Облачно запазване",
|
||||||
"cloud_save_description": "Запазете напредъка си в облака и продължете да играете на всяко устройство",
|
"cloud_save_description": "Запазете прогреса си в облака и продължете да играете на всяко устройство",
|
||||||
"backups": "Резервни копия",
|
"backups": "Архиви",
|
||||||
"install_backup": "Инсталирай",
|
"install_backup": "Инсталирай",
|
||||||
"delete_backup": "Изтрий",
|
"delete_backup": "Изтрий",
|
||||||
"create_backup": "Ново копие",
|
"create_backup": "Нов архив",
|
||||||
"last_backup_date": "Последно копие от {{date}}",
|
"last_backup_date": "Последен архив на {{date}}",
|
||||||
"no_backup_preview": "Не бяха намерени запазени игри за това заглавие",
|
"no_backup_preview": "Не са намерени запазени игри за това заглавие",
|
||||||
"restoring_backup": "Възстановяване на резервно копие ({{progress}} готово)…",
|
"restoring_backup": "Възстановяване на архив ({{progress}} завършено)…",
|
||||||
"uploading_backup": "Качване на резервно копие…",
|
"uploading_backup": "Качване на архив…",
|
||||||
"no_backups": "Все още не сте създали резервни копия за тази игра",
|
"no_backups": "Не сте създали архиви за тази игра",
|
||||||
"backup_uploaded": "Качено резервно копие",
|
"backup_uploaded": "Архивът е качен",
|
||||||
"backup_deleted": "Изтрито резервно копие",
|
"backup_deleted": "Архивът е изтрит",
|
||||||
"backup_restored": "Възстановен бекъп",
|
"backup_restored": "Архивът е възстановен",
|
||||||
"see_all_achievements": "Вижте всички постижения",
|
"see_all_achievements": "Виж всички постижения",
|
||||||
"sign_in_to_see_achievements": "Влезте, за да видите постиженията",
|
"sign_in_to_see_achievements": "Влезте, за да видите постиженията",
|
||||||
"mapping_method_automatic": "Автоматично",
|
"mapping_method_automatic": "Автоматично",
|
||||||
"mapping_method_manual": "Ръчно",
|
"mapping_method_manual": "Ръчно",
|
||||||
"mapping_method_label": "Метод на картографиране",
|
"mapping_method_label": "Метод на съпоставяне",
|
||||||
"files_automatically_mapped": "Автоматично картографиране на файлове",
|
"files_automatically_mapped": "Файловете са съпоставени автоматично",
|
||||||
"no_backups_created": "Не са създадени резервни копия за тази игра",
|
"no_backups_created": "Няма създадени архиви за тази игра",
|
||||||
"manage_files": "Управление на файлове",
|
"manage_files": "Управлявай файлове",
|
||||||
"loading_save_preview": "Търсене на запазени игри…",
|
"loading_save_preview": "Търсене на запазени игри…",
|
||||||
"wine_prefix": "Wine Префикс",
|
"wine_prefix": "Wine префикс",
|
||||||
"wine_prefix_description": "Wine prefix използван за тази игра",
|
"wine_prefix_description": "Wine префикс, използван за стартиране на тази игра",
|
||||||
"no_download_option_info": "Няма налични данни",
|
"launch_options": "Опции за стартиране",
|
||||||
"backup_deletion_failed": "Неуспешно изтриване на резервно копие",
|
"launch_options_description": "Напреднали потребители могат да въведат модификации (експериментална функция)",
|
||||||
"max_number_of_artifacts_reached": "Достигнат максимален брой резервни копия за тази игра",
|
"launch_options_placeholder": "Няма зададен параметър",
|
||||||
"achievements_not_sync": "Постиженията не са синхронизирани",
|
"no_download_option_info": "Няма налична информация",
|
||||||
"manage_files_description": "Управлявайте кои файлове ще бъдат архивирани и възстановени",
|
"backup_deletion_failed": "Неуспешно изтриване на архив",
|
||||||
|
"max_number_of_artifacts_reached": "Достигнат е максималният брой архиви за тази игра",
|
||||||
|
"achievements_not_sync": "Вижте как да синхронизирате постиженията си",
|
||||||
|
"manage_files_description": "Управлявайте кои файлове ще се архивират и възстановяват",
|
||||||
"select_folder": "Избери папка",
|
"select_folder": "Избери папка",
|
||||||
"backup_from": "Резервно копие от {{date}}",
|
"backup_from": "Архив от {{date}}",
|
||||||
"custom_backup_location_set": "Задаване на персонализирано местоположение за архивиране"
|
"automatic_backup_from": "Автоматичен архив от {{date}}",
|
||||||
|
"enable_automatic_cloud_sync": "Включи автоматична синхронизация с облака",
|
||||||
|
"custom_backup_location_set": "Зададено е персонализирано място за архив",
|
||||||
|
"no_directory_selected": "Няма избрана директория",
|
||||||
|
"no_write_permission": "Не може да се изтегли в тази директория. Кликнете тук за повече информация.",
|
||||||
|
"reset_achievements": "Нулирай постиженията",
|
||||||
|
"reset_achievements_description": "Това ще нулира всички постижения за {{game}}",
|
||||||
|
"reset_achievements_title": "Сигурни ли сте?",
|
||||||
|
"reset_achievements_success": "Постиженията са нулирани успешно",
|
||||||
|
"reset_achievements_error": "Неуспешно нулиране на постиженията",
|
||||||
|
"download_error_gofile_quota_exceeded": "Превишихте месечната си квота в Gofile. Моля, изчакайте тя да се възстанови.",
|
||||||
|
"download_error_real_debrid_account_not_authorized": "Вашият Real-Debrid акаунт не е упълномощен за нови изтегляния. Моля, проверете настройките на акаунта и опитайте отново.",
|
||||||
|
"download_error_not_cached_on_real_debrid": "Това изтегляне не е налично в Real-Debrid и не може да се следи статуса.",
|
||||||
|
"download_error_not_cached_on_torbox": "Това изтегляне не е налично в TorBox и не може да се следи статуса.",
|
||||||
|
"download_error_not_cached_on_hydra": "Това изтегляне не е налично в Nimbus.",
|
||||||
|
"game_removed_from_favorites": "Играта е премахната от любими",
|
||||||
|
"game_added_to_favorites": "Играта е добавена в любими",
|
||||||
|
"automatically_extract_downloaded_files": "Автоматично извличане на изтеглени файлове",
|
||||||
|
"create_start_menu_shortcut": "Създай пряк път в старт менюто",
|
||||||
|
"invalid_wine_prefix_path": "Невалиден път до Wine префикса",
|
||||||
|
"invalid_wine_prefix_path_description": "Пътят до Wine префикса е невалиден. Моля, проверете го и опитайте отново.",
|
||||||
|
"missing_wine_prefix": "Wine префикс е необходим за създаване на архив в Linux"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Активирай Hydra",
|
"title": "Активирай Hydra",
|
||||||
"installation_id": "Идентификатор на инсталацията:",
|
"installation_id": "Инсталационен ID:",
|
||||||
"enter_activation_code": "Въведете кода за активиране",
|
"enter_activation_code": "Въведете активационен код",
|
||||||
"message": "Ако не знаете къде да попитате за това, значи не трябва да го имате..",
|
"message": "Ако не знаете къде да попитате за това, не бива да го имате.",
|
||||||
"activate": "Активирай",
|
"activate": "Активирай",
|
||||||
"loading": "Зареждане…"
|
"loading": "Зареждане…"
|
||||||
},
|
},
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"seeding": "Сийдване",
|
|
||||||
"stop_seeding": "Спри сийдването",
|
|
||||||
"resume_seeding": "Продължи сийдването",
|
|
||||||
"options": "Управление",
|
|
||||||
"resume": "Продължи",
|
"resume": "Продължи",
|
||||||
"pause": "Пауза",
|
"pause": "Пауза",
|
||||||
"eta": "Conclusion {{eta}}",
|
"eta": "Завършване {{eta}}",
|
||||||
"paused": "Паузирано",
|
"paused": "На пауза",
|
||||||
"verifying": "Проверка…",
|
"verifying": "Проверка…",
|
||||||
"completed": "Готово",
|
"completed": "Завършено",
|
||||||
"removed": "Не е изтеглен",
|
"removed": "Не е изтеглено",
|
||||||
"cancel": "Отказ",
|
"cancel": "Отказ",
|
||||||
"filter": "Филтриране на изтеглени игри",
|
"filter": "Филтрирай изтеглените игри",
|
||||||
"remove": "Премахни",
|
"remove": "Премахни",
|
||||||
"downloading_metadata": "Изтегляне на метаданни…",
|
"downloading_metadata": "Изтегляне на метаданни…",
|
||||||
"deleting": "Изтриване на инсталатора…",
|
"deleting": "Изтриване на инсталатора…",
|
||||||
"delete": "Премахване на инсталатора",
|
"delete": "Премахни инсталатора",
|
||||||
"delete_modal_title": "Сигурени ли сте?",
|
"delete_modal_title": "Сигурни ли сте?",
|
||||||
"delete_modal_description": "Това ще премахне всички инсталационни файлове от компютъра ви.",
|
"delete_modal_description": "Това ще премахне всички инсталационни файлове от компютъра ви",
|
||||||
"install": "Инсталирай",
|
"install": "Инсталирай",
|
||||||
"download_in_progress": "В процес на изпълнение",
|
"download_in_progress": "В процес",
|
||||||
"queued_downloads": "Изтеглени файлове в опашката",
|
"queued_downloads": "Изтегляния на опашка",
|
||||||
"downloads_completed": "Приключени",
|
"downloads_completed": "Завършени",
|
||||||
"queued": "В опашка",
|
"queued": "В опашката",
|
||||||
"no_downloads_title": "Толкова е празно",
|
"no_downloads_title": "Толкова е празно",
|
||||||
"no_downloads_description": "Все още не сте изтеглили нищо с Hydra, но никога не е късно да започнете...",
|
"no_downloads_description": "Все още не сте изтеглили нищо с Hydra, но никога не е късно да започнете.",
|
||||||
"checking_files": "Проверка на файлове…"
|
"checking_files": "Проверка на файлове…",
|
||||||
|
"seeding": "Сийдване",
|
||||||
|
"stop_seeding": "Спри сийдването",
|
||||||
|
"resume_seeding": "Продължи сийдването",
|
||||||
|
"options": "Управлявай",
|
||||||
|
"extract": "Извлечи файловете",
|
||||||
|
"extracting": "Извличане на файловете…"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"seed_after_download_complete": "Сийд след завършване на изтеглянето",
|
"downloads_path": "Път за изтегляния",
|
||||||
"show_hidden_achievement_description": "Показвай описанието на скритите постижения преди отключването им",
|
"change": "Обнови",
|
||||||
"downloads_path": "Инсталационен път",
|
|
||||||
"change": "Актуализиране",
|
|
||||||
"notifications": "Известия",
|
"notifications": "Известия",
|
||||||
"enable_download_notifications": "Когато изтеглянето е завършено",
|
"enable_download_notifications": "Когато изтеглянето приключи",
|
||||||
"enable_repack_list_notifications": "Когато се добави нов repack",
|
"enable_repack_list_notifications": "Когато бъде добавен нов репак",
|
||||||
"real_debrid_api_token_label": "Real-Debrid API токен",
|
"real_debrid_api_token_label": "Real-Debrid API токен",
|
||||||
"quit_app_instead_hiding": "Не скривайте Hydra при затваряне",
|
"quit_app_instead_hiding": "Не скривай Hydra при затваряне",
|
||||||
"launch_with_system": "Стартиране на Hydra при стартиране на системата",
|
"launch_with_system": "Стартирай Hydra при стартиране на системата",
|
||||||
"general": "Общи",
|
"general": "Общи",
|
||||||
"behavior": "Поведение",
|
"behavior": "Поведение",
|
||||||
"download_sources": "Източници за изтегляне",
|
"download_sources": "Източници за изтегляне",
|
||||||
"language": "Език",
|
"language": "Език",
|
||||||
"api_token": "API Токен",
|
"api_token": "API токен",
|
||||||
"enable_real_debrid": "Включи Real-Debrid",
|
"enable_real_debrid": "Включи Real-Debrid",
|
||||||
"real_debrid_description": "Real-Debrid е неограничен даунлоудър, който ви позволява бързо да изтегляте файлове, ограничени само от скоростта на интернет..",
|
"real_debrid_description": "Real-Debrid е неограничен изтегляч, който ви позволява да теглите бързо, ограничено само от интернет връзката ви.",
|
||||||
"debrid_invalid_token": "Невалиден API токен",
|
"debrid_invalid_token": "Невалиден API токен",
|
||||||
"debrid_api_token_hint": "Вземете своя API токен <0>тук</0>",
|
"debrid_api_token_hint": "Може да получите вашия API токен <0>тук</0>",
|
||||||
"real_debrid_free_account_error": "Акаунтът \"{{username}}\" е безплатен акаунт. Моля абонирай се за Real-Debrid",
|
"real_debrid_free_account_error": "Акаунтът \"{{username}}\" е безплатен. Моля, абонирайте се за Real-Debrid",
|
||||||
"debrid_linked_message": "Акаунтът \"{{username}}\" е свързан",
|
"debrid_linked_message": "Акаунт \"{{username}}\" е свързан",
|
||||||
"save_changes": "Запази промените",
|
"save_changes": "Запази промените",
|
||||||
"changes_saved": "Промените са успешно запазни",
|
"changes_saved": "Промените са запазени успешно",
|
||||||
"download_sources_description": "Hydra ще извлича връзките за изтегляне от тези източници. URL адресът на източника трябва да е директна връзка към .json файл, съдържащ връзките за изтегляне.",
|
"download_sources_description": "Hydra ще взема линкове за изтегляне от тези източници. URL адресът трябва да сочи към .json файл с линкове.",
|
||||||
"validate_download_source": "Валидиране",
|
"validate_download_source": "Валидирай",
|
||||||
"remove_download_source": "Премахни",
|
"remove_download_source": "Премахни",
|
||||||
"add_download_source": "Добави източник",
|
"add_download_source": "Добави източник",
|
||||||
"download_count_zero": "Няма опции за сваляне",
|
"download_count_zero": "Няма опции за изтегляне",
|
||||||
"download_count_one": "{{countFormatted}} опции за сваляне",
|
"download_count_one": "{{countFormatted}} опция за изтегляне",
|
||||||
"download_count_other": "{{countFormatted}} опции за сваляне",
|
"download_count_other": "{{countFormatted}} опции за изтегляне",
|
||||||
"download_source_url": "URL адрес на източника за изтегляне",
|
"download_source_url": "URL на източника",
|
||||||
"add_download_source_description": "Вмъкнете URL адреса на файла .json",
|
"add_download_source_description": "Въведете URL на .json файла",
|
||||||
"download_source_up_to_date": "Актуален",
|
"download_source_up_to_date": "Актуализиран",
|
||||||
"download_source_errored": "Сгрешен",
|
"download_source_errored": "Грешка",
|
||||||
"sync_download_sources": "Синхронизирай източниците",
|
"sync_download_sources": "Синхронизирай източници",
|
||||||
"removed_download_source": "Източника за сваляне е премахнат",
|
"removed_download_source": "Източникът е премахнат",
|
||||||
"cancel_button_confirmation_delete_all_sources": "не",
|
"removed_download_sources": "Източниците са премахнати",
|
||||||
"confirm_button_confirmation_delete_all_sources": "Да, удалить все",
|
"cancel_button_confirmation_delete_all_sources": "Не",
|
||||||
"description_confirmation_delete_all_sources": "Вы удалите все источники загрузки",
|
"confirm_button_confirmation_delete_all_sources": "Да, изтрий всичко",
|
||||||
"title_confirmation_delete_all_sources": "Удалить все источники загрузки",
|
"title_confirmation_delete_all_sources": "Изтрий всички източници",
|
||||||
"removed_download_sources": "Шрифты удалены",
|
"description_confirmation_delete_all_sources": "Ще изтриете всички източници",
|
||||||
"button_delete_all_sources": "Удалить все источники загрузки",
|
"button_delete_all_sources": "Премахни всички",
|
||||||
"added_download_source": "Добавен източник за сваляне",
|
"added_download_source": "Източникът е добавен",
|
||||||
"download_sources_synced": "Всички източници за сваляне са синхронизирани",
|
"download_sources_synced": "Всички източници са синхронизирани",
|
||||||
"insert_valid_json_url": "Добавете ваиден JSON линк",
|
"insert_valid_json_url": "Въведете валиден JSON url",
|
||||||
"found_download_option_zero": "Няма намерени опции за сваляне",
|
"found_download_option_zero": "Не е намерена опция за изтегляне",
|
||||||
"found_download_option_one": "Намерени {{countFormatted}} опции за сваляне",
|
"found_download_option_one": "Намерена е {{countFormatted}} опция за изтегляне",
|
||||||
"found_download_option_other": "Намерени {{countFormatted}} опции за сваляне",
|
"found_download_option_other": "Намерени са {{countFormatted}} опции за изтегляне",
|
||||||
"import": "Внеси",
|
"import": "Импортирай",
|
||||||
"public": "Публичен",
|
"public": "Публично",
|
||||||
"private": "Личен",
|
"private": "Частно",
|
||||||
"friends_only": "Само за приятели",
|
"friends_only": "Само за приятели",
|
||||||
"privacy": "Поверителност",
|
"privacy": "Поверителност",
|
||||||
"profile_visibility": "Видимост на профила",
|
"profile_visibility": "Видимост на профила",
|
||||||
"profile_visibility_description": "Изберете кой може да вижда вашия профил и библиотека",
|
"profile_visibility_description": "Изберете кой може да вижда вашия профил и библиотека",
|
||||||
"required_field": "Това поле е задължително",
|
"required_field": "Това поле е задължително",
|
||||||
"source_already_exists": "Този източник вече е добавен",
|
"source_already_exists": "Този източник вече е добавен",
|
||||||
"must_be_valid_url": "Източникът трябва да е валиден URL адрес.",
|
"must_be_valid_url": "Източникът трябва да е валиден URL",
|
||||||
"blocked_users": "Блокирани потребители",
|
"blocked_users": "Блокирани потребители",
|
||||||
"user_unblocked": "Потребителят е бил деблокиран",
|
"user_unblocked": "Потребителят е деблокиран",
|
||||||
"enable_achievement_notifications": "Когато е отключено постижение",
|
"enable_achievement_notifications": "Когато бъде отключено постижение",
|
||||||
"launch_minimized": "Стартиране на Hydra минимизирано",
|
"launch_minimized": "Стартирай Hydra минимизирано",
|
||||||
"disable_nsfw_alert": "Деактивиране на предупреждението NSFW"
|
"disable_nsfw_alert": "Изключи NSFW предупреждението",
|
||||||
|
"seed_after_download_complete": "Сийдвай след завършване на изтеглянето",
|
||||||
|
"show_hidden_achievement_description": "Показвай описанието на скритите постижения преди отключване",
|
||||||
|
"account": "Акаунт",
|
||||||
|
"no_users_blocked": "Нямате блокирани потребители",
|
||||||
|
"subscription_active_until": "Hydra Cloud е активен до {{date}}",
|
||||||
|
"manage_subscription": "Управлявай абонамента",
|
||||||
|
"update_email": "Обнови имейл",
|
||||||
|
"update_password": "Обнови парола",
|
||||||
|
"current_email": "Текущ имейл:",
|
||||||
|
"no_email_account": "Все още не сте задали имейл",
|
||||||
|
"account_data_updated_successfully": "Данните на акаунта са обновени успешно",
|
||||||
|
"renew_subscription": "Поднови Hydra Cloud",
|
||||||
|
"subscription_expired_at": "Абонаментът изтече на {{date}}",
|
||||||
|
"no_subscription": "Наслаждавайте се на Hydra по най-добрия начин",
|
||||||
|
"become_subscriber": "Станете абонат на Hydra Cloud",
|
||||||
|
"subscription_renew_cancelled": "Автоматичното подновяване е изключено",
|
||||||
|
"subscription_renews_on": "Абонаментът се подновява на {{date}}",
|
||||||
|
"bill_sent_until": "Следващата фактура ще бъде изпратена до този ден",
|
||||||
|
"no_themes": "Изглежда, че все още нямате теми. Кликнете тук, за да създадете първата си.",
|
||||||
|
"editor_tab_code": "Код",
|
||||||
|
"editor_tab_info": "Информация",
|
||||||
|
"editor_tab_save": "Запази",
|
||||||
|
"web_store": "Уеб магазин",
|
||||||
|
"clear_themes": "Изчисти",
|
||||||
|
"create_theme": "Създай",
|
||||||
|
"create_theme_modal_title": "Създай персонализирана тема",
|
||||||
|
"create_theme_modal_description": "Създайте нова тема за персонализиране на външния вид на Hydra",
|
||||||
|
"theme_name": "Име",
|
||||||
|
"insert_theme_name": "Въведете име на тема",
|
||||||
|
"set_theme": "Задай тема",
|
||||||
|
"unset_theme": "Премахни тема",
|
||||||
|
"delete_theme": "Изтрий тема",
|
||||||
|
"edit_theme": "Редактирай тема",
|
||||||
|
"delete_all_themes": "Изтрий всички теми",
|
||||||
|
"delete_all_themes_description": "Това ще изтрие всички ваши персонализирани теми",
|
||||||
|
"delete_theme_description": "Това ще изтрие темата {{theme}}",
|
||||||
|
"cancel": "Отказ",
|
||||||
|
"appearance": "Външен вид",
|
||||||
|
"enable_torbox": "Включи TorBox",
|
||||||
|
"torbox_description": "TorBox е вашият премиум seedbox, съперничещ на най-добрите сървъри на пазара.",
|
||||||
|
"torbox_account_linked": "TorBox акаунтът е свързан",
|
||||||
|
"create_real_debrid_account": "Кликнете тук, ако все още нямате Real-Debrid акаунт",
|
||||||
|
"create_torbox_account": "Кликнете тук, ако все още нямате TorBox акаунт",
|
||||||
|
"real_debrid_account_linked": "Real-Debrid акаунтът е свързан",
|
||||||
|
"name_min_length": "Името на темата трябва да е поне 3 символа",
|
||||||
|
"import_theme": "Импортирай тема",
|
||||||
|
"import_theme_description": "Ще импортирате {{theme}} от магазина с теми",
|
||||||
|
"error_importing_theme": "Грешка при импортиране на тема",
|
||||||
|
"theme_imported": "Темата е импортирана успешно",
|
||||||
|
"enable_friend_request_notifications": "Когато получите заявка за приятелство",
|
||||||
|
"enable_auto_install": "Автоматично изтегляй обновления",
|
||||||
|
"common_redist": "Общи компоненти",
|
||||||
|
"common_redist_description": "Общите компоненти са нужни за някои игри. Препоръчва се инсталация.",
|
||||||
|
"install_common_redist": "Инсталирай",
|
||||||
|
"installing_common_redist": "Инсталиране…",
|
||||||
|
"show_download_speed_in_megabytes": "Показвай скоростта на изтегляне в MB/s",
|
||||||
|
"extract_files_by_default": "Извличай файловете по подразбиране след изтегляне"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Изтеглянето е завършено",
|
"download_complete": "Изтеглянето завърши",
|
||||||
"game_ready_to_install": "{{title}} е готово за инсталиране",
|
"game_ready_to_install": "{{title}} е готова за инсталация",
|
||||||
"repack_list_updated": "Repack лист е обновен",
|
"repack_list_updated": "Списъкът с репаци е обновен",
|
||||||
"repack_count_one": "{{count}} repack е добавен",
|
"repack_count_one": "Добавен е {{count}} репак",
|
||||||
"repack_count_other": "{{count}} repacks добавени",
|
"repack_count_other": "Добавени са {{count}} репака",
|
||||||
"new_update_available": "Версия {{version}} е налична",
|
"new_update_available": "Налична е версия {{version}}",
|
||||||
"restart_to_install_update": "Рестартирайте Hydra, за да инсталирате актуализацията",
|
"restart_to_install_update": "Рестартирайте Hydra за инсталиране на обновлението",
|
||||||
"notification_achievement_unlocked_title": "Отключено постижение за {{game}}",
|
"notification_achievement_unlocked_title": "Отключено постижение за {{game}}",
|
||||||
"notification_achievement_unlocked_body": "{{achievement}} и други {{count}} са отклщчени"
|
"notification_achievement_unlocked_body": "{{achievement}} и още {{count}} бяха отключени",
|
||||||
|
"new_friend_request_description": "{{displayName}} ви изпрати заявка за приятелство",
|
||||||
|
"new_friend_request_title": "Нова заявка за приятелство",
|
||||||
|
"extraction_complete": "Извличането завърши",
|
||||||
|
"game_extracted": "{{title}} е извлечена успешно",
|
||||||
|
"friend_started_playing_game": "{{displayName}} започна да играе игра"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Отвори Hydra",
|
"open": "Отвори Hydra",
|
||||||
"quit": "Изход"
|
"quit": "Изход"
|
||||||
},
|
},
|
||||||
"game_card": {
|
"game_card": {
|
||||||
|
"available_one": "Налично",
|
||||||
|
"available_other": "Налично",
|
||||||
"no_downloads": "Няма налични изтегляния"
|
"no_downloads": "Няма налични изтегляния"
|
||||||
},
|
},
|
||||||
"binary_not_found_modal": {
|
"binary_not_found_modal": {
|
||||||
"title": "Не инсталирани програми",
|
"title": "Програмите не са инсталирани",
|
||||||
"description": "Wine или Lutris изпълними файлове не бяха открити на вашата система",
|
"description": "Wine или Lutris не са открити на вашата система",
|
||||||
"instructions": "Проверете правилния начин за инсталиране на някоя от тях на вашата дистрибуция на Linux, за да може играта да работи нормално"
|
"instructions": "Проверете как да инсталирате някоя от тях за вашата Linux дистрибуция, за да може играта да работи."
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"close": "Бутон за затваряне"
|
"close": "Бутон за затваряне"
|
||||||
},
|
},
|
||||||
"forms": {
|
"forms": {
|
||||||
"toggle_password_visibility": "Превключване на видимостта на паролата"
|
"toggle_password_visibility": "Показване/скриване на паролата"
|
||||||
},
|
},
|
||||||
"user_profile": {
|
"user_profile": {
|
||||||
"stats": "Статистики",
|
"amount_hours": "{{amount}} часа",
|
||||||
"achievements": "Постижения",
|
|
||||||
"games": "Игри",
|
|
||||||
"top_percentile": "Топ {{percentile}}%",
|
|
||||||
"ranking_updated_weekly": "Класацията се актуализира седмично",
|
|
||||||
"playing": "Играе {{game}}",
|
|
||||||
"achievements_unlocked": "Отключени постижения",
|
|
||||||
"earned_points": "Спечелени точки",
|
|
||||||
"show_achievements_on_profile": "Показвай своите постижения в профила",
|
|
||||||
"show_points_on_profile": "Показвай спечелените точки в профила",
|
|
||||||
"amount_hours": "{{amount}} часове",
|
|
||||||
"amount_minutes": "{{amount}} минути",
|
"amount_minutes": "{{amount}} минути",
|
||||||
"last_time_played": "Последно играно {{period}}",
|
"last_time_played": "Последно играно: {{period}}",
|
||||||
"activity": "Скорошна активност",
|
"activity": "Последна активност",
|
||||||
"library": "Библиотека",
|
"library": "Библиотека",
|
||||||
"total_play_time": "Общо време за игра",
|
"total_play_time": "Общо време за игра",
|
||||||
"no_recent_activity_title": "Хмм… няма нищо тук",
|
"no_recent_activity_title": "Хммм… няма нищо тук",
|
||||||
"no_recent_activity_description": "Не сте играли игри напоследък. Време е да промените това.!",
|
"no_recent_activity_description": "Не сте играли игри наскоро. Време е да го промените!",
|
||||||
"display_name": "Показване на името",
|
"display_name": "Показвано име",
|
||||||
"saving": "Запазване",
|
"saving": "Запазване",
|
||||||
"save": "Запис",
|
"save": "Запази",
|
||||||
"edit_profile": "Редактиране на профила",
|
"edit_profile": "Редактирай профил",
|
||||||
"saved_successfully": "Запазено успешно",
|
"saved_successfully": "Успешно запазено",
|
||||||
"try_again": "Моля, опитайте пак",
|
"try_again": "Моля, опитайте отново",
|
||||||
"sign_out_modal_title": "Сигурни ли сте?",
|
"sign_out_modal_title": "Сигурни ли сте?",
|
||||||
"cancel": "Отказ",
|
"cancel": "Отказ",
|
||||||
"successfully_signed_out": "Успешно се отписахте",
|
"successfully_signed_out": "Успешно излязохте",
|
||||||
"sign_out": "Отписване",
|
"sign_out": "Изход",
|
||||||
"playing_for": "В игра от {{amount}}",
|
"playing_for": "Играе се от {{amount}}",
|
||||||
"sign_out_modal_text": "Вашата библиотека е свързана с текущата ви сметка. Когато се отпишете, библиотеката ви вече няма да е видима и напредъкът няма да бъде запазен. Продължете с отписването?",
|
"sign_out_modal_text": "Библиотеката ви е свързана с този акаунт. При изход, тя няма да е видима, а прогресът няма да се запази. Продължавате ли?",
|
||||||
"add_friends": "Добави приятели",
|
"add_friends": "Добави приятели",
|
||||||
"add": "Добави",
|
"add": "Добави",
|
||||||
"friend_code": "Приятелски код",
|
"friend_code": "Код за приятелство",
|
||||||
"see_profile": "Виж профила",
|
"see_profile": "Виж профила",
|
||||||
"sending": "Изпращане",
|
"sending": "Изпращане",
|
||||||
"friend_request_sent": "Изпратена покана за приятелство",
|
"friend_request_sent": "Заявката е изпратена",
|
||||||
"friends": "Приятели",
|
"friends": "Приятели",
|
||||||
"friends_list": "Списък с приятели",
|
"friends_list": "Списък с приятели",
|
||||||
"user_not_found": "Не е намерен потребител",
|
"user_not_found": "Потребителят не е намерен",
|
||||||
"block_user": "Блокирай потребител",
|
"block_user": "Блокирай потребител",
|
||||||
"add_friend": "Добави приятел",
|
"add_friend": "Добави приятел",
|
||||||
"request_sent": "Изпратена покана",
|
"request_sent": "Заявката е изпратена",
|
||||||
"request_received": "Получена покана",
|
"request_received": "Получена заявка",
|
||||||
"accept_request": "Приеми поканата",
|
"accept_request": "Приеми заявката",
|
||||||
"ignore_request": "Игнирирай поканата",
|
"ignore_request": "Игнорирай заявката",
|
||||||
"cancel_request": "Откажи поканата",
|
"cancel_request": "Отмени заявката",
|
||||||
"undo_friendship": "Отмяна на приятелството",
|
"undo_friendship": "Премахни приятелството",
|
||||||
"request_accepted": "Поканата е приета",
|
"request_accepted": "Заявката е приета",
|
||||||
"user_blocked_successfully": "Потребителят е блокиран успешно",
|
"user_blocked_successfully": "Потребителят е блокиран успешно",
|
||||||
"user_block_modal_text": "Това ще блокира {{displayName}}",
|
"user_block_modal_text": "Това ще блокира {{displayName}}",
|
||||||
"blocked_users": "Блокирани потребители",
|
"blocked_users": "Блокирани потребители",
|
||||||
"unblock": "Отблокирай",
|
"unblock": "Деблокирай",
|
||||||
"no_friends_added": "Не сте добавили приятели",
|
"no_friends_added": "Нямате добавени приятели",
|
||||||
"pending": "Чакащи",
|
"pending": "Чакащи",
|
||||||
"no_pending_invites": "Нямате чакащи покани",
|
"no_pending_invites": "Нямате чакащи покани",
|
||||||
"no_blocked_users": "Нямате блокирани потребители",
|
"no_blocked_users": "Нямате блокирани потребители",
|
||||||
"friend_code_copied": "Приятелския код е копиран",
|
"friend_code_copied": "Кодът за приятелство е копиран",
|
||||||
"undo_friendship_modal_text": "Това ще отмени приятелството ви с {{displayName}}",
|
"undo_friendship_modal_text": "Това ще премахне приятелството ви с {{displayName}}",
|
||||||
"privacy_hint": "За да настроите кой може да вижда това, отидете в <0>Настройки</0>",
|
"privacy_hint": "За да промените кой вижда това, отидете в <0>Настройки</0>",
|
||||||
"locked_profile": "Този профил е личен",
|
"locked_profile": "Този профил е частен",
|
||||||
"image_process_failure": "Грешка при обработката на изображението",
|
"image_process_failure": "Грешка при обработка на изображението",
|
||||||
"required_field": "Това поле е задължително",
|
"required_field": "Това поле е задължително",
|
||||||
"displayname_min_length": "Името трябва да е дълго поне 3 символа",
|
"displayname_min_length": "Показваното име трябва да съдържа поне 3 символа",
|
||||||
"displayname_max_length": "Името трябва да е с дължина не повече от 50 символа.",
|
"displayname_max_length": "Показваното име трябва да съдържа най-много 50 символа",
|
||||||
"report_profile": "Докладвай този профил",
|
"report_profile": "Докладвай този профил",
|
||||||
"report_reason": "Защо докладвате този профил?",
|
"report_reason": "Защо докладвате този профил?",
|
||||||
"report_description": "Допълнителна информация",
|
"report_description": "Допълнителна информация",
|
||||||
"report_description_placeholder": "Допълнителна информация",
|
"report_description_placeholder": "Допълнителна информация",
|
||||||
"report": "Докладвай",
|
"report": "Докладвай",
|
||||||
"report_reason_hate": "Омразна реч",
|
"report_reason_hate": "Реч на омразата",
|
||||||
"report_reason_sexual_content": "Сексуално съдържание",
|
"report_reason_sexual_content": "Сексуално съдържание",
|
||||||
"report_reason_violence": "Насилия",
|
"report_reason_violence": "Насилие",
|
||||||
"report_reason_spam": "Спам",
|
"report_reason_spam": "Спам",
|
||||||
"report_reason_other": "Друго",
|
"report_reason_other": "Друго",
|
||||||
"profile_reported": "Профилът е докладван",
|
"profile_reported": "Профилът е докладван",
|
||||||
"your_friend_code": "Вашия приятелски код:",
|
"your_friend_code": "Вашият код за приятелство:",
|
||||||
"upload_banner": "Качи банер",
|
"upload_banner": "Качи банер",
|
||||||
"uploading_banner": "Качване на банер…",
|
"uploading_banner": "Качване на банера…",
|
||||||
"background_image_updated": "Обновено фоново изображение"
|
"background_image_updated": "Фоновото изображение е обновено",
|
||||||
|
"stats": "Статистики",
|
||||||
|
"achievements": "постижения",
|
||||||
|
"games": "Игри",
|
||||||
|
"top_percentile": "Топ {{percentile}}%",
|
||||||
|
"ranking_updated_weekly": "Класацията се обновява седмично",
|
||||||
|
"playing": "Играе {{game}}",
|
||||||
|
"achievements_unlocked": "Отключени постижения",
|
||||||
|
"earned_points": "Спечелени точки",
|
||||||
|
"show_achievements_on_profile": "Показвай постиженията в профила",
|
||||||
|
"show_points_on_profile": "Показвай спечелените точки в профила"
|
||||||
},
|
},
|
||||||
"achievement": {
|
"achievement": {
|
||||||
|
"achievement_unlocked": "Отключено постижение",
|
||||||
|
"user_achievements": "Постижения на {{displayName}}",
|
||||||
|
"your_achievements": "Вашите постижения",
|
||||||
|
"unlocked_at": "Отключено на: {{date}}",
|
||||||
|
"subscription_needed": "Изисква се абонамент за Hydra Cloud за този съдържание",
|
||||||
|
"new_achievements_unlocked": "Отключени {{achievementCount}} нови постижения от {{gameCount}} игри",
|
||||||
|
"achievement_progress": "{{unlockedCount}}/{{totalCount}} постижения",
|
||||||
|
"achievements_unlocked_for_game": "Отключени {{achievementCount}} нови постижения за {{gameTitle}}",
|
||||||
"hidden_achievement_tooltip": "Това е скрито постижение",
|
"hidden_achievement_tooltip": "Това е скрито постижение",
|
||||||
"achievement_earn_points": "Спечели {{points}} точки с това постижение",
|
"achievement_earn_points": "Спечелете {{points}} точки с това постижение",
|
||||||
"earned_points": "Спечелени точки:",
|
"earned_points": "Спечелени точки:",
|
||||||
"available_points": "Налични точки:",
|
"available_points": "Налични точки:",
|
||||||
"how_to_earn_achievements_points": "Как да спечелиш точки за постижения?",
|
"how_to_earn_achievements_points": "Как се печелят точки от постижения?"
|
||||||
"achievement_unlocked": "Постижението е отключено",
|
|
||||||
"user_achievements": "Постиженията на {{displayName}} ",
|
|
||||||
"your_achievements": "Вашите Постижения",
|
|
||||||
"unlocked_at": "Отключено на: {{date}}",
|
|
||||||
"subscription_needed": "Необходим е абонамент за Hydra Cloud, за да видите това съдържание",
|
|
||||||
"new_achievements_unlocked": "Отключени {{achievementCount}} нови постижения от {{gameCount}} игра",
|
|
||||||
"achievement_progress": "{{unlockedCount}}/{{totalCount}} постижения",
|
|
||||||
"achievements_unlocked_for_game": "Отключени {{achievementCount}} нови постижения за {{gameTitle}}"
|
|
||||||
},
|
},
|
||||||
"hydra_cloud": {
|
"hydra_cloud": {
|
||||||
|
"subscription_tour_title": "Абонамент за Hydra Cloud",
|
||||||
|
"subscribe_now": "Абонирай се сега",
|
||||||
|
"cloud_saving": "Облачно запазване",
|
||||||
|
"cloud_achievements": "Запазете постиженията си в облака",
|
||||||
|
"animated_profile_picture": "Анимирани профилни снимки",
|
||||||
|
"premium_support": "Премиум поддръжка",
|
||||||
|
"show_and_compare_achievements": "Показвайте и сравнявайте постиженията си с други потребители",
|
||||||
|
"animated_profile_banner": "Анимирани профилни банери",
|
||||||
"hydra_cloud": "Hydra Cloud",
|
"hydra_cloud": "Hydra Cloud",
|
||||||
"hydra_cloud_feature_found": "Открихте функция на Hydra Cloud!",
|
"hydra_cloud_feature_found": "Открихте функция на Hydra Cloud!",
|
||||||
"learn_more": "Научете повече",
|
"learn_more": "Научете повече",
|
||||||
"subscription_tour_title": "Hydra Cloud Абонамент",
|
"debrid_description": "Изтегляйте до 4 пъти по-бързо с Nimbus"
|
||||||
"subscribe_now": "Абонирай се сега",
|
|
||||||
"cloud_saving": "Запазване в облака",
|
|
||||||
"cloud_achievements": "Запазете постиженията си в облака",
|
|
||||||
"animated_profile_picture": "Анимирана профилна снимка",
|
|
||||||
"premium_support": "Премиум поддръжка",
|
|
||||||
"show_and_compare_achievements": "Показвайте и сравнявайте постиженията си с тези на други потребители",
|
|
||||||
"animated_profile_banner": "Анимиран профилен банер"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
"home": {
|
"home": {
|
||||||
"featured": "Empfohlen",
|
"featured": "Empfohlen",
|
||||||
"surprise_me": "Überrasche mich",
|
"surprise_me": "Überrasche mich",
|
||||||
"no_results": "Keine Ergebnisse gefunden"
|
"no_results": "Keine Ergebnisse gefunden",
|
||||||
|
"start_typing": "Tippe, um zu suchen...",
|
||||||
|
"hot": "Jetzt beliebt",
|
||||||
|
"weekly": "📅 Top-Spiele der Woche",
|
||||||
|
"achievements": "🏆 Spiele zum Meistern"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"catalogue": "Katalog",
|
"catalogue": "Katalog",
|
||||||
@@ -21,11 +25,13 @@
|
|||||||
"queued": "{{title}} (In Warteschlange)",
|
"queued": "{{title}} (In Warteschlange)",
|
||||||
"game_has_no_executable": "Spiel hat keine ausführbare Datei gewählt",
|
"game_has_no_executable": "Spiel hat keine ausführbare Datei gewählt",
|
||||||
"sign_in": "Anmelden",
|
"sign_in": "Anmelden",
|
||||||
"favorites": "Favoriten"
|
"friends": "Freunde",
|
||||||
|
"need_help": "Brauchst du Hilfe?",
|
||||||
|
"favorites": "Favoriten",
|
||||||
|
"playable_button_title": "Nur Spiele anzeigen, die du jetzt spielen kannst"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Spiele suchen",
|
"search": "Spiele suchen",
|
||||||
|
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"catalogue": "Katalog",
|
"catalogue": "Katalog",
|
||||||
"downloads": "Downloads",
|
"downloads": "Downloads",
|
||||||
@@ -39,9 +45,21 @@
|
|||||||
"downloading_metadata": "Metadaten von {{title}} werden heruntergeladen…",
|
"downloading_metadata": "Metadaten von {{title}} werden heruntergeladen…",
|
||||||
"downloading": "{{title}} wird heruntergeladen… ({{percentage}} abgeschlossen) - Abschluss {{eta}} - {{speed}}",
|
"downloading": "{{title}} wird heruntergeladen… ({{percentage}} abgeschlossen) - Abschluss {{eta}} - {{speed}}",
|
||||||
"calculating_eta": "{{title}} wird heruntergeladen… ({{percentage}} abgeschlossen) - Verbleibende Zeit wird berechnet…",
|
"calculating_eta": "{{title}} wird heruntergeladen… ({{percentage}} abgeschlossen) - Verbleibende Zeit wird berechnet…",
|
||||||
"checking_files": "Prüfe Dateien von {{title}}… ({{percentage}} abgeschlossen)"
|
"checking_files": "Prüfe Dateien von {{title}}… ({{percentage}} abgeschlossen)",
|
||||||
|
"installing_common_redist": "{{log}}…",
|
||||||
|
"installation_complete": "Installation abgeschlossen",
|
||||||
|
"installation_complete_message": "Allgemeine Redistributables erfolgreich installiert"
|
||||||
},
|
},
|
||||||
"catalogue": {
|
"catalogue": {
|
||||||
|
"search": "Filtern…",
|
||||||
|
"developers": "Entwickler",
|
||||||
|
"genres": "Genres",
|
||||||
|
"tags": "Tags",
|
||||||
|
"publishers": "Publisher",
|
||||||
|
"download_sources": "Download-Quellen",
|
||||||
|
"result_count": "{{resultCount}} Ergebnisse",
|
||||||
|
"filter_count": "{{filterCount}} verfügbar",
|
||||||
|
"clear_filters": "{{filterCount}} ausgewählte löschen",
|
||||||
"next_page": "Nächste Seite",
|
"next_page": "Nächste Seite",
|
||||||
"previous_page": "Vorherige Seite"
|
"previous_page": "Vorherige Seite"
|
||||||
},
|
},
|
||||||
@@ -101,6 +119,7 @@
|
|||||||
"open_folder": "Verzeichnis öffnen",
|
"open_folder": "Verzeichnis öffnen",
|
||||||
"open_download_location": "Heruntergeladene Dateien anzeigen",
|
"open_download_location": "Heruntergeladene Dateien anzeigen",
|
||||||
"create_shortcut": "Desktop-Verknüpfung erstellen",
|
"create_shortcut": "Desktop-Verknüpfung erstellen",
|
||||||
|
"clear": "Löschen",
|
||||||
"remove_files": "Dateien entfernen",
|
"remove_files": "Dateien entfernen",
|
||||||
"remove_from_library_title": "Bist du dir sicher?",
|
"remove_from_library_title": "Bist du dir sicher?",
|
||||||
"remove_from_library_description": "Dies wird {{game}} aus deiner Bibliothek entfernen",
|
"remove_from_library_description": "Dies wird {{game}} aus deiner Bibliothek entfernen",
|
||||||
@@ -114,8 +133,81 @@
|
|||||||
"download_in_progress": "Download erfolgt",
|
"download_in_progress": "Download erfolgt",
|
||||||
"download_paused": "Download ist pausiert",
|
"download_paused": "Download ist pausiert",
|
||||||
"last_downloaded_option": "Letzte Download-Option",
|
"last_downloaded_option": "Letzte Download-Option",
|
||||||
|
"create_steam_shortcut": "Steam-Verknüpfung erstellen",
|
||||||
"create_shortcut_success": "Verknüpfung erfolgreich erstellt",
|
"create_shortcut_success": "Verknüpfung erfolgreich erstellt",
|
||||||
"create_shortcut_error": "Fehler bei Erstellung von Verknüpfung"
|
"you_might_need_to_restart_steam": "Möglicherweise musst du Steam neu starten, um die Änderungen zu sehen",
|
||||||
|
"create_shortcut_error": "Fehler bei Erstellung von Verknüpfung",
|
||||||
|
"nsfw_content_title": "Dieses Spiel enthält unangemessene Inhalte",
|
||||||
|
"nsfw_content_description": "{{title}} enthält Inhalte, die möglicherweise nicht für alle Altersgruppen geeignet sind. Bist du sicher, dass du fortfahren möchtest?",
|
||||||
|
"allow_nsfw_content": "Fortfahren",
|
||||||
|
"refuse_nsfw_content": "Zurück",
|
||||||
|
"stats": "Statistiken",
|
||||||
|
"download_count": "Downloads",
|
||||||
|
"player_count": "Aktive Spieler",
|
||||||
|
"download_error": "Diese Download-Option ist nicht verfügbar",
|
||||||
|
"download": "Download",
|
||||||
|
"executable_path_in_use": "Ausführbare Datei wird bereits von \"{{game}}\" verwendet",
|
||||||
|
"warning": "Warnung:",
|
||||||
|
"hydra_needs_to_remain_open": "Für diesen Download muss Hydra geöffnet bleiben, bis er abgeschlossen ist. Wenn Hydra vor Abschluss geschlossen wird, verlierst du deinen Fortschritt.",
|
||||||
|
"achievements": "Erfolge",
|
||||||
|
"achievements_count": "Erfolge {{unlockedCount}}/{{achievementsCount}}",
|
||||||
|
"cloud_save": "Cloud-Speicherstand",
|
||||||
|
"cloud_save_description": "Speichere deinen Fortschritt in der Cloud und spiele auf jedem Gerät weiter",
|
||||||
|
"backups": "Sicherungen",
|
||||||
|
"install_backup": "Installieren",
|
||||||
|
"delete_backup": "Löschen",
|
||||||
|
"create_backup": "Neue Sicherung",
|
||||||
|
"last_backup_date": "Letzte Sicherung am {{date}}",
|
||||||
|
"no_backup_preview": "Keine Spielstände für diesen Titel gefunden",
|
||||||
|
"restoring_backup": "Sicherung wird wiederhergestellt ({{progress}} abgeschlossen)…",
|
||||||
|
"uploading_backup": "Sicherung wird hochgeladen…",
|
||||||
|
"no_backups": "Du hast noch keine Sicherungen für dieses Spiel erstellt",
|
||||||
|
"backup_uploaded": "Sicherung hochgeladen",
|
||||||
|
"backup_deleted": "Sicherung gelöscht",
|
||||||
|
"backup_restored": "Sicherung wiederhergestellt",
|
||||||
|
"see_all_achievements": "Alle Erfolge anzeigen",
|
||||||
|
"sign_in_to_see_achievements": "Anmelden, um Erfolge zu sehen",
|
||||||
|
"mapping_method_automatic": "Automatisch",
|
||||||
|
"mapping_method_manual": "Manuell",
|
||||||
|
"mapping_method_label": "Zuordnungsmethode",
|
||||||
|
"files_automatically_mapped": "Dateien automatisch zugeordnet",
|
||||||
|
"no_backups_created": "Keine Sicherungen für dieses Spiel erstellt",
|
||||||
|
"manage_files": "Dateien verwalten",
|
||||||
|
"loading_save_preview": "Suche nach Spielständen…",
|
||||||
|
"wine_prefix": "Wine-Präfix",
|
||||||
|
"wine_prefix_description": "Das Wine-Präfix, das zum Ausführen dieses Spiels verwendet wird",
|
||||||
|
"launch_options": "Startoptionen",
|
||||||
|
"launch_options_description": "Fortgeschrittene Benutzer können Modifikationen ihrer Startoptionen eingeben (experimentelle Funktion)",
|
||||||
|
"launch_options_placeholder": "Kein Parameter angegeben",
|
||||||
|
"no_download_option_info": "Keine Informationen verfügbar",
|
||||||
|
"backup_deletion_failed": "Sicherung konnte nicht gelöscht werden",
|
||||||
|
"max_number_of_artifacts_reached": "Maximale Anzahl von Sicherungen für dieses Spiel erreicht",
|
||||||
|
"achievements_not_sync": "Sieh, wie du deine Erfolge synchronisieren kannst",
|
||||||
|
"manage_files_description": "Verwalte, welche Dateien gesichert und wiederhergestellt werden",
|
||||||
|
"select_folder": "Ordner auswählen",
|
||||||
|
"backup_from": "Sicherung vom {{date}}",
|
||||||
|
"automatic_backup_from": "Automatische Sicherung vom {{date}}",
|
||||||
|
"enable_automatic_cloud_sync": "Automatische Cloud-Synchronisierung aktivieren",
|
||||||
|
"custom_backup_location_set": "Benutzerdefinierter Sicherungsort festgelegt",
|
||||||
|
"no_directory_selected": "Kein Verzeichnis ausgewählt",
|
||||||
|
"no_write_permission": "Kann nicht in dieses Verzeichnis herunterladen. Klicke hier, um mehr zu erfahren.",
|
||||||
|
"reset_achievements": "Erfolge zurücksetzen",
|
||||||
|
"reset_achievements_description": "Dies wird alle Erfolge für {{game}} zurücksetzen",
|
||||||
|
"reset_achievements_title": "Bist du dir sicher?",
|
||||||
|
"reset_achievements_success": "Erfolge erfolgreich zurückgesetzt",
|
||||||
|
"reset_achievements_error": "Fehler beim Zurücksetzen der Erfolge",
|
||||||
|
"download_error_gofile_quota_exceeded": "Du hast dein monatliches Gofile-Kontingent überschritten. Bitte warte, bis das Kontingent zurückgesetzt wird.",
|
||||||
|
"download_error_real_debrid_account_not_authorized": "Dein Real-Debrid-Konto ist nicht für neue Downloads autorisiert. Bitte überprüfe deine Kontoeinstellungen und versuche es erneut.",
|
||||||
|
"download_error_not_cached_on_real_debrid": "Dieser Download ist nicht auf Real-Debrid verfügbar und das Abrufen des Download-Status von Real-Debrid ist noch nicht verfügbar.",
|
||||||
|
"download_error_not_cached_on_torbox": "Dieser Download ist nicht auf TorBox verfügbar und das Abrufen des Download-Status von TorBox ist noch nicht verfügbar.",
|
||||||
|
"download_error_not_cached_on_hydra": "Dieser Download ist nicht auf Nimbus verfügbar.",
|
||||||
|
"game_removed_from_favorites": "Spiel aus Favoriten entfernt",
|
||||||
|
"game_added_to_favorites": "Spiel zu Favoriten hinzugefügt",
|
||||||
|
"automatically_extract_downloaded_files": "Heruntergeladene Dateien automatisch entpacken",
|
||||||
|
"create_start_menu_shortcut": "Startmenü-Verknüpfung erstellen",
|
||||||
|
"invalid_wine_prefix_path": "Ungültiger Wine-Präfix-Pfad",
|
||||||
|
"invalid_wine_prefix_path_description": "Der Pfad zum Wine-Präfix ist ungültig. Bitte überprüfe den Pfad und versuche es erneut.",
|
||||||
|
"missing_wine_prefix": "Wine-Präfix ist erforderlich, um eine Sicherung unter Linux zu erstellen"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Hydra aktivieren",
|
"title": "Hydra aktivieren",
|
||||||
@@ -148,7 +240,13 @@
|
|||||||
"queued": "In Warteschlange",
|
"queued": "In Warteschlange",
|
||||||
"no_downloads_title": "Welch Leere",
|
"no_downloads_title": "Welch Leere",
|
||||||
"no_downloads_description": "Du hast mit Hydra noch nichts heruntergeladen, aber es ist nie zu spät anzufangen.",
|
"no_downloads_description": "Du hast mit Hydra noch nichts heruntergeladen, aber es ist nie zu spät anzufangen.",
|
||||||
"checking_files": "Dateien werden überprüft…"
|
"checking_files": "Dateien werden überprüft…",
|
||||||
|
"seeding": "Seeding",
|
||||||
|
"stop_seeding": "Seeding stoppen",
|
||||||
|
"resume_seeding": "Seeding fortsetzen",
|
||||||
|
"options": "Verwalten",
|
||||||
|
"extract": "Dateien entpacken",
|
||||||
|
"extracting": "Dateien werden entpackt…"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"downloads_path": "Download-Pfad",
|
"downloads_path": "Download-Pfad",
|
||||||
@@ -185,11 +283,11 @@
|
|||||||
"download_source_errored": "Fehlgeschlagen",
|
"download_source_errored": "Fehlgeschlagen",
|
||||||
"sync_download_sources": "Quellen synchronisieren",
|
"sync_download_sources": "Quellen synchronisieren",
|
||||||
"removed_download_source": "Download-Quelle entfernt",
|
"removed_download_source": "Download-Quelle entfernt",
|
||||||
|
"removed_download_sources": "Download-Quellen entfernt",
|
||||||
"cancel_button_confirmation_delete_all_sources": "Nein",
|
"cancel_button_confirmation_delete_all_sources": "Nein",
|
||||||
"confirm_button_confirmation_delete_all_sources": "Ja, alles löschen",
|
"confirm_button_confirmation_delete_all_sources": "Ja, alles löschen",
|
||||||
"description_confirmation_delete_all_sources": "Du löschen alle Downloadquellen",
|
"title_confirmation_delete_all_sources": "Möchtest du alle Downloadquellen löschen",
|
||||||
"title_confirmation_delete_all_sources": "Löschen du alle Downloadquellen",
|
"description_confirmation_delete_all_sources": "Möchtest du alle Downloadquellen löschen",
|
||||||
"removed_download_sources": "Download-Quellen entfernt",
|
|
||||||
"button_delete_all_sources": "Entfernen Sie alle Downloadquellen",
|
"button_delete_all_sources": "Entfernen Sie alle Downloadquellen",
|
||||||
"added_download_source": "Download-Quelle hinzugefügt",
|
"added_download_source": "Download-Quelle hinzugefügt",
|
||||||
"download_sources_synced": "Alle Download-Quellen sind synchronisiert",
|
"download_sources_synced": "Alle Download-Quellen sind synchronisiert",
|
||||||
@@ -197,7 +295,95 @@
|
|||||||
"found_download_option_zero": "Keine Download-Option gefunden",
|
"found_download_option_zero": "Keine Download-Option gefunden",
|
||||||
"found_download_option_one": "{{countFormatted}} Download-Option gefunden",
|
"found_download_option_one": "{{countFormatted}} Download-Option gefunden",
|
||||||
"found_download_option_other": "{{countFormatted}} Download-Optionen gefunden",
|
"found_download_option_other": "{{countFormatted}} Download-Optionen gefunden",
|
||||||
"import": "Importieren"
|
"import": "Importieren",
|
||||||
|
"public": "Öffentlich",
|
||||||
|
"private": "Privat",
|
||||||
|
"friends_only": "Nur Freunde",
|
||||||
|
"privacy": "Privatsphäre",
|
||||||
|
"profile_visibility": "Profilsichtbarkeit",
|
||||||
|
"profile_visibility_description": "Wähle, wer dein Profil und deine Bibliothek sehen kann",
|
||||||
|
"required_field": "Dieses Feld ist erforderlich",
|
||||||
|
"source_already_exists": "Diese Quelle wurde bereits hinzugefügt",
|
||||||
|
"must_be_valid_url": "Die Quelle muss eine gültige URL sein",
|
||||||
|
"blocked_users": "Blockierte Benutzer",
|
||||||
|
"user_unblocked": "Benutzer wurde freigegeben",
|
||||||
|
"enable_achievement_notifications": "Wenn ein Erfolg freigeschaltet wird",
|
||||||
|
"launch_minimized": "Hydra minimiert starten",
|
||||||
|
"disable_nsfw_alert": "NSFW-Warnung deaktivieren",
|
||||||
|
"seed_after_download_complete": "Nach Download-Abschluss seeden",
|
||||||
|
"show_hidden_achievement_description": "Versteckte Erfolgsbeschreibungen vor dem Freischalten anzeigen",
|
||||||
|
"account": "Konto",
|
||||||
|
"no_users_blocked": "Du hast keine blockierten Benutzer",
|
||||||
|
"subscription_active_until": "Deine Hydra Cloud ist aktiv bis {{date}}",
|
||||||
|
"manage_subscription": "Abonnement verwalten",
|
||||||
|
"update_email": "E-Mail aktualisieren",
|
||||||
|
"update_password": "Passwort aktualisieren",
|
||||||
|
"current_email": "Aktuelle E-Mail:",
|
||||||
|
"no_email_account": "Du hast noch keine E-Mail festgelegt",
|
||||||
|
"account_data_updated_successfully": "Kontodaten erfolgreich aktualisiert",
|
||||||
|
"renew_subscription": "Hydra Cloud erneuern",
|
||||||
|
"subscription_expired_at": "Dein Abonnement ist am {{date}} abgelaufen",
|
||||||
|
"no_subscription": "Genieße Hydra auf die bestmögliche Weise",
|
||||||
|
"become_subscriber": "Werde Hydra Cloud",
|
||||||
|
"subscription_renew_cancelled": "Automatische Verlängerung ist deaktiviert",
|
||||||
|
"subscription_renews_on": "Dein Abonnement verlängert sich am {{date}}",
|
||||||
|
"bill_sent_until": "Deine nächste Rechnung wird bis zu diesem Tag gesendet",
|
||||||
|
"no_themes": "Scheint, als hättest du noch keine Themes, aber keine Sorge, klicke hier, um dein erstes Meisterwerk zu erstellen.",
|
||||||
|
"editor_tab_code": "Code",
|
||||||
|
"editor_tab_info": "Info",
|
||||||
|
"editor_tab_save": "Speichern",
|
||||||
|
"web_store": "Web Store",
|
||||||
|
"clear_themes": "Löschen",
|
||||||
|
"create_theme": "Erstellen",
|
||||||
|
"create_theme_modal_title": "Benutzerdefiniertes Theme erstellen",
|
||||||
|
"create_theme_modal_description": "Erstelle ein neues Theme, um das Aussehen von Hydra anzupassen",
|
||||||
|
"theme_name": "Name",
|
||||||
|
"insert_theme_name": "Theme-Namen eingeben",
|
||||||
|
"set_theme": "Theme festlegen",
|
||||||
|
"unset_theme": "Theme entfernen",
|
||||||
|
"delete_theme": "Theme löschen",
|
||||||
|
"edit_theme": "Theme bearbeiten",
|
||||||
|
"delete_all_themes": "Alle Themes löschen",
|
||||||
|
"delete_all_themes_description": "Dies wird alle deine benutzerdefinierten Themes löschen",
|
||||||
|
"delete_theme_description": "Dies wird das Theme {{theme}} löschen",
|
||||||
|
"cancel": "Abbrechen",
|
||||||
|
"appearance": "Erscheinungsbild",
|
||||||
|
"enable_torbox": "TorBox aktivieren",
|
||||||
|
"torbox_description": "TorBox ist dein Premium-Seedbox-Service, der sogar mit den besten Servern auf dem Markt konkurriert.",
|
||||||
|
"torbox_account_linked": "TorBox-Konto verknüpft",
|
||||||
|
"create_real_debrid_account": "Klicke hier, wenn du noch kein Real-Debrid-Konto hast",
|
||||||
|
"create_torbox_account": "Klicke hier, wenn du noch kein TorBox-Konto hast",
|
||||||
|
"real_debrid_account_linked": "Real-Debrid-Konto verknüpft",
|
||||||
|
"name_min_length": "Theme-Name muss mindestens 3 Zeichen lang sein",
|
||||||
|
"import_theme": "Theme importieren",
|
||||||
|
"import_theme_description": "Du wirst {{theme}} aus dem Theme Store importieren",
|
||||||
|
"error_importing_theme": "Fehler beim Importieren des Themes",
|
||||||
|
"theme_imported": "Theme erfolgreich importiert",
|
||||||
|
"enable_friend_request_notifications": "Wenn eine Freundschaftsanfrage empfangen wird",
|
||||||
|
"enable_auto_install": "Updates automatisch herunterladen",
|
||||||
|
"common_redist": "Allgemeine Redistributables",
|
||||||
|
"common_redist_description": "Allgemeine Redistributables sind erforderlich, um einige Spiele auszuführen. Es wird empfohlen, sie zu installieren, um Probleme zu vermeiden.",
|
||||||
|
"install_common_redist": "Installieren",
|
||||||
|
"installing_common_redist": "Installiere…",
|
||||||
|
"show_download_speed_in_megabytes": "Download-Geschwindigkeit in Megabyte pro Sekunde anzeigen",
|
||||||
|
"extract_files_by_default": "Dateien nach dem Download standardmäßig entpacken",
|
||||||
|
"achievement_custom_notification_position": "Position der benutzerdefinierten Erfolgsbenachrichtigung",
|
||||||
|
"top-left": "Oben links",
|
||||||
|
"top-center": "Oben mittig",
|
||||||
|
"top-right": "Oben rechts",
|
||||||
|
"bottom-left": "Unten links",
|
||||||
|
"bottom-center": "Unten mittig",
|
||||||
|
"bottom-right": "Unten rechts",
|
||||||
|
"enable_achievement_custom_notifications": "Benutzerdefinierte Erfolgsbenachrichtigungen aktivieren",
|
||||||
|
"alignment": "Ausrichtung",
|
||||||
|
"variation": "Variation",
|
||||||
|
"default": "Standard",
|
||||||
|
"rare": "Selten",
|
||||||
|
"platinum": "Platin",
|
||||||
|
"hidden": "Versteckt",
|
||||||
|
"test_notification": "Testbenachrichtigung",
|
||||||
|
"notification_preview": "Vorschau der Erfolgsbenachrichtigung",
|
||||||
|
"enable_friend_start_game_notifications": "Wenn ein Freund ein Spiel startet"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download abgeschlossen",
|
"download_complete": "Download abgeschlossen",
|
||||||
@@ -206,13 +392,24 @@
|
|||||||
"repack_count_one": "{{count}} Repack hinzugefügt",
|
"repack_count_one": "{{count}} Repack hinzugefügt",
|
||||||
"repack_count_other": "{{count}} Repacks hinzugefügt",
|
"repack_count_other": "{{count}} Repacks hinzugefügt",
|
||||||
"new_update_available": "Version {{version}} verfügbar",
|
"new_update_available": "Version {{version}} verfügbar",
|
||||||
"restart_to_install_update": "Um das Update zu installieren, starte Hydra neu"
|
"restart_to_install_update": "Um das Update zu installieren, starte Hydra neu",
|
||||||
|
"notification_achievement_unlocked_title": "Erfolg für {{game}} freigeschaltet",
|
||||||
|
"notification_achievement_unlocked_body": "{{achievement}} und {{count}} weitere wurden freigeschaltet",
|
||||||
|
"new_friend_request_description": "{{displayName}} hat dir eine Freundschaftsanfrage gesendet",
|
||||||
|
"new_friend_request_title": "Neue Freundschaftsanfrage",
|
||||||
|
"extraction_complete": "Entpacken abgeschlossen",
|
||||||
|
"game_extracted": "{{title}} erfolgreich entpackt",
|
||||||
|
"friend_started_playing_game": "{{displayName}} hat begonnen, ein Spiel zu spielen",
|
||||||
|
"test_achievement_notification_title": "Dies ist eine Testbenachrichtigung",
|
||||||
|
"test_achievement_notification_description": "Ziemlich cool, oder?"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Hydra öffnen",
|
"open": "Hydra öffnen",
|
||||||
"quit": "Schließen"
|
"quit": "Schließen"
|
||||||
},
|
},
|
||||||
"game_card": {
|
"game_card": {
|
||||||
|
"available_one": "Verfügbar",
|
||||||
|
"available_other": "Verfügbar",
|
||||||
"no_downloads": "Keine Downloads verfügbar"
|
"no_downloads": "Keine Downloads verfügbar"
|
||||||
},
|
},
|
||||||
"binary_not_found_modal": {
|
"binary_not_found_modal": {
|
||||||
@@ -274,6 +471,66 @@
|
|||||||
"no_pending_invites": "Du hast keine ausstehenden Einladungen",
|
"no_pending_invites": "Du hast keine ausstehenden Einladungen",
|
||||||
"no_blocked_users": "Du hast keine blockierten Nutzer",
|
"no_blocked_users": "Du hast keine blockierten Nutzer",
|
||||||
"friend_code_copied": "Freundescode kopiert",
|
"friend_code_copied": "Freundescode kopiert",
|
||||||
"undo_friendship_modal_text": "Freundschaft mit {{displayName}} wird dadurch gekündigt"
|
"undo_friendship_modal_text": "Freundschaft mit {{displayName}} wird dadurch gekündigt",
|
||||||
|
"privacy_hint": "Um anzupassen, wer dies sehen kann, gehe zu den <0>Einstellungen</0>",
|
||||||
|
"locked_profile": "Dieses Profil ist privat",
|
||||||
|
"image_process_failure": "Fehler bei der Bildverarbeitung",
|
||||||
|
"required_field": "Dieses Feld ist erforderlich",
|
||||||
|
"displayname_min_length": "Anzeigename muss mindestens 3 Zeichen lang sein",
|
||||||
|
"displayname_max_length": "Anzeigename darf maximal 50 Zeichen lang sein",
|
||||||
|
"report_profile": "Dieses Profil melden",
|
||||||
|
"report_reason": "Warum meldest du dieses Profil?",
|
||||||
|
"report_description": "Zusätzliche Informationen",
|
||||||
|
"report_description_placeholder": "Zusätzliche Informationen",
|
||||||
|
"report": "Melden",
|
||||||
|
"report_reason_hate": "Hassrede",
|
||||||
|
"report_reason_sexual_content": "Sexuelle Inhalte",
|
||||||
|
"report_reason_violence": "Gewalt",
|
||||||
|
"report_reason_spam": "Spam",
|
||||||
|
"report_reason_other": "Sonstiges",
|
||||||
|
"profile_reported": "Profil gemeldet",
|
||||||
|
"your_friend_code": "Dein Freundescode:",
|
||||||
|
"upload_banner": "Banner hochladen",
|
||||||
|
"uploading_banner": "Banner wird hochgeladen…",
|
||||||
|
"background_image_updated": "Hintergrundbild aktualisiert",
|
||||||
|
"stats": "Statistiken",
|
||||||
|
"achievements": "Erfolge",
|
||||||
|
"games": "Spiele",
|
||||||
|
"top_percentile": "Top {{percentile}}%",
|
||||||
|
"ranking_updated_weekly": "Rangliste wird wöchentlich aktualisiert",
|
||||||
|
"playing": "Spielt {{game}}",
|
||||||
|
"achievements_unlocked": "Erfolge freigeschaltet",
|
||||||
|
"earned_points": "Verdiente Punkte",
|
||||||
|
"show_achievements_on_profile": "Zeige deine Erfolge auf deinem Profil",
|
||||||
|
"show_points_on_profile": "Zeige deine verdienten Punkte auf deinem Profil"
|
||||||
|
},
|
||||||
|
"achievement": {
|
||||||
|
"achievement_unlocked": "Erfolg freigeschaltet",
|
||||||
|
"user_achievements": "{{displayName}}'s Erfolge",
|
||||||
|
"your_achievements": "Deine Erfolge",
|
||||||
|
"unlocked_at": "Freigeschaltet am: {{date}}",
|
||||||
|
"subscription_needed": "Ein Hydra Cloud-Abonnement ist erforderlich, um diesen Inhalt zu sehen",
|
||||||
|
"new_achievements_unlocked": "{{achievementCount}} neue Erfolge von {{gameCount}} Spielen freigeschaltet",
|
||||||
|
"achievement_progress": "{{unlockedCount}}/{{totalCount}} Erfolge",
|
||||||
|
"achievements_unlocked_for_game": "{{achievementCount}} neue Erfolge für {{gameTitle}} freigeschaltet",
|
||||||
|
"hidden_achievement_tooltip": "Dies ist ein versteckter Erfolg",
|
||||||
|
"achievement_earn_points": "Verdiene {{points}} Punkte mit diesem Erfolg",
|
||||||
|
"earned_points": "Verdiente Punkte:",
|
||||||
|
"available_points": "Verfügbare Punkte:",
|
||||||
|
"how_to_earn_achievements_points": "Wie verdient man Erfolgspunkte?"
|
||||||
|
},
|
||||||
|
"hydra_cloud": {
|
||||||
|
"subscription_tour_title": "Hydra Cloud-Abonnement",
|
||||||
|
"subscribe_now": "Jetzt abonnieren",
|
||||||
|
"cloud_saving": "Cloud-Speicherung",
|
||||||
|
"cloud_achievements": "Speichere deine Erfolge in der Cloud",
|
||||||
|
"animated_profile_picture": "Animierte Profilbilder",
|
||||||
|
"premium_support": "Premium-Support",
|
||||||
|
"show_and_compare_achievements": "Zeige und vergleiche deine Erfolge mit anderen Nutzern",
|
||||||
|
"animated_profile_banner": "Animiertes Profilbanner",
|
||||||
|
"hydra_cloud": "Hydra Cloud",
|
||||||
|
"hydra_cloud_feature_found": "Du hast gerade eine Hydra Cloud-Funktion entdeckt!",
|
||||||
|
"learn_more": "Mehr erfahren",
|
||||||
|
"debrid_description": "Lade bis zu 4x schneller mit Nimbus herunter"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"sign_in": "Sign in",
|
"sign_in": "Sign in",
|
||||||
"friends": "Friends",
|
"friends": "Friends",
|
||||||
"need_help": "Need help?",
|
"need_help": "Need help?",
|
||||||
"favorites": "Favorites"
|
"favorites": "Favorites",
|
||||||
|
"playable_button_title": "Show only games you can play now"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Search games",
|
"search": "Search games",
|
||||||
@@ -130,9 +131,11 @@
|
|||||||
"download_in_progress": "Download in progress",
|
"download_in_progress": "Download in progress",
|
||||||
"download_paused": "Download paused",
|
"download_paused": "Download paused",
|
||||||
"last_downloaded_option": "Last downloaded option",
|
"last_downloaded_option": "Last downloaded option",
|
||||||
|
"create_steam_shortcut": "Create Steam shortcut",
|
||||||
"create_shortcut_success": "Shortcut created successfully",
|
"create_shortcut_success": "Shortcut created successfully",
|
||||||
|
"you_might_need_to_restart_steam": "You might need to restart Steam to see the changes",
|
||||||
"create_shortcut_error": "Error creating shortcut",
|
"create_shortcut_error": "Error creating shortcut",
|
||||||
"nsfw_content_title": "This game contains innapropriate content",
|
"nsfw_content_title": "This game contains inappropriate content",
|
||||||
"nsfw_content_description": "{{title}} contains content that may not be suitable for all ages. Are you sure you want to continue?",
|
"nsfw_content_description": "{{title}} contains content that may not be suitable for all ages. Are you sure you want to continue?",
|
||||||
"allow_nsfw_content": "Continue",
|
"allow_nsfw_content": "Continue",
|
||||||
"refuse_nsfw_content": "Go back",
|
"refuse_nsfw_content": "Go back",
|
||||||
@@ -199,7 +202,24 @@
|
|||||||
"game_removed_from_favorites": "Game removed from favorites",
|
"game_removed_from_favorites": "Game removed from favorites",
|
||||||
"game_added_to_favorites": "Game added to favorites",
|
"game_added_to_favorites": "Game added to favorites",
|
||||||
"automatically_extract_downloaded_files": "Automatically extract downloaded files",
|
"automatically_extract_downloaded_files": "Automatically extract downloaded files",
|
||||||
"create_start_menu_shortcut": "Create Start Menu shortcut"
|
"create_start_menu_shortcut": "Create Start Menu shortcut",
|
||||||
|
"invalid_wine_prefix_path": "Invalid Wine prefix path",
|
||||||
|
"invalid_wine_prefix_path_description": "The path to the Wine prefix is invalid. Please check the path and try again.",
|
||||||
|
"missing_wine_prefix": "Wine prefix is required to create a backup on Linux",
|
||||||
|
"artifact_renamed": "Backup renamed successfully",
|
||||||
|
"rename_artifact": "Rename Backup",
|
||||||
|
"rename_artifact_description": "Rename the backup to a more descriptive name",
|
||||||
|
"artifact_name_label": "Backup name",
|
||||||
|
"artifact_name_placeholder": "Enter a name for the backup",
|
||||||
|
"save_changes": "Save changes",
|
||||||
|
"required_field": "This field is required",
|
||||||
|
"max_length_field": "This field must be less than {{length}} characters",
|
||||||
|
"freeze_backup": "Pin it so it's not overwritten by automatic backups",
|
||||||
|
"unfreeze_backup": "Unpin it",
|
||||||
|
"backup_frozen": "Backup pinned",
|
||||||
|
"backup_unfrozen": "Backup unpinned",
|
||||||
|
"backup_freeze_failed": "Failed to freeze backup",
|
||||||
|
"backup_freeze_failed_description": "You must leave at least one free slot for automatic backups"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Activate Hydra",
|
"title": "Activate Hydra",
|
||||||
@@ -358,7 +378,24 @@
|
|||||||
"install_common_redist": "Install",
|
"install_common_redist": "Install",
|
||||||
"installing_common_redist": "Installing…",
|
"installing_common_redist": "Installing…",
|
||||||
"show_download_speed_in_megabytes": "Show download speed in megabytes per second",
|
"show_download_speed_in_megabytes": "Show download speed in megabytes per second",
|
||||||
"extract_files_by_default": "Extract files by default after download"
|
"extract_files_by_default": "Extract files by default after download",
|
||||||
|
"achievement_custom_notification_position": "Achievement custom notification position",
|
||||||
|
"top-left": "Top left",
|
||||||
|
"top-center": "Top center",
|
||||||
|
"top-right": "Top right",
|
||||||
|
"bottom-left": "Bottom left",
|
||||||
|
"bottom-center": "Bottom center",
|
||||||
|
"bottom-right": "Bottom right",
|
||||||
|
"enable_achievement_custom_notifications": "Enable achievement custom notifications",
|
||||||
|
"alignment": "Alignment",
|
||||||
|
"variation": "Variation",
|
||||||
|
"default": "Default",
|
||||||
|
"rare": "Rare",
|
||||||
|
"platinum": "Platinum",
|
||||||
|
"hidden": "Hidden",
|
||||||
|
"test_notification": "Test notification",
|
||||||
|
"notification_preview": "Achievement Notification Preview",
|
||||||
|
"enable_friend_start_game_notifications": "When a friend starts playing a game"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download complete",
|
"download_complete": "Download complete",
|
||||||
@@ -374,7 +411,9 @@
|
|||||||
"new_friend_request_title": "New friend request",
|
"new_friend_request_title": "New friend request",
|
||||||
"extraction_complete": "Extraction complete",
|
"extraction_complete": "Extraction complete",
|
||||||
"game_extracted": "{{title}} extracted successfully",
|
"game_extracted": "{{title}} extracted successfully",
|
||||||
"friend_started_playing_game": "{{displayName}} started playing a game"
|
"friend_started_playing_game": "{{displayName}} started playing a game",
|
||||||
|
"test_achievement_notification_title": "This is a test notification",
|
||||||
|
"test_achievement_notification_description": "Pretty cool, huh?"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Open Hydra",
|
"open": "Open Hydra",
|
||||||
@@ -475,7 +514,9 @@
|
|||||||
"achievements_unlocked": "Achievements Unlocked",
|
"achievements_unlocked": "Achievements Unlocked",
|
||||||
"earned_points": "Earned points",
|
"earned_points": "Earned points",
|
||||||
"show_achievements_on_profile": "Show your achievements on your profile",
|
"show_achievements_on_profile": "Show your achievements on your profile",
|
||||||
"show_points_on_profile": "Show your earned points on your profile"
|
"show_points_on_profile": "Show your earned points on your profile",
|
||||||
|
"error_adding_friend": "Could not send friend request. Please check friend code",
|
||||||
|
"friend_code_length_error": "Friend code must have 8 characters"
|
||||||
},
|
},
|
||||||
"achievement": {
|
"achievement": {
|
||||||
"achievement_unlocked": "Achievement unlocked",
|
"achievement_unlocked": "Achievement unlocked",
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"sign_in": "Iniciar sesión",
|
"sign_in": "Iniciar sesión",
|
||||||
"friends": "Amigos",
|
"friends": "Amigos",
|
||||||
"need_help": "¿Necesitas ayuda?",
|
"need_help": "¿Necesitas ayuda?",
|
||||||
"favorites": "Favoritos"
|
"favorites": "Favoritos",
|
||||||
|
"playable_button_title": "Mostrar solo juegos que puedes jugar ahora"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Buscar juegos",
|
"search": "Buscar juegos",
|
||||||
@@ -130,15 +131,17 @@
|
|||||||
"danger_zone_section_description": "Eliminar este juego de tu librería o los archivos descargados por Hydra (Esto solo eliminará los archivos de instalación y no el juego instalado)",
|
"danger_zone_section_description": "Eliminar este juego de tu librería o los archivos descargados por Hydra (Esto solo eliminará los archivos de instalación y no el juego instalado)",
|
||||||
"download_in_progress": "Descarga en progreso",
|
"download_in_progress": "Descarga en progreso",
|
||||||
"download_paused": "Descarga pausada",
|
"download_paused": "Descarga pausada",
|
||||||
|
"create_steam_shortcut": "Crear atajo de Steam",
|
||||||
"last_downloaded_option": "Última opción descargada",
|
"last_downloaded_option": "Última opción descargada",
|
||||||
"create_shortcut_success": "Atajo creado con éxito",
|
"create_shortcut_success": "Atajo creado con éxito",
|
||||||
|
"you_might_need_to_restart_steam": "Es posible que necesites reiniciar Steam para ver los cambios",
|
||||||
"create_shortcut_error": "Error al crear un atajo",
|
"create_shortcut_error": "Error al crear un atajo",
|
||||||
"nsfw_content_title": "Este juego contiene contenido inapropiado.",
|
"nsfw_content_title": "Este juego contiene contenido inapropiado.",
|
||||||
"nsfw_content_description": "{{title}} puede ser no adecuado para todas las edades por su contenido. \n¿Deseas continuar de igual forma?",
|
"nsfw_content_description": "{{title}} puede ser no adecuado para todas las edades por su contenido. \n¿Deseas continuar de igual forma?",
|
||||||
"allow_nsfw_content": "Continuar",
|
"allow_nsfw_content": "Continuar",
|
||||||
"refuse_nsfw_content": "No, gracias",
|
"refuse_nsfw_content": "No, gracias",
|
||||||
"stats": "Estadísticas",
|
"stats": "Estadísticas",
|
||||||
"download_count": "Downloads",
|
"download_count": "Descargas",
|
||||||
"player_count": "Jugadores activos",
|
"player_count": "Jugadores activos",
|
||||||
"download_error": "Esta opción de descarga no está disponible.",
|
"download_error": "Esta opción de descarga no está disponible.",
|
||||||
"download": "Descargar",
|
"download": "Descargar",
|
||||||
@@ -196,9 +199,12 @@
|
|||||||
"download_error_gofile_quota_exceeded": "Has excedido la cuota mensual de Gofile. Por favor espera a que se reinicie la cuota.",
|
"download_error_gofile_quota_exceeded": "Has excedido la cuota mensual de Gofile. Por favor espera a que se reinicie la cuota.",
|
||||||
"download_error_real_debrid_account_not_authorized": "Tu cuenta de Real-Debrid no está autorizada para nueva descargas. Por favor, revisa los ajustes de tu cuenta e intenta de nuevo.",
|
"download_error_real_debrid_account_not_authorized": "Tu cuenta de Real-Debrid no está autorizada para nueva descargas. Por favor, revisa los ajustes de tu cuenta e intenta de nuevo.",
|
||||||
"download_error_not_cached_on_real_debrid": "Esta descarga no está disponible en Real-Debrid y el estado de descarga del sondeo de Real-Debrid aún no está disponible.",
|
"download_error_not_cached_on_real_debrid": "Esta descarga no está disponible en Real-Debrid y el estado de descarga del sondeo de Real-Debrid aún no está disponible.",
|
||||||
"download_error_not_cached_on_torbox": "Esta descarga no está disponible en TorBox y el estado de descarga del sondeo aún no está disponible.",
|
"download_error_not_cached_on_torbox": "Esta descarga no está disponible en TorBox y aún no se puede verificar el estado de la descarga.",
|
||||||
"game_added_to_favorites": "Juego añadido a favoritos",
|
"game_added_to_favorites": "Juego añadido a favoritos",
|
||||||
"game_removed_from_favorites": "Juego removido de favoritos"
|
"game_removed_from_favorites": "Juego removido de favoritos",
|
||||||
|
"invalid_wine_prefix_path": "Ruta de prefijo de Wine inválida",
|
||||||
|
"invalid_wine_prefix_path_description": "La ruta del prefijo Wine es inválida. Por favor, checa la ruta y vuelve a intentarlo.",
|
||||||
|
"missing_wine_prefix": "Se requiere el prefijo Wine para crear una copia de seguridad en Linux"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Activar Hydra",
|
"title": "Activar Hydra",
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"sign_in": "Se connecter",
|
"sign_in": "Se connecter",
|
||||||
"friends": "Amis",
|
"friends": "Amis",
|
||||||
"need_help": "Besoin d'aide ?",
|
"need_help": "Besoin d'aide ?",
|
||||||
"favorites": "Favoris"
|
"favorites": "Favoris",
|
||||||
|
"playable_button_title": "Afficher uniquement les jeux que vous pouvez jouer maintenant"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Rechercher",
|
"search": "Rechercher",
|
||||||
@@ -356,7 +357,17 @@
|
|||||||
"common_redist_description": "Certains jeux nécessitent les redistribuables communs. L'installation est recommandée.",
|
"common_redist_description": "Certains jeux nécessitent les redistribuables communs. L'installation est recommandée.",
|
||||||
"install_common_redist": "Installer",
|
"install_common_redist": "Installer",
|
||||||
"installing_common_redist": "Installation…",
|
"installing_common_redist": "Installation…",
|
||||||
"show_download_speed_in_megabytes": "Afficher la vitesse de téléchargement en mégaoctets par seconde"
|
"show_download_speed_in_megabytes": "Afficher la vitesse de téléchargement en mégaoctets par seconde",
|
||||||
|
"extract_files_by_default": "Extraire les fichiers par défaut après le téléchargement",
|
||||||
|
"enable_achievement_custom_notifications": "Activer les notifications personnalisées de succès",
|
||||||
|
"achievement_custom_notification_position": "Position de la notification personnalisée de succès",
|
||||||
|
"top-left": "En haut à gauche",
|
||||||
|
"top-center": "En haut au centre",
|
||||||
|
"top-right": "En haut à droite",
|
||||||
|
"bottom-left": "En bas à gauche",
|
||||||
|
"bottom-center": "En bas au centre",
|
||||||
|
"bottom-right": "En bas à droite",
|
||||||
|
"enable_friend_start_game_notifications": "Quand un ami commence à jouer à un jeu"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Téléchargement terminé",
|
"download_complete": "Téléchargement terminé",
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import nb from "./nb/translation.json";
|
|||||||
import et from "./et/translation.json";
|
import et from "./et/translation.json";
|
||||||
import bg from "./bg/translation.json";
|
import bg from "./bg/translation.json";
|
||||||
import uz from "./uz/translation.json";
|
import uz from "./uz/translation.json";
|
||||||
|
import sv from "./sv/translation.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
"pt-BR": ptBR,
|
"pt-BR": ptBR,
|
||||||
@@ -56,4 +57,5 @@ export default {
|
|||||||
nb,
|
nb,
|
||||||
et,
|
et,
|
||||||
uz,
|
uz,
|
||||||
|
sv,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
"downloading": "{{title}} ({{percentage}} - Download…)",
|
"downloading": "{{title}} ({{percentage}} - Download…)",
|
||||||
"filter": "Filtra libreria",
|
"filter": "Filtra libreria",
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"favorites": "Preferiti"
|
"favorites": "Preferiti",
|
||||||
|
"playable_button_title": "Mostra solo i giochi che puoi giocare ora"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Cerca",
|
"search": "Cerca",
|
||||||
|
|||||||
@@ -13,9 +13,10 @@
|
|||||||
"downloading_metadata": "{{title}} (Pobieranie metadata…)",
|
"downloading_metadata": "{{title}} (Pobieranie metadata…)",
|
||||||
"paused": "{{title}} (Zatrzymano)",
|
"paused": "{{title}} (Zatrzymano)",
|
||||||
"downloading": "{{title}} ({{percentage}} - Pobieranie…)",
|
"downloading": "{{title}} ({{percentage}} - Pobieranie…)",
|
||||||
"filter": "Filtruj biblioteke",
|
"filter": "Filtruj bibliotekę",
|
||||||
"home": "Główna",
|
"home": "Główna",
|
||||||
"favorites": "Ulubione"
|
"favorites": "Ulubione",
|
||||||
|
"playable_button_title": "Pokaż tylko gry, w które możesz grać teraz"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Szukaj",
|
"search": "Szukaj",
|
||||||
|
|||||||
@@ -118,7 +118,9 @@
|
|||||||
"download_in_progress": "Download em andamento",
|
"download_in_progress": "Download em andamento",
|
||||||
"download_paused": "Download pausado",
|
"download_paused": "Download pausado",
|
||||||
"last_downloaded_option": "Última opção baixada",
|
"last_downloaded_option": "Última opção baixada",
|
||||||
|
"create_steam_shortcut": "Criar atalho na Steam",
|
||||||
"create_shortcut_success": "Atalho criado com sucesso",
|
"create_shortcut_success": "Atalho criado com sucesso",
|
||||||
|
"you_might_need_to_restart_steam": "Você pode precisar reiniciar a Steam para ver as alterações",
|
||||||
"create_shortcut_error": "Erro ao criar atalho",
|
"create_shortcut_error": "Erro ao criar atalho",
|
||||||
"nsfw_content_title": "Este jogo contém conteúdo inapropriado",
|
"nsfw_content_title": "Este jogo contém conteúdo inapropriado",
|
||||||
"nsfw_content_description": "{{title}} contém conteúdo que pode não ser apropriado para todas as idades. Você deseja continuar?",
|
"nsfw_content_description": "{{title}} contém conteúdo que pode não ser apropriado para todas as idades. Você deseja continuar?",
|
||||||
@@ -188,7 +190,23 @@
|
|||||||
"game_removed_from_favorites": "Jogo removido dos favoritos",
|
"game_removed_from_favorites": "Jogo removido dos favoritos",
|
||||||
"game_added_to_favorites": "Jogo adicionado aos favoritos",
|
"game_added_to_favorites": "Jogo adicionado aos favoritos",
|
||||||
"automatically_extract_downloaded_files": "Extrair automaticamente os arquivos baixados",
|
"automatically_extract_downloaded_files": "Extrair automaticamente os arquivos baixados",
|
||||||
"create_start_menu_shortcut": "Criar atalho no Menu Iniciar"
|
"create_start_menu_shortcut": "Criar atalho no Menu Iniciar",
|
||||||
|
"invalid_wine_prefix_path": "Caminho do prefixo Wine inválido",
|
||||||
|
"invalid_wine_prefix_path_description": "O caminho para o prefixo Wine é inválido. Por favor, verifique o caminho e tente novamente.",
|
||||||
|
"artifact_renamed": "Backup renomeado com sucesso",
|
||||||
|
"rename_artifact": "Renomear Backup",
|
||||||
|
"rename_artifact_description": "Renomeie o backup para um nome mais descritivo",
|
||||||
|
"artifact_name_label": "Nome do backup",
|
||||||
|
"artifact_name_placeholder": "Insira um nome para o backup",
|
||||||
|
"save_changes": "Salvar mudanças",
|
||||||
|
"required_field": "Este campo é obrigatório",
|
||||||
|
"max_length_field": "Este campo deve ter menos de {{length}} caracteres",
|
||||||
|
"freeze_backup": "Fixar para não ser apagado por backups automáticos",
|
||||||
|
"unfreeze_backup": "Remover dos fixados",
|
||||||
|
"backup_frozen": "Backup fixado",
|
||||||
|
"backup_unfrozen": "Backup removido dos fixados",
|
||||||
|
"backup_freeze_failed": "Falha ao fixar backup",
|
||||||
|
"backup_freeze_failed_description": "Você deve deixar pelo menos um espaço livre para backups automáticos"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Ativação",
|
"title": "Ativação",
|
||||||
@@ -345,7 +363,24 @@
|
|||||||
"install_common_redist": "Instalar",
|
"install_common_redist": "Instalar",
|
||||||
"installing_common_redist": "Instalando…",
|
"installing_common_redist": "Instalando…",
|
||||||
"show_download_speed_in_megabytes": "Exibir taxas de download em megabytes por segundo",
|
"show_download_speed_in_megabytes": "Exibir taxas de download em megabytes por segundo",
|
||||||
"extract_files_by_default": "Extrair arquivos automaticamente após o download"
|
"extract_files_by_default": "Extrair arquivos automaticamente após o download",
|
||||||
|
"enable_achievement_custom_notifications": "Habilitar notificações customizadas de conquistas",
|
||||||
|
"top-left": "Superior esquerdo",
|
||||||
|
"top-center": "Superior central",
|
||||||
|
"top-right": "Superior direito",
|
||||||
|
"bottom-left": "Inferior esquerdo",
|
||||||
|
"bottom-right": "Inferior direito",
|
||||||
|
"bottom-center": "Inferior central",
|
||||||
|
"achievement_custom_notification_position": "Posição das notificações customizadas de conquista",
|
||||||
|
"alignment": "Alinhamento",
|
||||||
|
"variation": "Variação",
|
||||||
|
"default": "Padrão",
|
||||||
|
"rare": "Rara",
|
||||||
|
"platinum": "Platina",
|
||||||
|
"hidden": "Oculta",
|
||||||
|
"test_notification": "Testar notificação",
|
||||||
|
"notification_preview": "Prévia da Notificação de Conquistas",
|
||||||
|
"enable_friend_start_game_notifications": "Quando um amigo iniciar um jogo"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download concluído",
|
"download_complete": "Download concluído",
|
||||||
@@ -359,7 +394,9 @@
|
|||||||
"new_friend_request_description": "{{displayName}} te enviou um pedido de amizade",
|
"new_friend_request_description": "{{displayName}} te enviou um pedido de amizade",
|
||||||
"extraction_complete": "Extração concluída",
|
"extraction_complete": "Extração concluída",
|
||||||
"game_extracted": "{{title}} extraído com sucesso",
|
"game_extracted": "{{title}} extraído com sucesso",
|
||||||
"friend_started_playing_game": "{{displayName}} começou a jogar"
|
"friend_started_playing_game": "{{displayName}} começou a jogar",
|
||||||
|
"test_achievement_notification_title": "Esta é uma notificação de teste",
|
||||||
|
"test_achievement_notification_description": "Bem legal, né?"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Abrir Hydra",
|
"open": "Abrir Hydra",
|
||||||
@@ -470,7 +507,9 @@
|
|||||||
"achievements_unlocked": "Conquistas desbloqueadas",
|
"achievements_unlocked": "Conquistas desbloqueadas",
|
||||||
"earned_points": "Pontos ganhos",
|
"earned_points": "Pontos ganhos",
|
||||||
"show_achievements_on_profile": "Exiba suas conquistas no perfil",
|
"show_achievements_on_profile": "Exiba suas conquistas no perfil",
|
||||||
"show_points_on_profile": "Exiba seus pontos ganhos no perfil"
|
"show_points_on_profile": "Exiba seus pontos ganhos no perfil",
|
||||||
|
"error_adding_friend": "Não foi possível enviar o pedido de amizade. Verifique o código de amizade inserido",
|
||||||
|
"friend_code_length_error": "Código de amigo deve ter 8 caracteres"
|
||||||
},
|
},
|
||||||
"achievement": {
|
"achievement": {
|
||||||
"achievement_unlocked": "Conquista desbloqueada",
|
"achievement_unlocked": "Conquista desbloqueada",
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"sign_in": "Войти",
|
"sign_in": "Войти",
|
||||||
"friends": "Друзья",
|
"friends": "Друзья",
|
||||||
"need_help": "Нужна помощь?",
|
"need_help": "Нужна помощь?",
|
||||||
"favorites": "Избранное"
|
"favorites": "Избранное",
|
||||||
|
"playable_button_title": "Показать только игры, в которые можно играть сейчас"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Поиск",
|
"search": "Поиск",
|
||||||
@@ -197,7 +198,14 @@
|
|||||||
"download_error_not_cached_on_torbox": "Эта загрузка недоступна на TorBox, и получить статус загрузки с TorBox пока невозможно.",
|
"download_error_not_cached_on_torbox": "Эта загрузка недоступна на TorBox, и получить статус загрузки с TorBox пока невозможно.",
|
||||||
"game_added_to_favorites": "Игра добавлена в избранное",
|
"game_added_to_favorites": "Игра добавлена в избранное",
|
||||||
"game_removed_from_favorites": "Игра удалена из избранного",
|
"game_removed_from_favorites": "Игра удалена из избранного",
|
||||||
"automatically_extract_downloaded_files": "Автоматическая распаковка загруженных файлов"
|
"automatically_extract_downloaded_files": "Автоматическая распаковка загруженных файлов",
|
||||||
|
"create_steam_shortcut": "Создать ярлык Steam",
|
||||||
|
"you_might_need_to_restart_steam": "Возможно, вам потребуется перезапустить Steam, чтобы увидеть изменения",
|
||||||
|
"create_start_menu_shortcut": "Создать ярлык в меню «Пуск»",
|
||||||
|
"invalid_wine_prefix_path": "Недопустимый путь префикса Wine",
|
||||||
|
"invalid_wine_prefix_path_description": "Путь к префиксу Wine недействителен. Пожалуйста, проверьте путь и попробуйте снова.",
|
||||||
|
"missing_wine_prefix": "Префикс Wine необходим для создания резервной копии в Linux",
|
||||||
|
"download_error_not_cached_on_hydra": "Эта загрузка недоступна на Nimbus."
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Активировать Hydra",
|
"title": "Активировать Hydra",
|
||||||
@@ -355,7 +363,25 @@
|
|||||||
"common_redist_description": "Для запуска некоторых игр требуются библиотеки. Во избежание проблем рекомендуется установить их.",
|
"common_redist_description": "Для запуска некоторых игр требуются библиотеки. Во избежание проблем рекомендуется установить их.",
|
||||||
"install_common_redist": "Установить",
|
"install_common_redist": "Установить",
|
||||||
"installing_common_redist": "Установка…",
|
"installing_common_redist": "Установка…",
|
||||||
"show_download_speed_in_megabytes": "Показать скорость загрузки в мегабайтах в секунду"
|
"show_download_speed_in_megabytes": "Показать скорость загрузки в мегабайтах в секунду",
|
||||||
|
"extract_files_by_default": "Извлекать файлы по умолчанию после загрузки",
|
||||||
|
"achievement_custom_notification_position": "Позиция уведомлений достижений",
|
||||||
|
"top-left": "Верхний левый угол",
|
||||||
|
"top-center": "Верхний центр",
|
||||||
|
"top-right": "Верхний правый угол",
|
||||||
|
"bottom-left": "Нижний левый угол",
|
||||||
|
"bottom-center": "Нижний центр",
|
||||||
|
"bottom-right": "Нижний правый угол",
|
||||||
|
"enable_achievement_custom_notifications": "Включить уведомления о достижениях",
|
||||||
|
"alignment": "Выравнивание",
|
||||||
|
"variation": "Вариация",
|
||||||
|
"default": "По умолчанию",
|
||||||
|
"rare": "Редкое",
|
||||||
|
"platinum": "Платиновый",
|
||||||
|
"hidden": "Скрытый",
|
||||||
|
"test_notification": "Тестовое уведомление",
|
||||||
|
"notification_preview": "Предварительный просмотр уведомления о достижении",
|
||||||
|
"enable_friend_start_game_notifications": "Когда друг начинает играть в игру"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Загрузка завершена",
|
"download_complete": "Загрузка завершена",
|
||||||
@@ -370,7 +396,10 @@
|
|||||||
"new_friend_request_title": "Новый запрос на добавление в друзья",
|
"new_friend_request_title": "Новый запрос на добавление в друзья",
|
||||||
"new_friend_request_description": "Вы получили новый запрос на добавление в друзья",
|
"new_friend_request_description": "Вы получили новый запрос на добавление в друзья",
|
||||||
"extraction_complete": "Распаковка завершена",
|
"extraction_complete": "Распаковка завершена",
|
||||||
"game_extracted": "{{title}} успешно распакован"
|
"game_extracted": "{{title}} успешно распакован",
|
||||||
|
"friend_started_playing_game": "{{displayName}} начал играть в игру",
|
||||||
|
"test_achievement_notification_title": "Это тестовое уведомление",
|
||||||
|
"test_achievement_notification_description": "Довольно круто, да?"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Открыть Hydra",
|
"open": "Открыть Hydra",
|
||||||
|
|||||||
533
src/locales/sv/translation.json
Normal file
533
src/locales/sv/translation.json
Normal file
@@ -0,0 +1,533 @@
|
|||||||
|
{
|
||||||
|
"language_name": "Svenska",
|
||||||
|
"app": {
|
||||||
|
"successfully_signed_in": "Inloggningen lyckades"
|
||||||
|
},
|
||||||
|
"home": {
|
||||||
|
"featured": "Utvalt",
|
||||||
|
"surprise_me": "Överraska mig",
|
||||||
|
"no_results": "Inga resultat hittades",
|
||||||
|
"start_typing": "Börja skriva för att söka...",
|
||||||
|
"hot": "Hetast just nu",
|
||||||
|
"weekly": "📅 Veckans topplista",
|
||||||
|
"achievements": "🏆 Spel att klara av"
|
||||||
|
},
|
||||||
|
"sidebar": {
|
||||||
|
"catalogue": "Katalog",
|
||||||
|
"downloads": "Nedladdningar",
|
||||||
|
"settings": "Inställningar",
|
||||||
|
"my_library": "Mitt bibliotek",
|
||||||
|
"downloading_metadata": "{{title}} (Hämtar metadata…)",
|
||||||
|
"paused": "{{title}} (Pausad)",
|
||||||
|
"downloading": "{{title}} ({{percentage}} - Hämtar…)",
|
||||||
|
"filter": "Filtrera bibliotek",
|
||||||
|
"home": "Hem",
|
||||||
|
"queued": "{{title}} (I kö)",
|
||||||
|
"game_has_no_executable": "Spelet har ingen vald körbar fil",
|
||||||
|
"sign_in": "Logga in",
|
||||||
|
"friends": "Vänner",
|
||||||
|
"need_help": "Behöver du hjälp?",
|
||||||
|
"favorites": "Favoriter"
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"search": "Sök spel",
|
||||||
|
"home": "Hem",
|
||||||
|
"catalogue": "Katalog",
|
||||||
|
"downloads": "Nedladdningar",
|
||||||
|
"search_results": "Sökresultat",
|
||||||
|
"settings": "Inställningar",
|
||||||
|
"version_available_install": "Version {{version}} är tillgänglig. Klicka här för att starta om och installera.",
|
||||||
|
"version_available_download": "Version {{version}} är tillgänglig. Klicka här för att ladda ner."
|
||||||
|
},
|
||||||
|
"bottom_panel": {
|
||||||
|
"no_downloads_in_progress": "Inga nedladdningar pågår",
|
||||||
|
"downloading_metadata": "Laddar ner metadata för {{title}}…",
|
||||||
|
"downloading": "Laddar ner {{title}}… ({{percentage}} klart) - Klart om {{eta}} - {{speed}}",
|
||||||
|
"calculating_eta": "Laddar ner {{title}}… ({{percentage}} klart) - Beräknar återstående tid…",
|
||||||
|
"checking_files": "Kontrollerar filer för {{title}}… ({{percentage}} klart)",
|
||||||
|
"installing_common_redist": "{{log}}…",
|
||||||
|
"installation_complete": "Installation klar",
|
||||||
|
"installation_complete_message": "Nödvändiga systemkomponenter installerade framgångsrikt"
|
||||||
|
},
|
||||||
|
"catalogue": {
|
||||||
|
"search": "Filter…",
|
||||||
|
"developers": "Utvecklare",
|
||||||
|
"genres": "Genrer",
|
||||||
|
"tags": "Taggar",
|
||||||
|
"publishers": "Utgivare",
|
||||||
|
"download_sources": "Nedladdningskällor",
|
||||||
|
"result_count": "{{resultCount}} resultat",
|
||||||
|
"filter_count": "{{filterCount}} tillgängliga",
|
||||||
|
"clear_filters": "Rensa {{filterCount}} valda"
|
||||||
|
},
|
||||||
|
"game_details": {
|
||||||
|
"open_download_options": "Öppna nedladdningsalternativ",
|
||||||
|
"download_options_zero": "Inget nedladdningsalternativ",
|
||||||
|
"download_options_one": "{{count}} nedladdningsalternativ",
|
||||||
|
"download_options_other": "{{count}} nedladdningsalternativ",
|
||||||
|
"updated_at": "Uppdaterad {{updated_at}}",
|
||||||
|
"install": "Installera",
|
||||||
|
"resume": "Återuppta",
|
||||||
|
"pause": "Pausa",
|
||||||
|
"cancel": "Avbryt",
|
||||||
|
"remove": "Ta bort",
|
||||||
|
"space_left_on_disk": "{{space}} ledigt på disken",
|
||||||
|
"eta": "Klart om {{eta}}",
|
||||||
|
"calculating_eta": "Beräknar återstående tid…",
|
||||||
|
"downloading_metadata": "Laddar ner metadata…",
|
||||||
|
"filter": "Filtrera repacks",
|
||||||
|
"requirements": "Systemkrav",
|
||||||
|
"minimum": "Minimum",
|
||||||
|
"recommended": "Rekommenderat",
|
||||||
|
"paused": "Pausat",
|
||||||
|
"release_date": "Släpptes den {{date}}",
|
||||||
|
"publisher": "Utgiven av {{publisher}}",
|
||||||
|
"hours": "timmar",
|
||||||
|
"minutes": "minuter",
|
||||||
|
"amount_hours": "{{amount}} timmar",
|
||||||
|
"amount_minutes": "{{amount}} minuter",
|
||||||
|
"accuracy": "{{accuracy}}% träffsäkerhet",
|
||||||
|
"add_to_library": "Lägg till i biblioteket",
|
||||||
|
"remove_from_library": "Ta bort från biblioteket",
|
||||||
|
"no_downloads": "Inga nedladdningar tillgängliga",
|
||||||
|
"play_time": "Spelad i {{amount}}",
|
||||||
|
"last_time_played": "Senast spelad {{period}}",
|
||||||
|
"not_played_yet": "Du har inte spelat {{title}} än",
|
||||||
|
"next_suggestion": "Nästa förslag",
|
||||||
|
"play": "Spela",
|
||||||
|
"deleting": "Tar bort installationsfil…",
|
||||||
|
"close": "Stäng",
|
||||||
|
"playing_now": "Spelar nu",
|
||||||
|
"change": "Byt",
|
||||||
|
"repacks_modal_description": "Välj den repack du vill ladda ner",
|
||||||
|
"select_folder_hint": "För att ändra standardmappen, gå till <0>Inställningar</0>",
|
||||||
|
"download_now": "Ladda ner nu",
|
||||||
|
"no_shop_details": "Kunde inte hämta butikens information.",
|
||||||
|
"download_options": "Nedladdningsalternativ",
|
||||||
|
"download_path": "Nedladdningsplats",
|
||||||
|
"previous_screenshot": "Föregående skärmdump",
|
||||||
|
"next_screenshot": "Nästa skärmdump",
|
||||||
|
"screenshot": "Skärmdump {{number}}",
|
||||||
|
"open_screenshot": "Öppna skärmdump {{number}}",
|
||||||
|
"download_settings": "Nedladdningsinställningar",
|
||||||
|
"downloader": "Nedladdare",
|
||||||
|
"select_executable": "Välj",
|
||||||
|
"no_executable_selected": "Ingen körbar fil vald",
|
||||||
|
"open_folder": "Öppna mapp",
|
||||||
|
"open_download_location": "Visa nedladdade filer",
|
||||||
|
"create_shortcut": "Skapa genväg på skrivbordet",
|
||||||
|
"clear": "Rensa",
|
||||||
|
"remove_files": "Ta bort filer",
|
||||||
|
"remove_from_library_title": "Är du säker?",
|
||||||
|
"remove_from_library_description": "Detta kommer ta bort {{game}} från ditt bibliotek",
|
||||||
|
"options": "Alternativ",
|
||||||
|
"executable_section_title": "Körbar fil",
|
||||||
|
"executable_section_description": "Sökväg till filen som körs när du klickar på \"Spela\"",
|
||||||
|
"downloads_section_title": "Nedladdningar",
|
||||||
|
"downloads_section_description": "Kolla uppdateringar eller andra versioner av detta spel",
|
||||||
|
"danger_zone_section_title": "Danger zone",
|
||||||
|
"danger_zone_section_description": "Ta bort detta spel från ditt bibliotek eller filer nedladdade av Hydra",
|
||||||
|
"download_in_progress": "Nedladdning pågår",
|
||||||
|
"download_paused": "Nedladdning pausad",
|
||||||
|
"last_downloaded_option": "Senast nedladdade alternativ",
|
||||||
|
"create_steam_shortcut": "Skapa Steam-genväg",
|
||||||
|
"create_shortcut_success": "Genväg skapad",
|
||||||
|
"you_might_need_to_restart_steam": "Du kan behöva starta om Steam för att se ändringarna",
|
||||||
|
"create_shortcut_error": "Fel vid skapande av genväg",
|
||||||
|
"nsfw_content_title": "Det här spelet innehåller olämpligt innehåll",
|
||||||
|
"nsfw_content_description": "{{title}} innehåller innehåll som kanske inte är lämpligt för alla åldrar. Vill du fortsätta?",
|
||||||
|
"allow_nsfw_content": "Fortsätt",
|
||||||
|
"refuse_nsfw_content": "Gå tillbaka",
|
||||||
|
"stats": "Statistik",
|
||||||
|
"download_count": "Nedladdningar",
|
||||||
|
"player_count": "Aktiva spelare",
|
||||||
|
"download_error": "Det här nedladdningsalternativet är inte tillgängligt",
|
||||||
|
"download": "Ladda ner",
|
||||||
|
"executable_path_in_use": "Körbar fil används redan av \"{{game}}\"",
|
||||||
|
"warning": "Varning:",
|
||||||
|
"hydra_needs_to_remain_open": "för denna nedladdning behöver Hydra vara öppen tills den är klar. Om Hydra stängs innan nedladdningen är klar förlorar du dina framsteg.",
|
||||||
|
"achievements": "Prestationer",
|
||||||
|
"achievements_count": "Prestationer {{unlockedCount}}/{{achievementsCount}}",
|
||||||
|
"cloud_save": "Molnspara",
|
||||||
|
"cloud_save_description": "Spara dina framsteg i molnet och fortsätt spela på vilken enhet som helst",
|
||||||
|
"backups": "Säkerhetskopior",
|
||||||
|
"install_backup": "Installera",
|
||||||
|
"delete_backup": "Ta bort",
|
||||||
|
"create_backup": "Ny säkerhetskopia",
|
||||||
|
"last_backup_date": "Senaste säkerhetskopia {{date}}",
|
||||||
|
"no_backup_preview": "Inga sparfiler hittades för detta spel",
|
||||||
|
"restoring_backup": "Återställer säkerhetskopia ({{progress}} klart)…",
|
||||||
|
"uploading_backup": "Laddar upp säkerhetskopia…",
|
||||||
|
"no_backups": "Du har inte skapat några säkerhetskopior för detta spel än",
|
||||||
|
"backup_uploaded": "Säkerhetskopia uppladdad",
|
||||||
|
"backup_deleted": "Säkerhetskopia borttagen",
|
||||||
|
"backup_restored": "Säkerhetskopia återställd",
|
||||||
|
"see_all_achievements": "Se alla prestationer",
|
||||||
|
"sign_in_to_see_achievements": "Logga in för att se prestationer",
|
||||||
|
"mapping_method_automatic": "Automatisk",
|
||||||
|
"mapping_method_manual": "Manuell",
|
||||||
|
"mapping_method_label": "Kartläggningsmetod",
|
||||||
|
"files_automatically_mapped": "Filer kartlagda automatiskt",
|
||||||
|
"no_backups_created": "Inga säkerhetskopior skapade för detta spel",
|
||||||
|
"manage_files": "Hantera filer",
|
||||||
|
"loading_save_preview": "Söker efter sparfiler…",
|
||||||
|
"wine_prefix": "Wine-prefix",
|
||||||
|
"wine_prefix_description": "Wine-prefixet som används för att köra detta spel",
|
||||||
|
"launch_options": "Startalternativ",
|
||||||
|
"launch_options_description": "Avancerade användare kan lägga till modifieringar till sina startalternativ (experimentell funktion)",
|
||||||
|
"launch_options_placeholder": "Inga parametrar angivna",
|
||||||
|
"no_download_option_info": "Ingen information tillgänglig",
|
||||||
|
"backup_deletion_failed": "Misslyckades med att ta bort säkerhetskopian",
|
||||||
|
"max_number_of_artifacts_reached": "Maximalt antal säkerhetskopior nått för detta spel",
|
||||||
|
"achievements_not_sync": "Se hur du synkroniserar dina prestationer",
|
||||||
|
"manage_files_description": "Hantera vilka filer som ska säkerhetskopieras och återställas",
|
||||||
|
"select_folder": "Välj mapp",
|
||||||
|
"backup_from": "Säkerhetskopia från {{date}}",
|
||||||
|
"automatic_backup_from": "Automatisk säkerhetskopia från {{date}}",
|
||||||
|
"enable_automatic_cloud_sync": "Aktivera automatisk molnsynkronisering",
|
||||||
|
"custom_backup_location_set": "Anpassad plats för säkerhetskopior inställd",
|
||||||
|
"no_directory_selected": "Ingen mapp vald",
|
||||||
|
"no_write_permission": "Kan inte ladda ner till denna mapp. Klicka här för att läsa mer.",
|
||||||
|
"reset_achievements": "Återställ prestationer",
|
||||||
|
"reset_achievements_description": "Detta kommer att återställa alla prestationer för {{game}}",
|
||||||
|
"reset_achievements_title": "Är du säker?",
|
||||||
|
"reset_achievements_success": "Prestationer återställda",
|
||||||
|
"reset_achievements_error": "Misslyckades med att återställa prestationer",
|
||||||
|
"download_error_gofile_quota_exceeded": "Du har överskridit din månadsgräns för Gofile. Vänta tills kvoten återställs.",
|
||||||
|
"download_error_real_debrid_account_not_authorized": "Ditt Real-Debrid-konto är inte auktoriserat att göra nya nedladdningar. Kontrollera dina kontoinställningar och försök igen.",
|
||||||
|
"download_error_not_cached_on_real_debrid": "Denna nedladdning finns inte på Real-Debrid och statusövervakning från Real-Debrid är ännu inte tillgänglig.",
|
||||||
|
"download_error_not_cached_on_torbox": "Denna nedladdning finns inte på TorBox och statusövervakning från TorBox är ännu inte tillgänglig.",
|
||||||
|
"download_error_not_cached_on_hydra": "Denna nedladdning finns inte på Nimbus.",
|
||||||
|
"game_removed_from_favorites": "Spelet togs bort från favoriter",
|
||||||
|
"game_added_to_favorites": "Spelet lades till i favoriter",
|
||||||
|
"automatically_extract_downloaded_files": "Extrahera nedladdade filer automatiskt",
|
||||||
|
"create_start_menu_shortcut": "Skapa genväg i Startmenyn",
|
||||||
|
"invalid_wine_prefix_path": "Ogiltig sökväg för Wine-prefix",
|
||||||
|
"invalid_wine_prefix_path_description": "Sökvägen till Wine-prefixet är ogiltig. Kontrollera sökvägen och försök igen.",
|
||||||
|
"missing_wine_prefix": "Wine-prefix krävs för att skapa en säkerhetskopia på Linux"
|
||||||
|
},
|
||||||
|
"activation": {
|
||||||
|
"title": "Aktivera Hydra",
|
||||||
|
"installation_id": "Installations ID:",
|
||||||
|
"enter_activation_code": "Ange din aktiveringskod",
|
||||||
|
"message": "Om du inte vet var du ska fråga efter denna, borde du inte ha den.",
|
||||||
|
"activate": "Aktivera",
|
||||||
|
"loading": "Laddar…"
|
||||||
|
},
|
||||||
|
"downloads": {
|
||||||
|
"resume": "Fortsätt",
|
||||||
|
"pause": "Pausa",
|
||||||
|
"eta": "Slutförs {{eta}}",
|
||||||
|
"paused": "Pausad",
|
||||||
|
"verifying": "Verifierar…",
|
||||||
|
"completed": "Slutförd",
|
||||||
|
"removed": "Ej nedladdad",
|
||||||
|
"cancel": "Avbryt",
|
||||||
|
"filter": "Filtrera nedladdade spel",
|
||||||
|
"remove": "Ta bort",
|
||||||
|
"downloading_metadata": "Laddar metadata…",
|
||||||
|
"deleting": "Tar bort installationsfil…",
|
||||||
|
"delete": "Ta bort installationsfil",
|
||||||
|
"delete_modal_title": "Är du säker?",
|
||||||
|
"delete_modal_description": "Detta tar bort alla installationsfiler från din dator",
|
||||||
|
"install": "Installera",
|
||||||
|
"download_in_progress": "Pågår",
|
||||||
|
"queued_downloads": "Köade nedladdningar",
|
||||||
|
"downloads_completed": "Klart",
|
||||||
|
"queued": "I kö",
|
||||||
|
"no_downloads_title": "Så tomt",
|
||||||
|
"no_downloads_description": "Du har inte laddat ner något med Hydra än, men det är aldrig för sent att börja.",
|
||||||
|
"checking_files": "Kontrollerar filer…",
|
||||||
|
"seeding": "Seedar",
|
||||||
|
"stop_seeding": "Sluta seeda",
|
||||||
|
"resume_seeding": "Fortsätt seeda",
|
||||||
|
"options": "Hantera",
|
||||||
|
"extract": "Packa upp filer",
|
||||||
|
"extracting": "Packar upp filer…"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"downloads_path": "Nedladdningssökväg",
|
||||||
|
"change": "Uppdatera",
|
||||||
|
"notifications": "Aviseringar",
|
||||||
|
"enable_download_notifications": "När en nedladdning är klar",
|
||||||
|
"enable_repack_list_notifications": "När en ny repack läggs till",
|
||||||
|
"real_debrid_api_token_label": "Real-Debrid API-token",
|
||||||
|
"quit_app_instead_hiding": "Stäng Hydra istället för att minimera",
|
||||||
|
"launch_with_system": "Starta Hydra vid systemstart",
|
||||||
|
"general": "Allmänt",
|
||||||
|
"behavior": "Beteende",
|
||||||
|
"download_sources": "Nedladdningskällor",
|
||||||
|
"language": "Språk",
|
||||||
|
"api_token": "API-token",
|
||||||
|
"enable_real_debrid": "Aktivera Real-Debrid",
|
||||||
|
"real_debrid_description": "Real-Debrid är en obegränsad nedladdningstjänst som låter dig ladda ner filer snabbt, endast begränsad av din internetanslutning.",
|
||||||
|
"debrid_invalid_token": "Ogiltig API-token",
|
||||||
|
"debrid_api_token_hint": "Du kan hämta din API-token <0>här</0>",
|
||||||
|
"real_debrid_free_account_error": "Kontot \"{{username}}\" är ett gratiskonto. Prenumerera på Real-Debrid",
|
||||||
|
"debrid_linked_message": "Kontot \"{{username}}\" kopplat",
|
||||||
|
"save_changes": "Spara ändringar",
|
||||||
|
"changes_saved": "Ändringar sparades",
|
||||||
|
"download_sources_description": "Hydra hämtar nedladdningslänkar från dessa källor. Källans URL måste vara en direktlänk till en .json-fil med nedladdningslänkar.",
|
||||||
|
"validate_download_source": "Validera",
|
||||||
|
"remove_download_source": "Ta bort",
|
||||||
|
"add_download_source": "Lägg till källa",
|
||||||
|
"download_count_zero": "Inga nedladdningsalternativ",
|
||||||
|
"download_count_one": "{{countFormatted}} nedladdningsalternativ",
|
||||||
|
"download_count_other": "{{countFormatted}} nedladdningsalternativ",
|
||||||
|
"download_source_url": "URL till nedladdningskälla",
|
||||||
|
"add_download_source_description": "Ange URL:en till .json-filen",
|
||||||
|
"download_source_up_to_date": "Uppdaterad",
|
||||||
|
"download_source_errored": "Fel uppstod",
|
||||||
|
"sync_download_sources": "Synkronisera källor",
|
||||||
|
"removed_download_source": "Nedladdningskälla borttagen",
|
||||||
|
"removed_download_sources": "Nedladdningskällor borttagna",
|
||||||
|
"cancel_button_confirmation_delete_all_sources": "Nej",
|
||||||
|
"confirm_button_confirmation_delete_all_sources": "Ja, ta bort allt",
|
||||||
|
"title_confirmation_delete_all_sources": "Ta bort alla nedladdningskällor",
|
||||||
|
"description_confirmation_delete_all_sources": "Du kommer att ta bort alla nedladdningskällor",
|
||||||
|
"button_delete_all_sources": "Ta bort alla",
|
||||||
|
"added_download_source": "Nedladdningskälla tillagd",
|
||||||
|
"download_sources_synced": "Alla nedladdningskällor är synkroniserade",
|
||||||
|
"insert_valid_json_url": "Ange en giltig JSON-URL",
|
||||||
|
"found_download_option_zero": "Inga nedladdningsalternativ hittades",
|
||||||
|
"found_download_option_one": "Hittade {{countFormatted}} nedladdningsalternativ",
|
||||||
|
"found_download_option_other": "Hittade {{countFormatted}} nedladdningsalternativ",
|
||||||
|
"import": "Importera",
|
||||||
|
"public": "Offentlig",
|
||||||
|
"private": "Privat",
|
||||||
|
"friends_only": "Endast vänner",
|
||||||
|
"privacy": "Integritet",
|
||||||
|
"profile_visibility": "Profilens synlighet",
|
||||||
|
"profile_visibility_description": "Välj vem som kan se din profil och ditt bibliotek",
|
||||||
|
"required_field": "Detta fält är obligatoriskt",
|
||||||
|
"source_already_exists": "Denna källa har redan lagts till",
|
||||||
|
"must_be_valid_url": "Källan måste vara en giltig URL",
|
||||||
|
"blocked_users": "Blockerade användare",
|
||||||
|
"user_unblocked": "Användaren har avblockerats",
|
||||||
|
"enable_achievement_notifications": "När en prestation låses upp",
|
||||||
|
"launch_minimized": "Starta Hydra minimerad",
|
||||||
|
"disable_nsfw_alert": "Inaktivera NSFW-varning",
|
||||||
|
"seed_after_download_complete": "Seeda efter att nedladdningen är klar",
|
||||||
|
"show_hidden_achievement_description": "Visa beskrivning av dolda prestationer innan de låses upp",
|
||||||
|
"account": "Konto",
|
||||||
|
"no_users_blocked": "Du har inga blockerade användare",
|
||||||
|
"subscription_active_until": "Ditt Hydra Cloud är aktivt till {{date}}",
|
||||||
|
"manage_subscription": "Hantera prenumeration",
|
||||||
|
"update_email": "Uppdatera e-postadress",
|
||||||
|
"update_password": "Uppdatera lösenord",
|
||||||
|
"current_email": "Nuvarande e-postadress:",
|
||||||
|
"no_email_account": "Du har ännu inte angett någon e-postadress",
|
||||||
|
"account_data_updated_successfully": "Kontoinformationen har uppdaterats",
|
||||||
|
"renew_subscription": "Förnya Hydra Cloud",
|
||||||
|
"subscription_expired_at": "Din prenumeration gick ut den {{date}}",
|
||||||
|
"no_subscription": "Njut av Hydra på bästa möjliga sätt",
|
||||||
|
"become_subscriber": "Bli Hydra Cloud-prenumerant",
|
||||||
|
"subscription_renew_cancelled": "Automatisk förnyelse är inaktiverad",
|
||||||
|
"subscription_renews_on": "Din prenumeration förnyas den {{date}}",
|
||||||
|
"bill_sent_until": "Din nästa faktura skickas senast detta datum",
|
||||||
|
"no_themes": "Det verkar som att du inte har några teman ännu, men ingen fara – klicka här för att skapa ditt första mästerverk.",
|
||||||
|
"editor_tab_code": "Kod",
|
||||||
|
"editor_tab_info": "Info",
|
||||||
|
"editor_tab_save": "Spara",
|
||||||
|
"web_store": "Webbutik",
|
||||||
|
"clear_themes": "Rensa",
|
||||||
|
"create_theme": "Skapa",
|
||||||
|
"create_theme_modal_title": "Skapa eget tema",
|
||||||
|
"create_theme_modal_description": "Skapa ett nytt tema för att anpassa Hydras utseende",
|
||||||
|
"theme_name": "Namn",
|
||||||
|
"insert_theme_name": "Ange temats namn",
|
||||||
|
"set_theme": "Aktivera tema",
|
||||||
|
"unset_theme": "Avaktivera tema",
|
||||||
|
"delete_theme": "Ta bort tema",
|
||||||
|
"edit_theme": "Redigera tema",
|
||||||
|
"delete_all_themes": "Ta bort alla teman",
|
||||||
|
"delete_all_themes_description": "Detta kommer att ta bort alla dina egna teman",
|
||||||
|
"delete_theme_description": "Detta kommer att ta bort temat {{theme}}",
|
||||||
|
"cancel": "Avbryt",
|
||||||
|
"appearance": "Utseende",
|
||||||
|
"enable_torbox": "Aktivera TorBox",
|
||||||
|
"torbox_description": "TorBox är din premium seedbox-tjänst som konkurrerar med de bästa servrarna på marknaden.",
|
||||||
|
"torbox_account_linked": "TorBox-konto kopplat",
|
||||||
|
"create_real_debrid_account": "Klicka här om du ännu inte har ett Real-Debrid-konto",
|
||||||
|
"create_torbox_account": "Klicka här om du ännu inte har ett TorBox-konto",
|
||||||
|
"real_debrid_account_linked": "Real-Debrid-konto kopplat",
|
||||||
|
"name_min_length": "Temanamnet måste innehålla minst 3 tecken",
|
||||||
|
"import_theme": "Importera tema",
|
||||||
|
"import_theme_description": "Du kommer att importera {{theme}} från temabutiken",
|
||||||
|
"error_importing_theme": "Fel vid import av tema",
|
||||||
|
"theme_imported": "Temat har importerats",
|
||||||
|
"enable_friend_request_notifications": "När en vänförfrågan tas emot",
|
||||||
|
"enable_auto_install": "Ladda ner uppdateringar automatiskt",
|
||||||
|
"common_redist": "Nödvändiga systemkomponenter",
|
||||||
|
"common_redist_description": "Nödvändiga systemkomponenter krävs för att vissa spel ska fungera. Det rekommenderas att installera dem för att undvika problem.",
|
||||||
|
"install_common_redist": "Installera",
|
||||||
|
"installing_common_redist": "Installerar…",
|
||||||
|
"show_download_speed_in_megabytes": "Visa nedladdningshastighet i megabyte per sekund",
|
||||||
|
"extract_files_by_default": "Extrahera filer automatiskt efter nedladdning",
|
||||||
|
"achievement_custom_notification_position": "Anpassad position för prestationmeddelande",
|
||||||
|
"top-left": "Övre vänster",
|
||||||
|
"top-center": "Övre mitten",
|
||||||
|
"top-right": "Övre höger",
|
||||||
|
"bottom-left": "Nedre vänster",
|
||||||
|
"bottom-center": "Nedre mitten",
|
||||||
|
"bottom-right": "Nedre höger",
|
||||||
|
"enable_achievement_custom_notifications": "Aktivera anpassade prestationmeddelanden",
|
||||||
|
"alignment": "Justering",
|
||||||
|
"variation": "Variation",
|
||||||
|
"default": "Standard",
|
||||||
|
"rare": "Sällsynt",
|
||||||
|
"platinum": "Platina",
|
||||||
|
"hidden": "Dold",
|
||||||
|
"test_notification": "Testa meddelande",
|
||||||
|
"notification_preview": "Förhandsvisning av prestationmeddelande",
|
||||||
|
"enable_friend_start_game_notifications": "När en vän börjar spela ett spel"
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"download_complete": "Nedladdning klar",
|
||||||
|
"game_ready_to_install": "{{title}} är redo att installeras",
|
||||||
|
"repack_list_updated": "Repack-listan har uppdaterats",
|
||||||
|
"repack_count_one": "{{count}} repack tillagd",
|
||||||
|
"repack_count_other": "{{count}} repacks tillagda",
|
||||||
|
"new_update_available": "Version {{version}} tillgänglig",
|
||||||
|
"restart_to_install_update": "Starta om Hydra för att installera uppdateringen",
|
||||||
|
"notification_achievement_unlocked_title": "Prestation upplåst för {{game}}",
|
||||||
|
"notification_achievement_unlocked_body": "{{achievement}} och {{count}} andra har låsts upp",
|
||||||
|
"new_friend_request_description": "{{displayName}} har skickat en vänförfrågan",
|
||||||
|
"new_friend_request_title": "Ny vänförfrågan",
|
||||||
|
"extraction_complete": "Extrahering slutförd",
|
||||||
|
"game_extracted": "{{title}} har extraherats",
|
||||||
|
"friend_started_playing_game": "{{displayName}} började spela ett spel",
|
||||||
|
"test_achievement_notification_title": "Detta är ett testmeddelande",
|
||||||
|
"test_achievement_notification_description": "Ganska coolt, eller hur?"
|
||||||
|
},
|
||||||
|
"system_tray": {
|
||||||
|
"open": "Öppna Hydra",
|
||||||
|
"quit": "Avsluta"
|
||||||
|
},
|
||||||
|
"game_card": {
|
||||||
|
"available_one": "Tillgänglig",
|
||||||
|
"available_other": "Tillgänglig",
|
||||||
|
"no_downloads": "Inga nedladdningar tillgängliga"
|
||||||
|
},
|
||||||
|
"binary_not_found_modal": {
|
||||||
|
"title": "Program inte installerade",
|
||||||
|
"description": "Wine- eller Lutris-körbara filer hittades inte på ditt system",
|
||||||
|
"instructions": "Kontrollera hur du installerar dem korrekt på din Linux-distribution så att spelet kan köras normalt"
|
||||||
|
},
|
||||||
|
"modal": {
|
||||||
|
"close": "Stäng-knapp"
|
||||||
|
},
|
||||||
|
"forms": {
|
||||||
|
"toggle_password_visibility": "Visa/dölj lösenord"
|
||||||
|
},
|
||||||
|
"user_profile": {
|
||||||
|
"amount_hours": "{{amount}} timmar",
|
||||||
|
"amount_minutes": "{{amount}} minuter",
|
||||||
|
"last_time_played": "Senast spelad {{period}}",
|
||||||
|
"activity": "Senaste aktivitet",
|
||||||
|
"library": "Bibliotek",
|
||||||
|
"total_play_time": "Total speltid",
|
||||||
|
"no_recent_activity_title": "Hmmm… ingenting här",
|
||||||
|
"no_recent_activity_description": "Du har inte spelat några spel nyligen. Dags att ändra på det!",
|
||||||
|
"display_name": "Visningsnamn",
|
||||||
|
"saving": "Sparar",
|
||||||
|
"save": "Spara",
|
||||||
|
"edit_profile": "Redigera profil",
|
||||||
|
"saved_successfully": "Sparat",
|
||||||
|
"try_again": "Försök igen",
|
||||||
|
"sign_out_modal_title": "Är du säker?",
|
||||||
|
"cancel": "Avbryt",
|
||||||
|
"successfully_signed_out": "Utloggningen lyckades",
|
||||||
|
"sign_out": "Logga ut",
|
||||||
|
"playing_for": "Spelar sedan {{amount}}",
|
||||||
|
"sign_out_modal_text": "Ditt bibliotek är kopplat till det aktuella kontot. När du loggar ut kommer biblioteket inte längre vara synligt, och framstegen kommer inte att sparas. Vill du fortsätta logga ut?",
|
||||||
|
"add_friends": "Lägg till vänner",
|
||||||
|
"add": "Lägg till",
|
||||||
|
"friend_code": "Vänkod",
|
||||||
|
"see_profile": "Visa profil",
|
||||||
|
"sending": "Skickar",
|
||||||
|
"friend_request_sent": "Vänförfrågan skickad",
|
||||||
|
"friends": "Vänner",
|
||||||
|
"friends_list": "Vänlista",
|
||||||
|
"user_not_found": "Användare hittades inte",
|
||||||
|
"block_user": "Blockera användare",
|
||||||
|
"add_friend": "Lägg till vän",
|
||||||
|
"request_sent": "Förfrågan skickad",
|
||||||
|
"request_received": "Förfrågan mottagen",
|
||||||
|
"accept_request": "Acceptera förfrågan",
|
||||||
|
"ignore_request": "Ignorera förfrågan",
|
||||||
|
"cancel_request": "Avbryt förfrågan",
|
||||||
|
"undo_friendship": "Ta bort vänskap",
|
||||||
|
"request_accepted": "Förfrågan accepterad",
|
||||||
|
"user_blocked_successfully": "Användaren har blockerats",
|
||||||
|
"user_block_modal_text": "Detta kommer att blockera {{displayName}}",
|
||||||
|
"blocked_users": "Blockerade användare",
|
||||||
|
"unblock": "Avblockera",
|
||||||
|
"no_friends_added": "Du har inte lagt till några vänner",
|
||||||
|
"pending": "Väntande",
|
||||||
|
"no_pending_invites": "Du har inga väntande inbjudningar",
|
||||||
|
"no_blocked_users": "Du har inga blockerade användare",
|
||||||
|
"friend_code_copied": "Vänkod kopierad",
|
||||||
|
"undo_friendship_modal_text": "Detta kommer att ta bort din vänskap med {{displayName}}",
|
||||||
|
"privacy_hint": "För att justera vem som kan se detta, gå till <0>Inställningar</0>",
|
||||||
|
"locked_profile": "Denna profil är privat",
|
||||||
|
"image_process_failure": "Fel vid bildbehandling",
|
||||||
|
"required_field": "Detta fält är obligatoriskt",
|
||||||
|
"displayname_min_length": "Visningsnamnet måste vara minst 3 tecken långt",
|
||||||
|
"displayname_max_length": "Visningsnamnet får vara högst 50 tecken långt",
|
||||||
|
"report_profile": "Anmäl denna profil",
|
||||||
|
"report_reason": "Varför anmäler du denna profil?",
|
||||||
|
"report_description": "Ytterligare information",
|
||||||
|
"report_description_placeholder": "Ytterligare information",
|
||||||
|
"report": "Anmäl",
|
||||||
|
"report_reason_hate": "Hatretorik",
|
||||||
|
"report_reason_sexual_content": "Sexuellt innehåll",
|
||||||
|
"report_reason_violence": "Våld",
|
||||||
|
"report_reason_spam": "Spam",
|
||||||
|
"report_reason_other": "Annat",
|
||||||
|
"profile_reported": "Profil anmäld",
|
||||||
|
"your_friend_code": "Din vänkod:",
|
||||||
|
"upload_banner": "Ladda upp banner",
|
||||||
|
"uploading_banner": "Laddar upp banner…",
|
||||||
|
"background_image_updated": "Bakgrundsbild uppdaterad",
|
||||||
|
"stats": "Statistik",
|
||||||
|
"achievements": "prestationer",
|
||||||
|
"games": "Spel",
|
||||||
|
"top_percentile": "Topp {{percentile}}%",
|
||||||
|
"ranking_updated_weekly": "Rankingen uppdateras varje vecka",
|
||||||
|
"playing": "Spelar {{game}}",
|
||||||
|
"achievements_unlocked": "Prestationer upplåsta",
|
||||||
|
"earned_points": "Intjänade poäng",
|
||||||
|
"show_achievements_on_profile": "Visa dina prestationer på profilen",
|
||||||
|
"show_points_on_profile": "Visa dina intjänade poäng på din profil"
|
||||||
|
},
|
||||||
|
"achievement": {
|
||||||
|
"achievement_unlocked": "Prestationer upplåst",
|
||||||
|
"user_achievements": "Prestationer för {{displayName}}",
|
||||||
|
"your_achievements": "Dina prestationer",
|
||||||
|
"unlocked_at": "Upplåst den: {{date}}",
|
||||||
|
"subscription_needed": "Ett Hydra Cloud-abonnemang krävs för att se detta innehåll",
|
||||||
|
"new_achievements_unlocked": "Upplåste {{achievementCount}} nya prestationer från {{gameCount}} spel",
|
||||||
|
"achievement_progress": "{{unlockedCount}}/{{totalCount}} prestationer",
|
||||||
|
"achievements_unlocked_for_game": "Upplåste {{achievementCount}} nya prestationer för {{gameTitle}}",
|
||||||
|
"hidden_achievement_tooltip": "Detta är en dold prestation",
|
||||||
|
"achievement_earn_points": "Tjäna {{points}} poäng med denna prestation",
|
||||||
|
"earned_points": "Tjänade poäng:",
|
||||||
|
"available_points": "Tillgängliga poäng:",
|
||||||
|
"how_to_earn_achievements_points": "Hur tjänar man poäng på prestationer?"
|
||||||
|
},
|
||||||
|
"hydra_cloud": {
|
||||||
|
"subscription_tour_title": "Hydra Cloud-abonnemang",
|
||||||
|
"subscribe_now": "Prenumerera nu",
|
||||||
|
"cloud_saving": "Spara i molnet",
|
||||||
|
"cloud_achievements": "Spara dina prestationer i molnet",
|
||||||
|
"animated_profile_picture": "Animerade profilbilder",
|
||||||
|
"premium_support": "Premium-support",
|
||||||
|
"show_and_compare_achievements": "Visa och jämför dina prestationer med andra användare",
|
||||||
|
"animated_profile_banner": "Animerad profilbanner",
|
||||||
|
"hydra_cloud": "Hydra Cloud",
|
||||||
|
"hydra_cloud_feature_found": "Du har just upptäckt en Hydra Cloud-funktion!",
|
||||||
|
"learn_more": "Läs mer",
|
||||||
|
"debrid_description": "Ladda ner upp till 4x snabbare med Nimbus"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,46 +8,46 @@
|
|||||||
"surprise_me": "Beni Şaşırt",
|
"surprise_me": "Beni Şaşırt",
|
||||||
"no_results": "Sonuç bulunamadı",
|
"no_results": "Sonuç bulunamadı",
|
||||||
"start_typing": "Aramak için yazmaya başlayın...",
|
"start_typing": "Aramak için yazmaya başlayın...",
|
||||||
"hot": "Şu anda popüler",
|
"hot": "Şu anda Popüler",
|
||||||
"weekly": "📅 Haftanın en iyi oyunları",
|
"weekly": "📅 Haftanın En İyi Oyunları",
|
||||||
"achievements": "🏆 Tamamlanacak oyunlar"
|
"achievements": "🏆 Bitirilecek Oyunlar"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"catalogue": "Katalog",
|
"catalogue": "Katalog",
|
||||||
"downloads": "İndirilenler",
|
"downloads": "İndirilenler",
|
||||||
"settings": "Ayarlar",
|
"settings": "Ayarlar",
|
||||||
"my_library": "Kütüphane",
|
"my_library": "Kütüphanem",
|
||||||
"downloading_metadata": "{{title}} (Meta verileri indiriliyor…)",
|
"downloading_metadata": "{{title}} (Meta verileri indiriliyor…)",
|
||||||
"paused": "{{title}} (Durduruldu)",
|
"paused": "{{title}} (Duraklatıldı)",
|
||||||
"downloading": "{{title}} ({{percentage}} - İndiriliyor…)",
|
"downloading": "{{title}} (%{{percentage}} - İndiriliyor…)",
|
||||||
"filter": "Kütüphaneyi filtrele",
|
"filter": "Kütüphanede filtrele",
|
||||||
"home": "Ana Sayfa",
|
"home": "Ana Sayfa",
|
||||||
"queued": "{{title}} (Sırada)",
|
"queued": "{{title}} (Sırada)",
|
||||||
"game_has_no_executable": "Oyun için bir çalıştırılabilir dosya seçilmedi",
|
"game_has_no_executable": "Bu oyun için çalıştırılabilir dosya seçilmedi",
|
||||||
"sign_in": "Giriş yap",
|
"sign_in": "Giriş Yap",
|
||||||
"friends": "Arkadaşlar",
|
"friends": "Arkadaşlar",
|
||||||
"need_help": "Yardıma mı ihtiyacınız var?",
|
"need_help": "Yardıma mı ihtiyacınız var?",
|
||||||
"favorites": "Favoriler"
|
"favorites": "Favoriler"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Oyunları ara",
|
"search": "Oyunlarda Ara",
|
||||||
"home": "Ana Sayfa",
|
"home": "Ana Sayfa",
|
||||||
"catalogue": "Katalog",
|
"catalogue": "Katalog",
|
||||||
"downloads": "İndirilenler",
|
"downloads": "İndirilenler",
|
||||||
"search_results": "Arama sonuçları",
|
"search_results": "Arama Sonuçları",
|
||||||
"settings": "Ayarlar",
|
"settings": "Ayarlar",
|
||||||
"version_available_install": "{{version}} sürümü mevcut. Yüklemek ve yeniden başlatmak için buraya tıklayın.",
|
"version_available_install": "{{version}} sürümü mevcut. Yeniden başlatıp yüklemek için tıklayın.",
|
||||||
"version_available_download": "{{version}} sürümü mevcut. İndirmek için buraya tıklayın."
|
"version_available_download": "{{version}} sürümü mevcut. İndirmek için tıklayın."
|
||||||
},
|
},
|
||||||
"bottom_panel": {
|
"bottom_panel": {
|
||||||
"no_downloads_in_progress": "Devam eden indirme yok",
|
"no_downloads_in_progress": "Devam eden indirme yok",
|
||||||
"downloading_metadata": "{{title}} meta verileri indiriliyor…",
|
"downloading_metadata": "{{title}} meta verileri indiriliyor…",
|
||||||
"downloading": "{{title}} indiriliyor… ({{percentage}} tamamlandı) - Tamamlanma: {{eta}} - Hız: {{speed}}",
|
"downloading": "{{title}} indiriliyor… (%{{percentage}} tamamlandı) - Bitiş: {{eta}} - Hız: {{speed}}",
|
||||||
"calculating_eta": "{{title}} indiriliyor… ({{percentage}} tamamlandı) - Kalan süre hesaplanıyor…",
|
"calculating_eta": "{{title}} indiriliyor… (%{{percentage}} tamamlandı) - Kalan süre hesaplanıyor…",
|
||||||
"checking_files": "{{title}} dosyaları kontrol ediliyor… ({{percentage}} tamamlandı)",
|
"checking_files": "{{title}} dosyaları kontrol ediliyor… (%{{percentage}} tamamlandı)",
|
||||||
"installing_common_redist": "{{log}}…",
|
"installing_common_redist": "{{log}}…",
|
||||||
"installation_complete": "İndirme tamamlandı",
|
"installation_complete": "Kurulum tamamlandı",
|
||||||
"installation_complete_message": "Genel bağımlılıklar başarıyla yüklendi."
|
"installation_complete_message": "Gerekli paketler başarıyla yüklendi"
|
||||||
},
|
},
|
||||||
"catalogue": {
|
"catalogue": {
|
||||||
"search": "Filtrele…",
|
"search": "Filtrele…",
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
"download_sources": "İndirme kaynakları",
|
"download_sources": "İndirme kaynakları",
|
||||||
"result_count": "{{resultCount}} sonuç",
|
"result_count": "{{resultCount}} sonuç",
|
||||||
"filter_count": "{{filterCount}} mevcut",
|
"filter_count": "{{filterCount}} mevcut",
|
||||||
"clear_filters": "{{filterCount}} seçili filtreyi temizle"
|
"clear_filters": "{{filterCount}} seçiliyi temizle"
|
||||||
},
|
},
|
||||||
"game_details": {
|
"game_details": {
|
||||||
"open_download_options": "İndirme seçeneklerini aç",
|
"open_download_options": "İndirme seçeneklerini aç",
|
||||||
@@ -67,32 +67,32 @@
|
|||||||
"download_options_other": "{{count}} indirme seçeneği",
|
"download_options_other": "{{count}} indirme seçeneği",
|
||||||
"updated_at": "{{updated_at}} tarihinde güncellendi",
|
"updated_at": "{{updated_at}} tarihinde güncellendi",
|
||||||
"install": "Yükle",
|
"install": "Yükle",
|
||||||
"resume": "Devam et",
|
"resume": "Devam Et",
|
||||||
"pause": "Durdur",
|
"pause": "Duraklat",
|
||||||
"cancel": "İptal et",
|
"cancel": "İptal Et",
|
||||||
"remove": "Kaldır",
|
"remove": "Kaldır",
|
||||||
"space_left_on_disk": "Diskte {{space}} boş alan kaldı",
|
"space_left_on_disk": "Diskte {{space}} boş alan kaldı",
|
||||||
"eta": "{{eta}} tahmini bitiş",
|
"eta": "Bitiş: {{eta}}",
|
||||||
"calculating_eta": "Kalan süre hesaplanıyor…",
|
"calculating_eta": "Kalan süre hesaplanıyor…",
|
||||||
"downloading_metadata": "Meta veriler indiriliyor…",
|
"downloading_metadata": "Meta veriler indiriliyor…",
|
||||||
"filter": "Paketleri filtrele",
|
"filter": "Paketleri filtrele",
|
||||||
"requirements": "Sistem gereksinimleri",
|
"requirements": "Sistem Gereksinimleri",
|
||||||
"minimum": "Minimum",
|
"minimum": "Minimum",
|
||||||
"recommended": "Önerilen",
|
"recommended": "Önerilen",
|
||||||
"paused": "Durduruldu",
|
"paused": "Duraklatıldı",
|
||||||
"release_date": "{{date}} tarihinde yayımlandı",
|
"release_date": "{{date}} tarihinde yayımlandı",
|
||||||
"publisher": "{{publisher}} tarafından yayımlandı",
|
"publisher": "{{publisher}} tarafından yayımlandı",
|
||||||
"hours": "saat",
|
"hours": "saat",
|
||||||
"minutes": "dakika",
|
"minutes": "dakika",
|
||||||
"amount_hours": "{{amount}} saat",
|
"amount_hours": "{{amount}} saat",
|
||||||
"amount_minutes": "{{amount}} dakika",
|
"amount_minutes": "{{amount}} dakika",
|
||||||
"accuracy": "{{accuracy}}% doğruluk",
|
"accuracy": "%{{accuracy}} doğruluk",
|
||||||
"add_to_library": "Kütüphaneye ekle",
|
"add_to_library": "Kütüphaneye ekle",
|
||||||
"remove_from_library": "Kütüphaneden kaldır",
|
"remove_from_library": "Kütüphaneden kaldır",
|
||||||
"no_downloads": "İndirilebilir içerik yok",
|
"no_downloads": "İndirme mevcut değil",
|
||||||
"play_time": "{{amount}} süre oynandı",
|
"play_time": "{{amount}} oynandı",
|
||||||
"last_time_played": "Son oynama {{period}} önce",
|
"last_time_played": "Son oynanma: {{period}}",
|
||||||
"not_played_yet": "{{title}} henüz oynanmadı",
|
"not_played_yet": "{{title}} oyununu henüz oynamadınız",
|
||||||
"next_suggestion": "Sonraki öneri",
|
"next_suggestion": "Sonraki öneri",
|
||||||
"play": "Oyna",
|
"play": "Oyna",
|
||||||
"deleting": "Yükleyici siliniyor…",
|
"deleting": "Yükleyici siliniyor…",
|
||||||
@@ -107,134 +107,140 @@
|
|||||||
"download_path": "İndirme yolu",
|
"download_path": "İndirme yolu",
|
||||||
"previous_screenshot": "Önceki ekran görüntüsü",
|
"previous_screenshot": "Önceki ekran görüntüsü",
|
||||||
"next_screenshot": "Sonraki ekran görüntüsü",
|
"next_screenshot": "Sonraki ekran görüntüsü",
|
||||||
"screenshot": "{{number}} ekran görüntüsü",
|
"screenshot": "Ekran görüntüsü {{number}}",
|
||||||
"open_screenshot": "{{number}} ekran görüntüsünü aç",
|
"open_screenshot": "Ekran görüntüsünü aç ({{number}})",
|
||||||
"download_settings": "İndirme ayarları",
|
"download_settings": "İndirme ayarları",
|
||||||
"downloader": "İndirici",
|
"downloader": "İndirici",
|
||||||
"select_executable": "Seç",
|
"select_executable": "Seç",
|
||||||
"no_executable_selected": "Hiçbir çalıştırılabilir dosya seçilmedi",
|
"no_executable_selected": "Çalıştırılabilir dosya seçilmedi",
|
||||||
"open_folder": "Klasörü aç",
|
"open_folder": "Klasörü aç",
|
||||||
"open_download_location": "İndirilen dosyaları gör",
|
"open_download_location": "İndirilen dosyaları görüntüle",
|
||||||
"create_shortcut": "Masaüstü kısayolu oluştur",
|
"create_shortcut": "Masaüstü kısayolu oluştur",
|
||||||
"clear": "Temizle",
|
"clear": "Temizle",
|
||||||
"remove_files": "Dosyaları kaldır",
|
"remove_files": "Dosyaları kaldır",
|
||||||
"remove_from_library_title": "Emin misiniz?",
|
"remove_from_library_title": "Emin misiniz?",
|
||||||
"remove_from_library_description": "Bu işlem sonrasında {{game}} oyunu kütüphanenizden kaldıracaktır",
|
"remove_from_library_description": "{{game}} oyununu kütüphanenizden kaldıracaktır",
|
||||||
"options": "Seçenekler",
|
"options": "Seçenekler",
|
||||||
"executable_section_title": "Çalıştırılabilir dosya",
|
"executable_section_title": "Çalıştırılabilir dosya",
|
||||||
"executable_section_description": "\"Oyna\" butonuna tıklandığında çalıştırılacak dosyanın yolu",
|
"executable_section_description": "\"Oyna\" seçildiğinde çalışacak dosyanın yolu",
|
||||||
"downloads_section_title": "İndirmeler",
|
"downloads_section_title": "İndirilenler",
|
||||||
"downloads_section_description": "Bu oyun için güncellemeleri veya diğer sürümleri kontrol edin",
|
"downloads_section_description": "Bu oyunun güncelleme veya diğer sürümlerine göz atın",
|
||||||
"danger_zone_section_title": "Tehlike bölgesi",
|
"danger_zone_section_title": "Tehlikeli Alan",
|
||||||
"danger_zone_section_description": "Bu oyunu kütüphanenizden kaldırın veya Hydra tarafından indirilen dosyaları silin.",
|
"danger_zone_section_description": "Bu oyunu kütüphanenizden veya Hydra tarafından indirilen dosyalardan kaldırın",
|
||||||
"download_in_progress": "İndirme devam ediyor",
|
"download_in_progress": "İndirme sürüyor",
|
||||||
"download_paused": "İndirme durduruldu",
|
"download_paused": "İndirme duraklatıldı",
|
||||||
"last_downloaded_option": "Son indirilen seçenek",
|
"last_downloaded_option": "Son indirilen seçenek",
|
||||||
|
"create_steam_shortcut": "Steam kısayolu oluştur",
|
||||||
"create_shortcut_success": "Kısayol başarıyla oluşturuldu",
|
"create_shortcut_success": "Kısayol başarıyla oluşturuldu",
|
||||||
|
"you_might_need_to_restart_steam": "Değişiklikleri görmek için Steam'i yeniden başlatmanız gerekebilir",
|
||||||
"create_shortcut_error": "Kısayol oluşturulurken hata oluştu",
|
"create_shortcut_error": "Kısayol oluşturulurken hata oluştu",
|
||||||
"nsfw_content_title": "Bu oyun uygunsuz içerik içeriyor",
|
"nsfw_content_title": "Bu oyun uygunsuz içerik barındırıyor",
|
||||||
"nsfw_content_description": "{{title}} her yaş için uygun olmayabilecek içeriklere sahiptir. Devam etmek istediğinizden emin misiniz?",
|
"nsfw_content_description": "{{title}} bazı kullanıcılar için uygun olmayabilecek içerik barındırıyor. Devam etmek istediğinizden emin misiniz?",
|
||||||
"allow_nsfw_content": "Devam et",
|
"allow_nsfw_content": "Devam et",
|
||||||
"refuse_nsfw_content": "Geri dön",
|
"refuse_nsfw_content": "Geri dön",
|
||||||
"stats": "İstatistikler",
|
"stats": "İstatistikler",
|
||||||
"download_count": "İndirme sayısı",
|
"download_count": "İndirme",
|
||||||
"player_count": "Aktif oyuncular",
|
"player_count": "Aktif oyuncular",
|
||||||
"download_error": "Bu indirme seçeneği mevcut değil",
|
"download_error": "Bu indirme seçeneği kullanılamıyor",
|
||||||
"download": "İndir",
|
"download": "İndir",
|
||||||
"executable_path_in_use": "\"{{game}}\" tarafından kullanılan çalıştırılabilir dosya",
|
"executable_path_in_use": "Çalıştırılabilir dosya zaten \"{{game}}\" tarafından kullanılıyor",
|
||||||
"warning": "Uyarı:",
|
"warning": "Uyarı:",
|
||||||
"hydra_needs_to_remain_open": "Bu indirmenin tamamlanması için Hydra açık kalmalıdır. Eğer Hydra kapanırsa, ilerleme kaydedilmez.",
|
"hydra_needs_to_remain_open": "Bu indirme için, Hydra programının tamamlanana kadar açık kalması gerekir. Hydra kapanırsa, ilerlemeniz kaybolacaktır.",
|
||||||
"achievements": "Başarımlar",
|
"achievements": "Başarımlar",
|
||||||
"achievements_count": "Başarımlar {{unlockedCount}}/{{achievementsCount}}",
|
"achievements_count": "Başarımlar {{unlockedCount}}/{{achievementsCount}}",
|
||||||
"cloud_save": "Bulut kaydı",
|
"cloud_save": "Bulut Kaydı",
|
||||||
"cloud_save_description": "İlerlemenizi buluta kaydedin ve herhangi bir cihazda oynamaya devam edin",
|
"cloud_save_description": "İlerlemenizi buluta kaydedin ve herhangi bir cihazdan devam edin",
|
||||||
"backups": "Yedekler",
|
"backups": "Yedekler",
|
||||||
"install_backup": "Yükle",
|
"install_backup": "Yükle",
|
||||||
"delete_backup": "Sil",
|
"delete_backup": "Sil",
|
||||||
"create_backup": "Yeni yedek oluştur",
|
"create_backup": "Yeni Yedek",
|
||||||
"last_backup_date": "{{date}} tarihindeki son yedek",
|
"last_backup_date": "Son yedekleme: {{date}}",
|
||||||
"no_backup_preview": "Bu oyun için bir kayıt dosyası bulunamadı",
|
"no_backup_preview": "Bu başlık için kayıtlı oyun bulunamadı",
|
||||||
"restoring_backup": "Yedek geri yükleniyor ({{progress}} tamamlandı)…",
|
"restoring_backup": "Yedek geri yükleniyor (%{{progress}} tamamlandı)…",
|
||||||
"uploading_backup": "Yedek yükleniyor…",
|
"uploading_backup": "Yedek yükleniyor…",
|
||||||
"no_backups": "Bu oyun için henüz bir yedek oluşturmadınız",
|
"no_backups": "Bu oyun için henüz yedek oluşturmadınız",
|
||||||
"backup_uploaded": "Yedek yüklendi",
|
"backup_uploaded": "Yedek yüklendi",
|
||||||
"backup_deleted": "Yedek silindi",
|
"backup_deleted": "Yedek silindi",
|
||||||
"backup_restored": "Yedek geri yüklendi",
|
"backup_restored": "Yedek geri yüklendi",
|
||||||
"see_all_achievements": "Tüm başarımları gör",
|
"see_all_achievements": "Tüm başarımları görüntüle",
|
||||||
"sign_in_to_see_achievements": "Başarımları görmek için oturum açın",
|
"sign_in_to_see_achievements": "Başarımları görmek için giriş yapın",
|
||||||
"mapping_method_automatic": "Otomatik",
|
"mapping_method_automatic": "Otomatik",
|
||||||
"mapping_method_manual": "Manuel",
|
"mapping_method_manual": "Manuel",
|
||||||
"mapping_method_label": "Eşleme yöntemi",
|
"mapping_method_label": "Eşleme metodu",
|
||||||
"files_automatically_mapped": "Dosyalar otomatik olarak eşlendi",
|
"files_automatically_mapped": "Dosyalar otomatik eşlendi",
|
||||||
"no_backups_created": "Bu oyun için yedek oluşturulmadı",
|
"no_backups_created": "Bu oyun için oluşturulmuş yedek yok",
|
||||||
"manage_files": "Dosyaları yönet",
|
"manage_files": "Dosyaları yönet",
|
||||||
"loading_save_preview": "Kayıtlı oyunlar aranıyor…",
|
"loading_save_preview": "Kayıtlı oyunlar aranıyor…",
|
||||||
"wine_prefix": "Wine Prefix",
|
"wine_prefix": "Wine Ön Ek",
|
||||||
"wine_prefix_description": "Bu oyunu çalıştırmak için kullanılan Wine Prefix",
|
"wine_prefix_description": "Bu oyunu çalıştırmak için kullanılan Wine ön eki",
|
||||||
"launch_options": "Başlatma Seçenekleri",
|
"launch_options": "Başlatma Seçenekleri",
|
||||||
"launch_options_description": "İleri düzey kullanıcılar, başlatma seçeneklerine parametreler girebilir (deneysel özellik)",
|
"launch_options_description": "Gelişmiş kullanıcılar için başlatma parametreleri tanımlayın (deneysel özellik)",
|
||||||
"launch_options_placeholder": "Belirtilen bir parametre yok",
|
"launch_options_placeholder": "Parametre belirtilmedi",
|
||||||
"no_download_option_info": "Bilgi mevcut değil",
|
"no_download_option_info": "Bilgi mevcut değil",
|
||||||
"backup_deletion_failed": "Yedek silinemedi",
|
"backup_deletion_failed": "Yedek silme işlemi başarısız oldu",
|
||||||
"max_number_of_artifacts_reached": "Bu oyun için maksimum yedek sayısına ulaşıldı",
|
"max_number_of_artifacts_reached": "Bu oyun için azami yedekleme sayısına ulaşıldı",
|
||||||
"achievements_not_sync": "Başarımlarınızı senkronize etmeyi öğrenin",
|
"achievements_not_sync": "Başarımlarını eşitlemeyi öğren",
|
||||||
"manage_files_description": "Hangi dosyaların yedeklenip geri yükleneceğini yönetin",
|
"manage_files_description": "Hangi dosyaların yedekleneceğini ve geri yükleneceğini yönetin",
|
||||||
"select_folder": "Klasör seç",
|
"select_folder": "Klasör seç",
|
||||||
"backup_from": "{{date}} tarihinden yedek",
|
"backup_from": "{{date}} tarihli yedek",
|
||||||
"automatic_backup_from": "{{date}} tarihinden otomatik kayıt",
|
"automatic_backup_from": "{{date}} tarihli otomatik yedek",
|
||||||
"enable_automatic_cloud_sync": "Otomatik bulut kaydı senkronizasyonunu aktifleştir",
|
"enable_automatic_cloud_sync": "Otomatik bulut eşitlemesini etkinleştir",
|
||||||
"custom_backup_location_set": "Özel yedekleme konumu ayarlandı",
|
"custom_backup_location_set": "Özel yedekleme konumu belirlendi",
|
||||||
"no_directory_selected": "Bir dizin seçilmedi",
|
"no_directory_selected": "Klasör seçilmedi",
|
||||||
"no_write_permission": "Bu dizine indirme yapılamaz. Daha fazla bilgi için buraya tıklayın.",
|
"no_write_permission": "Bu klasöre indirme yapılamıyor. Detaylar için buraya tıklayın.",
|
||||||
"reset_achievements": "Başarımları sıfırla",
|
"reset_achievements": "Başarımları sıfırla",
|
||||||
"reset_achievements_description": "Bu işlem {{game}} için tüm başarımları sıfırlar",
|
"reset_achievements_description": "{{game}} için tüm başarımlar sıfırlanacak",
|
||||||
"reset_achievements_title": "Emin misiniz?",
|
"reset_achievements_title": "Emin misiniz?",
|
||||||
"reset_achievements_success": "Başarımlar başarıyla sıfırlandı",
|
"reset_achievements_success": "Başarımlar başarıyla sıfırlandı",
|
||||||
"reset_achievements_error": "Başarımlar sıfırlanamadı",
|
"reset_achievements_error": "Başarımlar sıfırlanamadı",
|
||||||
"download_error_gofile_quota_exceeded": "Gofile aylık kotanızı doldurdunuz. Kotanın yenilenmesini bekleyin.",
|
"download_error_gofile_quota_exceeded": "Gofile aylık kotanızı aştınız. Lütfen kotanın sıfırlanmasını bekleyin.",
|
||||||
"download_error_real_debrid_account_not_authorized": "Real-Debrid hesabınız yeni indirme işlemleri yapmak için yetkilendirilmemiş. Lütfen hesap ayarlarınızı kontrol edip tekrar deneyin.",
|
"download_error_real_debrid_account_not_authorized": "Real-Debrid hesabınız yeni indirmeler için yetkili değil. Hesap ayarlarınızı kontrol edip tekrar deneyin.",
|
||||||
"download_error_not_cached_on_real_debrid": "Bu indirme Real-Debrid üzerinde mevcut değil ve Real-Debrid'den indirme durumu henüz sorgulanamıyor.",
|
"download_error_not_cached_on_real_debrid": "Bu indirme Real-Debrid üzerinde mevcut değil ve durum sorgulanamıyor.",
|
||||||
"download_error_not_cached_on_torbox": "Bu indirme TorBox'ta mevcut değil ve TorBox'tan indirme durumu henüz sorgulanamıyor.",
|
"download_error_not_cached_on_torbox": "Bu indirme TorBox üzerinde mevcut değil ve durum sorgulanamıyor.",
|
||||||
"download_error_not_cached_on_hydra": "Bu indirme Nimbus'ta mevcut değil.",
|
"download_error_not_cached_on_hydra": "Bu indirme Nimbus üzerinde mevcut değil.",
|
||||||
"game_removed_from_favorites": "Oyun favorilerden silindi",
|
"game_removed_from_favorites": "Oyun favorilerden kaldırıldı",
|
||||||
"game_added_to_favorites": "Oyun favorilere eklendi",
|
"game_added_to_favorites": "Oyun favorilere eklendi",
|
||||||
"automatically_extract_downloaded_files": "Yüklenmiş dosyaları otomatik olarak çıkart"
|
"automatically_extract_downloaded_files": "İndirilen dosyaları otomatik çıkart",
|
||||||
|
"create_start_menu_shortcut": "Başlat Menüsüne kısayol oluştur",
|
||||||
|
"invalid_wine_prefix_path": "Geçersiz Wine ön ek yolu",
|
||||||
|
"invalid_wine_prefix_path_description": "Wine ön ek yolu hatalı. Lütfen yolu kontrol edin ve tekrar deneyin.",
|
||||||
|
"missing_wine_prefix": "Linux'ta yedekleme oluşturmak için Wine ön eki gereklidir"
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"title": "Hydra'yı Aktive Et",
|
"title": "Hydra'yı Etkinleştir",
|
||||||
"installation_id": "Kurulum Kimliği:",
|
"installation_id": "Kurulum ID:",
|
||||||
"enter_activation_code": "Aktivasyon kodunuzu girin",
|
"enter_activation_code": "Etkinleştirme kodunu girin",
|
||||||
"message": "Bunu nasıl edineceğini bilmiyorsan, buna sahip olmamalısın.",
|
"message": "Bu kodun nereden alınacağını bilmiyorsanız, zaten bu kodu kullanmamanız gerekir.",
|
||||||
"activate": "Aktive Et",
|
"activate": "Etkinleştir",
|
||||||
"loading": "Yükleniyor…"
|
"loading": "Yükleniyor…"
|
||||||
},
|
},
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"resume": "Devam Et",
|
"resume": "Devam Et",
|
||||||
"pause": "Duraklat",
|
"pause": "Duraklat",
|
||||||
"eta": "Tamamlama {{eta}}",
|
"eta": "Bitiş: {{eta}}",
|
||||||
"paused": "Duraklatıldı",
|
"paused": "Duraklatıldı",
|
||||||
"verifying": "Doğrulanıyor…",
|
"verifying": "Doğrulanıyor…",
|
||||||
"completed": "Tamamlandı",
|
"completed": "Tamamlandı",
|
||||||
"removed": "İndirilmedi",
|
"removed": "İndirilmedi",
|
||||||
"cancel": "İptal Et",
|
"cancel": "İptal Et",
|
||||||
"filter": "İndirilen oyunları filtrele",
|
"filter": "İndirilen oyunlarda filtrele",
|
||||||
"remove": "Kaldır",
|
"remove": "Kaldır",
|
||||||
"downloading_metadata": "Meta verileri indiriliyor…",
|
"downloading_metadata": "Meta verileri indiriliyor…",
|
||||||
"deleting": "Yükleyici siliniyor…",
|
"deleting": "Yükleyici siliniyor…",
|
||||||
"delete": "Yükleyiciyi kaldır",
|
"delete": "Yükleyiciyi kaldır",
|
||||||
"delete_modal_title": "Emin misiniz?",
|
"delete_modal_title": "Emin misiniz?",
|
||||||
"delete_modal_description": "Bu işlem, tüm kurulum dosyalarını bilgisayarınızdan kaldıracaktır",
|
"delete_modal_description": "Tüm kurulum dosyaları bilgisayarınızdan kaldırılacaktır",
|
||||||
"install": "Kur",
|
"install": "Yükle",
|
||||||
"download_in_progress": "Devam ediyor",
|
"download_in_progress": "Devam ediyor",
|
||||||
"queued_downloads": "Sıradaki indirmeler",
|
"queued_downloads": "Sıradaki indirmeler",
|
||||||
"downloads_completed": "Tamamlananlar",
|
"downloads_completed": "Tamamlananlar",
|
||||||
"queued": "Sırada",
|
"queued": "Sırada",
|
||||||
"no_downloads_title": "Bomboş",
|
"no_downloads_title": "Çok boş görünüyor",
|
||||||
"no_downloads_description": "Henüz Hydra ile hiçbir şey indirmediniz, ancak başlamak için asla geç değil.",
|
"no_downloads_description": "Hydra ile henüz bir şey indirmediniz, başlamak için asla geç değildir.",
|
||||||
"checking_files": "Dosyalar kontrol ediliyor…",
|
"checking_files": "Dosyalar kontrol ediliyor…",
|
||||||
"seeding": "Paylaşılıyor",
|
"seeding": "Seed yapılıyor",
|
||||||
"stop_seeding": "Paylaşımı durdur",
|
"stop_seeding": "Seed yapmayı durdur",
|
||||||
"resume_seeding": "Paylaşımı sürdür",
|
"resume_seeding": "Seed yapmaya devam et",
|
||||||
"options": "Yönet",
|
"options": "Yönet",
|
||||||
"extract": "Dosyaları çıkart",
|
"extract": "Dosyaları çıkart",
|
||||||
"extracting": "Dosyalar çıkartılıyor…"
|
"extracting": "Dosyalar çıkartılıyor…"
|
||||||
@@ -243,181 +249,202 @@
|
|||||||
"downloads_path": "İndirme yolu",
|
"downloads_path": "İndirme yolu",
|
||||||
"change": "Güncelle",
|
"change": "Güncelle",
|
||||||
"notifications": "Bildirimler",
|
"notifications": "Bildirimler",
|
||||||
"enable_download_notifications": "Bir indirme tamamlandığında",
|
"enable_download_notifications": "İndirme tamamlandığında",
|
||||||
"enable_repack_list_notifications": "Yeni bir repack eklendiğinde",
|
"enable_repack_list_notifications": "Yeni bir paket eklendiğinde",
|
||||||
"real_debrid_api_token_label": "Real-Debrid API anahtarı",
|
"real_debrid_api_token_label": "Real-Debrid API anahtarı",
|
||||||
"quit_app_instead_hiding": "Hydra'yı kapatınca sistem tepsisine gitmesin",
|
"quit_app_instead_hiding": "Hydra kapatıldığında gizleme",
|
||||||
"launch_with_system": "Hydra'yı sistem başlatıldığında çalıştır",
|
"launch_with_system": "Sistem başlatıldığında Hydra'yı aç",
|
||||||
"general": "Genel",
|
"general": "Genel",
|
||||||
"behavior": "Davranış",
|
"behavior": "Davranış",
|
||||||
"download_sources": "İndirme kaynakları",
|
"download_sources": "İndirme kaynakları",
|
||||||
"language": "Dil",
|
"language": "Dil",
|
||||||
"api_token": "API Anahtarı",
|
"api_token": "API Anahtarı",
|
||||||
"enable_real_debrid": "Real-Debrid'i Etkinleştir",
|
"enable_real_debrid": "Real-Debrid’i etkinleştir",
|
||||||
"real_debrid_description": "Real-Debrid, yalnızca internet hızınızla sınırlı olarak hızlı dosya indirmenizi sağlayan sınırsız bir indirici.",
|
"real_debrid_description": "Real-Debrid, yalnızca internet hızınızla sınırlı olarak dosyaları hızlı indirmenizi sağlayan sınırsız bir indirme servisidir.",
|
||||||
"debrid_invalid_token": "Geçersiz API anahtarı",
|
"debrid_invalid_token": "Geçersiz API anahtarı",
|
||||||
"debrid_api_token_hint": "API anahtarınızı <0>buradan</0> alabilirsiniz",
|
"debrid_api_token_hint": "API anahtarınızı <0>buradan</0> alabilirsiniz",
|
||||||
"real_debrid_free_account_error": "\"{{username}}\" hesabı ücretsiz bir hesaptır. Lütfen Real-Debrid abonesi olun",
|
"real_debrid_free_account_error": "\"{{username}}\" hesabı ücretsizdir. Lütfen Real-Debrid’e abone olun",
|
||||||
"debrid_linked_message": "\"{{username}}\" hesabı bağlandı",
|
"debrid_linked_message": "\"{{username}}\" hesabı bağlandı",
|
||||||
"save_changes": "Değişiklikleri Kaydet",
|
"save_changes": "Değişiklikleri Kaydet",
|
||||||
"changes_saved": "Değişiklikler başarıyla kaydedildi",
|
"changes_saved": "Değişiklikler başarıyla kaydedildi",
|
||||||
"download_sources_description": "Hydra, indirme bağlantılarını bu kaynaklardan alacak. Kaynak URL, indirme bağlantılarını içeren bir .json dosyasına doğrudan bir bağlantı olmalıdır.",
|
"download_sources_description": "Hydra, indirme bağlantılarını bu kaynaklardan alacaktır. Kaynak URL’si, bağlantıların bulunduğu bir .json dosyasına doğrudan bağlantı olmalıdır.",
|
||||||
"validate_download_source": "Doğrula",
|
"validate_download_source": "Doğrula",
|
||||||
"remove_download_source": "Kaldır",
|
"remove_download_source": "Kaldır",
|
||||||
"add_download_source": "Kaynak ekle",
|
"add_download_source": "Kaynak ekle",
|
||||||
"cancel_button_confirmation_delete_all_sources": "Hayır",
|
|
||||||
"confirm_button_confirmation_delete_all_sources": "Evet, her şeyi sil",
|
|
||||||
"description_confirmation_delete_all_sources": "Tüm indirme kaynaklarını sileceksiniz",
|
|
||||||
"title_confirmation_delete_all_sources": "Tüm indirme kaynaklarını sil",
|
|
||||||
"removed_download_sources": "Yazı tipleri kaldırıldı",
|
|
||||||
"button_delete_all_sources": "Tüm indirme kaynaklarını kaldır",
|
|
||||||
"download_count_zero": "İndirme seçeneği yok",
|
"download_count_zero": "İndirme seçeneği yok",
|
||||||
"download_count_one": "{{countFormatted}} indirme seçeneği",
|
"download_count_one": "{{countFormatted}} indirme seçeneği",
|
||||||
"download_count_other": "{{countFormatted}} indirme seçeneği",
|
"download_count_other": "{{countFormatted}} indirme seçeneği",
|
||||||
"download_source_url": "İndirme kaynağı URL'si",
|
"download_source_url": "İndirme kaynağı URL'si",
|
||||||
"add_download_source_description": ".json dosyasının URL'sini girin",
|
"add_download_source_description": ".json dosyasının URL’sini girin",
|
||||||
"download_source_up_to_date": "Güncel",
|
"download_source_up_to_date": "Güncel",
|
||||||
"download_source_errored": "Hatalı",
|
"download_source_errored": "Hatalı",
|
||||||
"sync_download_sources": "Kaynakları senkronize et",
|
"sync_download_sources": "Kaynakları eşitle",
|
||||||
"removed_download_source": "İndirme kaynağı kaldırıldı",
|
"removed_download_source": "İndirme kaynağı kaldırıldı",
|
||||||
|
"removed_download_sources": "İndirme kaynakları kaldırıldı",
|
||||||
|
"cancel_button_confirmation_delete_all_sources": "Hayır",
|
||||||
|
"confirm_button_confirmation_delete_all_sources": "Evet, hepsini sil",
|
||||||
|
"title_confirmation_delete_all_sources": "Tüm indirme kaynaklarını sil",
|
||||||
|
"description_confirmation_delete_all_sources": "Tüm indirme kaynaklarını sileceksiniz",
|
||||||
|
"button_delete_all_sources": "Tümünü kaldır",
|
||||||
"added_download_source": "İndirme kaynağı eklendi",
|
"added_download_source": "İndirme kaynağı eklendi",
|
||||||
"download_sources_synced": "Tüm indirme kaynakları senkronize edildi",
|
"download_sources_synced": "Tüm indirme kaynakları eşitlendi",
|
||||||
"insert_valid_json_url": "Geçerli bir JSON URL'si girin",
|
"insert_valid_json_url": "Geçerli bir JSON URL’si girin",
|
||||||
"found_download_option_zero": "Hiçbir indirme seçeneği bulunamadı",
|
"found_download_option_zero": "İndirme seçeneği bulunamadı",
|
||||||
"found_download_option_one": "{{countFormatted}} indirme seçeneği bulundu",
|
"found_download_option_one": "{{countFormatted}} indirme seçeneği bulundu",
|
||||||
"found_download_option_other": "{{countFormatted}} indirme seçeneği bulundu",
|
"found_download_option_other": "{{countFormatted}} indirme seçeneği bulundu",
|
||||||
"import": "İçe aktar",
|
"import": "İçe Aktar",
|
||||||
"public": "Herkese açık",
|
"public": "Herkese Açık",
|
||||||
"private": "Gizli",
|
"private": "Gizli",
|
||||||
"friends_only": "Sadece arkadaşlar",
|
"friends_only": "Yalnızca Arkadaşlar",
|
||||||
"privacy": "Gizlilik",
|
"privacy": "Gizlilik",
|
||||||
"profile_visibility": "Profil görünürlüğü",
|
"profile_visibility": "Profil Görünürlüğü",
|
||||||
"profile_visibility_description": "Profilinizi ve kütüphanenizi kimlerin görebileceğini seçin",
|
"profile_visibility_description": "Profilinizi ve kütüphanenizi kimlerin görebileceğini seçin",
|
||||||
"required_field": "Bu alan gereklidir",
|
"required_field": "Bu alan gereklidir",
|
||||||
"source_already_exists": "Bu kaynak zaten eklenmiş",
|
"source_already_exists": "Bu kaynak zaten eklendi",
|
||||||
"must_be_valid_url": "Kaynak geçerli bir URL olmalıdır",
|
"must_be_valid_url": "Kaynak geçerli bir URL olmalı",
|
||||||
"blocked_users": "Engellenen kullanıcılar",
|
"blocked_users": "Engellenen kullanıcılar",
|
||||||
"user_unblocked": "Kullanıcının engeli kaldırıldı",
|
"user_unblocked": "Kullanıcı engeli kaldırıldı",
|
||||||
"enable_achievement_notifications": "Bir başarım kilidi açıldığında",
|
"enable_achievement_notifications": "Bir başarı açıldığında",
|
||||||
"launch_minimized": "Hydra'yı küçültülmüş başlat",
|
"launch_minimized": "Hydra'yı küçük aç",
|
||||||
"disable_nsfw_alert": "NSFW uyarısını devre dışı bırak",
|
"disable_nsfw_alert": "NSFW uyarısını devre dışı bırak",
|
||||||
"seed_after_download_complete": "İndirme tamamlandıktan sonra paylaş",
|
"seed_after_download_complete": "İndirme sonrası seed yap",
|
||||||
"show_hidden_achievement_description": "Gizli başarım açıklamalarını kilitlenmeden önce göster",
|
"show_hidden_achievement_description": "Açılmadan önce gizli başarı açıklamasını göster",
|
||||||
"account": "Hesap",
|
"account": "Hesap",
|
||||||
"no_users_blocked": "Hiçbir kullanıcıyı engellemediniz",
|
"no_users_blocked": "Hiçbir kullanıcıyı engellemediniz",
|
||||||
"subscription_active_until": "Hydra Cloud'unuz {{date}} tarihine kadar aktif",
|
"subscription_active_until": "Hydra Cloud üyeliğiniz {{date}} tarihine kadar aktif",
|
||||||
"manage_subscription": "Aboneliği yönet",
|
"manage_subscription": "Aboneliği yönet",
|
||||||
"update_email": "E-posta'yı güncelle",
|
"update_email": "E-postayı güncelle",
|
||||||
"update_password": "Şifreyi güncelle",
|
"update_password": "Şifreyi güncelle",
|
||||||
"current_email": "Aktif e-posta'nız",
|
"current_email": "Mevcut e-posta:",
|
||||||
"no_email_account": "Henüz ayarlanmış bir e-postanız yok",
|
"no_email_account": "Henüz bir e-posta tanımlanmadı",
|
||||||
"account_data_updated_successfully": "Hesap bilgileri başarıyla güncellendi",
|
"account_data_updated_successfully": "Hesap verileri başarıyla güncellendi",
|
||||||
"renew_subscription": "Hydra Cloud'u yenile",
|
"renew_subscription": "Hydra Cloud'u yenile",
|
||||||
"subscription_expired_at": "Aboneliğiniz {{date}} tarihinde sona erdi",
|
"subscription_expired_at": "Aboneliğiniz {{date}} tarihinde sona erdi",
|
||||||
"no_subscription": "Hydra'yı en iyi şekilde deneyimleyin",
|
"no_subscription": "Hydra'yı en iyi şekilde kullanın",
|
||||||
"become_subscriber": "Hydra Cloud'lu ol",
|
"become_subscriber": "Hydra Cloud Ol",
|
||||||
"subscription_renew_cancelled": "Otomatik yenileme devre dışı",
|
"subscription_renew_cancelled": "Otomatik yenileme devre dışı bırakıldı",
|
||||||
"subscription_renews_on": "Aboneliğiniz {{date}} tarihinde yenilenecek",
|
"subscription_renews_on": "Aboneliğiniz {{date}} tarihinde yenilenecek",
|
||||||
"bill_sent_until": "Bir sonraki faturanız bu tarihe kadar gönderilecek",
|
"bill_sent_until": "Sonraki fatura bu güne kadar gönderilecek",
|
||||||
"no_themes": "Henüz bir temanız yok gibi görünüyor, ama endişelenmeyin, ilk şaheserinizi oluşturmak için buraya tıklayın.",
|
"no_themes": "Henüz bir temanız yok gibi görünüyor, endişelenmeyin, ilk şaheserinizi oluşturmak için buraya tıklayın.",
|
||||||
"editor_tab_code": "Kod",
|
"editor_tab_code": "Kod",
|
||||||
"editor_tab_info": "Bilgi",
|
"editor_tab_info": "Bilgi",
|
||||||
"editor_tab_save": "Kaydet",
|
"editor_tab_save": "Kaydet",
|
||||||
"web_store": "İnternet mağazası",
|
"web_store": "Web Mağaza",
|
||||||
"clear_themes": "Temizle",
|
"clear_themes": "Temizle",
|
||||||
"create_theme": "Oluştur",
|
"create_theme": "Oluştur",
|
||||||
"create_theme_modal_title": "Tema oluştur",
|
"create_theme_modal_title": "Özel tema oluştur",
|
||||||
"create_theme_modal_description": "Hydra'nın görünümünü özelleştirmek için yeni bir tema oluştur",
|
"create_theme_modal_description": "Hydra’nın görünümünü özelleştirmek için yeni bir tema oluşturun",
|
||||||
"theme_name": "İsim",
|
"theme_name": "Tema adı",
|
||||||
"insert_theme_name": "Tema ismini gir",
|
"insert_theme_name": "Tema adı girin",
|
||||||
"set_theme": "Temayı seç",
|
"set_theme": "Temayı ayarla",
|
||||||
"unset_theme": "Tema seçimini kaldır",
|
"unset_theme": "Temayı kaldır",
|
||||||
"delete_theme": "Temayı sil",
|
"delete_theme": "Temayı sil",
|
||||||
"edit_theme": "Temayı düzenle",
|
"edit_theme": "Temayı düzenle",
|
||||||
"delete_all_themes": "Tüm temaları sil",
|
"delete_all_themes": "Tüm temaları sil",
|
||||||
"delete_all_themes_description": "Bu tüm temalarınızı silecektir",
|
"delete_all_themes_description": "Tüm özel temalarınız silinecek",
|
||||||
"delete_theme_description": "Bu {{theme}} temasını silecektir",
|
"delete_theme_description": "{{theme}} teması silinecek",
|
||||||
"cancel": "İptal",
|
"cancel": "İptal",
|
||||||
"appearance": "Görünüm",
|
"appearance": "Görünüm",
|
||||||
"enable_torbox": "TorBox'u etkinleştir",
|
"enable_torbox": "TorBox'u Etkinleştir",
|
||||||
"torbox_description": "TorBox, piyasadaki en iyi sunucularla bile rekabet edebilen premium seedbox hizmetinizdir.",
|
"torbox_description": "TorBox, piyasadaki en iyi sunucularla yarışan premium seedbox hizmetinizdir.",
|
||||||
"torbox_account_linked": "TorBox hesabı bağlandı",
|
"torbox_account_linked": "TorBox hesabı bağlandı",
|
||||||
"create_real_debrid_account": "Henüz bir Real-Debrid hesabınız yoksa buraya tıklayın",
|
"create_real_debrid_account": "Henüz Real Debrid hesabınız yoksa buraya tıklayın",
|
||||||
"create_torbox_account": "Henüz bir TorBox hesabınız yoksa buraya tıklayın",
|
"create_torbox_account": "Henüz TorBox hesabınız yoksa buraya tıklayın",
|
||||||
"real_debrid_account_linked": "Real-Debrid hesabı bağlandı",
|
"real_debrid_account_linked": "Real-Debrid hesabı bağlandı",
|
||||||
"name_min_length": "Tema ismi en az 3 karakter uzunluğunda olmalıdır",
|
"name_min_length": "Tema adı en az 3 karakter olmalıdır",
|
||||||
"import_theme": "Temayı içe aktar",
|
"import_theme": "Tema içe aktar",
|
||||||
"import_theme_description": "{{theme}} teması, tema mağazasından içeri aktarılacak",
|
"import_theme_description": "{{theme}} temasını tema mağazasından içe aktaracaksınız",
|
||||||
"error_importing_theme": "Temayı içe aktarmada bir sorun oluştu",
|
"error_importing_theme": "Tema içe aktarılırken hata oluştu",
|
||||||
"theme_imported": "Tema başarıyla içe aktarıldı",
|
"theme_imported": "Tema başarıyla içe aktarıldı",
|
||||||
"enable_friend_request_notifications": "Bir arkadaşlık isteği alındığında",
|
"enable_friend_request_notifications": "Bir arkadaşlık isteği alındığında",
|
||||||
"enable_auto_install": "Güncellemeleri otomatik yükle",
|
"enable_auto_install": "Güncellemeleri otomatik indir",
|
||||||
"common_redist": "Ortak bağımlılıklar",
|
"common_redist": "Gereksinim Paketleri",
|
||||||
"common_redist_description": "Bazı oyunların çalışabilmesi için genel bağımlılıklar gereklidir. Sorun yaşamamak için bunların yüklenmesi önerilir.",
|
"common_redist_description": "Bazı oyunların çalışması için gereksinim paketleri gerekir. Sorun yaşamamak için kurulması önerilir.",
|
||||||
"install_common_redist": "Yükle",
|
"install_common_redist": "Kur",
|
||||||
"installing_common_redist": "Yükleniyor…",
|
"installing_common_redist": "Kuruluyor…",
|
||||||
"show_download_speed_in_megabytes": "İndirme hızını megabayt/saniye (MB/s) cinsinden göster"
|
"show_download_speed_in_megabytes": "İndirme hızını megabayt cinsinden göster",
|
||||||
|
"extract_files_by_default": "İndirme sonrası varsayılan olarak dosyaları çıkar",
|
||||||
|
"achievement_custom_notification_position": "Başarı özel bildirim konumu",
|
||||||
|
"top-left": "Sol üst",
|
||||||
|
"top-center": "Üst orta",
|
||||||
|
"top-right": "Sağ üst",
|
||||||
|
"bottom-left": "Sol alt",
|
||||||
|
"bottom-center": "Alt orta",
|
||||||
|
"bottom-right": "Sağ alt",
|
||||||
|
"enable_achievement_custom_notifications": "Başarı özel bildirimlerini etkinleştir",
|
||||||
|
"alignment": "Hizalama",
|
||||||
|
"variation": "Çeşit",
|
||||||
|
"default": "Varsayılan",
|
||||||
|
"rare": "Nadir",
|
||||||
|
"platinum": "Platin",
|
||||||
|
"hidden": "Gizli",
|
||||||
|
"test_notification": "Test bildirimi",
|
||||||
|
"notification_preview": "Başarı Bildirimi Önizlemesi",
|
||||||
|
"enable_friend_start_game_notifications": "Bir arkadaşınız oyun oynamaya başladığında"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "İndirme tamamlandı",
|
"download_complete": "İndirme tamamlandı",
|
||||||
"game_ready_to_install": "{{title}} kurulmaya hazır",
|
"game_ready_to_install": "{{title}} yüklenmeye hazır",
|
||||||
"repack_list_updated": "Repack listesi güncellendi",
|
"repack_list_updated": "Paket listesi güncellendi",
|
||||||
"repack_count_one": "{{count}} repack eklendi",
|
"repack_count_one": "{{count}} paket eklendi",
|
||||||
"repack_count_other": "{{count}} repack eklendi",
|
"repack_count_other": "{{count}} paket eklendi",
|
||||||
"new_update_available": "{{version}} sürümü mevcut",
|
"new_update_available": "{{version}} sürümü mevcut",
|
||||||
"restart_to_install_update": "Güncellemeyi yüklemek için Hydra'yı yeniden başlatın",
|
"restart_to_install_update": "Güncellemeyi yüklemek için Hydra’yı yeniden başlatın",
|
||||||
"notification_achievement_unlocked_title": "{{game}} için başarım kilidi açıldı",
|
"notification_achievement_unlocked_title": "{{game}} için başarı açıldı",
|
||||||
"notification_achievement_unlocked_body": "{{achievement}} ve diğer {{count}} başarım açıldı",
|
"notification_achievement_unlocked_body": "{{achievement}} ve {{count}} diğer başarı açıldı",
|
||||||
"new_friend_request_description": "Yeni bir arkadaşlık isteğin var",
|
"new_friend_request_description": "{{displayName}} size bir arkadaşlık isteği gönderdi",
|
||||||
"new_friend_request_title": "Yeni arkadaşlık isteği",
|
"new_friend_request_title": "Yeni arkadaşlık isteği",
|
||||||
"extraction_complete": "Çıkartma tamamlandı",
|
"extraction_complete": "Çıkarma tamamlandı",
|
||||||
"game_extracted": "{{title}} başarıyla çıkartıldı"
|
"game_extracted": "{{title}} başarıyla çıkarıldı",
|
||||||
|
"friend_started_playing_game": "{{displayName}} bir oyun oynamaya başladı",
|
||||||
|
"test_achievement_notification_title": "Bu bir test bildirimi",
|
||||||
|
"test_achievement_notification_description": "Oldukça havalı, değil mi?"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Hydra'yı Aç",
|
"open": "Hydra'yı Aç",
|
||||||
"quit": "Çık"
|
"quit": "Çık"
|
||||||
},
|
},
|
||||||
"game_card": {
|
"game_card": {
|
||||||
"no_downloads": "İndirilebilir içerik bulunmuyor",
|
|
||||||
"available_one": "Mevcut",
|
"available_one": "Mevcut",
|
||||||
"available_other": "Mevcut"
|
"available_other": "Mevcut",
|
||||||
|
"no_downloads": "İndirme mevcut değil"
|
||||||
},
|
},
|
||||||
"binary_not_found_modal": {
|
"binary_not_found_modal": {
|
||||||
"title": "Programlar Yüklü Değil",
|
"title": "Programlar Yüklü Değil",
|
||||||
"description": "Wine veya Lutris çalıştırılabilir dosyaları sisteminizde bulunamadı",
|
"description": "Sisteminizde Wine veya Lutris çalıştırılabilir dosyaları bulunamadı",
|
||||||
"instructions": "Oyunun normal çalışabilmesi için bunlardan herhangi birini Linux dağıtımınıza uygun şekilde nasıl kuracağınızı kontrol edin"
|
"instructions": "Oyunun sorunsuz çalışması için Linux dağıtımınızda bunların nasıl kurulacağını kontrol edin"
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"close": "Kapat düğmesi"
|
"close": "Kapat düğmesi"
|
||||||
},
|
},
|
||||||
"forms": {
|
"forms": {
|
||||||
"toggle_password_visibility": "Şifre görünürlüğünü değiştir"
|
"toggle_password_visibility": "Şifreyi göster/gizle"
|
||||||
},
|
},
|
||||||
"user_profile": {
|
"user_profile": {
|
||||||
"amount_hours": "{{amount}} saat",
|
"amount_hours": "{{amount}} saat",
|
||||||
"amount_minutes": "{{amount}} dakika",
|
"amount_minutes": "{{amount}} dakika",
|
||||||
"last_time_played": "Son oynanma {{period}}",
|
"last_time_played": "Son oynanma: {{period}}",
|
||||||
"activity": "Son Etkinlik",
|
"activity": "Son Etkinlik",
|
||||||
"library": "Kütüphane",
|
"library": "Kütüphane",
|
||||||
"total_play_time": "Toplam oynama süresi",
|
"total_play_time": "Toplam oynama süresi",
|
||||||
"no_recent_activity_title": "Hmmm… burada bir şey yok",
|
"no_recent_activity_title": "Hmmm… burada bir şey yok",
|
||||||
"no_recent_activity_description": "Son zamanlarda hiç oyun oynamamışsınız. Bunu değiştirmenin zamanı geldi!",
|
"no_recent_activity_description": "Son zamanlarda hiç oyun oynamadınız. Bunu değiştirmenin zamanı geldi!",
|
||||||
"display_name": "Görünen isim",
|
"display_name": "Kullanıcı adı",
|
||||||
"saving": "Kaydediliyor",
|
"saving": "Kaydediliyor",
|
||||||
"save": "Kaydet",
|
"save": "Kaydet",
|
||||||
"edit_profile": "Profili Düzenle",
|
"edit_profile": "Profili Düzenle",
|
||||||
"saved_successfully": "Başarıyla kaydedildi",
|
"saved_successfully": "Başarıyla kaydedildi",
|
||||||
"try_again": "Lütfen tekrar deneyin",
|
"try_again": "Lütfen tekrar deneyin",
|
||||||
"sign_out_modal_title": "Emin misiniz?",
|
"sign_out_modal_title": "Çıkmak istediğinizden emin misiniz?",
|
||||||
"cancel": "İptal",
|
"cancel": "İptal",
|
||||||
"successfully_signed_out": "Başarıyla çıkış yapıldı",
|
"successfully_signed_out": "Başarıyla çıkış yapıldı",
|
||||||
"sign_out": "Çıkış yap",
|
"sign_out": "Çıkış yap",
|
||||||
"playing_for": "{{amount}} oynanıyor",
|
"playing_for": "{{amount}} oynanıyor",
|
||||||
"sign_out_modal_text": "Kütüphaneniz mevcut hesabınıza bağlı. Oturumu kapattığınızda kütüphaneniz görünür olmayacak ve herhangi bir ilerleme kaydedilmeyecek. Oturumu kapatmaya devam etmek istiyor musunuz?",
|
"sign_out_modal_text": "Kütüphaneniz mevcut hesabınıza bağlı. Çıkış yaparsanız, kütüphaneniz görünmeyecek ve ilerlemeniz kaydedilmeyecek. Yine de çıkış yapılsın mı?",
|
||||||
"add_friends": "Arkadaş Ekle",
|
"add_friends": "Arkadaş Ekle",
|
||||||
"add": "Ekle",
|
"add": "Ekle",
|
||||||
"friend_code": "Arkadaş kodu",
|
"friend_code": "Arkadaş kodu",
|
||||||
"see_profile": "Profili gör",
|
"see_profile": "Profili Görüntüle",
|
||||||
"sending": "Gönderiliyor",
|
"sending": "Gönderiliyor",
|
||||||
"friend_request_sent": "Arkadaşlık isteği gönderildi",
|
"friend_request_sent": "Arkadaşlık isteği gönderildi",
|
||||||
"friends": "Arkadaşlar",
|
"friends": "Arkadaşlar",
|
||||||
@@ -428,79 +455,79 @@
|
|||||||
"request_sent": "İstek gönderildi",
|
"request_sent": "İstek gönderildi",
|
||||||
"request_received": "İstek alındı",
|
"request_received": "İstek alındı",
|
||||||
"accept_request": "İsteği kabul et",
|
"accept_request": "İsteği kabul et",
|
||||||
"ignore_request": "İsteği yok say",
|
"ignore_request": "İsteği görmezden gel",
|
||||||
"cancel_request": "İsteği iptal et",
|
"cancel_request": "İsteği iptal et",
|
||||||
"undo_friendship": "Arkadaşlığı sonlandır",
|
"undo_friendship": "Arkadaşlığı kaldır",
|
||||||
"request_accepted": "İstek kabul edildi",
|
"request_accepted": "İstek kabul edildi",
|
||||||
"user_blocked_successfully": "Kullanıcı başarıyla engellendi",
|
"user_blocked_successfully": "Kullanıcı başarıyla engellendi",
|
||||||
"user_block_modal_text": "Bu işlem {{displayName}} adlı kullanıcıyı engelleyecek",
|
"user_block_modal_text": "{{displayName}} engellenecek",
|
||||||
"blocked_users": "Engellenen kullanıcılar",
|
"blocked_users": "Engellenen kullanıcılar",
|
||||||
"unblock": "Engeli kaldır",
|
"unblock": "Engeli kaldır",
|
||||||
"no_friends_added": "Hiç arkadaş eklemediniz",
|
"no_friends_added": "Hiç arkadaşınız yok",
|
||||||
"pending": "Bekliyor",
|
"pending": "Bekleyen",
|
||||||
"no_pending_invites": "Bekleyen davetiniz yok",
|
"no_pending_invites": "Bekleyen davetiniz yok",
|
||||||
"no_blocked_users": "Engellenmiş kullanıcı yok",
|
"no_blocked_users": "Engellenen kullanıcı yok",
|
||||||
"friend_code_copied": "Arkadaş kodu kopyalandı",
|
"friend_code_copied": "Arkadaş kodu kopyalandı",
|
||||||
"undo_friendship_modal_text": "Bu işlem {{displayName}} ile arkadaşlığınızı sonlandıracak",
|
"undo_friendship_modal_text": "Bu işlemle {{displayName}} ile arkadaşlığınız kaldırılacak",
|
||||||
"privacy_hint": "Bunu kimin görebileceğini ayarlamak için <0>Ayarlar</0> bölümüne gidin",
|
"privacy_hint": "Bunu kimlerin görebileceğini <0>Ayarlar</0> bölümünden değiştirebilirsiniz",
|
||||||
"locked_profile": "Bu profil gizli",
|
"locked_profile": "Bu profil gizli",
|
||||||
"image_process_failure": "Görüntü işleme başarısız oldu",
|
"image_process_failure": "Resim işlenirken hata oluştu",
|
||||||
"required_field": "Bu alan gerekli",
|
"required_field": "Bu alan gereklidir",
|
||||||
"displayname_min_length": "Görünen isim en az 3 karakter uzunluğunda olmalıdır",
|
"displayname_min_length": "Kullanıcı adı en az 3 karakter olmalıdır",
|
||||||
"displayname_max_length": "Görünen isim en fazla 50 karakter uzunluğunda olabilir",
|
"displayname_max_length": "Kullanıcı adı en fazla 50 karakter olmalıdır",
|
||||||
"report_profile": "Bu profili bildir",
|
"report_profile": "Bu profili şikayet et",
|
||||||
"report_reason": "Bu profili neden bildiriyorsunuz?",
|
"report_reason": "Bu profili neden şikayet ediyorsunuz?",
|
||||||
"report_description": "Ek bilgi",
|
"report_description": "Ek bilgi",
|
||||||
"report_description_placeholder": "Ek bilgi",
|
"report_description_placeholder": "Ek bilgi",
|
||||||
"report": "Bildir",
|
"report": "Şikayet et",
|
||||||
"report_reason_hate": "Nefret söylemi",
|
"report_reason_hate": "Nefret söylemi",
|
||||||
"report_reason_sexual_content": "Cinsel içerik",
|
"report_reason_sexual_content": "Cinsel içerik",
|
||||||
"report_reason_violence": "Şiddet",
|
"report_reason_violence": "Şiddet",
|
||||||
"report_reason_spam": "Spam",
|
"report_reason_spam": "Spam",
|
||||||
"report_reason_other": "Diğer",
|
"report_reason_other": "Diğer",
|
||||||
"profile_reported": "Profil bildirildi",
|
"profile_reported": "Profil şikayet edildi",
|
||||||
"your_friend_code": "Arkadaş kodunuz:",
|
"your_friend_code": "Arkadaş kodunuz:",
|
||||||
"upload_banner": "Afiş yükle",
|
"upload_banner": "Banner yükle",
|
||||||
"uploading_banner": "Afiş yükleniyor…",
|
"uploading_banner": "Banner yükleniyor…",
|
||||||
"background_image_updated": "Arka plan görüntüsü güncellendi",
|
"background_image_updated": "Arka plan resmi güncellendi",
|
||||||
"stats": "İstatistikler",
|
"stats": "İstatistikler",
|
||||||
"achievements": "Başarımlar",
|
"achievements": "Başarımlar",
|
||||||
"games": "Oyunlar",
|
"games": "Oyunlar",
|
||||||
"top_percentile": "En üst {{percentile}}%",
|
"top_percentile": "En iyi %{{percentile}}",
|
||||||
"ranking_updated_weekly": "Sıralama haftalık olarak güncellenir",
|
"ranking_updated_weekly": "Sıralama haftalık güncellenir",
|
||||||
"playing": "{{game}} oynanıyor",
|
"playing": "{{game}} oynanıyor",
|
||||||
"achievements_unlocked": "Başarımlar açıldı",
|
"achievements_unlocked": "Açılan başarımlar",
|
||||||
"earned_points": "Kazanılan puanlar",
|
"earned_points": "Kazanılan puanlar",
|
||||||
"show_achievements_on_profile": "Başarımlarınızı profilinizde gösterin",
|
"show_achievements_on_profile": "Başarımlarını profilinde göster",
|
||||||
"show_points_on_profile": "Kazandığınız puanları profilinizde gösterin"
|
"show_points_on_profile": "Kazanılan puanlarını profilinde göster"
|
||||||
},
|
},
|
||||||
"achievement": {
|
"achievement": {
|
||||||
"achievement_unlocked": "Başarım açıldı",
|
"achievement_unlocked": "Başarım açıldı",
|
||||||
"user_achievements": "{{displayName}} oyununun Başarımları",
|
"user_achievements": "{{displayName}}'nın Başarımları",
|
||||||
"your_achievements": "Başarımlarınız",
|
"your_achievements": "Başarımlarınız",
|
||||||
"unlocked_at": "Açılma zamanı: {{date}}",
|
"unlocked_at": "Açıldığı tarih: {{date}}",
|
||||||
"subscription_needed": "Bu içeriği görmek için bir Hydra Cloud aboneliği gereklidir",
|
"subscription_needed": "Bu içeriği görmek için Hydra Cloud aboneliği gereklidir",
|
||||||
"new_achievements_unlocked": "{{gameCount}} oyundan {{achievementCount}} yeni başarım açıldı",
|
"new_achievements_unlocked": "{{gameCount}} oyunda {{achievementCount}} yeni başarı açıldı",
|
||||||
"achievement_progress": "{{unlockedCount}}/{{totalCount}} başarım",
|
"achievement_progress": "{{unlockedCount}}/{{totalCount}} başarı",
|
||||||
"achievements_unlocked_for_game": "{{gameTitle}} oyunu için {{achievementCount}} yeni başarım açıldı",
|
"achievements_unlocked_for_game": "{{gameTitle}} için {{achievementCount}} yeni başarı açıldı",
|
||||||
"hidden_achievement_tooltip": "Bu gizli bir başarımdır",
|
"hidden_achievement_tooltip": "Bu gizli bir başarıdır",
|
||||||
"achievement_earn_points": "Bu başarım ile {{points}} puan kazanın",
|
"achievement_earn_points": "Bu başarı ile {{points}} puan kazan",
|
||||||
"earned_points": "Kazanılan puanlar:",
|
"earned_points": "Kazanılan puanlar:",
|
||||||
"available_points": "Mevcut puanlar:",
|
"available_points": "Mevcut puanlar:",
|
||||||
"how_to_earn_achievements_points": "Başarım puanları nasıl kazanılır?"
|
"how_to_earn_achievements_points": "Başarı puanları nasıl kazanılır?"
|
||||||
},
|
},
|
||||||
"hydra_cloud": {
|
"hydra_cloud": {
|
||||||
"subscription_tour_title": "Hydra Cloud Aboneliği",
|
"subscription_tour_title": "Hydra Cloud Aboneliği",
|
||||||
"subscribe_now": "Şimdi abone olun",
|
"subscribe_now": "Şimdi abone ol",
|
||||||
"cloud_saving": "Bulut kaydetme",
|
"cloud_saving": "Bulut kaydı",
|
||||||
"cloud_achievements": "Başarımlarınızı buluta kaydedin",
|
"cloud_achievements": "Başarımlarınızı bulutta saklayın",
|
||||||
"animated_profile_picture": "Animasyonlu profil resimleri",
|
"animated_profile_picture": "Animasyonlu profil resimleri",
|
||||||
"premium_support": "Premium Destek",
|
"premium_support": "Öncelikli Destek",
|
||||||
"show_and_compare_achievements": "Başarımlarınızı diğer kullanıcılarla karşılaştırın ve gösterin",
|
"show_and_compare_achievements": "Başarımlarınızı diğer kullanıcılarla karşılaştırın ve gösterin",
|
||||||
"animated_profile_banner": "Animasyonlu profil afişi",
|
"animated_profile_banner": "Animasyonlu profil afişi",
|
||||||
"hydra_cloud": "Hydra Cloud",
|
"hydra_cloud": "Hydra Cloud",
|
||||||
"hydra_cloud_feature_found": "Bir Hydra Cloud özelliği keşfettiniz!",
|
"hydra_cloud_feature_found": "Bir Hydra Cloud özelliğini keşfettiniz!",
|
||||||
"learn_more": "Daha Fazla Bilgi Edinin",
|
"learn_more": "Daha fazla bilgi al",
|
||||||
"debrid_description": "Nimbus ile 4 kata kadar daha hızlı indirin"
|
"debrid_description": "Nimbus ile 4 kata kadar daha hızlı indirin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"sign_in": "Увійти",
|
"sign_in": "Увійти",
|
||||||
"favorites": "Улюблені",
|
"favorites": "Улюблені",
|
||||||
"friends": "Друзі",
|
"friends": "Друзі",
|
||||||
"need_help": "Потрібна допомога?"
|
"need_help": "Потрібна допомога?",
|
||||||
|
"playable_button_title": "Показати лише ігри, які можна грати зараз"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "Пошук",
|
"search": "Пошук",
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import { app } from "electron";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { SystemPath } from "./services/system-path";
|
import { SystemPath } from "./services/system-path";
|
||||||
|
|
||||||
export const LUDUSAVI_MANIFEST_URL = "https://cdn.losbroxas.org/manifest.yaml";
|
|
||||||
|
|
||||||
export const defaultDownloadsPath = SystemPath.getPath("downloads");
|
export const defaultDownloadsPath = SystemPath.getPath("downloads");
|
||||||
|
|
||||||
export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging");
|
export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging");
|
||||||
@@ -16,6 +14,8 @@ export const windowsStartMenuPath = path.join(
|
|||||||
"Programs"
|
"Programs"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const publicProfilePath = "C:/Users/Public";
|
||||||
|
|
||||||
export const levelDatabasePath = path.join(
|
export const levelDatabasePath = path.join(
|
||||||
SystemPath.getPath("userData"),
|
SystemPath.getPath("userData"),
|
||||||
`hydra-db${isStaging ? "-staging" : ""}`
|
`hydra-db${isStaging ? "-staging" : ""}`
|
||||||
@@ -26,11 +26,10 @@ export const commonRedistPath = path.join(
|
|||||||
"CommonRedist"
|
"CommonRedist"
|
||||||
);
|
);
|
||||||
|
|
||||||
export const logsPath = path.join(SystemPath.getPath("userData"), "logs");
|
export const logsPath = path.join(
|
||||||
|
SystemPath.getPath("userData"),
|
||||||
export const seedsPath = app.isPackaged
|
`logs${isStaging ? "-staging" : ""}`
|
||||||
? path.join(process.resourcesPath, "seeds")
|
);
|
||||||
: path.join(__dirname, "..", "..", "seeds");
|
|
||||||
|
|
||||||
export const achievementSoundPath = app.isPackaged
|
export const achievementSoundPath = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "achievement.wav")
|
? path.join(process.resourcesPath, "achievement.wav")
|
||||||
@@ -40,4 +39,6 @@ export const backupsPath = path.join(SystemPath.getPath("userData"), "Backups");
|
|||||||
|
|
||||||
export const appVersion = app.getVersion() + (isStaging ? "-staging" : "");
|
export const appVersion = app.getVersion() + (isStaging ? "-staging" : "");
|
||||||
|
|
||||||
|
export const ASSETS_PATH = path.join(SystemPath.getPath("userData"), "Assets");
|
||||||
|
|
||||||
export const MAIN_LOOP_INTERVAL = 1500;
|
export const MAIN_LOOP_INTERVAL = 1500;
|
||||||
|
|||||||
@@ -1,17 +1,38 @@
|
|||||||
import type { GameShop, GameStats } from "@types";
|
import type { GameShop, GameStats } from "@types";
|
||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import { HydraApi } from "@main/services";
|
import { HydraApi } from "@main/services";
|
||||||
|
import { gamesStatsCacheSublevel, levelKeys } from "@main/level";
|
||||||
|
|
||||||
|
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 30; // 30 minutes
|
||||||
|
|
||||||
const getGameStats = async (
|
const getGameStats = async (
|
||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
objectId: string,
|
objectId: string,
|
||||||
shop: GameShop
|
shop: GameShop
|
||||||
) => {
|
) => {
|
||||||
|
const cachedStats = await gamesStatsCacheSublevel.get(
|
||||||
|
levelKeys.game(shop, objectId)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (
|
||||||
|
cachedStats &&
|
||||||
|
cachedStats.updatedAt + LOCAL_CACHE_EXPIRATION > Date.now()
|
||||||
|
) {
|
||||||
|
return cachedStats;
|
||||||
|
}
|
||||||
|
|
||||||
return HydraApi.get<GameStats>(
|
return HydraApi.get<GameStats>(
|
||||||
`/games/stats`,
|
`/games/stats`,
|
||||||
{ objectId, shop },
|
{ objectId, shop },
|
||||||
{ needsAuth: false }
|
{ needsAuth: false }
|
||||||
);
|
).then(async (data) => {
|
||||||
|
await gamesStatsCacheSublevel.put(levelKeys.game(shop, objectId), {
|
||||||
|
...data,
|
||||||
|
updatedAt: Date.now(),
|
||||||
|
});
|
||||||
|
|
||||||
|
return data;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("getGameStats", getGameStats);
|
registerEvent("getGameStats", getGameStats);
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ const saveGameShopAssets = async (
|
|||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
assets: ShopAssets
|
assets: ShopAssets
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
return gamesShopAssetsSublevel.put(levelKeys.game(shop, objectId), assets);
|
const key = levelKeys.game(shop, objectId);
|
||||||
|
const existingAssets = await gamesShopAssetsSublevel.get(key);
|
||||||
|
return gamesShopAssetsSublevel.put(key, { ...existingAssets, ...assets });
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("saveGameShopAssets", saveGameShopAssets);
|
registerEvent("saveGameShopAssets", saveGameShopAssets);
|
||||||
|
|||||||
@@ -1,74 +1,93 @@
|
|||||||
import { HydraApi, logger, Ludusavi, WindowManager } from "@main/services";
|
import { CloudSync, HydraApi, logger, WindowManager } from "@main/services";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import * as tar from "tar";
|
import * as tar from "tar";
|
||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import os from "node:os";
|
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { backupsPath } from "@main/constants";
|
import { backupsPath, publicProfilePath } from "@main/constants";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop, LudusaviBackupMapping } from "@types";
|
||||||
|
|
||||||
import YAML from "yaml";
|
import YAML from "yaml";
|
||||||
import { normalizePath } from "@main/helpers";
|
import { addTrailingSlash, normalizePath } from "@main/helpers";
|
||||||
import { SystemPath } from "@main/services/system-path";
|
import { SystemPath } from "@main/services/system-path";
|
||||||
|
import { gamesSublevel, levelKeys } from "@main/level";
|
||||||
|
|
||||||
export interface LudusaviBackup {
|
export const transformLudusaviBackupPathIntoWindowsPath = (
|
||||||
files: {
|
backupPath: string,
|
||||||
[key: string]: {
|
winePrefixPath?: string | null
|
||||||
hash: string;
|
) => {
|
||||||
size: number;
|
return backupPath
|
||||||
};
|
.replace(winePrefixPath ? addTrailingSlash(winePrefixPath) : "", "")
|
||||||
};
|
.replace("drive_c", "C:");
|
||||||
}
|
};
|
||||||
|
|
||||||
const replaceLudusaviBackupWithCurrentUser = (
|
export const addWinePrefixToWindowsPath = (
|
||||||
|
windowsPath: string,
|
||||||
|
winePrefixPath?: string | null
|
||||||
|
) => {
|
||||||
|
if (!winePrefixPath) {
|
||||||
|
return windowsPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
return path.join(winePrefixPath, windowsPath.replace("C:", "drive_c"));
|
||||||
|
};
|
||||||
|
|
||||||
|
const restoreLudusaviBackup = (
|
||||||
backupPath: string,
|
backupPath: string,
|
||||||
title: string,
|
title: string,
|
||||||
homeDir: string
|
homeDir: string,
|
||||||
|
winePrefixPath?: string | null,
|
||||||
|
artifactWinePrefixPath?: string | null
|
||||||
) => {
|
) => {
|
||||||
const gameBackupPath = path.join(backupPath, title);
|
const gameBackupPath = path.join(backupPath, title);
|
||||||
const mappingYamlPath = path.join(gameBackupPath, "mapping.yaml");
|
const mappingYamlPath = path.join(gameBackupPath, "mapping.yaml");
|
||||||
|
|
||||||
const data = fs.readFileSync(mappingYamlPath, "utf8");
|
const data = fs.readFileSync(mappingYamlPath, "utf8");
|
||||||
const manifest = YAML.parse(data) as {
|
const manifest = YAML.parse(data) as {
|
||||||
backups: LudusaviBackup[];
|
backups: LudusaviBackupMapping[];
|
||||||
drives: Record<string, string>;
|
drives: Record<string, string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentHomeDir = normalizePath(SystemPath.getPath("home"));
|
const userProfilePath =
|
||||||
|
CloudSync.getWindowsLikeUserProfilePath(winePrefixPath);
|
||||||
|
|
||||||
/* Renaming logic */
|
manifest.backups.forEach((backup) => {
|
||||||
if (os.platform() === "win32") {
|
Object.keys(backup.files).forEach((key) => {
|
||||||
const mappedHomeDir = path.join(
|
const sourcePathWithDrives = Object.entries(manifest.drives).reduce(
|
||||||
gameBackupPath,
|
(prev, [driveKey, driveValue]) => {
|
||||||
path.join("drive-C", homeDir.replace("C:", ""))
|
return prev.replace(driveValue, driveKey);
|
||||||
);
|
},
|
||||||
|
key
|
||||||
if (fs.existsSync(mappedHomeDir)) {
|
|
||||||
fs.renameSync(
|
|
||||||
mappedHomeDir,
|
|
||||||
path.join(gameBackupPath, "drive-C", currentHomeDir.replace("C:", ""))
|
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const backups = manifest.backups.map((backup: LudusaviBackup) => {
|
const sourcePath = path.join(gameBackupPath, sourcePathWithDrives);
|
||||||
const files = Object.entries(backup.files).reduce((prev, [key, value]) => {
|
|
||||||
const updatedKey = key.replace(homeDir, currentHomeDir);
|
|
||||||
|
|
||||||
return {
|
logger.info(`Source path: ${sourcePath}`);
|
||||||
...prev,
|
|
||||||
[updatedKey]: value,
|
|
||||||
};
|
|
||||||
}, {});
|
|
||||||
|
|
||||||
return {
|
const destinationPath = transformLudusaviBackupPathIntoWindowsPath(
|
||||||
...backup,
|
key,
|
||||||
files,
|
artifactWinePrefixPath
|
||||||
};
|
)
|
||||||
|
.replace(
|
||||||
|
homeDir,
|
||||||
|
addWinePrefixToWindowsPath(userProfilePath, winePrefixPath)
|
||||||
|
)
|
||||||
|
.replace(
|
||||||
|
publicProfilePath,
|
||||||
|
addWinePrefixToWindowsPath(publicProfilePath, winePrefixPath)
|
||||||
|
);
|
||||||
|
|
||||||
|
logger.info(`Moving ${sourcePath} to ${destinationPath}`);
|
||||||
|
|
||||||
|
fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
|
||||||
|
|
||||||
|
if (fs.existsSync(destinationPath)) {
|
||||||
|
fs.unlinkSync(destinationPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.renameSync(sourcePath, destinationPath);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.writeFileSync(mappingYamlPath, YAML.stringify({ ...manifest, backups }));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const downloadGameArtifact = async (
|
const downloadGameArtifact = async (
|
||||||
@@ -78,10 +97,18 @@ const downloadGameArtifact = async (
|
|||||||
gameArtifactId: string
|
gameArtifactId: string
|
||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
const { downloadUrl, objectKey, homeDir } = await HydraApi.post<{
|
const game = await gamesSublevel.get(levelKeys.game(shop, objectId));
|
||||||
|
|
||||||
|
const {
|
||||||
|
downloadUrl,
|
||||||
|
objectKey,
|
||||||
|
homeDir,
|
||||||
|
winePrefixPath: artifactWinePrefixPath,
|
||||||
|
} = await HydraApi.post<{
|
||||||
downloadUrl: string;
|
downloadUrl: string;
|
||||||
objectKey: string;
|
objectKey: string;
|
||||||
homeDir: string;
|
homeDir: string;
|
||||||
|
winePrefixPath: string | null;
|
||||||
}>(`/profile/games/artifacts/${gameArtifactId}/download`);
|
}>(`/profile/games/artifacts/${gameArtifactId}/download`);
|
||||||
|
|
||||||
const zipLocation = path.join(SystemPath.getPath("userData"), objectKey);
|
const zipLocation = path.join(SystemPath.getPath("userData"), objectKey);
|
||||||
@@ -109,34 +136,34 @@ const downloadGameArtifact = async (
|
|||||||
response.data.pipe(writer);
|
response.data.pipe(writer);
|
||||||
|
|
||||||
writer.on("error", (err) => {
|
writer.on("error", (err) => {
|
||||||
logger.error("Failed to write zip", err);
|
logger.error("Failed to write tar file", err);
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.mkdirSync(backupPath, { recursive: true });
|
fs.mkdirSync(backupPath, { recursive: true });
|
||||||
|
|
||||||
writer.on("close", () => {
|
writer.on("close", async () => {
|
||||||
tar
|
await tar.x({
|
||||||
.x({
|
file: zipLocation,
|
||||||
file: zipLocation,
|
cwd: backupPath,
|
||||||
cwd: backupPath,
|
});
|
||||||
})
|
|
||||||
.then(async () => {
|
|
||||||
replaceLudusaviBackupWithCurrentUser(
|
|
||||||
backupPath,
|
|
||||||
objectId,
|
|
||||||
normalizePath(homeDir)
|
|
||||||
);
|
|
||||||
|
|
||||||
Ludusavi.restoreBackup(backupPath).then(() => {
|
restoreLudusaviBackup(
|
||||||
WindowManager.mainWindow?.webContents.send(
|
backupPath,
|
||||||
`on-backup-download-complete-${objectId}-${shop}`,
|
objectId,
|
||||||
true
|
normalizePath(homeDir),
|
||||||
);
|
game?.winePrefixPath,
|
||||||
});
|
artifactWinePrefixPath
|
||||||
});
|
);
|
||||||
|
|
||||||
|
WindowManager.mainWindow?.webContents.send(
|
||||||
|
`on-backup-download-complete-${objectId}-${shop}`,
|
||||||
|
true
|
||||||
|
);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
logger.error("Failed to download game artifact", err);
|
||||||
|
|
||||||
WindowManager.mainWindow?.webContents.send(
|
WindowManager.mainWindow?.webContents.send(
|
||||||
`on-backup-download-complete-${objectId}-${shop}`,
|
`on-backup-download-complete-${objectId}-${shop}`,
|
||||||
false
|
false
|
||||||
|
|||||||
14
src/main/events/cloud-save/rename-game-artifact.ts
Normal file
14
src/main/events/cloud-save/rename-game-artifact.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
import { HydraApi } from "@main/services";
|
||||||
|
|
||||||
|
const renameGameArtifact = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
|
gameArtifactId: string,
|
||||||
|
label: string
|
||||||
|
) => {
|
||||||
|
await HydraApi.put(`/profile/games/artifacts/${gameArtifactId}`, {
|
||||||
|
label,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent("renameGameArtifact", renameGameArtifact);
|
||||||
16
src/main/events/cloud-save/toggle-artifact-freeze.ts
Normal file
16
src/main/events/cloud-save/toggle-artifact-freeze.ts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
import { HydraApi } from "@main/services";
|
||||||
|
|
||||||
|
const toggleArtifactFreeze = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
|
gameArtifactId: string,
|
||||||
|
freeze: boolean
|
||||||
|
) => {
|
||||||
|
if (freeze) {
|
||||||
|
await HydraApi.put(`/profile/games/artifacts/${gameArtifactId}/freeze`);
|
||||||
|
} else {
|
||||||
|
await HydraApi.put(`/profile/games/artifacts/${gameArtifactId}/unfreeze`);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent("toggleArtifactFreeze", toggleArtifactFreeze);
|
||||||
@@ -34,6 +34,8 @@ import "./library/remove-game-from-library";
|
|||||||
import "./library/select-game-wine-prefix";
|
import "./library/select-game-wine-prefix";
|
||||||
import "./library/reset-game-achievements";
|
import "./library/reset-game-achievements";
|
||||||
import "./library/toggle-automatic-cloud-sync";
|
import "./library/toggle-automatic-cloud-sync";
|
||||||
|
import "./library/get-default-wine-prefix-selection-path";
|
||||||
|
import "./library/create-steam-shortcut";
|
||||||
import "./misc/open-checkout";
|
import "./misc/open-checkout";
|
||||||
import "./misc/open-external";
|
import "./misc/open-external";
|
||||||
import "./misc/show-open-dialog";
|
import "./misc/show-open-dialog";
|
||||||
@@ -84,7 +86,11 @@ import "./cloud-save/get-game-backup-preview";
|
|||||||
import "./cloud-save/upload-save-game";
|
import "./cloud-save/upload-save-game";
|
||||||
import "./cloud-save/delete-game-artifact";
|
import "./cloud-save/delete-game-artifact";
|
||||||
import "./cloud-save/select-game-backup-path";
|
import "./cloud-save/select-game-backup-path";
|
||||||
|
import "./cloud-save/toggle-artifact-freeze";
|
||||||
|
import "./cloud-save/rename-game-artifact";
|
||||||
import "./notifications/publish-new-repacks-notification";
|
import "./notifications/publish-new-repacks-notification";
|
||||||
|
import "./notifications/update-achievement-notification-window";
|
||||||
|
import "./notifications/show-achievement-test-notification";
|
||||||
import "./themes/add-custom-theme";
|
import "./themes/add-custom-theme";
|
||||||
import "./themes/delete-custom-theme";
|
import "./themes/delete-custom-theme";
|
||||||
import "./themes/get-all-custom-themes";
|
import "./themes/get-all-custom-themes";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import { gamesSublevel, levelKeys } from "@main/level";
|
import { gamesSublevel, levelKeys } from "@main/level";
|
||||||
|
import { HydraApi } from "@main/services";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop } from "@types";
|
||||||
|
|
||||||
const addGameToFavorites = async (
|
const addGameToFavorites = async (
|
||||||
@@ -12,6 +13,8 @@ const addGameToFavorites = async (
|
|||||||
const game = await gamesSublevel.get(gameKey);
|
const game = await gamesSublevel.get(gameKey);
|
||||||
if (!game) return;
|
if (!game) return;
|
||||||
|
|
||||||
|
HydraApi.put(`/profile/games/${shop}/${objectId}/favorite`).catch(() => {});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await gamesSublevel.put(gameKey, {
|
await gamesSublevel.put(gameKey, {
|
||||||
...game,
|
...game,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop } from "@types";
|
||||||
import { createGame } from "@main/services/library-sync";
|
import { createGame } from "@main/services/library-sync";
|
||||||
import { updateLocalUnlockedAchievements } from "@main/services/achievements/update-local-unlocked-achivements";
|
|
||||||
import {
|
import {
|
||||||
downloadsSublevel,
|
downloadsSublevel,
|
||||||
gamesShopAssetsSublevel,
|
gamesShopAssetsSublevel,
|
||||||
gamesSublevel,
|
gamesSublevel,
|
||||||
levelKeys,
|
levelKeys,
|
||||||
} from "@main/level";
|
} from "@main/level";
|
||||||
|
import { AchievementWatcherManager } from "@main/services/achievements/achievement-watcher-manager";
|
||||||
|
|
||||||
const addGameToLibrary = async (
|
const addGameToLibrary = async (
|
||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
@@ -43,7 +43,10 @@ const addGameToLibrary = async (
|
|||||||
|
|
||||||
await createGame(game).catch(() => {});
|
await createGame(game).catch(() => {});
|
||||||
|
|
||||||
updateLocalUnlockedAchievements(game);
|
AchievementWatcherManager.firstSyncWithRemoteIfNeeded(
|
||||||
|
game.shop,
|
||||||
|
game.objectId
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("addGameToLibrary", addGameToLibrary);
|
registerEvent("addGameToLibrary", addGameToLibrary);
|
||||||
|
|||||||
181
src/main/events/library/create-steam-shortcut.ts
Normal file
181
src/main/events/library/create-steam-shortcut.ts
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
import type { GameShop, GameStats } from "@types";
|
||||||
|
import { gamesSublevel, levelKeys } from "@main/level";
|
||||||
|
import {
|
||||||
|
composeSteamShortcut,
|
||||||
|
getSteamLocation,
|
||||||
|
getSteamShortcuts,
|
||||||
|
getSteamUsersIds,
|
||||||
|
HydraApi,
|
||||||
|
logger,
|
||||||
|
SystemPath,
|
||||||
|
writeSteamShortcuts,
|
||||||
|
} from "@main/services";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import axios from "axios";
|
||||||
|
import path from "node:path";
|
||||||
|
import { ASSETS_PATH } from "@main/constants";
|
||||||
|
|
||||||
|
const downloadAsset = async (downloadPath: string, url?: string | null) => {
|
||||||
|
try {
|
||||||
|
if (fs.existsSync(downloadPath)) {
|
||||||
|
return downloadPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!url) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.mkdirSync(path.dirname(downloadPath), { recursive: true });
|
||||||
|
|
||||||
|
const response = await axios.get(url, { responseType: "arraybuffer" });
|
||||||
|
fs.writeFileSync(downloadPath, response.data);
|
||||||
|
|
||||||
|
return downloadPath;
|
||||||
|
} catch (error) {
|
||||||
|
logger.error("Failed to download asset", error);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const downloadAssetsFromSteam = async (
|
||||||
|
shop: GameShop,
|
||||||
|
objectId: string,
|
||||||
|
assets: GameStats["assets"]
|
||||||
|
) => {
|
||||||
|
const gameAssetsPath = path.join(ASSETS_PATH, `${shop}-${objectId}`);
|
||||||
|
|
||||||
|
return await Promise.all([
|
||||||
|
downloadAsset(path.join(gameAssetsPath, "icon.ico"), assets?.iconUrl),
|
||||||
|
downloadAsset(
|
||||||
|
path.join(gameAssetsPath, "hero.jpg"),
|
||||||
|
assets?.libraryHeroImageUrl
|
||||||
|
),
|
||||||
|
downloadAsset(path.join(gameAssetsPath, "logo.png"), assets?.logoImageUrl),
|
||||||
|
downloadAsset(
|
||||||
|
path.join(gameAssetsPath, "cover.jpg"),
|
||||||
|
assets?.coverImageUrl
|
||||||
|
),
|
||||||
|
downloadAsset(
|
||||||
|
path.join(gameAssetsPath, "library.jpg"),
|
||||||
|
assets?.libraryImageUrl
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
|
const copyAssetIfExists = async (
|
||||||
|
sourcePath: string | null,
|
||||||
|
destinationPath: string
|
||||||
|
) => {
|
||||||
|
if (sourcePath && fs.existsSync(sourcePath)) {
|
||||||
|
logger.info("Copying Steam asset", sourcePath, destinationPath);
|
||||||
|
await fs.promises.cp(sourcePath, destinationPath);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const createSteamShortcut = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
|
shop: GameShop,
|
||||||
|
objectId: string
|
||||||
|
) => {
|
||||||
|
const gameKey = levelKeys.game(shop, objectId);
|
||||||
|
const game = await gamesSublevel.get(gameKey);
|
||||||
|
|
||||||
|
if (game) {
|
||||||
|
if (!game.executablePath) {
|
||||||
|
throw new Error("No executable path found for game");
|
||||||
|
}
|
||||||
|
|
||||||
|
const { assets } = await HydraApi.get<GameStats>(
|
||||||
|
`/games/stats?objectId=${objectId}&shop=${shop}`
|
||||||
|
);
|
||||||
|
|
||||||
|
const steamUserIds = await getSteamUsersIds();
|
||||||
|
|
||||||
|
if (!steamUserIds.length) {
|
||||||
|
logger.error("No Steam user ID found");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const [iconImage, heroImage, logoImage, coverImage, libraryImage] =
|
||||||
|
await downloadAssetsFromSteam(game.shop, game.objectId, assets);
|
||||||
|
|
||||||
|
const newShortcut = composeSteamShortcut(
|
||||||
|
game.title,
|
||||||
|
game.executablePath,
|
||||||
|
iconImage
|
||||||
|
);
|
||||||
|
|
||||||
|
for (const steamUserId of steamUserIds) {
|
||||||
|
logger.info("Adding shortcut for Steam user", steamUserId);
|
||||||
|
|
||||||
|
const steamShortcuts = await getSteamShortcuts(steamUserId);
|
||||||
|
|
||||||
|
if (steamShortcuts.some((shortcut) => shortcut.appname === game.title)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const gridPath = path.join(
|
||||||
|
await getSteamLocation(),
|
||||||
|
"userdata",
|
||||||
|
steamUserId.toString(),
|
||||||
|
"config",
|
||||||
|
"grid"
|
||||||
|
);
|
||||||
|
|
||||||
|
await fs.promises.mkdir(gridPath, { recursive: true });
|
||||||
|
|
||||||
|
await Promise.all([
|
||||||
|
copyAssetIfExists(
|
||||||
|
heroImage,
|
||||||
|
path.join(gridPath, `${newShortcut.appid}_hero.jpg`)
|
||||||
|
),
|
||||||
|
copyAssetIfExists(
|
||||||
|
logoImage,
|
||||||
|
path.join(gridPath, `${newShortcut.appid}_logo.png`)
|
||||||
|
),
|
||||||
|
copyAssetIfExists(
|
||||||
|
coverImage,
|
||||||
|
path.join(gridPath, `${newShortcut.appid}p.jpg`)
|
||||||
|
),
|
||||||
|
copyAssetIfExists(
|
||||||
|
libraryImage,
|
||||||
|
path.join(gridPath, `${newShortcut.appid}.jpg`)
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
|
||||||
|
steamShortcuts.push(newShortcut);
|
||||||
|
|
||||||
|
logger.info(newShortcut);
|
||||||
|
logger.info("Writing Steam shortcuts", steamShortcuts);
|
||||||
|
|
||||||
|
await writeSteamShortcuts(steamUserId, steamShortcuts);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.platform === "linux" && !game.winePrefixPath) {
|
||||||
|
const steamWinePrefixes = path.join(
|
||||||
|
SystemPath.getPath("home"),
|
||||||
|
".local",
|
||||||
|
"share",
|
||||||
|
"Steam",
|
||||||
|
"steamapps",
|
||||||
|
"compatdata"
|
||||||
|
);
|
||||||
|
|
||||||
|
const winePrefixPath = path.join(
|
||||||
|
steamWinePrefixes,
|
||||||
|
newShortcut.appid.toString(),
|
||||||
|
"pfx"
|
||||||
|
);
|
||||||
|
|
||||||
|
await fs.promises.mkdir(winePrefixPath, { recursive: true });
|
||||||
|
|
||||||
|
await gamesSublevel.put(gameKey, {
|
||||||
|
...game,
|
||||||
|
winePrefixPath,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent("createSteamShortcut", createSteamShortcut);
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { logger, SystemPath } from "@main/services";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
|
||||||
|
const getDefaultWinePrefixSelectionPath = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent
|
||||||
|
) => {
|
||||||
|
try {
|
||||||
|
const steamWinePrefixes = path.join(
|
||||||
|
SystemPath.getPath("home"),
|
||||||
|
".local",
|
||||||
|
"share",
|
||||||
|
"Steam",
|
||||||
|
"steamapps",
|
||||||
|
"compatdata"
|
||||||
|
);
|
||||||
|
|
||||||
|
return await fs.promises.realpath(steamWinePrefixes);
|
||||||
|
} catch (err) {
|
||||||
|
logger.error("Failed to get default wine prefix selection path", err);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent(
|
||||||
|
"getDefaultWinePrefixSelectionPath",
|
||||||
|
getDefaultWinePrefixSelectionPath
|
||||||
|
);
|
||||||
@@ -12,16 +12,14 @@ const openGameInstallerPath = async (
|
|||||||
) => {
|
) => {
|
||||||
const download = await downloadsSublevel.get(levelKeys.game(shop, objectId));
|
const download = await downloadsSublevel.get(levelKeys.game(shop, objectId));
|
||||||
|
|
||||||
if (!download || !download.folderName || !download.downloadPath) return true;
|
if (!download?.folderName || !download.downloadPath) return;
|
||||||
|
|
||||||
const gamePath = path.join(
|
const gamePath = path.join(
|
||||||
download.downloadPath ?? (await getDownloadsPath()),
|
download.downloadPath ?? (await getDownloadsPath()),
|
||||||
download.folderName!
|
download.folderName
|
||||||
);
|
);
|
||||||
|
|
||||||
shell.showItemInFolder(gamePath);
|
shell.showItemInFolder(gamePath);
|
||||||
|
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("openGameInstallerPath", openGameInstallerPath);
|
registerEvent("openGameInstallerPath", openGameInstallerPath);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import { gamesSublevel, levelKeys } from "@main/level";
|
import { gamesSublevel, levelKeys } from "@main/level";
|
||||||
|
import { HydraApi } from "@main/services";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop } from "@types";
|
||||||
|
|
||||||
const removeGameFromFavorites = async (
|
const removeGameFromFavorites = async (
|
||||||
@@ -12,6 +13,8 @@ const removeGameFromFavorites = async (
|
|||||||
const game = await gamesSublevel.get(gameKey);
|
const game = await gamesSublevel.get(gameKey);
|
||||||
if (!game) return;
|
if (!game) return;
|
||||||
|
|
||||||
|
HydraApi.put(`/profile/games/${shop}/${objectId}/unfavorite`).catch(() => {});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await gamesSublevel.put(gameKey, {
|
await gamesSublevel.put(gameKey, {
|
||||||
...game,
|
...game,
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ const resetGameAchievements = async (
|
|||||||
objectId: string
|
objectId: string
|
||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
const game = await gamesSublevel.get(levelKeys.game(shop, objectId));
|
const levelKey = levelKeys.game(shop, objectId);
|
||||||
|
const game = await gamesSublevel.get(levelKey);
|
||||||
|
|
||||||
if (!game) return;
|
if (!game) return;
|
||||||
|
|
||||||
@@ -29,8 +30,6 @@ const resetGameAchievements = async (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const levelKey = levelKeys.game(game.shop, game.objectId);
|
|
||||||
|
|
||||||
await gameAchievementsSublevel
|
await gameAchievementsSublevel
|
||||||
.get(levelKey)
|
.get(levelKey)
|
||||||
.then(async (gameAchievements) => {
|
.then(async (gameAchievements) => {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
|
import fs from "node:fs";
|
||||||
import { levelKeys, gamesSublevel } from "@main/level";
|
import { levelKeys, gamesSublevel } from "@main/level";
|
||||||
|
import { Wine } from "@main/services";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop } from "@types";
|
||||||
|
|
||||||
const selectGameWinePrefix = async (
|
const selectGameWinePrefix = async (
|
||||||
@@ -14,9 +16,24 @@ const selectGameWinePrefix = async (
|
|||||||
|
|
||||||
if (!game) return;
|
if (!game) return;
|
||||||
|
|
||||||
|
if (!winePrefixPath) {
|
||||||
|
await gamesSublevel.put(gameKey, {
|
||||||
|
...game,
|
||||||
|
winePrefixPath: null,
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const realWinePrefixPath = await fs.promises.realpath(winePrefixPath);
|
||||||
|
|
||||||
|
if (!Wine.validatePrefix(realWinePrefixPath)) {
|
||||||
|
throw new Error("Invalid wine prefix path");
|
||||||
|
}
|
||||||
|
|
||||||
await gamesSublevel.put(gameKey, {
|
await gamesSublevel.put(gameKey, {
|
||||||
...game,
|
...game,
|
||||||
winePrefixPath: winePrefixPath,
|
winePrefixPath: realWinePrefixPath,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ const verifyExecutablePathInUse = async (
|
|||||||
) => {
|
) => {
|
||||||
for await (const game of gamesSublevel.values()) {
|
for await (const game of gamesSublevel.values()) {
|
||||||
if (game.executablePath === executablePath) {
|
if (game.executablePath === executablePath) {
|
||||||
return true;
|
return game;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);
|
registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
import { WindowManager } from "@main/services";
|
||||||
|
|
||||||
|
const showAchievementTestNotification = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent
|
||||||
|
) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
WindowManager.showAchievementTestNotification();
|
||||||
|
}, 1000);
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent(
|
||||||
|
"showAchievementTestNotification",
|
||||||
|
showAchievementTestNotification
|
||||||
|
);
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { db, levelKeys } from "@main/level";
|
||||||
|
import { registerEvent } from "../register-event";
|
||||||
|
import { WindowManager } from "@main/services";
|
||||||
|
import { UserPreferences } from "@types";
|
||||||
|
|
||||||
|
const updateAchievementCustomNotificationWindow = async (
|
||||||
|
_event: Electron.IpcMainInvokeEvent
|
||||||
|
) => {
|
||||||
|
const userPreferences = await db.get<string, UserPreferences>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
|
valueEncoding: "json",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
WindowManager.closeNotificationWindow();
|
||||||
|
|
||||||
|
if (
|
||||||
|
userPreferences.achievementNotificationsEnabled !== false &&
|
||||||
|
userPreferences.achievementCustomNotificationsEnabled !== false
|
||||||
|
) {
|
||||||
|
WindowManager.createNotificationWindow();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
registerEvent(
|
||||||
|
"updateAchievementCustomNotificationWindow",
|
||||||
|
updateAchievementCustomNotificationWindow
|
||||||
|
);
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import { themesSublevel } from "@main/level";
|
import { themesSublevel } from "@main/level";
|
||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
|
import { WindowManager } from "@main/services";
|
||||||
|
|
||||||
const toggleCustomTheme = async (
|
const toggleCustomTheme = async (
|
||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
@@ -17,6 +18,8 @@ const toggleCustomTheme = async (
|
|||||||
isActive,
|
isActive,
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
WindowManager.notificationWindow?.webContents.send("on-custom-theme-updated");
|
||||||
};
|
};
|
||||||
|
|
||||||
registerEvent("toggleCustomTheme", toggleCustomTheme);
|
registerEvent("toggleCustomTheme", toggleCustomTheme);
|
||||||
|
|||||||
@@ -20,7 +20,10 @@ const updateCustomTheme = async (
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (theme.isActive) {
|
if (theme.isActive) {
|
||||||
WindowManager.mainWindow?.webContents.send("css-injected", code);
|
WindowManager.mainWindow?.webContents.send("on-custom-theme-updated");
|
||||||
|
WindowManager.notificationWindow?.webContents.send(
|
||||||
|
"on-custom-theme-updated"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { registerEvent } from "../register-event";
|
|||||||
|
|
||||||
import { HydraApi } from "@main/services";
|
import { HydraApi } from "@main/services";
|
||||||
import { db, levelKeys } from "@main/level";
|
import { db, levelKeys } from "@main/level";
|
||||||
|
import { AchievementWatcherManager } from "@main/services/achievements/achievement-watcher-manager";
|
||||||
|
|
||||||
const getComparedUnlockedAchievements = async (
|
const getComparedUnlockedAchievements = async (
|
||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
@@ -10,6 +11,8 @@ const getComparedUnlockedAchievements = async (
|
|||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
userId: string
|
userId: string
|
||||||
) => {
|
) => {
|
||||||
|
await AchievementWatcherManager.firstSyncWithRemoteIfNeeded(shop, objectId);
|
||||||
|
|
||||||
const userPreferences = await db.get<string, UserPreferences | null>(
|
const userPreferences = await db.get<string, UserPreferences | null>(
|
||||||
levelKeys.userPreferences,
|
levelKeys.userPreferences,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import type { GameShop, UserAchievement, UserPreferences } from "@types";
|
|||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
import { getGameAchievementData } from "@main/services/achievements/get-game-achievement-data";
|
import { getGameAchievementData } from "@main/services/achievements/get-game-achievement-data";
|
||||||
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
||||||
|
import { AchievementWatcherManager } from "@main/services/achievements/achievement-watcher-manager";
|
||||||
|
|
||||||
export const getUnlockedAchievements = async (
|
export const getUnlockedAchievements = async (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
@@ -62,7 +63,7 @@ export const getUnlockedAchievements = async (
|
|||||||
!achievementData.hidden || showHiddenAchievementsDescription
|
!achievementData.hidden || showHiddenAchievementsDescription
|
||||||
? achievementData.description
|
? achievementData.description
|
||||||
: undefined,
|
: undefined,
|
||||||
} as UserAchievement;
|
};
|
||||||
})
|
})
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
if (a.unlocked && !b.unlocked) return -1;
|
if (a.unlocked && !b.unlocked) return -1;
|
||||||
@@ -79,6 +80,7 @@ const getUnlockedAchievementsEvent = async (
|
|||||||
objectId: string,
|
objectId: string,
|
||||||
shop: GameShop
|
shop: GameShop
|
||||||
): Promise<UserAchievement[]> => {
|
): Promise<UserAchievement[]> => {
|
||||||
|
AchievementWatcherManager.firstSyncWithRemoteIfNeeded(shop, objectId);
|
||||||
return getUnlockedAchievements(objectId, shop, false);
|
return getUnlockedAchievements(objectId, shop, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -32,3 +32,8 @@ export const isPortableVersion = () => {
|
|||||||
|
|
||||||
export const normalizePath = (str: string) =>
|
export const normalizePath = (str: string) =>
|
||||||
path.posix.normalize(str).replace(/\\/g, "/");
|
path.posix.normalize(str).replace(/\\/g, "/");
|
||||||
|
|
||||||
|
export const addTrailingSlash = (str: string) =>
|
||||||
|
str.endsWith("/") ? str : `${str}/`;
|
||||||
|
|
||||||
|
export * from "./reg-parser";
|
||||||
|
|||||||
58
src/main/helpers/reg-parser.ts
Normal file
58
src/main/helpers/reg-parser.ts
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
type RegValue = string | number | null;
|
||||||
|
|
||||||
|
interface RegEntry {
|
||||||
|
path: string;
|
||||||
|
timestamp?: string;
|
||||||
|
values: Record<string, RegValue>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function parseRegFile(content: string): RegEntry[] {
|
||||||
|
const lines = content.split(/\r?\n/);
|
||||||
|
const entries: RegEntry[] = [];
|
||||||
|
|
||||||
|
let currentPath: string | null = null;
|
||||||
|
let currentEntry: RegEntry | null = null;
|
||||||
|
|
||||||
|
for (const rawLine of lines) {
|
||||||
|
const line = rawLine.trim();
|
||||||
|
if (!line || line.startsWith(";") || line.startsWith(";;")) continue;
|
||||||
|
|
||||||
|
if (line.startsWith("#")) {
|
||||||
|
const match = line.match(/^#time=(\w+)/);
|
||||||
|
if (match && currentEntry) {
|
||||||
|
currentEntry.timestamp = match[1];
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (line.startsWith("[")) {
|
||||||
|
const match = line.match(/^\[(.+?)\](?:\s+\d+)?/);
|
||||||
|
if (match) {
|
||||||
|
if (currentEntry) entries.push(currentEntry);
|
||||||
|
currentPath = match[1];
|
||||||
|
currentEntry = { path: currentPath, values: {} };
|
||||||
|
}
|
||||||
|
} else if (currentEntry) {
|
||||||
|
const kvMatch = line.match(/^"?(.*?)"?=(.*)$/);
|
||||||
|
if (kvMatch) {
|
||||||
|
const [, key, rawValue] = kvMatch;
|
||||||
|
let value: RegValue;
|
||||||
|
|
||||||
|
if (rawValue === '""') {
|
||||||
|
value = "";
|
||||||
|
} else if (rawValue.startsWith("dword:")) {
|
||||||
|
value = parseInt(rawValue.slice(6), 16);
|
||||||
|
} else if (rawValue.startsWith('"') && rawValue.endsWith('"')) {
|
||||||
|
value = rawValue.slice(1, -1);
|
||||||
|
} else {
|
||||||
|
value = rawValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
currentEntry.values[key || "@"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (currentEntry) entries.push(currentEntry);
|
||||||
|
return entries;
|
||||||
|
}
|
||||||
@@ -4,7 +4,12 @@ import i18n from "i18next";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import url from "node:url";
|
import url from "node:url";
|
||||||
import { electronApp, optimizer } from "@electron-toolkit/utils";
|
import { electronApp, optimizer } from "@electron-toolkit/utils";
|
||||||
import { logger, WindowManager } from "@main/services";
|
import {
|
||||||
|
logger,
|
||||||
|
clearGamesPlaytime,
|
||||||
|
WindowManager,
|
||||||
|
Lock,
|
||||||
|
} from "@main/services";
|
||||||
import resources from "@locales";
|
import resources from "@locales";
|
||||||
import { PythonRPC } from "./services/python-rpc";
|
import { PythonRPC } from "./services/python-rpc";
|
||||||
import { db, levelKeys } from "./level";
|
import { db, levelKeys } from "./level";
|
||||||
@@ -23,7 +28,9 @@ autoUpdater.logger = logger;
|
|||||||
const gotTheLock = app.requestSingleInstanceLock();
|
const gotTheLock = app.requestSingleInstanceLock();
|
||||||
if (!gotTheLock) app.quit();
|
if (!gotTheLock) app.quit();
|
||||||
|
|
||||||
app.commandLine.appendSwitch("--no-sandbox");
|
if (process.platform !== "linux") {
|
||||||
|
app.commandLine.appendSwitch("--no-sandbox");
|
||||||
|
}
|
||||||
|
|
||||||
i18n.init({
|
i18n.init({
|
||||||
resources,
|
resources,
|
||||||
@@ -71,6 +78,7 @@ app.whenReady().then(async () => {
|
|||||||
WindowManager.createMainWindow();
|
WindowManager.createMainWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WindowManager.createNotificationWindow();
|
||||||
WindowManager.createSystemTray(language || "en");
|
WindowManager.createSystemTray(language || "en");
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -140,9 +148,19 @@ app.on("window-all-closed", () => {
|
|||||||
WindowManager.mainWindow = null;
|
WindowManager.mainWindow = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on("before-quit", () => {
|
let canAppBeClosed = false;
|
||||||
/* Disconnects libtorrent */
|
|
||||||
PythonRPC.kill();
|
app.on("before-quit", async (e) => {
|
||||||
|
await Lock.releaseLock();
|
||||||
|
|
||||||
|
if (!canAppBeClosed) {
|
||||||
|
e.preventDefault();
|
||||||
|
/* Disconnects libtorrent */
|
||||||
|
PythonRPC.kill();
|
||||||
|
await clearGamesPlaytime();
|
||||||
|
canAppBeClosed = true;
|
||||||
|
app.quit();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on("activate", () => {
|
app.on("activate", () => {
|
||||||
|
|||||||
11
src/main/level/sublevels/game-stats-cache.ts
Normal file
11
src/main/level/sublevels/game-stats-cache.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import type { GameStats } from "@types";
|
||||||
|
|
||||||
|
import { db } from "../level";
|
||||||
|
import { levelKeys } from "./keys";
|
||||||
|
|
||||||
|
export const gamesStatsCacheSublevel = db.sublevel<
|
||||||
|
string,
|
||||||
|
GameStats & { updatedAt: number }
|
||||||
|
>(levelKeys.gameStatsCache, {
|
||||||
|
valueEncoding: "json",
|
||||||
|
});
|
||||||
@@ -2,6 +2,7 @@ export * from "./downloads";
|
|||||||
export * from "./games";
|
export * from "./games";
|
||||||
export * from "./game-shop-assets";
|
export * from "./game-shop-assets";
|
||||||
export * from "./game-shop-cache";
|
export * from "./game-shop-cache";
|
||||||
|
export * from "./game-stats-cache";
|
||||||
export * from "./game-achievements";
|
export * from "./game-achievements";
|
||||||
export * from "./keys";
|
export * from "./keys";
|
||||||
export * from "./themes";
|
export * from "./themes";
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export const levelKeys = {
|
|||||||
auth: "auth",
|
auth: "auth",
|
||||||
themes: "themes",
|
themes: "themes",
|
||||||
gameShopAssets: "gameShopAssets",
|
gameShopAssets: "gameShopAssets",
|
||||||
|
gameStatsCache: "gameStatsAssets",
|
||||||
gameShopCache: "gameShopCache",
|
gameShopCache: "gameShopCache",
|
||||||
gameShopCacheItem: (shop: GameShop, objectId: string, language: string) =>
|
gameShopCacheItem: (shop: GameShop, objectId: string, language: string) =>
|
||||||
`${shop}:${objectId}:${language}`,
|
`${shop}:${objectId}:${language}`,
|
||||||
|
|||||||
@@ -11,14 +11,15 @@ import {
|
|||||||
RealDebridClient,
|
RealDebridClient,
|
||||||
Aria2,
|
Aria2,
|
||||||
DownloadManager,
|
DownloadManager,
|
||||||
Ludusavi,
|
|
||||||
HydraApi,
|
HydraApi,
|
||||||
uploadGamesBatch,
|
uploadGamesBatch,
|
||||||
startMainLoop,
|
startMainLoop,
|
||||||
|
Ludusavi,
|
||||||
|
Lock,
|
||||||
} from "@main/services";
|
} from "@main/services";
|
||||||
|
|
||||||
export const loadState = async () => {
|
export const loadState = async () => {
|
||||||
SystemPath.checkIfPathsAreAvailable();
|
await Lock.acquireLock();
|
||||||
|
|
||||||
const userPreferences = await db.get<string, UserPreferences | null>(
|
const userPreferences = await db.get<string, UserPreferences | null>(
|
||||||
levelKeys.userPreferences,
|
levelKeys.userPreferences,
|
||||||
@@ -29,7 +30,9 @@ export const loadState = async () => {
|
|||||||
|
|
||||||
await import("./events");
|
await import("./events");
|
||||||
|
|
||||||
Aria2.spawn();
|
if (process.platform !== "darwin") {
|
||||||
|
Aria2.spawn();
|
||||||
|
}
|
||||||
|
|
||||||
if (userPreferences?.realDebridApiToken) {
|
if (userPreferences?.realDebridApiToken) {
|
||||||
RealDebridClient.authorize(userPreferences.realDebridApiToken);
|
RealDebridClient.authorize(userPreferences.realDebridApiToken);
|
||||||
@@ -39,7 +42,8 @@ export const loadState = async () => {
|
|||||||
TorBoxClient.authorize(userPreferences.torBoxApiToken);
|
TorBoxClient.authorize(userPreferences.torBoxApiToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ludusavi.addManifestToLudusaviConfig();
|
Ludusavi.copyConfigFileToUserData();
|
||||||
|
Ludusavi.copyBinaryToUserData();
|
||||||
|
|
||||||
await HydraApi.setupApi().then(() => {
|
await HydraApi.setupApi().then(() => {
|
||||||
uploadGamesBatch();
|
uploadGamesBatch();
|
||||||
@@ -77,4 +81,6 @@ export const loadState = async () => {
|
|||||||
startMainLoop();
|
startMainLoop();
|
||||||
|
|
||||||
CommonRedistManager.downloadCommonRedist();
|
CommonRedistManager.downloadCommonRedist();
|
||||||
|
|
||||||
|
SystemPath.checkIfPathsAreAvailable();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,11 +7,19 @@ import {
|
|||||||
findAllAchievementFiles,
|
findAllAchievementFiles,
|
||||||
getAlternativeObjectIds,
|
getAlternativeObjectIds,
|
||||||
} from "./find-achivement-files";
|
} from "./find-achivement-files";
|
||||||
import type { AchievementFile, Game, UnlockedAchievement } from "@types";
|
import type {
|
||||||
|
AchievementFile,
|
||||||
|
Game,
|
||||||
|
GameShop,
|
||||||
|
UnlockedAchievement,
|
||||||
|
UserPreferences,
|
||||||
|
} from "@types";
|
||||||
import { achievementsLogger } from "../logger";
|
import { achievementsLogger } from "../logger";
|
||||||
import { Cracker } from "@shared";
|
import { Cracker } from "@shared";
|
||||||
import { publishCombinedNewAchievementNotification } from "../notifications";
|
import { publishCombinedNewAchievementNotification } from "../notifications";
|
||||||
import { gamesSublevel } from "@main/level";
|
import { db, gamesSublevel, levelKeys } from "@main/level";
|
||||||
|
import { WindowManager } from "../window-manager";
|
||||||
|
import { setTimeout } from "node:timers/promises";
|
||||||
|
|
||||||
const fileStats: Map<string, number> = new Map();
|
const fileStats: Map<string, number> = new Map();
|
||||||
const fltFiles: Map<string, Set<string>> = new Map();
|
const fltFiles: Map<string, Set<string>> = new Map();
|
||||||
@@ -30,7 +38,7 @@ const watchAchievementsWindows = async () => {
|
|||||||
const gameAchievementFiles: AchievementFile[] = [];
|
const gameAchievementFiles: AchievementFile[] = [];
|
||||||
|
|
||||||
for (const objectId of getAlternativeObjectIds(game.objectId)) {
|
for (const objectId of getAlternativeObjectIds(game.objectId)) {
|
||||||
gameAchievementFiles.push(...(achievementFiles.get(objectId) || []));
|
gameAchievementFiles.push(...(achievementFiles.get(objectId) ?? []));
|
||||||
|
|
||||||
gameAchievementFiles.push(
|
gameAchievementFiles.push(
|
||||||
...findAchievementFileInExecutableDirectory(game)
|
...findAchievementFileInExecutableDirectory(game)
|
||||||
@@ -120,6 +128,11 @@ const compareFile = (game: Game, file: AchievementFile) => {
|
|||||||
);
|
);
|
||||||
return processAchievementFileDiff(game, file);
|
return processAchievementFileDiff(game, file);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
achievementsLogger.error(
|
||||||
|
"Error reading file",
|
||||||
|
file.filePath,
|
||||||
|
err instanceof Error ? err.message : err
|
||||||
|
);
|
||||||
fileStats.set(file.filePath, -1);
|
fileStats.set(file.filePath, -1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -129,20 +142,69 @@ const processAchievementFileDiff = async (
|
|||||||
game: Game,
|
game: Game,
|
||||||
file: AchievementFile
|
file: AchievementFile
|
||||||
) => {
|
) => {
|
||||||
const unlockedAchievements = parseAchievementFile(file.filePath, file.type);
|
const parsedAchievements = parseAchievementFile(file.filePath, file.type);
|
||||||
|
|
||||||
if (unlockedAchievements.length) {
|
if (parsedAchievements.length) {
|
||||||
return mergeAchievements(game, unlockedAchievements, true);
|
return mergeAchievements(game, parsedAchievements, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
export class AchievementWatcherManager {
|
export class AchievementWatcherManager {
|
||||||
private static hasFinishedMergingWithRemote = false;
|
private static _hasFinishedPreSearch = false;
|
||||||
|
|
||||||
|
public static get hasFinishedPreSearch() {
|
||||||
|
return this._hasFinishedPreSearch;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly alreadySyncedGames: Map<string, boolean> = new Map();
|
||||||
|
|
||||||
|
public static async firstSyncWithRemoteIfNeeded(
|
||||||
|
shop: GameShop,
|
||||||
|
objectId: string
|
||||||
|
) {
|
||||||
|
const gameKey = levelKeys.game(shop, objectId);
|
||||||
|
if (this.alreadySyncedGames.get(gameKey)) return;
|
||||||
|
|
||||||
|
const game = await gamesSublevel.get(gameKey).catch(() => null);
|
||||||
|
if (!game || game.isDeleted) return;
|
||||||
|
|
||||||
|
const gameAchievementFiles = findAchievementFiles(game);
|
||||||
|
|
||||||
|
const achievementFileInsideDirectory =
|
||||||
|
findAchievementFileInExecutableDirectory(game);
|
||||||
|
|
||||||
|
gameAchievementFiles.push(...achievementFileInsideDirectory);
|
||||||
|
|
||||||
|
const unlockedAchievements: UnlockedAchievement[] = [];
|
||||||
|
|
||||||
|
for (const achievementFile of gameAchievementFiles) {
|
||||||
|
const localAchievementFile = parseAchievementFile(
|
||||||
|
achievementFile.filePath,
|
||||||
|
achievementFile.type
|
||||||
|
);
|
||||||
|
|
||||||
|
if (localAchievementFile.length) {
|
||||||
|
unlockedAchievements.push(...localAchievementFile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.alreadySyncedGames.set(gameKey, true);
|
||||||
|
|
||||||
|
const newAchievements = await mergeAchievements(
|
||||||
|
game,
|
||||||
|
unlockedAchievements,
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
|
if (newAchievements > 0) {
|
||||||
|
this.notifyCombinedAchievementsUnlocked(1, newAchievements);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static watchAchievements() {
|
public static watchAchievements() {
|
||||||
if (!this.hasFinishedMergingWithRemote) return;
|
if (!this.hasFinishedPreSearch) return;
|
||||||
|
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
return watchAchievementsWindows();
|
return watchAchievementsWindows();
|
||||||
@@ -181,10 +243,14 @@ export class AchievementWatcherManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mergeAchievements(game, unlockedAchievements, false);
|
if (unlockedAchievements.length) {
|
||||||
|
return mergeAchievements(game, unlockedAchievements, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static preSearchAchievementsWindows = async () => {
|
private static async getGameAchievementFilesWindows() {
|
||||||
const games = await gamesSublevel
|
const games = await gamesSublevel
|
||||||
.values()
|
.values()
|
||||||
.all()
|
.all()
|
||||||
@@ -194,24 +260,24 @@ export class AchievementWatcherManager {
|
|||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
games.map((game) => {
|
games.map((game) => {
|
||||||
const gameAchievementFiles: AchievementFile[] = [];
|
const achievementFiles: AchievementFile[] = [];
|
||||||
|
|
||||||
for (const objectId of getAlternativeObjectIds(game.objectId)) {
|
for (const objectId of getAlternativeObjectIds(game.objectId)) {
|
||||||
gameAchievementFiles.push(
|
achievementFiles.push(
|
||||||
...(gameAchievementFilesMap.get(objectId) || [])
|
...(gameAchievementFilesMap.get(objectId) || [])
|
||||||
);
|
);
|
||||||
|
|
||||||
gameAchievementFiles.push(
|
achievementFiles.push(
|
||||||
...findAchievementFileInExecutableDirectory(game)
|
...findAchievementFileInExecutableDirectory(game)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.preProcessGameAchievementFiles(game, gameAchievementFiles);
|
return { game, achievementFiles };
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
private static preSearchAchievementsWithWine = async () => {
|
private static async getGameAchievementFilesLinux() {
|
||||||
const games = await gamesSublevel
|
const games = await gamesSublevel
|
||||||
.values()
|
.values()
|
||||||
.all()
|
.all()
|
||||||
@@ -219,42 +285,76 @@ export class AchievementWatcherManager {
|
|||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
games.map((game) => {
|
games.map((game) => {
|
||||||
const gameAchievementFiles = findAchievementFiles(game);
|
const achievementFiles = findAchievementFiles(game);
|
||||||
const achievementFileInsideDirectory =
|
const achievementFileInsideDirectory =
|
||||||
findAchievementFileInExecutableDirectory(game);
|
findAchievementFileInExecutableDirectory(game);
|
||||||
|
|
||||||
gameAchievementFiles.push(...achievementFileInsideDirectory);
|
achievementFiles.push(...achievementFileInsideDirectory);
|
||||||
|
|
||||||
return this.preProcessGameAchievementFiles(game, gameAchievementFiles);
|
return { game, achievementFiles };
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
private static async notifyCombinedAchievementsUnlocked(
|
||||||
|
totalNewGamesWithAchievements: number,
|
||||||
|
totalNewAchievements: number
|
||||||
|
) {
|
||||||
|
const userPreferences = await db.get<string, UserPreferences>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
|
valueEncoding: "json",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (userPreferences.achievementCustomNotificationsEnabled !== false) {
|
||||||
|
WindowManager.notificationWindow?.webContents.send(
|
||||||
|
"on-combined-achievements-unlocked",
|
||||||
|
totalNewGamesWithAchievements,
|
||||||
|
totalNewAchievements,
|
||||||
|
userPreferences.achievementCustomNotificationPosition ?? "top-left"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
publishCombinedNewAchievementNotification(
|
||||||
|
totalNewAchievements,
|
||||||
|
totalNewGamesWithAchievements
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static async preSearchAchievements() {
|
public static async preSearchAchievements() {
|
||||||
try {
|
try {
|
||||||
const newAchievementsCount =
|
const gameAchievementFiles =
|
||||||
process.platform === "win32"
|
process.platform === "win32"
|
||||||
? await this.preSearchAchievementsWindows()
|
? await this.getGameAchievementFilesWindows()
|
||||||
: await this.preSearchAchievementsWithWine();
|
: await this.getGameAchievementFilesLinux();
|
||||||
|
|
||||||
|
const newAchievementsCount = await Promise.all(
|
||||||
|
gameAchievementFiles.map(({ game, achievementFiles }) => {
|
||||||
|
return this.preProcessGameAchievementFiles(game, achievementFiles);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
const totalNewGamesWithAchievements = newAchievementsCount.filter(
|
const totalNewGamesWithAchievements = newAchievementsCount.filter(
|
||||||
(achievements) => achievements
|
(achievements) => achievements
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
const totalNewAchievements = newAchievementsCount.reduce(
|
const totalNewAchievements = newAchievementsCount.reduce(
|
||||||
(acc, val) => acc + val,
|
(acc, val) => acc + val,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
if (totalNewAchievements > 0) {
|
if (totalNewAchievements > 0) {
|
||||||
publishCombinedNewAchievementNotification(
|
await setTimeout(4000);
|
||||||
totalNewAchievements,
|
this.notifyCombinedAchievementsUnlocked(
|
||||||
totalNewGamesWithAchievements
|
totalNewGamesWithAchievements,
|
||||||
|
totalNewAchievements
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
achievementsLogger.error("Error on preSearchAchievements", err);
|
achievementsLogger.error("Error on preSearchAchievements", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.hasFinishedMergingWithRemote = true;
|
this._hasFinishedPreSearch = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ export const findAchievementFileInExecutableDirectory = (
|
|||||||
"achievements.ini"
|
"achievements.ini"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
].filter((file) => fs.existsSync(file.filePath)) as AchievementFile[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapFileLocationWithObjectId = (
|
const mapFileLocationWithObjectId = (
|
||||||
|
|||||||
@@ -1,24 +1,39 @@
|
|||||||
import { HydraApi } from "../hydra-api";
|
import { HydraApi } from "../hydra-api";
|
||||||
import type { GameShop, SteamAchievement } from "@types";
|
import type { GameAchievement, GameShop, SteamAchievement } from "@types";
|
||||||
import { UserNotLoggedInError } from "@shared";
|
import { UserNotLoggedInError } from "@shared";
|
||||||
import { logger } from "../logger";
|
import { logger } from "../logger";
|
||||||
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
||||||
|
import { AxiosError } from "axios";
|
||||||
|
|
||||||
|
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 60; // 1 hour
|
||||||
|
|
||||||
|
const getModifiedSinceHeader = (
|
||||||
|
cachedAchievements: GameAchievement | undefined
|
||||||
|
): Date | undefined => {
|
||||||
|
if (!cachedAchievements) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
return cachedAchievements.updatedAt
|
||||||
|
? new Date(cachedAchievements.updatedAt)
|
||||||
|
: undefined;
|
||||||
|
};
|
||||||
|
|
||||||
export const getGameAchievementData = async (
|
export const getGameAchievementData = async (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
useCachedData: boolean
|
useCachedData: boolean
|
||||||
) => {
|
) => {
|
||||||
const cachedAchievements = await gameAchievementsSublevel.get(
|
const gameKey = levelKeys.game(shop, objectId);
|
||||||
levelKeys.game(shop, objectId)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (cachedAchievements && useCachedData)
|
const cachedAchievements = await gameAchievementsSublevel.get(gameKey);
|
||||||
|
|
||||||
|
if (cachedAchievements?.achievements && useCachedData)
|
||||||
return cachedAchievements.achievements;
|
return cachedAchievements.achievements;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
cachedAchievements &&
|
cachedAchievements?.achievements &&
|
||||||
Date.now() < (cachedAchievements.cacheExpiresTimestamp ?? 0)
|
Date.now() < (cachedAchievements.updatedAt ?? 0) + LOCAL_CACHE_EXPIRATION
|
||||||
) {
|
) {
|
||||||
return cachedAchievements.achievements;
|
return cachedAchievements.achievements;
|
||||||
}
|
}
|
||||||
@@ -29,16 +44,22 @@ export const getGameAchievementData = async (
|
|||||||
})
|
})
|
||||||
.then((language) => language || "en");
|
.then((language) => language || "en");
|
||||||
|
|
||||||
return HydraApi.get<SteamAchievement[]>("/games/achievements", {
|
return HydraApi.get<SteamAchievement[]>(
|
||||||
shop,
|
"/games/achievements",
|
||||||
objectId,
|
{
|
||||||
language,
|
shop,
|
||||||
})
|
objectId,
|
||||||
|
language,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ifModifiedSince: getModifiedSinceHeader(cachedAchievements),
|
||||||
|
}
|
||||||
|
)
|
||||||
.then(async (achievements) => {
|
.then(async (achievements) => {
|
||||||
await gameAchievementsSublevel.put(levelKeys.game(shop, objectId), {
|
await gameAchievementsSublevel.put(gameKey, {
|
||||||
unlockedAchievements: cachedAchievements?.unlockedAchievements ?? [],
|
unlockedAchievements: cachedAchievements?.unlockedAchievements ?? [],
|
||||||
achievements,
|
achievements,
|
||||||
cacheExpiresTimestamp: Date.now() + 1000 * 60 * 30, // 30 minutes
|
updatedAt: Date.now() + LOCAL_CACHE_EXPIRATION,
|
||||||
});
|
});
|
||||||
|
|
||||||
return achievements;
|
return achievements;
|
||||||
@@ -48,8 +69,14 @@ export const getGameAchievementData = async (
|
|||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isNotModified = (err as AxiosError)?.response?.status === 304;
|
||||||
|
|
||||||
|
if (isNotModified) {
|
||||||
|
return cachedAchievements?.achievements ?? [];
|
||||||
|
}
|
||||||
|
|
||||||
logger.error("Failed to get game achievements for", objectId, err);
|
logger.error("Failed to get game achievements for", objectId, err);
|
||||||
|
|
||||||
return [];
|
return cachedAchievements?.achievements ?? [];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type {
|
import type {
|
||||||
|
AchievementNotificationInfo,
|
||||||
Game,
|
Game,
|
||||||
GameShop,
|
GameShop,
|
||||||
UnlockedAchievement,
|
UnlockedAchievement,
|
||||||
@@ -12,6 +13,14 @@ import { publishNewAchievementNotification } from "../notifications";
|
|||||||
import { SubscriptionRequiredError } from "@shared";
|
import { SubscriptionRequiredError } from "@shared";
|
||||||
import { achievementsLogger } from "../logger";
|
import { achievementsLogger } from "../logger";
|
||||||
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
import { db, gameAchievementsSublevel, levelKeys } from "@main/level";
|
||||||
|
import { getGameAchievementData } from "./get-game-achievement-data";
|
||||||
|
import { AchievementWatcherManager } from "./achievement-watcher-manager";
|
||||||
|
|
||||||
|
const isRareAchievement = (points: number) => {
|
||||||
|
const rawPercentage = (50 - Math.sqrt(points)) * 2;
|
||||||
|
|
||||||
|
return rawPercentage < 10;
|
||||||
|
};
|
||||||
|
|
||||||
const saveAchievementsOnLocal = async (
|
const saveAchievementsOnLocal = async (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
@@ -27,7 +36,7 @@ const saveAchievementsOnLocal = async (
|
|||||||
await gameAchievementsSublevel.put(levelKey, {
|
await gameAchievementsSublevel.put(levelKey, {
|
||||||
achievements: gameAchievement?.achievements ?? [],
|
achievements: gameAchievement?.achievements ?? [],
|
||||||
unlockedAchievements: unlockedAchievements,
|
unlockedAchievements: unlockedAchievements,
|
||||||
cacheExpiresTimestamp: gameAchievement?.cacheExpiresTimestamp,
|
updatedAt: gameAchievement?.updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!sendUpdateEvent) return;
|
if (!sendUpdateEvent) return;
|
||||||
@@ -48,12 +57,20 @@ export const mergeAchievements = async (
|
|||||||
achievements: UnlockedAchievement[],
|
achievements: UnlockedAchievement[],
|
||||||
publishNotification: boolean
|
publishNotification: boolean
|
||||||
) => {
|
) => {
|
||||||
const [localGameAchievement, userPreferences] = await Promise.all([
|
const gameKey = levelKeys.game(game.shop, game.objectId);
|
||||||
gameAchievementsSublevel.get(levelKeys.game(game.shop, game.objectId)),
|
|
||||||
db.get<string, UserPreferences>(levelKeys.userPreferences, {
|
let localGameAchievement = await gameAchievementsSublevel.get(gameKey);
|
||||||
|
const userPreferences = await db.get<string, UserPreferences>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
valueEncoding: "json",
|
valueEncoding: "json",
|
||||||
}),
|
}
|
||||||
]);
|
);
|
||||||
|
|
||||||
|
if (!localGameAchievement) {
|
||||||
|
await getGameAchievementData(game.objectId, game.shop, false);
|
||||||
|
localGameAchievement = await gameAchievementsSublevel.get(gameKey);
|
||||||
|
}
|
||||||
|
|
||||||
const achievementsData = localGameAchievement?.achievements ?? [];
|
const achievementsData = localGameAchievement?.achievements ?? [];
|
||||||
const unlockedAchievements = localGameAchievement?.unlockedAchievements ?? [];
|
const unlockedAchievements = localGameAchievement?.unlockedAchievements ?? [];
|
||||||
@@ -84,9 +101,9 @@ export const mergeAchievements = async (
|
|||||||
if (
|
if (
|
||||||
newAchievements.length &&
|
newAchievements.length &&
|
||||||
publishNotification &&
|
publishNotification &&
|
||||||
userPreferences?.achievementNotificationsEnabled
|
userPreferences.achievementNotificationsEnabled !== false
|
||||||
) {
|
) {
|
||||||
const achievementsInfo = newAchievements
|
const filteredAchievements = newAchievements
|
||||||
.toSorted((a, b) => {
|
.toSorted((a, b) => {
|
||||||
return a.unlockTime - b.unlockTime;
|
return a.unlockTime - b.unlockTime;
|
||||||
})
|
})
|
||||||
@@ -98,24 +115,54 @@ export const mergeAchievements = async (
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.filter((achievement) => Boolean(achievement))
|
.filter((achievement) => !!achievement);
|
||||||
.map((achievement) => {
|
|
||||||
|
const achievementsInfo: AchievementNotificationInfo[] =
|
||||||
|
filteredAchievements.map((achievement, index) => {
|
||||||
return {
|
return {
|
||||||
displayName: achievement!.displayName,
|
title: achievement.displayName,
|
||||||
iconUrl: achievement!.icon,
|
description: achievement.description,
|
||||||
|
points: achievement.points,
|
||||||
|
isHidden: achievement.hidden,
|
||||||
|
isRare: achievement.points
|
||||||
|
? isRareAchievement(achievement.points)
|
||||||
|
: false,
|
||||||
|
isPlatinum:
|
||||||
|
index === filteredAchievements.length - 1 &&
|
||||||
|
newAchievements.length + unlockedAchievements.length ===
|
||||||
|
achievementsData.length,
|
||||||
|
iconUrl: achievement.icon,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
publishNewAchievementNotification({
|
achievementsLogger.log(
|
||||||
achievements: achievementsInfo,
|
"Publishing achievement notification",
|
||||||
unlockedAchievementCount: mergedLocalAchievements.length,
|
game.objectId,
|
||||||
totalAchievementCount: achievementsData.length,
|
game.title
|
||||||
gameTitle: game.title,
|
);
|
||||||
gameIcon: game.iconUrl,
|
|
||||||
});
|
if (userPreferences.achievementCustomNotificationsEnabled !== false) {
|
||||||
|
WindowManager.notificationWindow?.webContents.send(
|
||||||
|
"on-achievement-unlocked",
|
||||||
|
userPreferences.achievementCustomNotificationPosition ?? "top-left",
|
||||||
|
achievementsInfo
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
publishNewAchievementNotification({
|
||||||
|
achievements: achievementsInfo,
|
||||||
|
unlockedAchievementCount: mergedLocalAchievements.length,
|
||||||
|
totalAchievementCount: achievementsData.length,
|
||||||
|
gameTitle: game.title,
|
||||||
|
gameIcon: game.iconUrl,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (game.remoteId) {
|
const shouldSyncWithRemote =
|
||||||
|
game.remoteId &&
|
||||||
|
(newAchievements.length || AchievementWatcherManager.hasFinishedPreSearch);
|
||||||
|
|
||||||
|
if (shouldSyncWithRemote) {
|
||||||
await HydraApi.put<UpdatedUnlockedAchievements | undefined>(
|
await HydraApi.put<UpdatedUnlockedAchievements | undefined>(
|
||||||
"/profile/games/achievements",
|
"/profile/games/achievements",
|
||||||
{
|
{
|
||||||
@@ -156,8 +203,11 @@ export const mergeAchievements = async (
|
|||||||
mergedLocalAchievements,
|
mergedLocalAchievements,
|
||||||
publishNotification
|
publishNotification
|
||||||
);
|
);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
AchievementWatcherManager.alreadySyncedGames.set(gameKey, true);
|
||||||
});
|
});
|
||||||
} else {
|
} else if (newAchievements.length) {
|
||||||
await saveAchievementsOnLocal(
|
await saveAchievementsOnLocal(
|
||||||
game.objectId,
|
game.objectId,
|
||||||
game.shop,
|
game.shop,
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
import {
|
|
||||||
findAchievementFiles,
|
|
||||||
findAchievementFileInExecutableDirectory,
|
|
||||||
} from "./find-achivement-files";
|
|
||||||
import { parseAchievementFile } from "./parse-achievement-file";
|
|
||||||
import { mergeAchievements } from "./merge-achievements";
|
|
||||||
import type { Game, UnlockedAchievement } from "@types";
|
|
||||||
|
|
||||||
export const updateLocalUnlockedAchievements = async (game: Game) => {
|
|
||||||
const gameAchievementFiles = findAchievementFiles(game);
|
|
||||||
|
|
||||||
const achievementFileInsideDirectory =
|
|
||||||
findAchievementFileInExecutableDirectory(game);
|
|
||||||
|
|
||||||
gameAchievementFiles.push(...achievementFileInsideDirectory);
|
|
||||||
|
|
||||||
const unlockedAchievements: UnlockedAchievement[] = [];
|
|
||||||
|
|
||||||
for (const achievementFile of gameAchievementFiles) {
|
|
||||||
const localAchievementFile = parseAchievementFile(
|
|
||||||
achievementFile.filePath,
|
|
||||||
achievementFile.type
|
|
||||||
);
|
|
||||||
|
|
||||||
if (localAchievementFile.length) {
|
|
||||||
unlockedAchievements.push(...localAchievementFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mergeAchievements(game, unlockedAchievements, false);
|
|
||||||
};
|
|
||||||
@@ -7,8 +7,8 @@ export class Aria2 {
|
|||||||
|
|
||||||
public static spawn() {
|
public static spawn() {
|
||||||
const binaryPath = app.isPackaged
|
const binaryPath = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "aria2", "aria2c")
|
? path.join(process.resourcesPath, "aria2c")
|
||||||
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
: path.join(__dirname, "..", "..", "binaries", "aria2c");
|
||||||
|
|
||||||
this.process = cp.spawn(
|
this.process = cp.spawn(
|
||||||
binaryPath,
|
binaryPath,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import os from "node:os";
|
|||||||
import type { GameShop, User } from "@types";
|
import type { GameShop, User } from "@types";
|
||||||
import { backupsPath } from "@main/constants";
|
import { backupsPath } from "@main/constants";
|
||||||
import { HydraApi } from "./hydra-api";
|
import { HydraApi } from "./hydra-api";
|
||||||
import { normalizePath } from "@main/helpers";
|
import { normalizePath, parseRegFile } from "@main/helpers";
|
||||||
import { logger } from "./logger";
|
import { logger } from "./logger";
|
||||||
import { WindowManager } from "./window-manager";
|
import { WindowManager } from "./window-manager";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
@@ -17,6 +17,39 @@ import i18next, { t } from "i18next";
|
|||||||
import { SystemPath } from "./system-path";
|
import { SystemPath } from "./system-path";
|
||||||
|
|
||||||
export class CloudSync {
|
export class CloudSync {
|
||||||
|
public static getWindowsLikeUserProfilePath(winePrefixPath?: string | null) {
|
||||||
|
if (process.platform === "linux") {
|
||||||
|
if (!winePrefixPath) {
|
||||||
|
throw new Error("Wine prefix path is required");
|
||||||
|
}
|
||||||
|
|
||||||
|
const userReg = fs.readFileSync(
|
||||||
|
path.join(winePrefixPath, "user.reg"),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
|
const entries = parseRegFile(userReg);
|
||||||
|
const volatileEnvironment = entries.find(
|
||||||
|
(entry) => entry.path === "Volatile Environment"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!volatileEnvironment) {
|
||||||
|
throw new Error("Volatile environment not found in user.reg");
|
||||||
|
}
|
||||||
|
|
||||||
|
const { values } = volatileEnvironment;
|
||||||
|
const userProfile = String(values["USERPROFILE"]);
|
||||||
|
|
||||||
|
if (userProfile) {
|
||||||
|
return normalizePath(userProfile);
|
||||||
|
} else {
|
||||||
|
throw new Error("User profile not found in user.reg");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return normalizePath(SystemPath.getPath("home"));
|
||||||
|
}
|
||||||
|
|
||||||
public static getBackupLabel(automatic: boolean) {
|
public static getBackupLabel(automatic: boolean) {
|
||||||
const language = i18next.language;
|
const language = i18next.language;
|
||||||
|
|
||||||
@@ -102,9 +135,12 @@ export class CloudSync {
|
|||||||
shop,
|
shop,
|
||||||
objectId,
|
objectId,
|
||||||
hostname: os.hostname(),
|
hostname: os.hostname(),
|
||||||
homeDir: normalizePath(SystemPath.getPath("home")),
|
winePrefixPath: game?.winePrefixPath
|
||||||
|
? fs.realpathSync(game.winePrefixPath)
|
||||||
|
: null,
|
||||||
|
homeDir: this.getWindowsLikeUserProfilePath(game?.winePrefixPath ?? null),
|
||||||
downloadOptionTitle,
|
downloadOptionTitle,
|
||||||
platform: os.platform(),
|
platform: process.platform,
|
||||||
label,
|
label,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ export interface ProcessPayload {
|
|||||||
exe: string | null;
|
exe: string | null;
|
||||||
pid: number;
|
pid: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
environ?: Record<string, string> | null;
|
||||||
|
cwd?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PauseSeedingPayload {
|
export interface PauseSeedingPayload {
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { WSClient } from "./ws/ws-client";
|
|||||||
interface HydraApiOptions {
|
interface HydraApiOptions {
|
||||||
needsAuth?: boolean;
|
needsAuth?: boolean;
|
||||||
needsSubscription?: boolean;
|
needsSubscription?: boolean;
|
||||||
|
ifModifiedSince?: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface HydraApiUserAuth {
|
interface HydraApiUserAuth {
|
||||||
@@ -42,7 +43,7 @@ export class HydraApi {
|
|||||||
subscription: null,
|
subscription: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
private static isLoggedIn() {
|
public static isLoggedIn() {
|
||||||
return this.userAuth.authToken !== "";
|
return this.userAuth.authToken !== "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,8 +338,13 @@ export class HydraApi {
|
|||||||
) {
|
) {
|
||||||
await this.validateOptions(options);
|
await this.validateOptions(options);
|
||||||
|
|
||||||
|
const headers = {
|
||||||
|
...this.getAxiosConfig().headers,
|
||||||
|
"Hydra-If-Modified-Since": options?.ifModifiedSince?.toUTCString(),
|
||||||
|
};
|
||||||
|
|
||||||
return this.instance
|
return this.instance
|
||||||
.get<T>(url, { params, ...this.getAxiosConfig() })
|
.get<T>(url, { params, ...this.getAxiosConfig(), headers })
|
||||||
.then((response) => response.data)
|
.then((response) => response.data)
|
||||||
.catch(this.handleUnauthorizedError);
|
.catch(this.handleUnauthorizedError);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ export * from "./aria2";
|
|||||||
export * from "./ws";
|
export * from "./ws";
|
||||||
export * from "./system-path";
|
export * from "./system-path";
|
||||||
export * from "./library-sync";
|
export * from "./library-sync";
|
||||||
|
export * from "./wine";
|
||||||
|
export * from "./lock";
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ type ProfileGame = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastTimePlayed: Date | null;
|
lastTimePlayed: Date | null;
|
||||||
playTimeInMilliseconds: number;
|
playTimeInMilliseconds: number;
|
||||||
|
isFavorite?: boolean;
|
||||||
} & ShopAssets;
|
} & ShopAssets;
|
||||||
|
|
||||||
export const mergeWithRemoteGames = async () => {
|
export const mergeWithRemoteGames = async () => {
|
||||||
return HydraApi.get<ProfileGame[]>("/profile/games")
|
return HydraApi.get<ProfileGame[]>("/profile/games")
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
for (const game of response) {
|
for (const game of response) {
|
||||||
const localGame = await gamesSublevel.get(
|
const gameKey = levelKeys.game(game.shop, game.objectId);
|
||||||
levelKeys.game(game.shop, game.objectId)
|
const localGame = await gamesSublevel.get(gameKey);
|
||||||
);
|
|
||||||
|
|
||||||
if (localGame) {
|
if (localGame) {
|
||||||
const updatedLastTimePlayed =
|
const updatedLastTimePlayed =
|
||||||
@@ -29,14 +29,15 @@ export const mergeWithRemoteGames = async () => {
|
|||||||
? game.playTimeInMilliseconds
|
? game.playTimeInMilliseconds
|
||||||
: localGame.playTimeInMilliseconds;
|
: localGame.playTimeInMilliseconds;
|
||||||
|
|
||||||
await gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
await gamesSublevel.put(gameKey, {
|
||||||
...localGame,
|
...localGame,
|
||||||
remoteId: game.id,
|
remoteId: game.id,
|
||||||
lastTimePlayed: updatedLastTimePlayed,
|
lastTimePlayed: updatedLastTimePlayed,
|
||||||
playTimeInMilliseconds: updatedPlayTime,
|
playTimeInMilliseconds: updatedPlayTime,
|
||||||
|
favorite: game.isFavorite ?? localGame.favorite,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
await gamesSublevel.put(gameKey, {
|
||||||
objectId: game.objectId,
|
objectId: game.objectId,
|
||||||
title: game.title,
|
title: game.title,
|
||||||
remoteId: game.id,
|
remoteId: game.id,
|
||||||
@@ -45,23 +46,21 @@ export const mergeWithRemoteGames = async () => {
|
|||||||
lastTimePlayed: game.lastTimePlayed,
|
lastTimePlayed: game.lastTimePlayed,
|
||||||
playTimeInMilliseconds: game.playTimeInMilliseconds,
|
playTimeInMilliseconds: game.playTimeInMilliseconds,
|
||||||
isDeleted: false,
|
isDeleted: false,
|
||||||
|
favorite: game.isFavorite ?? false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await gamesShopAssetsSublevel.put(
|
await gamesShopAssetsSublevel.put(gameKey, {
|
||||||
levelKeys.game(game.shop, game.objectId),
|
shop: game.shop,
|
||||||
{
|
objectId: game.objectId,
|
||||||
shop: game.shop,
|
title: game.title,
|
||||||
objectId: game.objectId,
|
coverImageUrl: game.coverImageUrl,
|
||||||
title: game.title,
|
libraryHeroImageUrl: game.libraryHeroImageUrl,
|
||||||
coverImageUrl: game.coverImageUrl,
|
libraryImageUrl: game.libraryImageUrl,
|
||||||
libraryHeroImageUrl: game.libraryHeroImageUrl,
|
logoImageUrl: game.logoImageUrl,
|
||||||
libraryImageUrl: game.libraryImageUrl,
|
iconUrl: game.iconUrl,
|
||||||
logoImageUrl: game.logoImageUrl,
|
logoPosition: game.logoPosition,
|
||||||
iconUrl: game.iconUrl,
|
});
|
||||||
logoPosition: game.logoPosition,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const uploadGamesBatch = async () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const gamesChunks = chunk(games, 50);
|
const gamesChunks = chunk(games, 30);
|
||||||
|
|
||||||
for (const chunk of gamesChunks) {
|
for (const chunk of gamesChunks) {
|
||||||
await HydraApi.post(
|
await HydraApi.post(
|
||||||
@@ -26,6 +26,7 @@ export const uploadGamesBatch = async () => {
|
|||||||
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds),
|
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds),
|
||||||
shop: game.shop,
|
shop: game.shop,
|
||||||
lastTimePlayed: game.lastTimePlayed,
|
lastTimePlayed: game.lastTimePlayed,
|
||||||
|
isFavorite: game.favorite,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
).catch(() => {});
|
).catch(() => {});
|
||||||
|
|||||||
39
src/main/services/lock.ts
Normal file
39
src/main/services/lock.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import path from "node:path";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import { SystemPath } from "./system-path";
|
||||||
|
import { logger } from "./logger";
|
||||||
|
|
||||||
|
export class Lock {
|
||||||
|
private static lockFilePath = path.join(
|
||||||
|
SystemPath.getPath("temp"),
|
||||||
|
"hydra-launcher.lock"
|
||||||
|
);
|
||||||
|
|
||||||
|
public static async acquireLock() {
|
||||||
|
return new Promise<void>((resolve, reject) => {
|
||||||
|
fs.writeFile(this.lockFilePath, "", (err) => {
|
||||||
|
if (err) {
|
||||||
|
logger.error("Error acquiring the lock", err);
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info("Acquired the lock");
|
||||||
|
resolve();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async releaseLock() {
|
||||||
|
return new Promise<void>((resolve, reject) => {
|
||||||
|
fs.unlink(this.lockFilePath, (err) => {
|
||||||
|
if (err) {
|
||||||
|
logger.error("Error releasing the lock", err);
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info("Released the lock");
|
||||||
|
resolve();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,70 +1,102 @@
|
|||||||
import type { GameShop, LudusaviBackup, LudusaviConfig } from "@types";
|
import type { GameShop, LudusaviBackup, LudusaviConfig } from "@types";
|
||||||
import Piscina from "piscina";
|
|
||||||
|
|
||||||
import { app } from "electron";
|
import { app } from "electron";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import YAML from "yaml";
|
import YAML from "yaml";
|
||||||
|
import cp from "node:child_process";
|
||||||
import ludusaviWorkerPath from "../workers/ludusavi.worker?modulePath";
|
|
||||||
import { LUDUSAVI_MANIFEST_URL } from "@main/constants";
|
|
||||||
import { SystemPath } from "./system-path";
|
import { SystemPath } from "./system-path";
|
||||||
|
|
||||||
export class Ludusavi {
|
export class Ludusavi {
|
||||||
private static ludusaviPath = path.join(
|
private static ludusaviResourcesPath = app.isPackaged
|
||||||
SystemPath.getPath("appData"),
|
? path.join(process.resourcesPath, "ludusavi")
|
||||||
|
: path.join(__dirname, "..", "..", "ludusavi");
|
||||||
|
|
||||||
|
private static configPath = path.join(
|
||||||
|
SystemPath.getPath("userData"),
|
||||||
"ludusavi"
|
"ludusavi"
|
||||||
);
|
);
|
||||||
private static ludusaviConfigPath = path.join(
|
private static binaryName =
|
||||||
this.ludusaviPath,
|
process.platform === "win32" ? "ludusavi.exe" : "ludusavi";
|
||||||
"config.yaml"
|
|
||||||
);
|
|
||||||
private static binaryPath = app.isPackaged
|
|
||||||
? path.join(process.resourcesPath, "ludusavi", "ludusavi")
|
|
||||||
: path.join(__dirname, "..", "..", "ludusavi", "ludusavi");
|
|
||||||
|
|
||||||
private static worker = new Piscina({
|
private static binaryPath = path.join(this.configPath, this.binaryName);
|
||||||
filename: ludusaviWorkerPath,
|
|
||||||
workerData: {
|
|
||||||
binaryPath: this.binaryPath,
|
|
||||||
},
|
|
||||||
maxThreads: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
static async getConfig() {
|
|
||||||
if (!fs.existsSync(this.ludusaviConfigPath)) {
|
|
||||||
await this.worker.run(undefined, { name: "generateConfig" });
|
|
||||||
}
|
|
||||||
|
|
||||||
|
public static async getConfig() {
|
||||||
const config = YAML.parse(
|
const config = YAML.parse(
|
||||||
fs.readFileSync(this.ludusaviConfigPath, "utf-8")
|
fs.readFileSync(path.join(this.configPath, "config.yaml"), "utf-8")
|
||||||
) as LudusaviConfig;
|
) as LudusaviConfig;
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
static async backupGame(
|
public static async copyConfigFileToUserData() {
|
||||||
_shop: GameShop,
|
if (!fs.existsSync(this.configPath)) {
|
||||||
objectId: string,
|
fs.mkdirSync(this.configPath, { recursive: true });
|
||||||
backupPath: string,
|
|
||||||
winePrefix?: string | null
|
fs.cpSync(
|
||||||
): Promise<LudusaviBackup> {
|
path.join(this.ludusaviResourcesPath, "config.yaml"),
|
||||||
return this.worker.run(
|
path.join(this.configPath, "config.yaml")
|
||||||
{ title: objectId, backupPath, winePrefix },
|
);
|
||||||
{ name: "backupGame" }
|
}
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async getBackupPreview(
|
public static async copyBinaryToUserData() {
|
||||||
|
if (!fs.existsSync(this.binaryPath)) {
|
||||||
|
fs.cpSync(
|
||||||
|
path.join(this.ludusaviResourcesPath, this.binaryName),
|
||||||
|
this.binaryPath
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async backupGame(
|
||||||
|
_shop: GameShop,
|
||||||
|
objectId: string,
|
||||||
|
backupPath?: string | null,
|
||||||
|
winePrefix?: string | null,
|
||||||
|
preview?: boolean
|
||||||
|
): Promise<LudusaviBackup> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const args = [
|
||||||
|
"--config",
|
||||||
|
this.configPath,
|
||||||
|
"backup",
|
||||||
|
objectId,
|
||||||
|
"--api",
|
||||||
|
"--force",
|
||||||
|
];
|
||||||
|
|
||||||
|
if (preview) args.push("--preview");
|
||||||
|
if (backupPath) args.push("--path", backupPath);
|
||||||
|
if (winePrefix) args.push("--wine-prefix", winePrefix);
|
||||||
|
|
||||||
|
cp.execFile(
|
||||||
|
this.binaryPath,
|
||||||
|
args,
|
||||||
|
(err: cp.ExecFileException | null, stdout: string) => {
|
||||||
|
if (err) {
|
||||||
|
return reject(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
return resolve(JSON.parse(stdout) as LudusaviBackup);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async getBackupPreview(
|
||||||
_shop: GameShop,
|
_shop: GameShop,
|
||||||
objectId: string,
|
objectId: string,
|
||||||
winePrefix?: string | null
|
winePrefix?: string | null
|
||||||
): Promise<LudusaviBackup | null> {
|
): Promise<LudusaviBackup | null> {
|
||||||
const config = await this.getConfig();
|
const config = await this.getConfig();
|
||||||
|
|
||||||
const backupData = await this.worker.run(
|
const backupData = await this.backupGame(
|
||||||
{ title: objectId, winePrefix, preview: true },
|
_shop,
|
||||||
{ name: "backupGame" }
|
objectId,
|
||||||
|
null,
|
||||||
|
winePrefix,
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
const customGame = config.customGames.find(
|
const customGame = config.customGames.find(
|
||||||
@@ -77,19 +109,6 @@ export class Ludusavi {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
static async restoreBackup(backupPath: string) {
|
|
||||||
return this.worker.run(backupPath, { name: "restoreBackup" });
|
|
||||||
}
|
|
||||||
|
|
||||||
static async addManifestToLudusaviConfig() {
|
|
||||||
const config = await this.getConfig();
|
|
||||||
|
|
||||||
config.manifest.enable = false;
|
|
||||||
config.manifest.secondary = [{ url: LUDUSAVI_MANIFEST_URL, enable: true }];
|
|
||||||
|
|
||||||
fs.writeFileSync(this.ludusaviConfigPath, YAML.stringify(config));
|
|
||||||
}
|
|
||||||
|
|
||||||
static async addCustomGame(title: string, savePath: string | null) {
|
static async addCustomGame(title: string, savePath: string | null) {
|
||||||
const config = await this.getConfig();
|
const config = await this.getConfig();
|
||||||
const filteredGames = config.customGames.filter(
|
const filteredGames = config.customGames.filter(
|
||||||
@@ -105,6 +124,10 @@ export class Ludusavi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.customGames = filteredGames;
|
config.customGames = filteredGames;
|
||||||
fs.writeFileSync(this.ludusaviConfigPath, YAML.stringify(config));
|
|
||||||
|
fs.writeFileSync(
|
||||||
|
path.join(this.configPath, "config.yaml"),
|
||||||
|
YAML.stringify(config)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export const publishExtractionCompleteNotification = async (game: Game) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const publishNewAchievementNotification = async (info: {
|
export const publishNewAchievementNotification = async (info: {
|
||||||
achievements: { displayName: string; iconUrl: string }[];
|
achievements: { title: string; iconUrl: string }[];
|
||||||
unlockedAchievementCount: number;
|
unlockedAchievementCount: number;
|
||||||
totalAchievementCount: number;
|
totalAchievementCount: number;
|
||||||
gameTitle: string;
|
gameTitle: string;
|
||||||
@@ -176,12 +176,12 @@ export const publishNewAchievementNotification = async (info: {
|
|||||||
gameTitle: info.gameTitle,
|
gameTitle: info.gameTitle,
|
||||||
achievementCount: info.achievements.length,
|
achievementCount: info.achievements.length,
|
||||||
}),
|
}),
|
||||||
body: info.achievements.map((a) => a.displayName).join(", "),
|
body: info.achievements.map((a) => a.title).join(", "),
|
||||||
icon: (await downloadImage(info.gameIcon)) ?? icon,
|
icon: (await downloadImage(info.gameIcon)) ?? icon,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
title: t("achievement_unlocked", { ns: "achievement" }),
|
title: t("achievement_unlocked", { ns: "achievement" }),
|
||||||
body: info.achievements[0].displayName,
|
body: info.achievements[0].title,
|
||||||
icon: (await downloadImage(info.achievements[0].iconUrl)) ?? icon,
|
icon: (await downloadImage(info.achievements[0].iconUrl)) ?? icon,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,12 @@ import { createGame, updateGamePlaytime } from "./library-sync";
|
|||||||
import type { Game, GameRunning } from "@types";
|
import type { Game, GameRunning } from "@types";
|
||||||
import { PythonRPC } from "./python-rpc";
|
import { PythonRPC } from "./python-rpc";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { exec } from "child_process";
|
|
||||||
import { ProcessPayload } from "./download/types";
|
import { ProcessPayload } from "./download/types";
|
||||||
import { gamesSublevel, levelKeys } from "@main/level";
|
import { gamesSublevel, levelKeys } from "@main/level";
|
||||||
import { CloudSync } from "./cloud-sync";
|
import { CloudSync } from "./cloud-sync";
|
||||||
|
import { logger } from "./logger";
|
||||||
const commands = {
|
import path from "path";
|
||||||
findWineDir: `lsof -c wine 2>/dev/null | grep '/drive_c/windows$' | head -n 1 | awk '{for(i=9;i<=NF;i++) printf "%s ", $i; print ""}'`,
|
import { AchievementWatcherManager } from "./achievements/achievement-watcher-manager";
|
||||||
findWineExecutables: `lsof -c wine 2>/dev/null | grep '\\.exe$' | awk '{for(i=9;i<=NF;i++) printf "%s ", $i; print ""}'`,
|
|
||||||
};
|
|
||||||
|
|
||||||
export const gamesPlaytime = new Map<
|
export const gamesPlaytime = new Map<
|
||||||
string,
|
string,
|
||||||
@@ -31,8 +28,7 @@ interface GameExecutables {
|
|||||||
const TICKS_TO_UPDATE_API = 120;
|
const TICKS_TO_UPDATE_API = 120;
|
||||||
let currentTick = 1;
|
let currentTick = 1;
|
||||||
|
|
||||||
const isWindowsPlatform = process.platform === "win32";
|
const platform = process.platform;
|
||||||
const isLinuxPlatform = process.platform === "linux";
|
|
||||||
|
|
||||||
const getGameExecutables = async () => {
|
const getGameExecutables = async () => {
|
||||||
const gameExecutables = (
|
const gameExecutables = (
|
||||||
@@ -49,18 +45,20 @@ const getGameExecutables = async () => {
|
|||||||
Object.keys(gameExecutables).forEach((key) => {
|
Object.keys(gameExecutables).forEach((key) => {
|
||||||
gameExecutables[key] = gameExecutables[key]
|
gameExecutables[key] = gameExecutables[key]
|
||||||
.filter((executable) => {
|
.filter((executable) => {
|
||||||
if (isWindowsPlatform) {
|
if (platform === "win32") {
|
||||||
return executable.os === "win32";
|
return executable.os === "win32";
|
||||||
} else if (isLinuxPlatform) {
|
} else if (platform === "linux") {
|
||||||
return executable.os === "linux" || executable.os === "win32";
|
return executable.os === "linux" || executable.os === "win32";
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
.map((executable) => {
|
.map((executable) => {
|
||||||
return {
|
return {
|
||||||
name: isWindowsPlatform
|
name:
|
||||||
? executable.name.replace(/\//g, "\\")
|
platform === "win32"
|
||||||
: executable.name,
|
? executable.name.replace(/\//g, "\\")
|
||||||
|
: executable.name,
|
||||||
os: executable.os,
|
os: executable.os,
|
||||||
exe: executable.name.slice(executable.name.lastIndexOf("/") + 1),
|
exe: executable.name.slice(executable.name.lastIndexOf("/") + 1),
|
||||||
};
|
};
|
||||||
@@ -72,8 +70,9 @@ const getGameExecutables = async () => {
|
|||||||
|
|
||||||
const gameExecutables = await getGameExecutables();
|
const gameExecutables = await getGameExecutables();
|
||||||
|
|
||||||
const findGamePathByProcess = (
|
const findGamePathByProcess = async (
|
||||||
processMap: Map<string, Set<string>>,
|
processMap: Map<string, Set<string>>,
|
||||||
|
winePrefixMap: Map<string, string>,
|
||||||
gameId: string
|
gameId: string
|
||||||
) => {
|
) => {
|
||||||
const executables = gameExecutables[gameId];
|
const executables = gameExecutables[gameId];
|
||||||
@@ -82,32 +81,26 @@ const findGamePathByProcess = (
|
|||||||
const pathSet = processMap.get(executable.exe);
|
const pathSet = processMap.get(executable.exe);
|
||||||
|
|
||||||
if (pathSet) {
|
if (pathSet) {
|
||||||
pathSet.forEach(async (path) => {
|
for (const path of pathSet) {
|
||||||
if (path.toLowerCase().endsWith(executable.name)) {
|
if (path.toLowerCase().endsWith(executable.name)) {
|
||||||
const gameKey = levelKeys.game("steam", gameId);
|
const gameKey = levelKeys.game("steam", gameId);
|
||||||
const game = await gamesSublevel.get(gameKey);
|
const game = await gamesSublevel.get(gameKey);
|
||||||
|
|
||||||
if (game) {
|
if (game) {
|
||||||
gamesSublevel.put(gameKey, {
|
const updatedGame: Game = {
|
||||||
...game,
|
...game,
|
||||||
executablePath: path,
|
executablePath: path,
|
||||||
});
|
};
|
||||||
}
|
|
||||||
|
|
||||||
if (isLinuxPlatform) {
|
if (process.platform === "linux" && winePrefixMap.has(path)) {
|
||||||
exec(commands.findWineDir, (err, out) => {
|
updatedGame.winePrefixPath = winePrefixMap.get(path)!;
|
||||||
if (err) return;
|
}
|
||||||
|
|
||||||
if (game) {
|
await gamesSublevel.put(gameKey, updatedGame);
|
||||||
gamesSublevel.put(gameKey, {
|
logger.info("Set game path", gameKey, path);
|
||||||
...game,
|
|
||||||
winePrefixPath: out.trim().replace("/drive_c/windows", ""),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -117,50 +110,29 @@ const getSystemProcessMap = async () => {
|
|||||||
(await PythonRPC.rpc.get<ProcessPayload[] | null>("/process-list")).data ||
|
(await PythonRPC.rpc.get<ProcessPayload[] | null>("/process-list")).data ||
|
||||||
[];
|
[];
|
||||||
|
|
||||||
const map = new Map<string, Set<string>>();
|
const processMap = new Map<string, Set<string>>();
|
||||||
|
const winePrefixMap = new Map<string, string>();
|
||||||
|
|
||||||
processes.forEach((process) => {
|
processes.forEach((process) => {
|
||||||
const key = process.name?.toLowerCase();
|
const key = process.name?.toLowerCase();
|
||||||
const value = process.exe;
|
const value =
|
||||||
|
platform === "win32"
|
||||||
|
? process.exe
|
||||||
|
: path.join(process.cwd ?? "", process.name ?? "");
|
||||||
|
|
||||||
if (!key || !value) return;
|
if (!key || !value) return;
|
||||||
|
|
||||||
const currentSet = map.get(key) ?? new Set();
|
const STEAM_COMPAT_DATA_PATH = process.environ?.STEAM_COMPAT_DATA_PATH;
|
||||||
map.set(key, currentSet.add(value));
|
|
||||||
|
if (STEAM_COMPAT_DATA_PATH) {
|
||||||
|
winePrefixMap.set(value, STEAM_COMPAT_DATA_PATH);
|
||||||
|
}
|
||||||
|
|
||||||
|
const currentSet = processMap.get(key) ?? new Set();
|
||||||
|
processMap.set(key, currentSet.add(value));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isLinuxPlatform) {
|
return { processMap, winePrefixMap };
|
||||||
await new Promise((res) => {
|
|
||||||
exec(commands.findWineExecutables, (err, out) => {
|
|
||||||
if (err) {
|
|
||||||
res(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const pathSet = new Set(
|
|
||||||
out
|
|
||||||
.trim()
|
|
||||||
.split("\n")
|
|
||||||
.map((path) => path.trim())
|
|
||||||
);
|
|
||||||
|
|
||||||
pathSet.forEach((path) => {
|
|
||||||
if (path.startsWith("/usr")) return;
|
|
||||||
|
|
||||||
const key = path.slice(path.lastIndexOf("/") + 1).toLowerCase();
|
|
||||||
|
|
||||||
if (!key || !path) return;
|
|
||||||
|
|
||||||
const currentSet = map.get(key) ?? new Set();
|
|
||||||
map.set(key, currentSet.add(path));
|
|
||||||
});
|
|
||||||
|
|
||||||
res(null);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return map;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const watchProcesses = async () => {
|
export const watchProcesses = async () => {
|
||||||
@@ -173,19 +145,20 @@ export const watchProcesses = async () => {
|
|||||||
|
|
||||||
if (!games.length) return;
|
if (!games.length) return;
|
||||||
|
|
||||||
const processMap = await getSystemProcessMap();
|
const { processMap, winePrefixMap } = await getSystemProcessMap();
|
||||||
|
|
||||||
for (const game of games) {
|
for (const game of games) {
|
||||||
const executablePath = game.executablePath;
|
const executablePath = game.executablePath;
|
||||||
if (!executablePath) {
|
if (!executablePath) {
|
||||||
if (gameExecutables[game.objectId]) {
|
if (gameExecutables[game.objectId]) {
|
||||||
findGamePathByProcess(processMap, game.objectId);
|
await findGamePathByProcess(processMap, winePrefixMap, game.objectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const executable = executablePath
|
const executable = executablePath
|
||||||
.slice(executablePath.lastIndexOf(isWindowsPlatform ? "\\" : "/") + 1)
|
.slice(executablePath.lastIndexOf(platform === "win32" ? "\\" : "/") + 1)
|
||||||
.toLowerCase();
|
.toLowerCase();
|
||||||
|
|
||||||
const hasProcess = processMap.get(executable)?.has(executablePath);
|
const hasProcess = processMap.get(executable)?.has(executablePath);
|
||||||
@@ -218,6 +191,11 @@ export const watchProcesses = async () => {
|
|||||||
function onOpenGame(game: Game) {
|
function onOpenGame(game: Game) {
|
||||||
const now = performance.now();
|
const now = performance.now();
|
||||||
|
|
||||||
|
AchievementWatcherManager.firstSyncWithRemoteIfNeeded(
|
||||||
|
game.shop,
|
||||||
|
game.objectId
|
||||||
|
);
|
||||||
|
|
||||||
gamesPlaytime.set(levelKeys.game(game.shop, game.objectId), {
|
gamesPlaytime.set(levelKeys.game(game.shop, game.objectId), {
|
||||||
lastTick: now,
|
lastTick: now,
|
||||||
firstTick: now,
|
firstTick: now,
|
||||||
@@ -225,7 +203,18 @@ function onOpenGame(game: Game) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (game.remoteId) {
|
if (game.remoteId) {
|
||||||
updateGamePlaytime(game, 0, new Date()).catch(() => {});
|
updateGamePlaytime(
|
||||||
|
game,
|
||||||
|
game.unsyncedDeltaPlayTimeInMilliseconds ?? 0,
|
||||||
|
new Date()
|
||||||
|
)
|
||||||
|
.then(() => {
|
||||||
|
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
|
...game,
|
||||||
|
unsyncedDeltaPlayTimeInMilliseconds: 0,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
|
||||||
if (game.automaticCloudSync) {
|
if (game.automaticCloudSync) {
|
||||||
CloudSync.uploadSaveGame(
|
CloudSync.uploadSaveGame(
|
||||||
@@ -250,13 +239,7 @@ function onTickGame(game: Game) {
|
|||||||
|
|
||||||
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
...game,
|
...game,
|
||||||
playTimeInMilliseconds: game.playTimeInMilliseconds + delta,
|
playTimeInMilliseconds: (game.playTimeInMilliseconds ?? 0) + delta,
|
||||||
lastTimePlayed: new Date(),
|
|
||||||
});
|
|
||||||
|
|
||||||
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
|
||||||
...game,
|
|
||||||
playTimeInMilliseconds: game.playTimeInMilliseconds + delta,
|
|
||||||
lastTimePlayed: new Date(),
|
lastTimePlayed: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -266,22 +249,34 @@ function onTickGame(game: Game) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (currentTick % TICKS_TO_UPDATE_API === 0) {
|
if (currentTick % TICKS_TO_UPDATE_API === 0) {
|
||||||
|
const deltaToSync =
|
||||||
|
now -
|
||||||
|
gamePlaytime.lastSyncTick +
|
||||||
|
(game.unsyncedDeltaPlayTimeInMilliseconds ?? 0);
|
||||||
|
|
||||||
const gamePromise = game.remoteId
|
const gamePromise = game.remoteId
|
||||||
? updateGamePlaytime(
|
? updateGamePlaytime(game, deltaToSync, game.lastTimePlayed!)
|
||||||
game,
|
|
||||||
now - gamePlaytime.lastSyncTick,
|
|
||||||
game.lastTimePlayed!
|
|
||||||
)
|
|
||||||
: createGame(game);
|
: createGame(game);
|
||||||
|
|
||||||
gamePromise
|
gamePromise
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
|
...game,
|
||||||
|
unsyncedDeltaPlayTimeInMilliseconds: 0,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
|
...game,
|
||||||
|
unsyncedDeltaPlayTimeInMilliseconds: deltaToSync,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
gamesPlaytime.set(levelKeys.game(game.shop, game.objectId), {
|
gamesPlaytime.set(levelKeys.game(game.shop, game.objectId), {
|
||||||
...gamePlaytime,
|
...gamePlaytime,
|
||||||
lastSyncTick: now,
|
lastSyncTick: now,
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
.catch(() => {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,12 +287,6 @@ const onCloseGame = (game: Game) => {
|
|||||||
gamesPlaytime.delete(levelKeys.game(game.shop, game.objectId));
|
gamesPlaytime.delete(levelKeys.game(game.shop, game.objectId));
|
||||||
|
|
||||||
if (game.remoteId) {
|
if (game.remoteId) {
|
||||||
updateGamePlaytime(
|
|
||||||
game,
|
|
||||||
performance.now() - gamePlaytime.lastSyncTick,
|
|
||||||
game.lastTimePlayed!
|
|
||||||
).catch(() => {});
|
|
||||||
|
|
||||||
if (game.automaticCloudSync) {
|
if (game.automaticCloudSync) {
|
||||||
CloudSync.uploadSaveGame(
|
CloudSync.uploadSaveGame(
|
||||||
game.objectId,
|
game.objectId,
|
||||||
@@ -306,7 +295,38 @@ const onCloseGame = (game: Game) => {
|
|||||||
CloudSync.getBackupLabel(true)
|
CloudSync.getBackupLabel(true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const deltaToSync =
|
||||||
|
performance.now() -
|
||||||
|
gamePlaytime.lastSyncTick +
|
||||||
|
(game.unsyncedDeltaPlayTimeInMilliseconds ?? 0);
|
||||||
|
|
||||||
|
return updateGamePlaytime(game, deltaToSync, game.lastTimePlayed!)
|
||||||
|
.then(() => {
|
||||||
|
return gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
|
...game,
|
||||||
|
unsyncedDeltaPlayTimeInMilliseconds: 0,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return gamesSublevel.put(levelKeys.game(game.shop, game.objectId), {
|
||||||
|
...game,
|
||||||
|
unsyncedDeltaPlayTimeInMilliseconds: deltaToSync,
|
||||||
|
});
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
createGame(game).catch(() => {});
|
return createGame(game).catch(() => {});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const clearGamesPlaytime = async () => {
|
||||||
|
for (const game of gamesPlaytime.keys()) {
|
||||||
|
const gameData = await gamesSublevel.get(game);
|
||||||
|
|
||||||
|
if (gameData) {
|
||||||
|
await onCloseGame(gameData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gamesPlaytime.clear();
|
||||||
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import crypto from "node:crypto";
|
|||||||
|
|
||||||
import { pythonRpcLogger } from "./logger";
|
import { pythonRpcLogger } from "./logger";
|
||||||
import { Readable } from "node:stream";
|
import { Readable } from "node:stream";
|
||||||
import { app, dialog, safeStorage } from "electron";
|
import { app, dialog } from "electron";
|
||||||
import { db, levelKeys } from "@main/level";
|
import { db, levelKeys } from "@main/level";
|
||||||
|
|
||||||
interface GamePayload {
|
interface GamePayload {
|
||||||
@@ -22,12 +22,6 @@ const binaryNameByPlatform: Partial<Record<NodeJS.Platform, string>> = {
|
|||||||
win32: "hydra-python-rpc.exe",
|
win32: "hydra-python-rpc.exe",
|
||||||
};
|
};
|
||||||
|
|
||||||
const rustBinaryNameByPlatform: Partial<Record<NodeJS.Platform, string>> = {
|
|
||||||
darwin: "hydra-httpdl",
|
|
||||||
linux: "hydra-httpdl",
|
|
||||||
win32: "hydra-httpdl.exe",
|
|
||||||
};
|
|
||||||
|
|
||||||
export class PythonRPC {
|
export class PythonRPC {
|
||||||
public static readonly BITTORRENT_PORT = "5881";
|
public static readonly BITTORRENT_PORT = "5881";
|
||||||
public static readonly RPC_PORT = "8084";
|
public static readonly RPC_PORT = "8084";
|
||||||
@@ -49,18 +43,13 @@ export class PythonRPC {
|
|||||||
valueEncoding: "utf8",
|
valueEncoding: "utf8",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (existingPassword)
|
if (existingPassword) return existingPassword;
|
||||||
return safeStorage.decryptString(Buffer.from(existingPassword, "hex"));
|
|
||||||
|
|
||||||
const newPassword = crypto.randomBytes(32).toString("hex");
|
const newPassword = crypto.randomBytes(32).toString("hex");
|
||||||
|
|
||||||
await db.put(
|
await db.put(levelKeys.rpcPassword, newPassword, {
|
||||||
levelKeys.rpcPassword,
|
valueEncoding: "utf8",
|
||||||
safeStorage.encryptString(newPassword).toString("hex"),
|
});
|
||||||
{
|
|
||||||
valueEncoding: "utf8",
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
return newPassword;
|
return newPassword;
|
||||||
}
|
}
|
||||||
@@ -77,20 +66,6 @@ export class PythonRPC {
|
|||||||
rpcPassword,
|
rpcPassword,
|
||||||
initialDownload ? JSON.stringify(initialDownload) : "",
|
initialDownload ? JSON.stringify(initialDownload) : "",
|
||||||
initialSeeding ? JSON.stringify(initialSeeding) : "",
|
initialSeeding ? JSON.stringify(initialSeeding) : "",
|
||||||
app.isPackaged
|
|
||||||
? path.join(
|
|
||||||
process.resourcesPath,
|
|
||||||
rustBinaryNameByPlatform[process.platform]!
|
|
||||||
)
|
|
||||||
: path.join(
|
|
||||||
__dirname,
|
|
||||||
"..",
|
|
||||||
"..",
|
|
||||||
"rust_rpc",
|
|
||||||
"target",
|
|
||||||
"debug",
|
|
||||||
rustBinaryNameByPlatform[process.platform]!
|
|
||||||
),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (app.isPackaged) {
|
if (app.isPackaged) {
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import path from "node:path";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import { crc32 } from "crc";
|
||||||
|
import WinReg from "winreg";
|
||||||
|
import { parseBuffer, writeBuffer } from "steam-shortcut-editor";
|
||||||
|
|
||||||
import type { SteamAppDetails } from "@types";
|
import type { SteamAppDetails, SteamShortcut } from "@types";
|
||||||
|
|
||||||
import { logger } from "./logger";
|
import { logger } from "./logger";
|
||||||
|
import { SystemPath } from "./system-path";
|
||||||
|
|
||||||
export interface SteamAppDetailsResponse {
|
export interface SteamAppDetailsResponse {
|
||||||
[key: string]: {
|
[key: string]: {
|
||||||
@@ -11,6 +17,36 @@ export interface SteamAppDetailsResponse {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getSteamLocation = async () => {
|
||||||
|
if (process.platform === "linux") {
|
||||||
|
return path.join(SystemPath.getPath("home"), ".local", "share", "Steam");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.platform === "darwin") {
|
||||||
|
return path.join(
|
||||||
|
SystemPath.getPath("home"),
|
||||||
|
"Library",
|
||||||
|
"Application Support",
|
||||||
|
"Steam"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const regKey = new WinReg({
|
||||||
|
hive: WinReg.HKCU,
|
||||||
|
key: "\\Software\\Valve\\Steam",
|
||||||
|
});
|
||||||
|
|
||||||
|
return new Promise<string>((resolve, reject) => {
|
||||||
|
regKey.get("SteamPath", (err, value) => {
|
||||||
|
if (err) {
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
resolve(value.value);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
export const getSteamAppDetails = async (
|
export const getSteamAppDetails = async (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
language: string
|
language: string
|
||||||
@@ -40,3 +76,86 @@ export const getSteamAppDetails = async (
|
|||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const getSteamUsersIds = async () => {
|
||||||
|
const userDataPath = await getSteamLocation();
|
||||||
|
|
||||||
|
const userIds = fs.readdirSync(path.join(userDataPath, "userdata"), {
|
||||||
|
withFileTypes: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
return userIds
|
||||||
|
.filter((dir) => dir.isDirectory())
|
||||||
|
.map((dir) => Number(dir.name));
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getSteamShortcuts = async (steamUserId: number) => {
|
||||||
|
const shortcutsPath = path.join(
|
||||||
|
await getSteamLocation(),
|
||||||
|
"userdata",
|
||||||
|
steamUserId.toString(),
|
||||||
|
"config",
|
||||||
|
"shortcuts.vdf"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!fs.existsSync(shortcutsPath)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
const shortcuts = parseBuffer(fs.readFileSync(shortcutsPath));
|
||||||
|
|
||||||
|
return shortcuts.shortcuts as SteamShortcut[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export const generateSteamShortcutAppId = (
|
||||||
|
exePath: string,
|
||||||
|
gameName: string
|
||||||
|
) => {
|
||||||
|
const input = exePath + gameName;
|
||||||
|
const crcValue = crc32(input) >>> 0;
|
||||||
|
const steamAppId = (crcValue | 0x80000000) >>> 0;
|
||||||
|
return steamAppId;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const composeSteamShortcut = (
|
||||||
|
title: string,
|
||||||
|
executablePath: string,
|
||||||
|
iconPath: string | null
|
||||||
|
): SteamShortcut => {
|
||||||
|
return {
|
||||||
|
appid: generateSteamShortcutAppId(executablePath, title),
|
||||||
|
appname: title,
|
||||||
|
Exe: `"${executablePath}"`,
|
||||||
|
StartDir: `"${path.dirname(executablePath)}"`,
|
||||||
|
icon: iconPath ?? "",
|
||||||
|
ShortcutPath: "",
|
||||||
|
LaunchOptions: "",
|
||||||
|
IsHidden: false,
|
||||||
|
AllowDesktopConfig: true,
|
||||||
|
AllowOverlay: true,
|
||||||
|
OpenVR: false,
|
||||||
|
Devkit: false,
|
||||||
|
DevkitGameID: "",
|
||||||
|
DevkitOverrideAppID: false,
|
||||||
|
LastPlayTime: 0,
|
||||||
|
FlatpakAppID: "",
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export const writeSteamShortcuts = async (
|
||||||
|
steamUserId: number,
|
||||||
|
shortcuts: SteamShortcut[]
|
||||||
|
) => {
|
||||||
|
const buffer = writeBuffer({ shortcuts });
|
||||||
|
|
||||||
|
return fs.promises.writeFile(
|
||||||
|
path.join(
|
||||||
|
await getSteamLocation(),
|
||||||
|
"userdata",
|
||||||
|
steamUserId.toString(),
|
||||||
|
"config",
|
||||||
|
"shortcuts.vdf"
|
||||||
|
),
|
||||||
|
buffer
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export class SystemPath {
|
|||||||
try {
|
try {
|
||||||
return app.getPath(pathName);
|
return app.getPath(pathName);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Error getting path: ${error}`);
|
console.error(`Error getting path: ${error}`);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
Tray,
|
Tray,
|
||||||
app,
|
app,
|
||||||
nativeImage,
|
nativeImage,
|
||||||
|
screen,
|
||||||
shell,
|
shell,
|
||||||
} from "electron";
|
} from "electron";
|
||||||
import { is } from "@electron-toolkit/utils";
|
import { is } from "@electron-toolkit/utils";
|
||||||
@@ -17,12 +18,17 @@ import { HydraApi } from "./hydra-api";
|
|||||||
import UserAgent from "user-agents";
|
import UserAgent from "user-agents";
|
||||||
import { db, gamesSublevel, levelKeys } from "@main/level";
|
import { db, gamesSublevel, levelKeys } from "@main/level";
|
||||||
import { orderBy, slice } from "lodash-es";
|
import { orderBy, slice } from "lodash-es";
|
||||||
import type { ScreenState, UserPreferences } from "@types";
|
import type {
|
||||||
import { AuthPage } from "@shared";
|
AchievementCustomNotificationPosition,
|
||||||
|
ScreenState,
|
||||||
|
UserPreferences,
|
||||||
|
} from "@types";
|
||||||
|
import { AuthPage, generateAchievementCustomNotificationTest } from "@shared";
|
||||||
import { isStaging } from "@main/constants";
|
import { isStaging } from "@main/constants";
|
||||||
|
|
||||||
export class WindowManager {
|
export class WindowManager {
|
||||||
public static mainWindow: Electron.BrowserWindow | null = null;
|
public static mainWindow: Electron.BrowserWindow | null = null;
|
||||||
|
public static notificationWindow: Electron.BrowserWindow | null = null;
|
||||||
|
|
||||||
private static readonly editorWindows: Map<string, BrowserWindow> = new Map();
|
private static readonly editorWindows: Map<string, BrowserWindow> = new Map();
|
||||||
|
|
||||||
@@ -259,6 +265,153 @@ export class WindowManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static loadNotificationWindowURL() {
|
||||||
|
if (is.dev && process.env["ELECTRON_RENDERER_URL"]) {
|
||||||
|
this.notificationWindow?.loadURL(
|
||||||
|
`${process.env["ELECTRON_RENDERER_URL"]}#/achievement-notification`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.notificationWindow?.loadFile(
|
||||||
|
path.join(__dirname, "../renderer/index.html"),
|
||||||
|
{
|
||||||
|
hash: "achievement-notification",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static readonly NOTIFICATION_WINDOW_WIDTH = 360;
|
||||||
|
private static readonly NOTIFICATION_WINDOW_HEIGHT = 140;
|
||||||
|
|
||||||
|
private static async getNotificationWindowPosition(
|
||||||
|
position: AchievementCustomNotificationPosition | undefined
|
||||||
|
) {
|
||||||
|
const display = screen.getPrimaryDisplay();
|
||||||
|
const { width, height } = display.workAreaSize;
|
||||||
|
|
||||||
|
if (position === "bottom-left") {
|
||||||
|
return {
|
||||||
|
x: 0,
|
||||||
|
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (position === "bottom-center") {
|
||||||
|
return {
|
||||||
|
x: (width - this.NOTIFICATION_WINDOW_WIDTH) / 2,
|
||||||
|
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (position === "bottom-right") {
|
||||||
|
return {
|
||||||
|
x: width - this.NOTIFICATION_WINDOW_WIDTH,
|
||||||
|
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (position === "top-center") {
|
||||||
|
return {
|
||||||
|
x: (width - this.NOTIFICATION_WINDOW_WIDTH) / 2,
|
||||||
|
y: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (position === "top-right") {
|
||||||
|
return {
|
||||||
|
x: width - this.NOTIFICATION_WINDOW_WIDTH,
|
||||||
|
y: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async createNotificationWindow() {
|
||||||
|
if (this.notificationWindow) return;
|
||||||
|
|
||||||
|
const userPreferences = await db.get<string, UserPreferences | undefined>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
|
valueEncoding: "json",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (
|
||||||
|
userPreferences?.achievementNotificationsEnabled === false ||
|
||||||
|
userPreferences?.achievementCustomNotificationsEnabled === false
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { x, y } = await this.getNotificationWindowPosition(
|
||||||
|
userPreferences?.achievementCustomNotificationPosition
|
||||||
|
);
|
||||||
|
|
||||||
|
this.notificationWindow = new BrowserWindow({
|
||||||
|
transparent: true,
|
||||||
|
maximizable: false,
|
||||||
|
autoHideMenuBar: true,
|
||||||
|
minimizable: false,
|
||||||
|
backgroundColor: "#00000000",
|
||||||
|
focusable: false,
|
||||||
|
skipTaskbar: true,
|
||||||
|
frame: false,
|
||||||
|
width: this.NOTIFICATION_WINDOW_WIDTH,
|
||||||
|
height: this.NOTIFICATION_WINDOW_HEIGHT,
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
webPreferences: {
|
||||||
|
preload: path.join(__dirname, "../preload/index.mjs"),
|
||||||
|
sandbox: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
this.notificationWindow.setIgnoreMouseEvents(true);
|
||||||
|
|
||||||
|
this.notificationWindow.setAlwaysOnTop(true, "screen-saver", 1);
|
||||||
|
this.loadNotificationWindowURL();
|
||||||
|
|
||||||
|
if (!app.isPackaged || isStaging) {
|
||||||
|
this.notificationWindow.webContents.openDevTools();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async showAchievementTestNotification() {
|
||||||
|
const userPreferences = await db.get<string, UserPreferences>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
|
valueEncoding: "json",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
const language = userPreferences.language ?? "en";
|
||||||
|
|
||||||
|
this.notificationWindow?.webContents.send(
|
||||||
|
"on-achievement-unlocked",
|
||||||
|
userPreferences.achievementCustomNotificationPosition ?? "top-left",
|
||||||
|
[
|
||||||
|
generateAchievementCustomNotificationTest(t, language),
|
||||||
|
generateAchievementCustomNotificationTest(t, language, {
|
||||||
|
isRare: true,
|
||||||
|
isHidden: true,
|
||||||
|
}),
|
||||||
|
generateAchievementCustomNotificationTest(t, language, {
|
||||||
|
isPlatinum: true,
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async closeNotificationWindow() {
|
||||||
|
if (this.notificationWindow) {
|
||||||
|
this.notificationWindow.close();
|
||||||
|
this.notificationWindow = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static openEditorWindow(themeId: string) {
|
public static openEditorWindow(themeId: string) {
|
||||||
if (this.mainWindow) {
|
if (this.mainWindow) {
|
||||||
const existingWindow = this.editorWindows.get(themeId);
|
const existingWindow = this.editorWindows.get(themeId);
|
||||||
@@ -271,13 +424,13 @@ export class WindowManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const editorWindow = new BrowserWindow({
|
const editorWindow = new BrowserWindow({
|
||||||
width: 600,
|
width: 720,
|
||||||
height: 720,
|
height: 720,
|
||||||
minWidth: 600,
|
minWidth: 600,
|
||||||
minHeight: 540,
|
minHeight: 540,
|
||||||
backgroundColor: "#1c1c1c",
|
backgroundColor: "#1c1c1c",
|
||||||
titleBarStyle: process.platform === "linux" ? "default" : "hidden",
|
titleBarStyle: process.platform === "linux" ? "default" : "hidden",
|
||||||
...(process.platform === "linux" ? { icon } : {}),
|
icon,
|
||||||
trafficLightPosition: { x: 16, y: 16 },
|
trafficLightPosition: { x: 16, y: 16 },
|
||||||
titleBarOverlay: {
|
titleBarOverlay: {
|
||||||
symbolColor: "#DADBE1",
|
symbolColor: "#DADBE1",
|
||||||
@@ -308,14 +461,13 @@ export class WindowManager {
|
|||||||
editorWindow.once("ready-to-show", () => {
|
editorWindow.once("ready-to-show", () => {
|
||||||
editorWindow.show();
|
editorWindow.show();
|
||||||
this.mainWindow?.webContents.openDevTools();
|
this.mainWindow?.webContents.openDevTools();
|
||||||
if (isStaging) {
|
if (!app.isPackaged || isStaging) {
|
||||||
editorWindow.webContents.openDevTools();
|
editorWindow.webContents.openDevTools();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
editorWindow.webContents.on("before-input-event", (event, input) => {
|
editorWindow.webContents.on("before-input-event", (_event, input) => {
|
||||||
if (input.key === "F12") {
|
if (input.key === "F12") {
|
||||||
event.preventDefault();
|
|
||||||
this.mainWindow?.webContents.toggleDevTools();
|
this.mainWindow?.webContents.toggleDevTools();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
30
src/main/services/wine.ts
Normal file
30
src/main/services/wine.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
|
export class Wine {
|
||||||
|
public static validatePrefix(winePrefixPath: string) {
|
||||||
|
const requiredFiles = [
|
||||||
|
{ name: "system.reg", type: "file" },
|
||||||
|
{ name: "user.reg", type: "file" },
|
||||||
|
{ name: "userdef.reg", type: "file" },
|
||||||
|
{ name: "dosdevices", type: "dir" },
|
||||||
|
{ name: "drive_c", type: "dir" },
|
||||||
|
];
|
||||||
|
|
||||||
|
for (const file of requiredFiles) {
|
||||||
|
const filePath = path.join(winePrefixPath, file.name);
|
||||||
|
|
||||||
|
if (file.type === "file" && !fs.existsSync(filePath)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file.type === "dir") {
|
||||||
|
if (!fs.existsSync(filePath) || !fs.lstatSync(filePath).isDirectory()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,15 +1,25 @@
|
|||||||
import type { FriendGameSession } from "@main/generated/envelope";
|
import type { FriendGameSession } from "@main/generated/envelope";
|
||||||
|
import { db, levelKeys } from "@main/level";
|
||||||
import { HydraApi } from "@main/services/hydra-api";
|
import { HydraApi } from "@main/services/hydra-api";
|
||||||
import { publishFriendStartedPlayingGameNotification } from "@main/services/notifications";
|
import { publishFriendStartedPlayingGameNotification } from "@main/services/notifications";
|
||||||
import { GameStats } from "@types";
|
import type { GameStats, UserPreferences, UserProfile } from "@types";
|
||||||
|
|
||||||
export const friendGameSessionEvent = async (payload: FriendGameSession) => {
|
export const friendGameSessionEvent = async (payload: FriendGameSession) => {
|
||||||
|
const userPreferences = await db.get<string, UserPreferences | null>(
|
||||||
|
levelKeys.userPreferences,
|
||||||
|
{
|
||||||
|
valueEncoding: "json",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (userPreferences?.friendStartGameNotificationsEnabled === false) return;
|
||||||
|
|
||||||
const [friend, gameStats] = await Promise.all([
|
const [friend, gameStats] = await Promise.all([
|
||||||
HydraApi.get(`/users/${payload.friendId}`),
|
HydraApi.get<UserProfile>(`/users/${payload.friendId}`),
|
||||||
HydraApi.get<GameStats>(
|
HydraApi.get<GameStats>(
|
||||||
`/games/stats?objectId=${payload.objectId}&shop=steam`
|
`/games/stats?objectId=${payload.objectId}&shop=steam`
|
||||||
),
|
),
|
||||||
]);
|
]).catch(() => [null, null]);
|
||||||
|
|
||||||
if (friend && gameStats) {
|
if (friend && gameStats) {
|
||||||
publishFriendStartedPlayingGameNotification(friend, gameStats);
|
publishFriendStartedPlayingGameNotification(friend, gameStats);
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ export class WSClient {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.ws.on("message", (message) => {
|
this.ws.on("message", (message) => {
|
||||||
|
if (message.toString() === "PONG") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const envelope = Envelope.fromBinary(
|
const envelope = Envelope.fromBinary(
|
||||||
new Uint8Array(Buffer.from(message.toString()))
|
new Uint8Array(Buffer.from(message.toString()))
|
||||||
);
|
);
|
||||||
@@ -112,7 +116,7 @@ export class WSClient {
|
|||||||
private static startHeartbeat() {
|
private static startHeartbeat() {
|
||||||
this.heartbeatInterval = setInterval(() => {
|
this.heartbeatInterval = setInterval(() => {
|
||||||
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
|
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
|
||||||
this.ws.ping();
|
this.ws.send("PING");
|
||||||
}
|
}
|
||||||
}, 15_000);
|
}, 15_000);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,56 +0,0 @@
|
|||||||
import type { LudusaviBackup } from "@types";
|
|
||||||
import cp from "node:child_process";
|
|
||||||
|
|
||||||
import { workerData } from "node:worker_threads";
|
|
||||||
|
|
||||||
const { binaryPath } = workerData;
|
|
||||||
|
|
||||||
export const backupGame = ({
|
|
||||||
title,
|
|
||||||
backupPath,
|
|
||||||
preview = false,
|
|
||||||
winePrefix,
|
|
||||||
}: {
|
|
||||||
title: string;
|
|
||||||
backupPath: string;
|
|
||||||
preview?: boolean;
|
|
||||||
winePrefix?: string;
|
|
||||||
}) => {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
const args = ["backup", title, "--api", "--force"];
|
|
||||||
|
|
||||||
if (preview) args.push("--preview");
|
|
||||||
if (backupPath) args.push("--path", backupPath);
|
|
||||||
if (winePrefix) args.push("--wine-prefix", winePrefix);
|
|
||||||
|
|
||||||
cp.execFile(
|
|
||||||
binaryPath,
|
|
||||||
args,
|
|
||||||
(err: cp.ExecFileException | null, stdout: string) => {
|
|
||||||
if (err) {
|
|
||||||
return reject(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
return resolve(JSON.parse(stdout) as LudusaviBackup);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
export const restoreBackup = (backupPath: string) => {
|
|
||||||
const result = cp.execFileSync(binaryPath, [
|
|
||||||
"restore",
|
|
||||||
"--path",
|
|
||||||
backupPath,
|
|
||||||
"--api",
|
|
||||||
"--force",
|
|
||||||
]);
|
|
||||||
|
|
||||||
return JSON.parse(result.toString("utf-8")) as LudusaviBackup;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const generateConfig = () => {
|
|
||||||
const result = cp.execFileSync(binaryPath, ["schema", "config"]);
|
|
||||||
|
|
||||||
return JSON.parse(result.toString("utf-8")) as LudusaviBackup;
|
|
||||||
};
|
|
||||||
@@ -18,6 +18,8 @@ import type {
|
|||||||
FriendRequestSync,
|
FriendRequestSync,
|
||||||
ShortcutLocation,
|
ShortcutLocation,
|
||||||
ShopAssets,
|
ShopAssets,
|
||||||
|
AchievementCustomNotificationPosition,
|
||||||
|
AchievementNotificationInfo,
|
||||||
} from "@types";
|
} from "@types";
|
||||||
import type { AuthPage, CatalogueCategory } from "@shared";
|
import type { AuthPage, CatalogueCategory } from "@shared";
|
||||||
import type { AxiosProgressEvent } from "axios";
|
import type { AxiosProgressEvent } from "axios";
|
||||||
@@ -189,6 +191,10 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
ipcRenderer.invoke("resetGameAchievements", shop, objectId),
|
ipcRenderer.invoke("resetGameAchievements", shop, objectId),
|
||||||
extractGameDownload: (shop: GameShop, objectId: string) =>
|
extractGameDownload: (shop: GameShop, objectId: string) =>
|
||||||
ipcRenderer.invoke("extractGameDownload", shop, objectId),
|
ipcRenderer.invoke("extractGameDownload", shop, objectId),
|
||||||
|
getDefaultWinePrefixSelectionPath: () =>
|
||||||
|
ipcRenderer.invoke("getDefaultWinePrefixSelectionPath"),
|
||||||
|
createSteamShortcut: (shop: GameShop, objectId: string) =>
|
||||||
|
ipcRenderer.invoke("createSteamShortcut", shop, objectId),
|
||||||
onGamesRunning: (
|
onGamesRunning: (
|
||||||
cb: (
|
cb: (
|
||||||
gamesRunning: Pick<GameRunning, "id" | "sessionDurationInMillis">[]
|
gamesRunning: Pick<GameRunning, "id" | "sessionDurationInMillis">[]
|
||||||
@@ -205,12 +211,6 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
return () =>
|
return () =>
|
||||||
ipcRenderer.removeListener("on-library-batch-complete", listener);
|
ipcRenderer.removeListener("on-library-batch-complete", listener);
|
||||||
},
|
},
|
||||||
onAchievementUnlocked: (cb: () => void) => {
|
|
||||||
const listener = (_event: Electron.IpcRendererEvent) => cb();
|
|
||||||
ipcRenderer.on("on-achievement-unlocked", listener);
|
|
||||||
return () =>
|
|
||||||
ipcRenderer.removeListener("on-achievement-unlocked", listener);
|
|
||||||
},
|
|
||||||
onExtractionComplete: (cb: (shop: GameShop, objectId: string) => void) => {
|
onExtractionComplete: (cb: (shop: GameShop, objectId: string) => void) => {
|
||||||
const listener = (
|
const listener = (
|
||||||
_event: Electron.IpcRendererEvent,
|
_event: Electron.IpcRendererEvent,
|
||||||
@@ -234,6 +234,10 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
downloadOptionTitle: string | null
|
downloadOptionTitle: string | null
|
||||||
) =>
|
) =>
|
||||||
ipcRenderer.invoke("uploadSaveGame", objectId, shop, downloadOptionTitle),
|
ipcRenderer.invoke("uploadSaveGame", objectId, shop, downloadOptionTitle),
|
||||||
|
toggleArtifactFreeze: (gameArtifactId: string, freeze: boolean) =>
|
||||||
|
ipcRenderer.invoke("toggleArtifactFreeze", gameArtifactId, freeze),
|
||||||
|
renameGameArtifact: (gameArtifactId: string, label: string) =>
|
||||||
|
ipcRenderer.invoke("renameGameArtifact", gameArtifactId, label),
|
||||||
downloadGameArtifact: (
|
downloadGameArtifact: (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
@@ -408,6 +412,42 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
/* Notifications */
|
/* Notifications */
|
||||||
publishNewRepacksNotification: (newRepacksCount: number) =>
|
publishNewRepacksNotification: (newRepacksCount: number) =>
|
||||||
ipcRenderer.invoke("publishNewRepacksNotification", newRepacksCount),
|
ipcRenderer.invoke("publishNewRepacksNotification", newRepacksCount),
|
||||||
|
onAchievementUnlocked: (
|
||||||
|
cb: (
|
||||||
|
position?: AchievementCustomNotificationPosition,
|
||||||
|
achievements?: AchievementNotificationInfo[]
|
||||||
|
) => void
|
||||||
|
) => {
|
||||||
|
const listener = (
|
||||||
|
_event: Electron.IpcRendererEvent,
|
||||||
|
position?: AchievementCustomNotificationPosition,
|
||||||
|
achievements?: AchievementNotificationInfo[]
|
||||||
|
) => cb(position, achievements);
|
||||||
|
ipcRenderer.on("on-achievement-unlocked", listener);
|
||||||
|
return () =>
|
||||||
|
ipcRenderer.removeListener("on-achievement-unlocked", listener);
|
||||||
|
},
|
||||||
|
onCombinedAchievementsUnlocked: (
|
||||||
|
cb: (
|
||||||
|
gameCount: number,
|
||||||
|
achievementsCount: number,
|
||||||
|
position: AchievementCustomNotificationPosition
|
||||||
|
) => void
|
||||||
|
) => {
|
||||||
|
const listener = (
|
||||||
|
_event: Electron.IpcRendererEvent,
|
||||||
|
gameCount: number,
|
||||||
|
achievementCount: number,
|
||||||
|
position: AchievementCustomNotificationPosition
|
||||||
|
) => cb(gameCount, achievementCount, position);
|
||||||
|
ipcRenderer.on("on-combined-achievements-unlocked", listener);
|
||||||
|
return () =>
|
||||||
|
ipcRenderer.removeListener("on-combined-achievements-unlocked", listener);
|
||||||
|
},
|
||||||
|
updateAchievementCustomNotificationWindow: () =>
|
||||||
|
ipcRenderer.invoke("updateAchievementCustomNotificationWindow"),
|
||||||
|
showAchievementTestNotification: () =>
|
||||||
|
ipcRenderer.invoke("showAchievementTestNotification"),
|
||||||
|
|
||||||
/* Themes */
|
/* Themes */
|
||||||
addCustomTheme: (theme: Theme) => ipcRenderer.invoke("addCustomTheme", theme),
|
addCustomTheme: (theme: Theme) => ipcRenderer.invoke("addCustomTheme", theme),
|
||||||
@@ -426,11 +466,11 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
/* Editor */
|
/* Editor */
|
||||||
openEditorWindow: (themeId: string) =>
|
openEditorWindow: (themeId: string) =>
|
||||||
ipcRenderer.invoke("openEditorWindow", themeId),
|
ipcRenderer.invoke("openEditorWindow", themeId),
|
||||||
onCssInjected: (cb: (cssString: string) => void) => {
|
onCustomThemeUpdated: (cb: () => void) => {
|
||||||
const listener = (_event: Electron.IpcRendererEvent, cssString: string) =>
|
const listener = (_event: Electron.IpcRendererEvent) => cb();
|
||||||
cb(cssString);
|
ipcRenderer.on("on-custom-theme-updated", listener);
|
||||||
ipcRenderer.on("css-injected", listener);
|
return () =>
|
||||||
return () => ipcRenderer.removeListener("css-injected", listener);
|
ipcRenderer.removeListener("on-custom-theme-updated", listener);
|
||||||
},
|
},
|
||||||
closeEditorWindow: (themeId?: string) =>
|
closeEditorWindow: (themeId?: string) =>
|
||||||
ipcRenderer.invoke("closeEditorWindow", themeId),
|
ipcRenderer.invoke("closeEditorWindow", themeId),
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import { downloadSourcesTable } from "./dexie";
|
|||||||
import { useSubscription } from "./hooks/use-subscription";
|
import { useSubscription } from "./hooks/use-subscription";
|
||||||
import { HydraCloudModal } from "./pages/shared-modals/hydra-cloud/hydra-cloud-modal";
|
import { HydraCloudModal } from "./pages/shared-modals/hydra-cloud/hydra-cloud-modal";
|
||||||
|
|
||||||
import { injectCustomCss } from "./helpers";
|
import { injectCustomCss, removeCustomCss } from "./helpers";
|
||||||
import "./app.scss";
|
import "./app.scss";
|
||||||
|
|
||||||
export interface AppProps {
|
export interface AppProps {
|
||||||
@@ -246,17 +246,27 @@ export function App() {
|
|||||||
};
|
};
|
||||||
}, [updateRepacks]);
|
}, [updateRepacks]);
|
||||||
|
|
||||||
useEffect(() => {
|
const loadAndApplyTheme = useCallback(async () => {
|
||||||
const loadAndApplyTheme = async () => {
|
const activeTheme = await window.electron.getActiveCustomTheme();
|
||||||
const activeTheme = await window.electron.getActiveCustomTheme();
|
if (activeTheme?.code) {
|
||||||
|
injectCustomCss(activeTheme.code);
|
||||||
if (activeTheme?.code) {
|
} else {
|
||||||
injectCustomCss(activeTheme.code);
|
removeCustomCss();
|
||||||
}
|
}
|
||||||
};
|
|
||||||
loadAndApplyTheme();
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
loadAndApplyTheme();
|
||||||
|
}, [loadAndApplyTheme]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const unsubscribe = window.electron.onCustomThemeUpdated(() => {
|
||||||
|
loadAndApplyTheme();
|
||||||
|
});
|
||||||
|
|
||||||
|
return () => unsubscribe();
|
||||||
|
}, [loadAndApplyTheme]);
|
||||||
|
|
||||||
const playAudio = useCallback(() => {
|
const playAudio = useCallback(() => {
|
||||||
const audio = new Audio(achievementSound);
|
const audio = new Audio(achievementSound);
|
||||||
audio.volume = 0.2;
|
audio.volume = 0.2;
|
||||||
@@ -273,14 +283,6 @@ export function App() {
|
|||||||
};
|
};
|
||||||
}, [playAudio]);
|
}, [playAudio]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const unsubscribe = window.electron.onCssInjected((cssString) => {
|
|
||||||
injectCustomCss(cssString);
|
|
||||||
});
|
|
||||||
|
|
||||||
return () => unsubscribe();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleToastClose = useCallback(() => {
|
const handleToastClose = useCallback(() => {
|
||||||
dispatch(closeToast());
|
dispatch(closeToast());
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|||||||
BIN
src/renderer/src/assets/icons/ellipses.png
Normal file
BIN
src/renderer/src/assets/icons/ellipses.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
5
src/renderer/src/assets/icons/trophy.svg
Normal file
5
src/renderer/src/assets/icons/trophy.svg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g id="Frame 933">
|
||||||
|
<path id="Vector" d="M29.3333 10.5H26.8333V8.83333C26.8333 8.61232 26.7455 8.40036 26.5893 8.24408C26.433 8.0878 26.221 8 26 8H11C10.779 8 10.567 8.0878 10.4107 8.24408C10.2545 8.40036 10.1667 8.61232 10.1667 8.83333V10.5H7.66667C7.22464 10.5 6.80072 10.6756 6.48816 10.9882C6.17559 11.3007 6 11.7246 6 12.1667V13.8333C6 14.9384 6.43899 15.9982 7.22039 16.7796C7.6073 17.1665 8.06663 17.4734 8.57215 17.6828C9.07768 17.8922 9.61949 18 10.1667 18H10.5469C11.0378 19.5556 11.9737 20.9333 13.2391 21.9628C14.5044 22.9923 16.0437 23.6285 17.6667 23.7927V26.3333H15.1667C14.9457 26.3333 14.7337 26.4211 14.5774 26.5774C14.4211 26.7337 14.3333 26.9457 14.3333 27.1667C14.3333 27.3877 14.4211 27.5996 14.5774 27.7559C14.7337 27.9122 14.9457 28 15.1667 28H21.8333C22.0543 28 22.2663 27.9122 22.4226 27.7559C22.5789 27.5996 22.6667 27.3877 22.6667 27.1667C22.6667 26.9457 22.5789 26.7337 22.4226 26.5774C22.2663 26.4211 22.0543 26.3333 21.8333 26.3333H19.3333V23.7896C22.6604 23.4531 25.4208 21.1187 26.425 18H26.8333C27.9384 18 28.9982 17.561 29.7796 16.7796C30.561 15.9982 31 14.9384 31 13.8333V12.1667C31 11.7246 30.8244 11.3007 30.5118 10.9882C30.1993 10.6756 29.7754 10.5 29.3333 10.5ZM10.1667 16.3333C9.50363 16.3333 8.86774 16.0699 8.3989 15.6011C7.93006 15.1323 7.66667 14.4964 7.66667 13.8333V12.1667H10.1667V15.5C10.1667 15.7778 10.1802 16.0556 10.2073 16.3333H10.1667ZM29.3333 13.8333C29.3333 14.4964 29.0699 15.1323 28.6011 15.6011C28.1323 16.0699 27.4964 16.3333 26.8333 16.3333H26.7812C26.8154 16.0255 26.8328 15.716 26.8333 15.4062V12.1667H29.3333V13.8333Z" fill="white"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,519 @@
|
|||||||
|
@use "../../../scss/globals.scss";
|
||||||
|
|
||||||
|
$margin-horizontal: 40px;
|
||||||
|
$margin-top: 52px;
|
||||||
|
$margin-bottom: 28px;
|
||||||
|
|
||||||
|
@keyframes content-in {
|
||||||
|
0% {
|
||||||
|
width: 80px;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
width: 80px;
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes content-wait {
|
||||||
|
0% {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes trophy-out {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes ellipses-stand-by {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes ellipses-out {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
scale: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes content-expand {
|
||||||
|
0% {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
width: calc(360px - $margin-horizontal);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes chip-stand-by {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes chip-in {
|
||||||
|
0% {
|
||||||
|
transform: translateY(20px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes title-in {
|
||||||
|
0% {
|
||||||
|
transform: translateY(10px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes description-in {
|
||||||
|
0% {
|
||||||
|
transform: translateY(20px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes dark-overlay {
|
||||||
|
0% {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes content-out {
|
||||||
|
0% {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(-20px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes shine {
|
||||||
|
from {
|
||||||
|
transform: translateX(0px) rotate(36deg);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateX(420px) rotate(36deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.achievement-notification {
|
||||||
|
width: 360px;
|
||||||
|
height: 140px;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
&--top-left {
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-center {
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-right {
|
||||||
|
justify-content: end;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-left {
|
||||||
|
align-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-center {
|
||||||
|
align-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-right {
|
||||||
|
justify-content: end;
|
||||||
|
align-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__outer-container {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
width: calc(360px - $margin-horizontal);
|
||||||
|
overflow: clip;
|
||||||
|
border: 1px solid #ffffff1a;
|
||||||
|
animation:
|
||||||
|
content-in 450ms ease-in-out,
|
||||||
|
content-wait 450ms ease-in-out 450ms,
|
||||||
|
content-expand 450ms ease-in-out 900ms;
|
||||||
|
box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-left &__outer-container {
|
||||||
|
margin: $margin-top 0 0 $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-center &__outer-container {
|
||||||
|
margin: $margin-top 0 0 $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-right &__outer-container {
|
||||||
|
margin: $margin-top $margin-horizontal 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-left &__outer-container {
|
||||||
|
margin: 0 0 $margin-bottom $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-center &__outer-container {
|
||||||
|
margin: 0 0 $margin-bottom $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-right &__outer-container {
|
||||||
|
margin: 0 $margin-horizontal $margin-bottom 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--closing .achievement-notification__outer-container {
|
||||||
|
animation: content-out 450ms ease-in-out;
|
||||||
|
animation-fill-mode: forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__container {
|
||||||
|
width: calc(360px - $margin-horizontal);
|
||||||
|
display: flex;
|
||||||
|
padding: 8px 16px 8px 8px;
|
||||||
|
background: globals.$background-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--platinum &__container {
|
||||||
|
background: linear-gradient(94deg, #1c1c1c -25%, #044838 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--rare &__container {
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -50%;
|
||||||
|
left: -60px;
|
||||||
|
width: 29px;
|
||||||
|
height: 134px;
|
||||||
|
transform: translateX(0px) rotate(36deg);
|
||||||
|
opacity: 0.2;
|
||||||
|
background: #d9d9d9;
|
||||||
|
filter: blur(8px);
|
||||||
|
animation: shine 450ms ease-in-out 1350ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__icon {
|
||||||
|
box-sizing: border-box;
|
||||||
|
min-width: 64px;
|
||||||
|
min-height: 64px;
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
border-radius: 2px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--rare &__icon {
|
||||||
|
outline: 1px solid #f4a510;
|
||||||
|
box-shadow: 0px 0px 12px 0px rgba(244, 165, 16, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--platinum &__icon {
|
||||||
|
outline: 1px solid #0cf1ca;
|
||||||
|
box-shadow: 0px 0px 12px 0px rgba(12, 241, 202, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__additional-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__dark-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
left: 8px;
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
background: #000;
|
||||||
|
opacity: 0;
|
||||||
|
z-index: 1;
|
||||||
|
animation: dark-overlay 900ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__trophy-overlay {
|
||||||
|
position: absolute;
|
||||||
|
mask-image: url("/src/assets/icons/trophy.svg");
|
||||||
|
top: 22px;
|
||||||
|
left: 22px;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
opacity: 0;
|
||||||
|
z-index: 1;
|
||||||
|
animation: trophy-out 900ms ease-in-out;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--rare &__trophy-overlay {
|
||||||
|
background: linear-gradient(
|
||||||
|
118deg,
|
||||||
|
#e8ad15 18.96%,
|
||||||
|
#d5900f 26.41%,
|
||||||
|
#e8ad15 29.99%,
|
||||||
|
#e4aa15 38.89%,
|
||||||
|
#ca890e 42.43%,
|
||||||
|
#ca880e 46.59%,
|
||||||
|
#ecbe1a 50.08%,
|
||||||
|
#ecbd1a 53.48%,
|
||||||
|
#b3790d 57.39%,
|
||||||
|
#66470a 75.64%,
|
||||||
|
#a37a13 78.2%,
|
||||||
|
#987112 79.28%,
|
||||||
|
#503808 83.6%,
|
||||||
|
#3e2d08 85.77%
|
||||||
|
),
|
||||||
|
#fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--platinum &__trophy-overlay {
|
||||||
|
background: linear-gradient(
|
||||||
|
118deg,
|
||||||
|
#15e8d6 18.96%,
|
||||||
|
#0fd5a7 26.41%,
|
||||||
|
#15e8b7 29.99%,
|
||||||
|
#15e4b4 38.89%,
|
||||||
|
#0eca7f 42.43%,
|
||||||
|
#0eca9e 46.59%,
|
||||||
|
#1aecbb 50.08%,
|
||||||
|
#1aecb0 53.48%,
|
||||||
|
#0db392 57.39%,
|
||||||
|
#0a6648 75.64%,
|
||||||
|
#13a38b 78.2%,
|
||||||
|
#129862 79.28%,
|
||||||
|
#085042 83.6%,
|
||||||
|
#083e31 85.77%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__ellipses-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
left: 8px;
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
z-index: 2;
|
||||||
|
opacity: 0;
|
||||||
|
animation: ellipses-out 900ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__text-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: globals.$muted-color;
|
||||||
|
animation: title-in 450ms ease-in-out 900ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__hidden-icon {
|
||||||
|
margin-right: 4px;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__description {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-line-clamp: 2; /* number of lines to show */
|
||||||
|
line-clamp: 2;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
color: globals.$body-color;
|
||||||
|
animation: description-in 450ms ease-in-out 900ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--closing &__chip {
|
||||||
|
animation: content-out 450ms ease-in-out;
|
||||||
|
animation-fill-mode: forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__chip {
|
||||||
|
position: absolute;
|
||||||
|
right: 8px;
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 0 8px;
|
||||||
|
border-radius: 300px;
|
||||||
|
align-items: center;
|
||||||
|
background: globals.$muted-color;
|
||||||
|
height: 24px;
|
||||||
|
animation:
|
||||||
|
chip-stand-by 900ms ease-in-out,
|
||||||
|
chip-in 450ms ease-in-out 900ms;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
|
&__icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
path {
|
||||||
|
fill: globals.$background-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__label {
|
||||||
|
color: globals.$background-color;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-left &__chip {
|
||||||
|
top: -12px;
|
||||||
|
margin: $margin-top 0 0 $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-center &__chip {
|
||||||
|
top: -12px;
|
||||||
|
margin: $margin-top 0 0 $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--top-right &__chip {
|
||||||
|
top: -12px;
|
||||||
|
margin: $margin-top $margin-horizontal 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-left &__chip {
|
||||||
|
bottom: 70px;
|
||||||
|
margin: 0 0 $margin-bottom $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-center &__chip {
|
||||||
|
bottom: 70px;
|
||||||
|
margin: 0 0 $margin-bottom $margin-horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--bottom-right &__chip {
|
||||||
|
bottom: 70px;
|
||||||
|
margin: 0 $margin-horizontal $margin-bottom 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--rare &__chip {
|
||||||
|
background: linear-gradient(
|
||||||
|
160deg,
|
||||||
|
#e8ad15 18.96%,
|
||||||
|
#d5900f 26.41%,
|
||||||
|
#e8ad15 29.99%,
|
||||||
|
#e4aa15 38.89%,
|
||||||
|
#ca890e 42.43%,
|
||||||
|
#ca880e 46.59%,
|
||||||
|
#ecbe1a 50.08%,
|
||||||
|
#ecbd1a 53.48%,
|
||||||
|
#b3790d 57.39%,
|
||||||
|
#66470a 75.64%,
|
||||||
|
#a37a13 78.2%,
|
||||||
|
#987112 79.28%,
|
||||||
|
#503808 83.6%,
|
||||||
|
#3e2d08 85.77%
|
||||||
|
);
|
||||||
|
&__icon {
|
||||||
|
path {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__label {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--platinum &__chip {
|
||||||
|
background: linear-gradient(
|
||||||
|
118deg,
|
||||||
|
#15e8d6 18.96%,
|
||||||
|
#0fd5a7 26.41%,
|
||||||
|
#15e8b7 29.99%,
|
||||||
|
#15e4b4 38.89%,
|
||||||
|
#0eca7f 42.43%,
|
||||||
|
#0eca9e 46.59%,
|
||||||
|
#1aecbb 50.08%,
|
||||||
|
#1aecb0 53.48%,
|
||||||
|
#0db392 57.39%,
|
||||||
|
#0a6648 75.64%,
|
||||||
|
#13a38b 78.2%,
|
||||||
|
#129862 79.28%,
|
||||||
|
#085042 83.6%,
|
||||||
|
#083e31 85.77%
|
||||||
|
);
|
||||||
|
&__icon {
|
||||||
|
path {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__label {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--closing * {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--closing *::before,
|
||||||
|
&--closing *::after {
|
||||||
|
animation: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import {
|
||||||
|
AchievementCustomNotificationPosition,
|
||||||
|
AchievementNotificationInfo,
|
||||||
|
} from "@types";
|
||||||
|
import cn from "classnames";
|
||||||
|
import HydraIcon from "@renderer/assets/icons/hydra.svg?react";
|
||||||
|
import { EyeClosedIcon } from "@primer/octicons-react";
|
||||||
|
import Ellipses from "@renderer/assets/icons/ellipses.png";
|
||||||
|
import "./achievement-notification.scss";
|
||||||
|
|
||||||
|
interface AchievementNotificationProps {
|
||||||
|
position: AchievementCustomNotificationPosition;
|
||||||
|
achievement: AchievementNotificationInfo;
|
||||||
|
isClosing: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function AchievementNotificationItem({
|
||||||
|
position,
|
||||||
|
achievement,
|
||||||
|
isClosing,
|
||||||
|
}: Readonly<AchievementNotificationProps>) {
|
||||||
|
const baseClassName = "achievement-notification";
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={cn("achievement-notification", {
|
||||||
|
[`${baseClassName}--${position}`]: true,
|
||||||
|
[`${baseClassName}--closing`]: isClosing,
|
||||||
|
[`${baseClassName}--hidden`]: achievement.isHidden,
|
||||||
|
[`${baseClassName}--rare`]: achievement.isRare,
|
||||||
|
[`${baseClassName}--platinum`]: achievement.isPlatinum,
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
{achievement.points !== undefined && (
|
||||||
|
<div className="achievement-notification__chip">
|
||||||
|
<HydraIcon className="achievement-notification__chip__icon" />
|
||||||
|
<span className="achievement-notification__chip__label">
|
||||||
|
+{achievement.points}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className="achievement-notification__outer-container">
|
||||||
|
<div className="achievement-notification__container">
|
||||||
|
<div className="achievement-notification__content">
|
||||||
|
<img
|
||||||
|
src={achievement.iconUrl}
|
||||||
|
alt={achievement.title}
|
||||||
|
className="achievement-notification__icon"
|
||||||
|
/>
|
||||||
|
<div className="achievement-notification__text-container">
|
||||||
|
<p className="achievement-notification__title">
|
||||||
|
{achievement.isHidden && (
|
||||||
|
<span className="achievement-notification__hidden-icon">
|
||||||
|
<EyeClosedIcon size={16} />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{achievement.title}
|
||||||
|
</p>
|
||||||
|
<p className="achievement-notification__description">
|
||||||
|
{achievement.description}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="achievement-notification__additional-overlay">
|
||||||
|
<div className="achievement-notification__dark-overlay"></div>
|
||||||
|
<img
|
||||||
|
className="achievement-notification__ellipses-overlay"
|
||||||
|
src={Ellipses}
|
||||||
|
alt="Ellipses effect"
|
||||||
|
/>
|
||||||
|
<div className="achievement-notification__trophy-overlay"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,12 +1,16 @@
|
|||||||
import cn from "classnames";
|
import cn from "classnames";
|
||||||
|
import { PlacesType, Tooltip } from "react-tooltip";
|
||||||
|
|
||||||
import "./button.scss";
|
import "./button.scss";
|
||||||
|
import { useId } from "react";
|
||||||
|
|
||||||
export interface ButtonProps
|
export interface ButtonProps
|
||||||
extends React.DetailedHTMLProps<
|
extends React.DetailedHTMLProps<
|
||||||
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||||
HTMLButtonElement
|
HTMLButtonElement
|
||||||
> {
|
> {
|
||||||
|
tooltip?: string;
|
||||||
|
tooltipPlace?: PlacesType;
|
||||||
theme?: "primary" | "outline" | "dark" | "danger";
|
theme?: "primary" | "outline" | "dark" | "danger";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14,15 +18,32 @@ export function Button({
|
|||||||
children,
|
children,
|
||||||
theme = "primary",
|
theme = "primary",
|
||||||
className,
|
className,
|
||||||
|
tooltip,
|
||||||
|
tooltipPlace = "top",
|
||||||
...props
|
...props
|
||||||
}: Readonly<ButtonProps>) {
|
}: Readonly<ButtonProps>) {
|
||||||
|
const id = useId();
|
||||||
|
|
||||||
|
const tooltipProps = tooltip
|
||||||
|
? {
|
||||||
|
"data-tooltip-id": id,
|
||||||
|
"data-tooltip-place": tooltipPlace,
|
||||||
|
"data-tooltip-content": tooltip,
|
||||||
|
}
|
||||||
|
: {};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<>
|
||||||
type="button"
|
<button
|
||||||
className={cn("button", `button--${theme}`, className)}
|
type="button"
|
||||||
{...props}
|
className={cn("button", `button--${theme}`, className)}
|
||||||
>
|
{...props}
|
||||||
{children}
|
{...tooltipProps}
|
||||||
</button>
|
>
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{tooltip && <Tooltip id={id} />}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
@use "../../scss/globals.scss";
|
||||||
|
|
||||||
|
.collapsed-menu {
|
||||||
|
&__button {
|
||||||
|
height: 72px;
|
||||||
|
padding: calc(globals.$spacing-unit * 2) calc(globals.$spacing-unit * 2);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background-color: globals.$background-color;
|
||||||
|
color: globals.$muted-color;
|
||||||
|
width: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all ease 0.2s;
|
||||||
|
gap: globals.$spacing-unit;
|
||||||
|
font-size: globals.$body-font-size;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
opacity: globals.$active-opacity;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__chevron {
|
||||||
|
transition: transform ease 0.2s;
|
||||||
|
|
||||||
|
&--open {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
overflow: hidden;
|
||||||
|
transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
import { ChevronDownIcon } from "@primer/octicons-react";
|
||||||
|
import "./collapsed-menu.scss";
|
||||||
|
|
||||||
|
export interface CollapsedMenuProps {
|
||||||
|
title: string;
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function CollapsedMenu({
|
||||||
|
title,
|
||||||
|
children,
|
||||||
|
}: Readonly<CollapsedMenuProps>) {
|
||||||
|
const content = useRef<HTMLDivElement>(null);
|
||||||
|
const [isOpen, setIsOpen] = useState(true);
|
||||||
|
const [height, setHeight] = useState(0);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (content.current && content.current.scrollHeight !== height) {
|
||||||
|
setHeight(isOpen ? content.current.scrollHeight : 0);
|
||||||
|
} else if (!isOpen) {
|
||||||
|
setHeight(0);
|
||||||
|
}
|
||||||
|
}, [isOpen, children, height]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="collapsed-menu">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => setIsOpen(!isOpen)}
|
||||||
|
className="collapsed-menu__button"
|
||||||
|
>
|
||||||
|
<ChevronDownIcon
|
||||||
|
className={`collapsed-menu__chevron ${
|
||||||
|
isOpen ? "collapsed-menu__chevron--open" : ""
|
||||||
|
}`}
|
||||||
|
/>
|
||||||
|
<span>{title}</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div
|
||||||
|
ref={content}
|
||||||
|
className="collapsed-menu__content"
|
||||||
|
style={{
|
||||||
|
maxHeight: `${height}px`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -18,12 +18,13 @@ export function SelectField({
|
|||||||
options = [{ key: "-", value: value?.toString() || "-", label: "-" }],
|
options = [{ key: "-", value: value?.toString() || "-", label: "-" }],
|
||||||
theme = "primary",
|
theme = "primary",
|
||||||
onChange,
|
onChange,
|
||||||
}: SelectProps) {
|
className,
|
||||||
|
}: Readonly<SelectProps>) {
|
||||||
const [isFocused, setIsFocused] = useState(false);
|
const [isFocused, setIsFocused] = useState(false);
|
||||||
const id = useId();
|
const id = useId();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="select-field__container">
|
<div className={cn("select-field__container", className)}>
|
||||||
{label && (
|
{label && (
|
||||||
<label htmlFor={id} className="select-field__label">
|
<label htmlFor={id} className="select-field__label">
|
||||||
{label}
|
{label}
|
||||||
|
|||||||
@@ -98,6 +98,12 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
&__section-title {
|
&__section-title {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -133,7 +139,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__help-button-icon {
|
&__help-button-icon {
|
||||||
background: linear-gradient(0deg, #16b195 50%, #3e62c0 100%);
|
background: linear-gradient(
|
||||||
|
0deg,
|
||||||
|
globals.$brand-teal 50%,
|
||||||
|
globals.$brand-blue 100%
|
||||||
|
);
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -142,4 +152,24 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__play-button {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
color: globals.$muted-color;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
color: rgba(255, 255, 255, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--active {
|
||||||
|
color: globals.$brand-teal;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { buildGameDetailsPath } from "@renderer/helpers";
|
|||||||
import { SidebarProfile } from "./sidebar-profile";
|
import { SidebarProfile } from "./sidebar-profile";
|
||||||
import { sortBy } from "lodash-es";
|
import { sortBy } from "lodash-es";
|
||||||
import cn from "classnames";
|
import cn from "classnames";
|
||||||
import { CommentDiscussionIcon } from "@primer/octicons-react";
|
import { CommentDiscussionIcon, PlayIcon } from "@primer/octicons-react";
|
||||||
import { SidebarGameItem } from "./sidebar-game-item";
|
import { SidebarGameItem } from "./sidebar-game-item";
|
||||||
import { setFriendRequestCount } from "@renderer/features/user-details-slice";
|
import { setFriendRequestCount } from "@renderer/features/user-details-slice";
|
||||||
import { useDispatch } from "react-redux";
|
import { useDispatch } from "react-redux";
|
||||||
@@ -32,6 +32,8 @@ const SIDEBAR_MAX_WIDTH = 450;
|
|||||||
|
|
||||||
const initialSidebarWidth = window.localStorage.getItem("sidebarWidth");
|
const initialSidebarWidth = window.localStorage.getItem("sidebarWidth");
|
||||||
|
|
||||||
|
const isGamePlayable = (game: LibraryGame) => Boolean(game.executablePath);
|
||||||
|
|
||||||
export function Sidebar() {
|
export function Sidebar() {
|
||||||
const filterRef = useRef<HTMLInputElement>(null);
|
const filterRef = useRef<HTMLInputElement>(null);
|
||||||
|
|
||||||
@@ -60,6 +62,12 @@ export function Sidebar() {
|
|||||||
|
|
||||||
const { showWarningToast } = useToast();
|
const { showWarningToast } = useToast();
|
||||||
|
|
||||||
|
const [showPlayableOnly, setShowPlayableOnly] = useState(false);
|
||||||
|
|
||||||
|
const handlePlayButtonClick = () => {
|
||||||
|
setShowPlayableOnly(!showPlayableOnly);
|
||||||
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
updateLibrary();
|
updateLibrary();
|
||||||
}, [lastPacket?.gameId, updateLibrary]);
|
}, [lastPacket?.gameId, updateLibrary]);
|
||||||
@@ -242,7 +250,20 @@ export function Sidebar() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<section className="sidebar__section">
|
<section className="sidebar__section">
|
||||||
<small className="sidebar__section-title">{t("my_library")}</small>
|
<div className="sidebar__section-header">
|
||||||
|
<small className="sidebar__section-title">
|
||||||
|
{t("my_library")}
|
||||||
|
</small>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className={cn("sidebar__play-button", {
|
||||||
|
"sidebar__play-button--active": showPlayableOnly,
|
||||||
|
})}
|
||||||
|
onClick={handlePlayButtonClick}
|
||||||
|
>
|
||||||
|
<PlayIcon size={16} />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
ref={filterRef}
|
ref={filterRef}
|
||||||
@@ -254,6 +275,7 @@ export function Sidebar() {
|
|||||||
<ul className="sidebar__menu">
|
<ul className="sidebar__menu">
|
||||||
{filteredLibrary
|
{filteredLibrary
|
||||||
.filter((game) => !game.favorite)
|
.filter((game) => !game.favorite)
|
||||||
|
.filter((game) => !showPlayableOnly || isGamePlayable(game))
|
||||||
.map((game) => (
|
.map((game) => (
|
||||||
<SidebarGameItem
|
<SidebarGameItem
|
||||||
key={game.id}
|
key={game.id}
|
||||||
|
|||||||
@@ -74,6 +74,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__error-label {
|
&__error-label {
|
||||||
color: globals.$danger-color;
|
color: globals.$error-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Downloader } from "@shared";
|
import { Downloader } from "@shared";
|
||||||
|
|
||||||
export const VERSION_CODENAME = "Polychrome";
|
export const VERSION_CODENAME = "Lumen";
|
||||||
|
|
||||||
export const DOWNLOADER_NAME = {
|
export const DOWNLOADER_NAME = {
|
||||||
[Downloader.RealDebrid]: "Real-Debrid",
|
[Downloader.RealDebrid]: "Real-Debrid",
|
||||||
|
|||||||
@@ -30,9 +30,14 @@ export interface CloudSyncContext {
|
|||||||
setShowCloudSyncFilesModal: React.Dispatch<React.SetStateAction<boolean>>;
|
setShowCloudSyncFilesModal: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
getGameBackupPreview: () => Promise<void>;
|
getGameBackupPreview: () => Promise<void>;
|
||||||
getGameArtifacts: () => Promise<void>;
|
getGameArtifacts: () => Promise<void>;
|
||||||
|
toggleArtifactFreeze: (
|
||||||
|
gameArtifactId: string,
|
||||||
|
freeze: boolean
|
||||||
|
) => Promise<void>;
|
||||||
restoringBackup: boolean;
|
restoringBackup: boolean;
|
||||||
uploadingBackup: boolean;
|
uploadingBackup: boolean;
|
||||||
loadingPreview: boolean;
|
loadingPreview: boolean;
|
||||||
|
freezingArtifact: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const cloudSyncContext = createContext<CloudSyncContext>({
|
export const cloudSyncContext = createContext<CloudSyncContext>({
|
||||||
@@ -47,10 +52,12 @@ export const cloudSyncContext = createContext<CloudSyncContext>({
|
|||||||
showCloudSyncFilesModal: false,
|
showCloudSyncFilesModal: false,
|
||||||
setShowCloudSyncFilesModal: () => {},
|
setShowCloudSyncFilesModal: () => {},
|
||||||
getGameBackupPreview: async () => {},
|
getGameBackupPreview: async () => {},
|
||||||
|
toggleArtifactFreeze: async () => {},
|
||||||
getGameArtifacts: async () => {},
|
getGameArtifacts: async () => {},
|
||||||
restoringBackup: false,
|
restoringBackup: false,
|
||||||
uploadingBackup: false,
|
uploadingBackup: false,
|
||||||
loadingPreview: false,
|
loadingPreview: false,
|
||||||
|
freezingArtifact: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { Provider } = cloudSyncContext;
|
const { Provider } = cloudSyncContext;
|
||||||
@@ -78,6 +85,7 @@ export function CloudSyncContextProvider({
|
|||||||
const [uploadingBackup, setUploadingBackup] = useState(false);
|
const [uploadingBackup, setUploadingBackup] = useState(false);
|
||||||
const [showCloudSyncFilesModal, setShowCloudSyncFilesModal] = useState(false);
|
const [showCloudSyncFilesModal, setShowCloudSyncFilesModal] = useState(false);
|
||||||
const [loadingPreview, setLoadingPreview] = useState(false);
|
const [loadingPreview, setLoadingPreview] = useState(false);
|
||||||
|
const [freezingArtifact, setFreezingArtifact] = useState(false);
|
||||||
|
|
||||||
const { showSuccessToast } = useToast();
|
const { showSuccessToast } = useToast();
|
||||||
|
|
||||||
@@ -119,6 +127,22 @@ export function CloudSyncContextProvider({
|
|||||||
[objectId, shop]
|
[objectId, shop]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const toggleArtifactFreeze = useCallback(
|
||||||
|
async (gameArtifactId: string, freeze: boolean) => {
|
||||||
|
setFreezingArtifact(true);
|
||||||
|
try {
|
||||||
|
await window.electron.toggleArtifactFreeze(gameArtifactId, freeze);
|
||||||
|
getGameArtifacts();
|
||||||
|
} catch (err) {
|
||||||
|
logger.error("Failed to toggle artifact freeze", objectId, shop, err);
|
||||||
|
throw err;
|
||||||
|
} finally {
|
||||||
|
setFreezingArtifact(false);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[objectId, shop, getGameArtifacts]
|
||||||
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const removeUploadCompleteListener = window.electron.onUploadComplete(
|
const removeUploadCompleteListener = window.electron.onUploadComplete(
|
||||||
objectId,
|
objectId,
|
||||||
@@ -192,6 +216,7 @@ export function CloudSyncContextProvider({
|
|||||||
uploadingBackup,
|
uploadingBackup,
|
||||||
showCloudSyncFilesModal,
|
showCloudSyncFilesModal,
|
||||||
loadingPreview,
|
loadingPreview,
|
||||||
|
freezingArtifact,
|
||||||
setShowCloudSyncModal,
|
setShowCloudSyncModal,
|
||||||
uploadSaveGame,
|
uploadSaveGame,
|
||||||
downloadGameArtifact,
|
downloadGameArtifact,
|
||||||
@@ -199,6 +224,7 @@ export function CloudSyncContextProvider({
|
|||||||
setShowCloudSyncFilesModal,
|
setShowCloudSyncFilesModal,
|
||||||
getGameBackupPreview,
|
getGameBackupPreview,
|
||||||
getGameArtifacts,
|
getGameArtifacts,
|
||||||
|
toggleArtifactFreeze,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export function GameDetailsContextProvider({
|
|||||||
return window.electron
|
return window.electron
|
||||||
.getGameByObjectId(shop, objectId)
|
.getGameByObjectId(shop, objectId)
|
||||||
.then((result) => setGame(result));
|
.then((result) => setGame(result));
|
||||||
}, [setGame, shop, objectId]);
|
}, [shop, objectId]);
|
||||||
|
|
||||||
const isGameDownloading =
|
const isGameDownloading =
|
||||||
lastPacket?.gameId === game?.id && game?.download?.status === "active";
|
lastPacket?.gameId === game?.id && game?.download?.status === "active";
|
||||||
@@ -160,7 +160,6 @@ export function GameDetailsContextProvider({
|
|||||||
|
|
||||||
setShopDetails((prev) => {
|
setShopDetails((prev) => {
|
||||||
if (!prev) return null;
|
if (!prev) return null;
|
||||||
console.log("assets", assets);
|
|
||||||
return {
|
return {
|
||||||
...prev,
|
...prev,
|
||||||
assets,
|
assets,
|
||||||
@@ -183,12 +182,9 @@ export function GameDetailsContextProvider({
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
updateGame();
|
|
||||||
}, [
|
}, [
|
||||||
updateGame,
|
updateGame,
|
||||||
dispatch,
|
dispatch,
|
||||||
gameTitle,
|
|
||||||
objectId,
|
objectId,
|
||||||
shop,
|
shop,
|
||||||
i18n.language,
|
i18n.language,
|
||||||
|
|||||||
37
src/renderer/src/declaration.d.ts
vendored
37
src/renderer/src/declaration.d.ts
vendored
@@ -35,6 +35,8 @@ import type {
|
|||||||
CatalogueSearchResult,
|
CatalogueSearchResult,
|
||||||
ShopAssets,
|
ShopAssets,
|
||||||
ShopDetailsWithAssets,
|
ShopDetailsWithAssets,
|
||||||
|
AchievementCustomNotificationPosition,
|
||||||
|
AchievementNotificationInfo,
|
||||||
} from "@types";
|
} from "@types";
|
||||||
import type { AxiosProgressEvent } from "axios";
|
import type { AxiosProgressEvent } from "axios";
|
||||||
import type disk from "diskusage";
|
import type disk from "diskusage";
|
||||||
@@ -137,10 +139,7 @@ declare global {
|
|||||||
verifyExecutablePathInUse: (executablePath: string) => Promise<Game>;
|
verifyExecutablePathInUse: (executablePath: string) => Promise<Game>;
|
||||||
getLibrary: () => Promise<LibraryGame[]>;
|
getLibrary: () => Promise<LibraryGame[]>;
|
||||||
openGameInstaller: (shop: GameShop, objectId: string) => Promise<boolean>;
|
openGameInstaller: (shop: GameShop, objectId: string) => Promise<boolean>;
|
||||||
openGameInstallerPath: (
|
openGameInstallerPath: (shop: GameShop, objectId: string) => Promise<void>;
|
||||||
shop: GameShop,
|
|
||||||
objectId: string
|
|
||||||
) => Promise<boolean>;
|
|
||||||
openGameExecutablePath: (shop: GameShop, objectId: string) => Promise<void>;
|
openGameExecutablePath: (shop: GameShop, objectId: string) => Promise<void>;
|
||||||
openGame: (
|
openGame: (
|
||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
@@ -175,10 +174,11 @@ declare global {
|
|||||||
minimized: boolean;
|
minimized: boolean;
|
||||||
}) => Promise<void>;
|
}) => Promise<void>;
|
||||||
extractGameDownload: (shop: GameShop, objectId: string) => Promise<boolean>;
|
extractGameDownload: (shop: GameShop, objectId: string) => Promise<boolean>;
|
||||||
onAchievementUnlocked: (cb: () => void) => () => Electron.IpcRenderer;
|
|
||||||
onExtractionComplete: (
|
onExtractionComplete: (
|
||||||
cb: (shop: GameShop, objectId: string) => void
|
cb: (shop: GameShop, objectId: string) => void
|
||||||
) => () => Electron.IpcRenderer;
|
) => () => Electron.IpcRenderer;
|
||||||
|
getDefaultWinePrefixSelectionPath: () => Promise<string | null>;
|
||||||
|
createSteamShortcut: (shop: GameShop, objectId: string) => Promise<void>;
|
||||||
|
|
||||||
/* Download sources */
|
/* Download sources */
|
||||||
putDownloadSource: (
|
putDownloadSource: (
|
||||||
@@ -200,6 +200,14 @@ declare global {
|
|||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
downloadOptionTitle: string | null
|
downloadOptionTitle: string | null
|
||||||
) => Promise<void>;
|
) => Promise<void>;
|
||||||
|
toggleArtifactFreeze: (
|
||||||
|
gameArtifactId: string,
|
||||||
|
freeze: boolean
|
||||||
|
) => Promise<void>;
|
||||||
|
renameGameArtifact: (
|
||||||
|
gameArtifactId: string,
|
||||||
|
label: string
|
||||||
|
) => Promise<void>;
|
||||||
downloadGameArtifact: (
|
downloadGameArtifact: (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
@@ -321,6 +329,21 @@ declare global {
|
|||||||
|
|
||||||
/* Notifications */
|
/* Notifications */
|
||||||
publishNewRepacksNotification: (newRepacksCount: number) => Promise<void>;
|
publishNewRepacksNotification: (newRepacksCount: number) => Promise<void>;
|
||||||
|
onAchievementUnlocked: (
|
||||||
|
cb: (
|
||||||
|
position?: AchievementCustomNotificationPosition,
|
||||||
|
achievements?: AchievementNotificationInfo[]
|
||||||
|
) => void
|
||||||
|
) => () => Electron.IpcRenderer;
|
||||||
|
onCombinedAchievementsUnlocked: (
|
||||||
|
cb: (
|
||||||
|
gameCount: number,
|
||||||
|
achievementCount: number,
|
||||||
|
position: AchievementCustomNotificationPosition
|
||||||
|
) => void
|
||||||
|
) => () => Electron.IpcRenderer;
|
||||||
|
updateAchievementCustomNotificationWindow: () => Promise<void>;
|
||||||
|
showAchievementTestNotification: () => Promise<void>;
|
||||||
|
|
||||||
/* Themes */
|
/* Themes */
|
||||||
addCustomTheme: (theme: Theme) => Promise<void>;
|
addCustomTheme: (theme: Theme) => Promise<void>;
|
||||||
@@ -334,9 +357,7 @@ declare global {
|
|||||||
|
|
||||||
/* Editor */
|
/* Editor */
|
||||||
openEditorWindow: (themeId: string) => Promise<void>;
|
openEditorWindow: (themeId: string) => Promise<void>;
|
||||||
onCssInjected: (
|
onCustomThemeUpdated: (cb: () => void) => () => Electron.IpcRenderer;
|
||||||
cb: (cssString: string) => void
|
|
||||||
) => () => Electron.IpcRenderer;
|
|
||||||
closeEditorWindow: (themeId?: string) => Promise<void>;
|
closeEditorWindow: (themeId?: string) => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,35 +55,32 @@ export const buildGameAchievementPath = (
|
|||||||
export const darkenColor = (color: string, amount: number, alpha: number = 1) =>
|
export const darkenColor = (color: string, amount: number, alpha: number = 1) =>
|
||||||
new Color(color).darken(amount).alpha(alpha).toString();
|
new Color(color).darken(amount).alpha(alpha).toString();
|
||||||
|
|
||||||
export const injectCustomCss = (css: string) => {
|
export const injectCustomCss = (
|
||||||
|
css: string,
|
||||||
|
target: HTMLElement = document.head
|
||||||
|
) => {
|
||||||
try {
|
try {
|
||||||
const currentCustomCss = document.getElementById("custom-css");
|
target.querySelector("#custom-css")?.remove();
|
||||||
if (currentCustomCss) {
|
|
||||||
currentCustomCss.remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (css.startsWith(THEME_WEB_STORE_URL)) {
|
if (css.startsWith(THEME_WEB_STORE_URL)) {
|
||||||
const link = document.createElement("link");
|
const link = document.createElement("link");
|
||||||
link.id = "custom-css";
|
link.id = "custom-css";
|
||||||
link.rel = "stylesheet";
|
link.rel = "stylesheet";
|
||||||
link.href = css;
|
link.href = css;
|
||||||
document.head.appendChild(link);
|
target.appendChild(link);
|
||||||
} else {
|
} else {
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.id = "custom-css";
|
style.id = "custom-css";
|
||||||
style.textContent = `
|
style.textContent = `
|
||||||
${css}
|
${css}
|
||||||
`;
|
`;
|
||||||
document.head.appendChild(style);
|
target.appendChild(style);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("failed to inject custom css:", error);
|
console.error("failed to inject custom css:", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const removeCustomCss = () => {
|
export const removeCustomCss = (target: HTMLElement = document.head) => {
|
||||||
const currentCustomCss = document.getElementById("custom-css");
|
target.querySelector("#custom-css")?.remove();
|
||||||
if (currentCustomCss) {
|
|
||||||
currentCustomCss.remove();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import Settings from "./pages/settings/settings";
|
|||||||
import Profile from "./pages/profile/profile";
|
import Profile from "./pages/profile/profile";
|
||||||
import Achievements from "./pages/achievements/achievements";
|
import Achievements from "./pages/achievements/achievements";
|
||||||
import ThemeEditor from "./pages/theme-editor/theme-editor";
|
import ThemeEditor from "./pages/theme-editor/theme-editor";
|
||||||
|
import { AchievementNotification } from "./pages/achievements/notification/achievement-notification";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: import.meta.env.RENDERER_VITE_SENTRY_DSN,
|
dsn: import.meta.env.RENDERER_VITE_SENTRY_DSN,
|
||||||
@@ -84,6 +85,10 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
|
|||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
<Route path="/theme-editor" element={<ThemeEditor />} />
|
<Route path="/theme-editor" element={<ThemeEditor />} />
|
||||||
|
<Route
|
||||||
|
path="/achievement-notification"
|
||||||
|
element={<AchievementNotification />}
|
||||||
|
/>
|
||||||
</Routes>
|
</Routes>
|
||||||
</HashRouter>
|
</HashRouter>
|
||||||
</Provider>
|
</Provider>
|
||||||
|
|||||||
@@ -158,8 +158,8 @@ $logo-max-width: 200px;
|
|||||||
&-points {
|
&-points {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: end;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
margin-right: 4px;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
&--locked {
|
&--locked {
|
||||||
|
|||||||
@@ -0,0 +1,177 @@
|
|||||||
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
|
import achievementSound from "@renderer/assets/audio/achievement.wav";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import {
|
||||||
|
AchievementCustomNotificationPosition,
|
||||||
|
AchievementNotificationInfo,
|
||||||
|
} from "@types";
|
||||||
|
import { injectCustomCss, removeCustomCss } from "@renderer/helpers";
|
||||||
|
import { AchievementNotificationItem } from "@renderer/components/achievements/notification/achievement-notification";
|
||||||
|
import app from "../../../app.scss?inline";
|
||||||
|
import styles from "../../../components/achievements/notification/achievement-notification.scss?inline";
|
||||||
|
import root from "react-shadow";
|
||||||
|
|
||||||
|
const NOTIFICATION_TIMEOUT = 4000;
|
||||||
|
|
||||||
|
export function AchievementNotification() {
|
||||||
|
const { t } = useTranslation("achievement");
|
||||||
|
|
||||||
|
const [isClosing, setIsClosing] = useState(false);
|
||||||
|
const [isVisible, setIsVisible] = useState(false);
|
||||||
|
const [position, setPosition] =
|
||||||
|
useState<AchievementCustomNotificationPosition>("top-left");
|
||||||
|
|
||||||
|
const [achievements, setAchievements] = useState<
|
||||||
|
AchievementNotificationInfo[]
|
||||||
|
>([]);
|
||||||
|
const [currentAchievement, setCurrentAchievement] =
|
||||||
|
useState<AchievementNotificationInfo | null>(null);
|
||||||
|
|
||||||
|
const achievementAnimation = useRef(-1);
|
||||||
|
const closingAnimation = useRef(-1);
|
||||||
|
const visibleAnimation = useRef(-1);
|
||||||
|
|
||||||
|
const [shadowRootRef, setShadowRootRef] = useState<HTMLElement | null>(null);
|
||||||
|
|
||||||
|
const playAudio = useCallback(() => {
|
||||||
|
const audio = new Audio(achievementSound);
|
||||||
|
audio.volume = 0.1;
|
||||||
|
audio.play();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const unsubscribe = window.electron.onCombinedAchievementsUnlocked(
|
||||||
|
(gameCount, achievementCount, position) => {
|
||||||
|
if (gameCount === 0 || achievementCount === 0) return;
|
||||||
|
|
||||||
|
setPosition(position);
|
||||||
|
|
||||||
|
setAchievements([
|
||||||
|
{
|
||||||
|
title: t("new_achievements_unlocked", {
|
||||||
|
gameCount,
|
||||||
|
achievementCount,
|
||||||
|
}),
|
||||||
|
isHidden: false,
|
||||||
|
isRare: false,
|
||||||
|
isPlatinum: false,
|
||||||
|
iconUrl: "https://cdn.losbroxas.org/favicon.svg",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
playAudio();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
unsubscribe();
|
||||||
|
};
|
||||||
|
}, [t, playAudio]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const unsubscribe = window.electron.onAchievementUnlocked(
|
||||||
|
(position, achievements) => {
|
||||||
|
if (!achievements?.length) return;
|
||||||
|
if (position) {
|
||||||
|
setPosition(position);
|
||||||
|
}
|
||||||
|
|
||||||
|
setAchievements((ach) => ach.concat(achievements));
|
||||||
|
|
||||||
|
playAudio();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
unsubscribe();
|
||||||
|
};
|
||||||
|
}, [playAudio]);
|
||||||
|
|
||||||
|
const hasAchievementsPending = achievements.length > 0;
|
||||||
|
|
||||||
|
const startAnimateClosing = useCallback(() => {
|
||||||
|
cancelAnimationFrame(closingAnimation.current);
|
||||||
|
cancelAnimationFrame(visibleAnimation.current);
|
||||||
|
cancelAnimationFrame(achievementAnimation.current);
|
||||||
|
|
||||||
|
setIsClosing(true);
|
||||||
|
|
||||||
|
const zero = performance.now();
|
||||||
|
closingAnimation.current = requestAnimationFrame(
|
||||||
|
function animateClosing(time) {
|
||||||
|
if (time - zero <= 450) {
|
||||||
|
closingAnimation.current = requestAnimationFrame(animateClosing);
|
||||||
|
} else {
|
||||||
|
setIsVisible(false);
|
||||||
|
setAchievements((ach) => ach.slice(1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (hasAchievementsPending) {
|
||||||
|
setIsClosing(false);
|
||||||
|
setIsVisible(true);
|
||||||
|
|
||||||
|
let zero = performance.now();
|
||||||
|
cancelAnimationFrame(closingAnimation.current);
|
||||||
|
cancelAnimationFrame(visibleAnimation.current);
|
||||||
|
cancelAnimationFrame(achievementAnimation.current);
|
||||||
|
achievementAnimation.current = requestAnimationFrame(
|
||||||
|
function animateLock(time) {
|
||||||
|
if (time - zero > NOTIFICATION_TIMEOUT) {
|
||||||
|
zero = performance.now();
|
||||||
|
startAnimateClosing();
|
||||||
|
}
|
||||||
|
achievementAnimation.current = requestAnimationFrame(animateLock);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}, [hasAchievementsPending, startAnimateClosing, currentAchievement]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (achievements.length) {
|
||||||
|
setCurrentAchievement(achievements[0]);
|
||||||
|
}
|
||||||
|
}, [achievements]);
|
||||||
|
|
||||||
|
const loadAndApplyTheme = useCallback(async () => {
|
||||||
|
if (!shadowRootRef) return;
|
||||||
|
const activeTheme = await window.electron.getActiveCustomTheme();
|
||||||
|
if (activeTheme?.code) {
|
||||||
|
injectCustomCss(activeTheme.code, shadowRootRef);
|
||||||
|
} else {
|
||||||
|
removeCustomCss(shadowRootRef);
|
||||||
|
}
|
||||||
|
}, [shadowRootRef]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
loadAndApplyTheme();
|
||||||
|
}, [loadAndApplyTheme]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const unsubscribe = window.electron.onCustomThemeUpdated(() => {
|
||||||
|
loadAndApplyTheme();
|
||||||
|
});
|
||||||
|
|
||||||
|
return () => unsubscribe();
|
||||||
|
}, [loadAndApplyTheme]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<root.div>
|
||||||
|
<style type="text/css">
|
||||||
|
{app} {styles}
|
||||||
|
</style>
|
||||||
|
<section ref={setShadowRootRef}>
|
||||||
|
{isVisible && currentAchievement && (
|
||||||
|
<AchievementNotificationItem
|
||||||
|
achievement={currentAchievement}
|
||||||
|
isClosing={isClosing}
|
||||||
|
position={position}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</section>
|
||||||
|
</root.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -77,6 +77,9 @@ export default function Catalogue() {
|
|||||||
}, 500)
|
}, 500)
|
||||||
).current;
|
).current;
|
||||||
|
|
||||||
|
const decodeHTML = (s: string) =>
|
||||||
|
s.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setResults([]);
|
setResults([]);
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
@@ -165,7 +168,7 @@ export default function Catalogue() {
|
|||||||
})),
|
})),
|
||||||
|
|
||||||
...filters.publishers.map((publisher) => ({
|
...filters.publishers.map((publisher) => ({
|
||||||
label: publisher,
|
label: decodeHTML(publisher),
|
||||||
orbColor: filterCategoryColors.publishers,
|
orbColor: filterCategoryColors.publishers,
|
||||||
key: "publishers",
|
key: "publishers",
|
||||||
value: publisher,
|
value: publisher,
|
||||||
@@ -208,7 +211,7 @@ export default function Catalogue() {
|
|||||||
{
|
{
|
||||||
title: t("publishers"),
|
title: t("publishers"),
|
||||||
items: steamPublishers.map((publisher) => ({
|
items: steamPublishers.map((publisher) => ({
|
||||||
label: publisher,
|
label: decodeHTML(publisher),
|
||||||
value: publisher,
|
value: publisher,
|
||||||
checked: filters.publishers.includes(publisher),
|
checked: filters.publishers.includes(publisher),
|
||||||
})),
|
})),
|
||||||
|
|||||||
@@ -31,6 +31,20 @@
|
|||||||
gap: globals.$spacing-unit;
|
gap: globals.$spacing-unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__artifact-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
color: globals.$body-color;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-align: left;
|
||||||
|
padding: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
&__artifacts {
|
&__artifacts {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: globals.$spacing-unit;
|
gap: globals.$spacing-unit;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Button, Modal, ModalProps } from "@renderer/components";
|
import { Button, Modal, ModalProps } from "@renderer/components";
|
||||||
import { useContext, useEffect, useMemo, useState } from "react";
|
import { useContext, useEffect, useMemo, useState } from "react";
|
||||||
import { cloudSyncContext, gameDetailsContext } from "@renderer/context";
|
import { cloudSyncContext, gameDetailsContext } from "@renderer/context";
|
||||||
|
|
||||||
import "./cloud-sync-modal.scss";
|
import "./cloud-sync-modal.scss";
|
||||||
import { formatBytes } from "@shared";
|
import { formatBytes } from "@shared";
|
||||||
import {
|
import {
|
||||||
@@ -9,6 +8,9 @@ import {
|
|||||||
DeviceDesktopIcon,
|
DeviceDesktopIcon,
|
||||||
HistoryIcon,
|
HistoryIcon,
|
||||||
InfoIcon,
|
InfoIcon,
|
||||||
|
PencilIcon,
|
||||||
|
PinIcon,
|
||||||
|
PinSlashIcon,
|
||||||
SyncIcon,
|
SyncIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
UploadIcon,
|
UploadIcon,
|
||||||
@@ -17,6 +19,10 @@ import { useAppSelector, useDate, useToast } from "@renderer/hooks";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { AxiosProgressEvent } from "axios";
|
import { AxiosProgressEvent } from "axios";
|
||||||
import { formatDownloadProgress } from "@renderer/helpers";
|
import { formatDownloadProgress } from "@renderer/helpers";
|
||||||
|
import { CloudSyncRenameArtifactModal } from "../cloud-sync-rename-artifact-modal/cloud-sync-rename-artifact-modal";
|
||||||
|
import { GameArtifact } from "@types";
|
||||||
|
import { motion, AnimatePresence } from "framer-motion";
|
||||||
|
import { orderBy } from "lodash-es";
|
||||||
|
|
||||||
export interface CloudSyncModalProps
|
export interface CloudSyncModalProps
|
||||||
extends Omit<ModalProps, "children" | "title"> {}
|
extends Omit<ModalProps, "children" | "title"> {}
|
||||||
@@ -25,9 +31,11 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
const [deletingArtifact, setDeletingArtifact] = useState(false);
|
const [deletingArtifact, setDeletingArtifact] = useState(false);
|
||||||
const [backupDownloadProgress, setBackupDownloadProgress] =
|
const [backupDownloadProgress, setBackupDownloadProgress] =
|
||||||
useState<AxiosProgressEvent | null>(null);
|
useState<AxiosProgressEvent | null>(null);
|
||||||
|
const [artifactToRename, setArtifactToRename] = useState<GameArtifact | null>(
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
const { t } = useTranslation("game_details");
|
const { t } = useTranslation("game_details");
|
||||||
|
|
||||||
const { formatDate, formatDateTime } = useDate();
|
const { formatDate, formatDateTime } = useDate();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -36,24 +44,24 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
uploadingBackup,
|
uploadingBackup,
|
||||||
restoringBackup,
|
restoringBackup,
|
||||||
loadingPreview,
|
loadingPreview,
|
||||||
|
freezingArtifact,
|
||||||
uploadSaveGame,
|
uploadSaveGame,
|
||||||
downloadGameArtifact,
|
downloadGameArtifact,
|
||||||
deleteGameArtifact,
|
deleteGameArtifact,
|
||||||
|
toggleArtifactFreeze,
|
||||||
setShowCloudSyncFilesModal,
|
setShowCloudSyncFilesModal,
|
||||||
getGameBackupPreview,
|
getGameBackupPreview,
|
||||||
} = useContext(cloudSyncContext);
|
} = useContext(cloudSyncContext);
|
||||||
|
|
||||||
const { objectId, shop, gameTitle, lastDownloadedOption } =
|
const { objectId, shop, gameTitle, game, lastDownloadedOption } =
|
||||||
useContext(gameDetailsContext);
|
useContext(gameDetailsContext);
|
||||||
|
|
||||||
const { showSuccessToast, showErrorToast } = useToast();
|
const { showSuccessToast, showErrorToast } = useToast();
|
||||||
|
|
||||||
const handleDeleteArtifactClick = async (gameArtifactId: string) => {
|
const handleDeleteArtifactClick = async (gameArtifactId: string) => {
|
||||||
setDeletingArtifact(true);
|
setDeletingArtifact(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await deleteGameArtifact(gameArtifactId);
|
await deleteGameArtifact(gameArtifactId);
|
||||||
|
|
||||||
showSuccessToast(t("backup_deleted"));
|
showSuccessToast(t("backup_deleted"));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showErrorToast("backup_deletion_failed");
|
showErrorToast("backup_deletion_failed");
|
||||||
@@ -71,7 +79,6 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
setBackupDownloadProgress(progressEvent);
|
setBackupDownloadProgress(progressEvent);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
removeBackupDownloadProgressListener();
|
removeBackupDownloadProgressListener();
|
||||||
};
|
};
|
||||||
@@ -82,6 +89,21 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
downloadGameArtifact(artifactId);
|
downloadGameArtifact(artifactId);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleFreezeArtifactClick = async (
|
||||||
|
artifactId: string,
|
||||||
|
isFrozen: boolean
|
||||||
|
) => {
|
||||||
|
try {
|
||||||
|
await toggleArtifactFreeze(artifactId, isFrozen);
|
||||||
|
showSuccessToast(isFrozen ? t("backup_frozen") : t("backup_unfrozen"));
|
||||||
|
} catch (err) {
|
||||||
|
showErrorToast(
|
||||||
|
t("backup_freeze_failed"),
|
||||||
|
t("backup_freeze_failed_description")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
getGameBackupPreview();
|
getGameBackupPreview();
|
||||||
@@ -100,7 +122,6 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (restoringBackup) {
|
if (restoringBackup) {
|
||||||
return (
|
return (
|
||||||
<span className="cloud-sync-modal__backup-state-label">
|
<span className="cloud-sync-modal__backup-state-label">
|
||||||
@@ -113,7 +134,6 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadingPreview) {
|
if (loadingPreview) {
|
||||||
return (
|
return (
|
||||||
<span className="cloud-sync-modal__backup-state-label">
|
<span className="cloud-sync-modal__backup-state-label">
|
||||||
@@ -122,19 +142,15 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (artifacts.length >= backupsPerGameLimit) {
|
if (artifacts.length >= backupsPerGameLimit) {
|
||||||
return t("max_number_of_artifacts_reached");
|
return t("max_number_of_artifacts_reached");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!backupPreview) {
|
if (!backupPreview) {
|
||||||
return t("no_backup_preview");
|
return t("no_backup_preview");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (artifacts.length === 0) {
|
if (artifacts.length === 0) {
|
||||||
return t("no_backups");
|
return t("no_backups");
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}, [
|
}, [
|
||||||
uploadingBackup,
|
uploadingBackup,
|
||||||
@@ -147,116 +163,168 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
t,
|
t,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const disableActions = uploadingBackup || restoringBackup || deletingArtifact;
|
const disableActions =
|
||||||
|
uploadingBackup || restoringBackup || deletingArtifact || freezingArtifact;
|
||||||
|
const isMissingWinePrefix =
|
||||||
|
window.electron.platform === "linux" && !game?.winePrefixPath;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<>
|
||||||
visible={visible}
|
<CloudSyncRenameArtifactModal
|
||||||
title={t("cloud_save")}
|
visible={!!artifactToRename}
|
||||||
description={t("cloud_save_description")}
|
onClose={() => setArtifactToRename(null)}
|
||||||
onClose={onClose}
|
artifact={artifactToRename}
|
||||||
large
|
/>
|
||||||
>
|
|
||||||
<div className="cloud-sync-modal__header">
|
|
||||||
<div className="cloud-sync-modal__title-container">
|
|
||||||
<h2>{gameTitle}</h2>
|
|
||||||
<p>{backupStateLabel}</p>
|
|
||||||
|
|
||||||
<button
|
<Modal
|
||||||
|
visible={visible}
|
||||||
|
title={t("cloud_save")}
|
||||||
|
description={t("cloud_save_description")}
|
||||||
|
onClose={onClose}
|
||||||
|
large
|
||||||
|
>
|
||||||
|
<div className="cloud-sync-modal__header">
|
||||||
|
<div className="cloud-sync-modal__title-container">
|
||||||
|
<h2>{gameTitle}</h2>
|
||||||
|
<p>{backupStateLabel}</p>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="cloud-sync-modal__manage-files-button"
|
||||||
|
onClick={() => setShowCloudSyncFilesModal(true)}
|
||||||
|
disabled={disableActions}
|
||||||
|
>
|
||||||
|
{t("manage_files")}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
className="cloud-sync-modal__manage-files-button"
|
onClick={() => uploadSaveGame(lastDownloadedOption?.title ?? null)}
|
||||||
onClick={() => setShowCloudSyncFilesModal(true)}
|
tooltip={isMissingWinePrefix ? t("missing_wine_prefix") : undefined}
|
||||||
disabled={disableActions}
|
tooltipPlace="left"
|
||||||
|
disabled={
|
||||||
|
disableActions ||
|
||||||
|
!backupPreview?.overall.totalGames ||
|
||||||
|
artifacts.length >= backupsPerGameLimit ||
|
||||||
|
isMissingWinePrefix
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{t("manage_files")}
|
{uploadingBackup ? (
|
||||||
</button>
|
<SyncIcon className="cloud-sync-modal__sync-icon" />
|
||||||
|
) : (
|
||||||
|
<UploadIcon />
|
||||||
|
)}
|
||||||
|
{t("create_backup")}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button
|
<div className="cloud-sync-modal__backups-header">
|
||||||
type="button"
|
<h2>{t("backups")}</h2>
|
||||||
onClick={() => uploadSaveGame(lastDownloadedOption?.title ?? null)}
|
<small>
|
||||||
disabled={
|
{artifacts.length} / {backupsPerGameLimit}
|
||||||
disableActions ||
|
</small>
|
||||||
!backupPreview?.overall.totalGames ||
|
</div>
|
||||||
artifacts.length >= backupsPerGameLimit
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{uploadingBackup ? (
|
|
||||||
<SyncIcon className="cloud-sync-modal__sync-icon" />
|
|
||||||
) : (
|
|
||||||
<UploadIcon />
|
|
||||||
)}
|
|
||||||
{t("create_backup")}
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="cloud-sync-modal__backups-header">
|
{artifacts.length > 0 ? (
|
||||||
<h2>{t("backups")}</h2>
|
<ul className="cloud-sync-modal__artifacts">
|
||||||
<small>
|
<AnimatePresence>
|
||||||
{artifacts.length} / {backupsPerGameLimit}
|
{orderBy(artifacts, [(a) => !a.isFrozen], ["asc"]).map(
|
||||||
</small>
|
(artifact) => (
|
||||||
</div>
|
<motion.li
|
||||||
|
key={artifact.id}
|
||||||
|
className="cloud-sync-modal__artifact"
|
||||||
|
layout
|
||||||
|
initial={{ opacity: 0, y: 10 }}
|
||||||
|
animate={{ opacity: 1, y: 0 }}
|
||||||
|
exit={{ opacity: 0, y: -10 }}
|
||||||
|
transition={{ duration: 0.2 }}
|
||||||
|
>
|
||||||
|
<div className="cloud-sync-modal__artifact-info">
|
||||||
|
<div className="cloud-sync-modal__artifact-header">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="cloud-sync-modal__artifact-label"
|
||||||
|
onClick={() => setArtifactToRename(artifact)}
|
||||||
|
>
|
||||||
|
{artifact.label ??
|
||||||
|
t("backup_from", {
|
||||||
|
date: formatDate(artifact.createdAt),
|
||||||
|
})}
|
||||||
|
<PencilIcon />
|
||||||
|
</button>
|
||||||
|
<small>
|
||||||
|
{formatBytes(artifact.artifactLengthInBytes)}
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
|
||||||
{artifacts.length > 0 ? (
|
<span className="cloud-sync-modal__artifact-meta">
|
||||||
<ul className="cloud-sync-modal__artifacts">
|
<DeviceDesktopIcon size={14} />
|
||||||
{artifacts.map((artifact) => (
|
{artifact.hostname}
|
||||||
<li key={artifact.id} className="cloud-sync-modal__artifact">
|
</span>
|
||||||
<div className="cloud-sync-modal__artifact-info">
|
|
||||||
<div className="cloud-sync-modal__artifact-header">
|
|
||||||
<h3>
|
|
||||||
{artifact.label ??
|
|
||||||
t("backup_from", {
|
|
||||||
date: formatDate(artifact.createdAt),
|
|
||||||
})}
|
|
||||||
</h3>
|
|
||||||
<small>{formatBytes(artifact.artifactLengthInBytes)}</small>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span className="cloud-sync-modal__artifact-meta">
|
<span className="cloud-sync-modal__artifact-meta">
|
||||||
<DeviceDesktopIcon size={14} />
|
<InfoIcon size={14} />
|
||||||
{artifact.hostname}
|
{artifact.downloadOptionTitle ??
|
||||||
</span>
|
t("no_download_option_info")}
|
||||||
|
</span>
|
||||||
|
|
||||||
<span className="cloud-sync-modal__artifact-meta">
|
<span className="cloud-sync-modal__artifact-meta">
|
||||||
<InfoIcon size={14} />
|
<ClockIcon size={14} />
|
||||||
{artifact.downloadOptionTitle ?? t("no_download_option_info")}
|
{formatDateTime(artifact.createdAt)}
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span className="cloud-sync-modal__artifact-meta">
|
<div className="cloud-sync-modal__artifact-actions">
|
||||||
<ClockIcon size={14} />
|
<Button
|
||||||
{formatDateTime(artifact.createdAt)}
|
type="button"
|
||||||
</span>
|
tooltip={
|
||||||
</div>
|
artifact.isFrozen
|
||||||
|
? t("unfreeze_backup")
|
||||||
<div className="cloud-sync-modal__artifact-actions">
|
: t("freeze_backup")
|
||||||
<Button
|
}
|
||||||
type="button"
|
theme={artifact.isFrozen ? "primary" : "outline"}
|
||||||
onClick={() => handleBackupInstallClick(artifact.id)}
|
onClick={() =>
|
||||||
disabled={disableActions}
|
handleFreezeArtifactClick(
|
||||||
>
|
artifact.id,
|
||||||
{restoringBackup ? (
|
!artifact.isFrozen
|
||||||
<SyncIcon className="cloud-sync-modal__sync-icon" />
|
)
|
||||||
) : (
|
}
|
||||||
<HistoryIcon />
|
disabled={disableActions}
|
||||||
)}
|
>
|
||||||
{t("install_backup")}
|
{artifact.isFrozen ? <PinSlashIcon /> : <PinIcon />}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => handleDeleteArtifactClick(artifact.id)}
|
onClick={() => handleBackupInstallClick(artifact.id)}
|
||||||
theme="danger"
|
disabled={disableActions}
|
||||||
disabled={disableActions}
|
theme="outline"
|
||||||
>
|
>
|
||||||
<TrashIcon />
|
{restoringBackup ? (
|
||||||
{t("delete_backup")}
|
<SyncIcon className="cloud-sync-modal__sync-icon" />
|
||||||
</Button>
|
) : (
|
||||||
</div>
|
<HistoryIcon />
|
||||||
</li>
|
)}
|
||||||
))}
|
{t("install_backup")}
|
||||||
</ul>
|
</Button>
|
||||||
) : (
|
<Button
|
||||||
<p>{t("no_backups_created")}</p>
|
type="button"
|
||||||
)}
|
onClick={() => handleDeleteArtifactClick(artifact.id)}
|
||||||
</Modal>
|
disabled={disableActions || artifact.isFrozen}
|
||||||
|
theme="outline"
|
||||||
|
tooltip={t("delete_backup")}
|
||||||
|
>
|
||||||
|
<TrashIcon />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</motion.li>
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</AnimatePresence>
|
||||||
|
</ul>
|
||||||
|
) : (
|
||||||
|
<p>{t("no_backups_created")}</p>
|
||||||
|
)}
|
||||||
|
</Modal>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user