From 2f5aa50c845d001d29fa57de632644ea1e19447c Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Thu, 9 Oct 2025 05:51:41 +0200 Subject: [PATCH] most redacted. searching for more --- src/routes/cv/+page.svelte | 15 ++- src/routes/cv/comps/Contact.svelte | 138 ++++++++++++------------ src/routes/cv/comps/Education.svelte | 22 ++-- src/routes/cv/comps/Experience.svelte | 28 ++--- src/routes/cv/comps/IconAndText.svelte | 7 +- src/routes/cv/comps/IconAndText2.svelte | 18 ++-- src/routes/cv/comps/NameAndImage.svelte | 32 +++--- src/routes/cv/comps/NamePlate.svelte | 30 +++--- src/routes/cv/comps/OtherContact.svelte | 127 +++++++++++----------- src/routes/cv/comps/ShortProfile.svelte | 47 ++++---- src/ts/Redaction/Redactor.ts | 4 +- 11 files changed, 240 insertions(+), 228 deletions(-) diff --git a/src/routes/cv/+page.svelte b/src/routes/cv/+page.svelte index b7f3d62..9625d56 100644 --- a/src/routes/cv/+page.svelte +++ b/src/routes/cv/+page.svelte @@ -1,4 +1,6 @@ -Zhentao Wei's CV {getFormattedDate()} - +{$re?.name ?? "Alex"}'s CV {getFormattedDate()} +
-
+
div:last-child { z-index: 1; - width: 100%; + width: 17.5rem; left: 0; - display: grid; - place-items: center; - padding-top: 30mm; padding-bottom: 30mm; } diff --git a/src/routes/cv/comps/Contact.svelte b/src/routes/cv/comps/Contact.svelte index ac17410..38b2684 100644 --- a/src/routes/cv/comps/Contact.svelte +++ b/src/routes/cv/comps/Contact.svelte @@ -1,75 +1,81 @@ + +
-
- - Contact - +
+ Contact +
+
+
+
Email
+
{$re?.email ?? "alex@deprived.dev"}
-
-
-
Email
-
Zhen@deprived.dev
-
-
-
Phone
-
+45 42535723
-
-
-
LinkedIn
- Zhentao-Wei -
+
+
Phone
+
{$re?.phone ?? "1-800-273-8255"}
+ +
diff --git a/src/routes/cv/comps/Education.svelte b/src/routes/cv/comps/Education.svelte index d4d14e0..20cc754 100644 --- a/src/routes/cv/comps/Education.svelte +++ b/src/routes/cv/comps/Education.svelte @@ -6,6 +6,13 @@ import EmphasysLogo from "$lib/zhen/cv-comps/EmphasysLogo.png"; import IconAndText2 from "./IconAndText2.svelte"; + import re from "@src/ts/Redaction/Redactor"; + import env, { initEnv } from "@src/ts/EnvHandler"; + import onMount from "@src/optimizers/onMount"; + + onMount(() => { + initEnv(); + });
@@ -13,20 +20,22 @@ Education
- - DTU
+ + {$re?.education[0].name ?? ""}

AI and data

- - Next
+ + {$re?.education[0].name ?? ""}

Computer science

Master class

SAS Programming

- - Emphasys center
+ + {$re?.education[2].name ?? ""}

VR development

@@ -44,4 +53,3 @@ } } - diff --git a/src/routes/cv/comps/Experience.svelte b/src/routes/cv/comps/Experience.svelte index 6dcaf8e..958cf2c 100644 --- a/src/routes/cv/comps/Experience.svelte +++ b/src/routes/cv/comps/Experience.svelte @@ -1,11 +1,5 @@ @@ -15,37 +9,37 @@
- + Full-stack
- Yaaumma
+ {$re?.experience[0].name}
Feb 2025 - Now
- + Data annotator
- GrazperAI
+ {$re?.experience[1].name}
Jul 2024 - Now
- + 3D printer manager - Volunteer
- Makerspace - kildevæld Kulturcenter
+ {$re?.experience[2].name}
Nov 2023 - Now
- + Machine Learning Engineer - Short term intern
- Product design department - Epos
+ {$re?.experience[3].name}
Apr 2024 - Apr 2024
- + Assistant - Short term intern
- Khora Virtual Reality
+ {$re?.experience[4].name}
Oct 2020 - Oct 2020
diff --git a/src/routes/cv/comps/IconAndText.svelte b/src/routes/cv/comps/IconAndText.svelte index e2b2463..315a2a5 100644 --- a/src/routes/cv/comps/IconAndText.svelte +++ b/src/routes/cv/comps/IconAndText.svelte @@ -5,9 +5,12 @@ export let fontSize: string = "3mm"; export let lineHeight: string = "3.1mm"; + import env, { initEnv } from "@src/ts/EnvHandler"; + import onMount from "@e/onMount"; onMount(() => { imageCaption = logo.split(/(\\|\/)/g).pop(); + initEnv(); }); let imageCaption: undefined | string; // Not a high piority, you get the file name and thats it @@ -15,7 +18,7 @@
{imageCaption} - diff --git a/src/routes/cv/comps/IconAndText2.svelte b/src/routes/cv/comps/IconAndText2.svelte index b2e0c94..77ca4f1 100644 --- a/src/routes/cv/comps/IconAndText2.svelte +++ b/src/routes/cv/comps/IconAndText2.svelte @@ -2,10 +2,11 @@ export let logo: string; export let logoWidths: string = "35%"; - import onMount from "@e/onMount"; + import env, { initEnv } from "@src/ts/EnvHandler"; onMount(() => { imageCaption = logo.split(/(\\|\/)/g).pop(); + initEnv(); }); let imageCaption: undefined | string; // Not a high piority, you get the file name and thats it @@ -14,18 +15,15 @@
{imageCaption}
-
- +
+
- - - diff --git a/src/routes/cv/comps/NameAndImage.svelte b/src/routes/cv/comps/NameAndImage.svelte index 2d4ec7a..78d74ff 100644 --- a/src/routes/cv/comps/NameAndImage.svelte +++ b/src/routes/cv/comps/NameAndImage.svelte @@ -1,26 +1,24 @@
- -
- Zhentao Wei - -
+ +
+ Selfie +
diff --git a/src/routes/cv/comps/NamePlate.svelte b/src/routes/cv/comps/NamePlate.svelte index b752996..8fdd64d 100644 --- a/src/routes/cv/comps/NamePlate.svelte +++ b/src/routes/cv/comps/NamePlate.svelte @@ -1,21 +1,21 @@ + +
- - - Zhentao Wei -
- (He/Him) - -
- + + {$re?.name ?? "BOTAlex"}
+ (He/Him) +
diff --git a/src/routes/cv/comps/OtherContact.svelte b/src/routes/cv/comps/OtherContact.svelte index 96bb5d5..db519e9 100644 --- a/src/routes/cv/comps/OtherContact.svelte +++ b/src/routes/cv/comps/OtherContact.svelte @@ -1,70 +1,75 @@ + +
-
- - Other - +
+ Other +
+
+ -
-
-
Itch.io
- botalex.itch.io -
-
-
Github
- @MagicBOTAlex -
+
+
Github
+ @MagicBOTAlex
+
diff --git a/src/routes/cv/comps/ShortProfile.svelte b/src/routes/cv/comps/ShortProfile.svelte index 6773bd2..e979cb3 100644 --- a/src/routes/cv/comps/ShortProfile.svelte +++ b/src/routes/cv/comps/ShortProfile.svelte @@ -1,29 +1,32 @@ -
-
- - Short profile - -
-
- ◾ Full-stack at Yaaumma
- ◾ "AI and data" at DTU.
- ◾ Working at GrazperAI
- ◾ Volunteer at Kildevæld Makerspace. -
+ +
+
+ Short profile +
+
+ ◾ Full-stack at {$re?.shortProfileHiddenContent[0] ?? "Deprived devs"} +
+ ◾ "AI and data" at {$re?.shortProfileHiddenContent[1] ?? "some uni"}. +
+ ◾ Working at {$re?.shortProfileHiddenContent[2] ?? "somewhere"}
+ ◾ Volunteer at {$re?.shortProfileHiddenContent[3] ?? "Deprived devs"}. +
diff --git a/src/ts/Redaction/Redactor.ts b/src/ts/Redaction/Redactor.ts index 538a1b0..e336108 100644 --- a/src/ts/Redaction/Redactor.ts +++ b/src/ts/Redaction/Redactor.ts @@ -32,7 +32,7 @@ class Redactor implements Readable { const unredactHash = hashResJson.response; initEnv(); - const url = `${env.POCKETBASE_URL}/api/files/redacted_content/${unredactHash}/redacted_cv_info_amhz90nhr7.json`; + const url = `${env.POCKETBASE_URL}/api/collections/redacted_content/records/${unredactHash}`; const res = await fetch(url, { method: "GET", @@ -41,7 +41,7 @@ class Redactor implements Readable { if (!res.ok) throw new Error(`HTTP ${res.status}`); const data = await res.json(); - this.unredactedProfile = parseProfile(data); + this.unredactedProfile = parseProfile(data.json); this.notify(); // <-- tell Svelte to update return this.unredactedProfile; }