From cb08374cbb082949fc7336cf6cb41c53a4e5b05c Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:08:36 +0200 Subject: [PATCH 1/4] fix import --- src/main/services/bs-launcher/abstract-launcher.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/bs-launcher/abstract-launcher.service.ts b/src/main/services/bs-launcher/abstract-launcher.service.ts index 7dfb49466..df583d1b5 100644 --- a/src/main/services/bs-launcher/abstract-launcher.service.ts +++ b/src/main/services/bs-launcher/abstract-launcher.service.ts @@ -3,7 +3,7 @@ import { BSLocalVersionService } from "../bs-local-version.service"; import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio, spawn } from "child_process"; import path from "path"; import log from "electron-log"; -import { sToMs } from "shared/helpers/time.helpers"; +import { sToMs } from "../../../shared/helpers/time.helpers"; export abstract class AbstractLauncherService { From 126024b70b6a9c6b4f3fa4afb89e7620234074d7 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:08:59 +0200 Subject: [PATCH 2/4] spaces to tabs --- assets/jsons/bs-versions.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/jsons/bs-versions.json b/assets/jsons/bs-versions.json index 25f7cc96b..27093c9ac 100644 --- a/assets/jsons/bs-versions.json +++ b/assets/jsons/bs-versions.json @@ -680,7 +680,7 @@ "ReleaseImg": "https://clan.akamai.steamstatic.com/images/32055887/ae11d195bbe41a0f244d7b4d055a0ab89f88e5bb.png", "ReleaseDate": "1702309893", "year": "2023", - "recommended": true + "recommended": true }, { "BSVersion": "1.34.5", @@ -700,7 +700,7 @@ "ReleaseDate": "1708091473", "year": "2024" }, - { + { "BSVersion": "1.35.0", "BSManifest": "1490986193481243578", "OculusBinaryId": "6720809361352119", @@ -709,7 +709,7 @@ "ReleaseDate": "1709831174", "year": "2024" }, - { + { "BSVersion": "1.36.0", "BSManifest": "8533509040167838423", "OculusBinaryId": "6863072637125790", @@ -718,7 +718,7 @@ "ReleaseDate": "1712681263", "year": "2024" }, - { + { "BSVersion": "1.36.2", "BSManifest": "4832237377879752064", "OculusBinaryId": "6983660338400352", @@ -727,7 +727,7 @@ "ReleaseDate": "1715008020", "year": "2024" }, - { + { "BSVersion": "1.37.0", "BSManifest": "7270690075584855288", "OculusBinaryId": "7062062833893435", @@ -736,4 +736,4 @@ "ReleaseDate": "1717513346", "year": "2024" } -] +] \ No newline at end of file From 64d6aa25e30aa66c8c7895c73b70441d2d9993af Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:09:28 +0200 Subject: [PATCH 3/4] [chore] blur nsfw models --- .../models-management/model-item.component.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/models-management/model-item.component.tsx b/src/renderer/components/models-management/model-item.component.tsx index cbb8555a6..3912f1621 100644 --- a/src/renderer/components/models-management/model-item.component.tsx +++ b/src/renderer/components/models-management/model-item.component.tsx @@ -42,6 +42,20 @@ function ModelItemElement(props: Props) { const [idContentCopied, setIdContentCopied] = useState(null); const ref = useRef(); + const isNsfw = (() => { + const tags = props.tags?.map(tag => tag.toLowerCase()) ?? []; + const name = props.name.toLowerCase() ?? ""; + return ( + tags.includes("nsfw") || + tags.includes("18+") || + name.includes("nsfw") || + name.includes("18+") || + name.includes("nude") || + name.includes("naked") || + name.includes("lewd") + ); + })(); + useDoubleClick({ ref, latency: props.onDoubleClick ? 200 : 0, @@ -117,7 +131,7 @@ function ModelItemElement(props: Props) {
- +
{!props.isDownloading ? ( actionButtons().map((button, index) => ( From 1c9289f98906dfd695b7ccd6083900aa1a2a21f7 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:12:04 +0200 Subject: [PATCH 4/4] [chore] remove brigtness filter --- .../components/models-management/model-item.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/models-management/model-item.component.tsx b/src/renderer/components/models-management/model-item.component.tsx index 3912f1621..4da7ab4f9 100644 --- a/src/renderer/components/models-management/model-item.component.tsx +++ b/src/renderer/components/models-management/model-item.component.tsx @@ -131,7 +131,7 @@ function ModelItemElement(props: Props) {
- +
{!props.isDownloading ? ( actionButtons().map((button, index) => (