From 63aca6305275dc243181ea35424200d5c91b70fc Mon Sep 17 00:00:00 2001 From: David Solano Date: Tue, 17 Jan 2023 00:17:35 -0800 Subject: [PATCH 1/4] Create Shortlinks page New minimalist page including all the acmcsuf.org short links. This PR addresses enhancement #711. --- src/routes/(site)/shorter/+page.svelte | 253 +++++++++++++++++++++++++ src/routes/(site)/shorter/page.test.ts | 8 + 2 files changed, 261 insertions(+) create mode 100644 src/routes/(site)/shorter/+page.svelte create mode 100644 src/routes/(site)/shorter/page.test.ts diff --git a/src/routes/(site)/shorter/+page.svelte b/src/routes/(site)/shorter/+page.svelte new file mode 100644 index 000000000..03eae8787 --- /dev/null +++ b/src/routes/(site)/shorter/+page.svelte @@ -0,0 +1,253 @@ + + + + + + + + Shortlinks | ACM at CSUF + + +
+
+
+

Shortlinks

+
+

+ github: + https://github.com/EthanThatOneKid/acmcsuf.com +
+
+ youtube: + https://www.youtube.com/channel/UCDMBj0o4V8Cpt0jgsZLNVVg +
+
+ instagram: + https://instagram.com/acmcsuf +
+
+ discord: + https://discord.gg/eKRApG627b +
+
+ linkedin: + https://linkedin.com/company/acm-at-csuf/ +
+
+ tuffyhacks: + https://tuffyhacks.com/ +
+
+ 'acm-w': + https://sites.google.com/view/acm-w +
+
+ 'covid-19': + https://docs.google.com/document/d/1aEfH50N0fmeK3JiID968DoG41jmdk3nelDipQpF6yio/edit?usp=sharing +
+
+ issues: + /github/issues +
+
+ bug: + /issues/new?assignees=&labels=bug&template=bug_report.yaml +
+
+ enhance: + /issues/new?assignees=&labels=enhancement&template=feature_request.yaml +
+
+ gfi: + /issues?q=is%3Aopen+is%3Aissue+label%3Abulbasaur%2Csquirtle%2Ccharmander +
+
+ 'gfi/front': + /issues?q=is%3Aopen+is%3Aissue+label%3Asquirtle +
+
+ 'gfi/back': + /issues?q=is%3Aopen+is%3Aissue+label%3Abulbasaur +
+
+ 'gfi/misc': + /issues?q=is%3Aopen+is%3Aissue+label%3Acharmander +
+
+ pull: + /github/pull +
+
+ 'blog/new': + /github/discussions/new?category=Newsletter +
+
+ devform: + https://forms.gle/Uu8bbHkuVCRspxZK8 +
+
+ devdeck: + https://docs.google.com/presentation/d/1I2iuN2h1awuqtd2osNo3kYuxdsYGOEwGYC1zn9zHtvs/edit?usp=sharing +
+
+ 'design-template': + https://www.figma.com/file/MED3kRKmIxcoKblNTveEZZ/acmDesign-Challenge-Sheet?node-id=0%3A1 +
+
+ 'live-walk': + https://www.figma.com/file/PtYSxzB8BbKh3L46dQSjf1/Live-Interaction?node-id=0%3A1 +
+
+ 'css-basics': + https://codepen.io/alancortez1337/pen/BaxmJWL +
+
+ 'grid-play': + https://codepen.io/jorgeemejia/pen/MWGBdQj +
+
+ 'frank-grid': + https://codepen.io/alancortez1337/pen/xxjPVbG +
+
+ arch: + /github/blob/main/ARCHITECTURE.md +
+
+ 'game-night': + https://discord.com/events/710225099923521558/1031436363259723817s +
+
+ webdevform: + https://docs.google.com/forms/d/e/1FAIpQLSflnzKjgYKmNOkwIYRVveGVGuzso4Fm9Ph0gxAULgt6w5Xx9A/viewform +
+
+ icpcform: + https://docs.google.com/forms/d/e/1FAIpQLSf_z4XjkpKQMNBGWArGZswmTmn38teFjsx-MjtT8xV-cVW-sQ/viewform +
+
+ botform: + https://docs.google.com/forms/d/e/1FAIpQLSe07zvJR8kfjWXWIDilIMdTzjenCeiFdAGTjX81dcI6XotE5Q/viewform +
+
+ 'intro-to-python': + https://colab.research.google.com/drive/1oXXibZCxEnFnyCfEnxk9x-Qcgp1n4zJa +
+
+ 'hash-table-visu': + https://hash-table-visu.vercel.app +
+
+ ai/projects/1: + https://docs.google.com/presentation/d/1BCYU3cTfNTffdUmiMHz8c2-A5qwna8yVPt7Fx3nzqGQ/edit?usp=sharing +
+
+ 'ai/projects/2': + https://colab.research.google.com/drive/1KaLN47LSfK4rAOzEOQleCX-Dy-qACZYC?usp=sharing +

+
+
+ + + + diff --git a/src/routes/(site)/shorter/page.test.ts b/src/routes/(site)/shorter/page.test.ts new file mode 100644 index 000000000..28a643c0c --- /dev/null +++ b/src/routes/(site)/shorter/page.test.ts @@ -0,0 +1,8 @@ +import { expect, test } from '@playwright/test'; + +test.describe.configure({ mode: 'parallel' }); + +test('first contributions page has expected h1', async ({ page }) => { + await page.goto('/shorter'); + expect(await page.textContent('h1')).toBe('Shortlinks'); +}); From aa08918891d24d32c5519f6168c2cb1869d68e84 Mon Sep 17 00:00:00 2001 From: David Solano Date: Tue, 17 Jan 2023 23:47:23 -0800 Subject: [PATCH 2/4] DRY adjusting to links Using the #each feature to avoid tons of repeated code. --- src/routes/(site)/shorter/+page.svelte | 192 +------------------------ 1 file changed, 6 insertions(+), 186 deletions(-) diff --git a/src/routes/(site)/shorter/+page.svelte b/src/routes/(site)/shorter/+page.svelte index 03eae8787..3eb97e9df 100644 --- a/src/routes/(site)/shorter/+page.svelte +++ b/src/routes/(site)/shorter/+page.svelte @@ -3,6 +3,7 @@ @@ -17,192 +18,11 @@

Shortlinks

- github: - https://github.com/EthanThatOneKid/acmcsuf.com -
-
- youtube: - https://www.youtube.com/channel/UCDMBj0o4V8Cpt0jgsZLNVVg -
-
- instagram: - https://instagram.com/acmcsuf -
-
- discord: - https://discord.gg/eKRApG627b -
-
- linkedin: - https://linkedin.com/company/acm-at-csuf/ -
-
- tuffyhacks: - https://tuffyhacks.com/ -
-
- 'acm-w': - https://sites.google.com/view/acm-w -
-
- 'covid-19': - https://docs.google.com/document/d/1aEfH50N0fmeK3JiID968DoG41jmdk3nelDipQpF6yio/edit?usp=sharing -
-
- issues: - /github/issues -
-
- bug: - /issues/new?assignees=&labels=bug&template=bug_report.yaml -
-
- enhance: - /issues/new?assignees=&labels=enhancement&template=feature_request.yaml -
-
- gfi: - /issues?q=is%3Aopen+is%3Aissue+label%3Abulbasaur%2Csquirtle%2Ccharmander -
-
- 'gfi/front': - /issues?q=is%3Aopen+is%3Aissue+label%3Asquirtle -
-
- 'gfi/back': - /issues?q=is%3Aopen+is%3Aissue+label%3Abulbasaur -
-
- 'gfi/misc': - /issues?q=is%3Aopen+is%3Aissue+label%3Acharmander -
-
- pull: - /github/pull -
-
- 'blog/new': - /github/discussions/new?category=Newsletter -
-
- devform: - https://forms.gle/Uu8bbHkuVCRspxZK8 -
-
- devdeck: - https://docs.google.com/presentation/d/1I2iuN2h1awuqtd2osNo3kYuxdsYGOEwGYC1zn9zHtvs/edit?usp=sharing -
-
- 'design-template': - https://www.figma.com/file/MED3kRKmIxcoKblNTveEZZ/acmDesign-Challenge-Sheet?node-id=0%3A1 -
-
- 'live-walk': - https://www.figma.com/file/PtYSxzB8BbKh3L46dQSjf1/Live-Interaction?node-id=0%3A1 -
-
- 'css-basics': - https://codepen.io/alancortez1337/pen/BaxmJWL -
-
- 'grid-play': - https://codepen.io/jorgeemejia/pen/MWGBdQj -
-
- 'frank-grid': - https://codepen.io/alancortez1337/pen/xxjPVbG -
-
- arch: - /github/blob/main/ARCHITECTURE.md -
-
- 'game-night': - https://discord.com/events/710225099923521558/1031436363259723817s -
-
- webdevform: - https://docs.google.com/forms/d/e/1FAIpQLSflnzKjgYKmNOkwIYRVveGVGuzso4Fm9Ph0gxAULgt6w5Xx9A/viewform -
-
- icpcform: - https://docs.google.com/forms/d/e/1FAIpQLSf_z4XjkpKQMNBGWArGZswmTmn38teFjsx-MjtT8xV-cVW-sQ/viewform -
-
- botform: - https://docs.google.com/forms/d/e/1FAIpQLSe07zvJR8kfjWXWIDilIMdTzjenCeiFdAGTjX81dcI6XotE5Q/viewform -
-
- 'intro-to-python': - https://colab.research.google.com/drive/1oXXibZCxEnFnyCfEnxk9x-Qcgp1n4zJa -
-
- 'hash-table-visu': - https://hash-table-visu.vercel.app -
-
- ai/projects/1: - https://docs.google.com/presentation/d/1BCYU3cTfNTffdUmiMHz8c2-A5qwna8yVPt7Fx3nzqGQ/edit?usp=sharing -
-
- 'ai/projects/2': - https://colab.research.google.com/drive/1KaLN47LSfK4rAOzEOQleCX-Dy-qACZYC?usp=sharing + {#each Object.entries(LINKS) as [pathname, destination]} + {pathname}: {destination} +
+
+ {/each}

From d94522d4df722ef7e543817faa8c97f5d50e7a98 Mon Sep 17 00:00:00 2001 From: David Solano Date: Wed, 18 Jan 2023 23:55:38 -0800 Subject: [PATCH 3/4] Remove unnecessary features Deleted a rogue comment and unused script. --- src/routes/(site)/shorter/+page.svelte | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/routes/(site)/shorter/+page.svelte b/src/routes/(site)/shorter/+page.svelte index 3eb97e9df..48b38ba4e 100644 --- a/src/routes/(site)/shorter/+page.svelte +++ b/src/routes/(site)/shorter/+page.svelte @@ -1,6 +1,3 @@ - -