Skip to content

Commit 79e752f

Browse files
committed
TODO: refactor rss feeder script
1 parent 9c0d88b commit 79e752f

31 files changed

+157
-61
lines changed

packages/web/src/index.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ body {
4545
line-height: 1.6;
4646
color: var(--color-text);
4747
background-color: var(--color-background);
48-
/* width: 800px; */
4948
margin: 0 auto;
5049
}
5150

@@ -65,13 +64,18 @@ h2 {
6564

6665
a {
6766
color: var(--color-brand);
68-
text-decoration: underline;
69-
text-decoration-style: dotted;
67+
text-decoration: none;
7068
text-decoration-color: var(--color-text-tertiary);
7169
text-underline-offset: 0.1875rem;
7270

7371
&:hover {
7472
color: var(--color-brand);
73+
/* text-decoration-style: dotted; */
74+
}
75+
76+
&:visited {
77+
color: var(--color-text-tertiary);
78+
/* text-decoration: underline; */
7579
}
7680
}
7781

packages/web/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function sortTable(column: number, direction: "asc" | "desc") {
7373
let comparison = 0;
7474
if (columnType === "number") {
7575
comparison = (aValue as number) - (bValue as number);
76+
} else if (columnType === "date") {
77+
comparison = (aValue as number) - (bValue as number);
7678
} else if (columnType === "boolean") {
7779
comparison = (aValue as string).localeCompare(bValue as string);
7880
} else {
@@ -103,6 +105,10 @@ function getCellValue(
103105
const text = cell.textContent?.trim() || "";
104106
if (text === "-") return;
105107
if (type === "number") return parseFloat(text.replace(/[$,]/g, "")) || 0;
108+
if (type === "date") {
109+
const timestamp = Date.parse(text);
110+
return isNaN(timestamp) ? undefined : timestamp;
111+
}
106112
return text;
107113
}
108114

packages/web/src/render.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Rendered = renderToString(
5252
<th class="sortable" data-type="text">
5353
Title <span class="sort-indicator"></span>
5454
</th>
55-
<th class="sortable" data-type="text">
55+
<th class="sortable" data-type="date">
5656
Published <span class="sort-indicator"></span>
5757
</th>
5858
<th class="sortable" data-type="text">
@@ -121,7 +121,6 @@ export const Rendered = renderToString(
121121
href={content.url}
122122
target="_blank"
123123
rel="noopener noreferrer"
124-
style="text-decoration: none;"
125124
>
126125
goto →
127126
</a>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
id = "cdata-aurora-mysql-8-upgrade-using-the-aws-blue-green-style"
1+
id = "aurora-mysql-8-upgrade-using-the-aws-blue-green-style"
22
title = "Aurora MySQL 8 Upgrade: Using the AWS Blue/Green Style"
33
description = "Upgrade database with AWS RDS going from Aurora MySQL 5.7 to 8.0 using Blue/Green deployment. No downtime. No more RDS Extended Support."
44
url = "https://spin.atomicobject.com/aurora-mysql-8-aws-blue-green/"
55
created_at = "2025-02-12T19:52:56Z"
6+
tags = ["AWS","database","aws","app","database migration"]
67
reading_time_minutes = 7

providers/atomicobject/content/cdata-create-a-time-tracking-cli-tool-with-go-oauth2-and-goo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

providers/atomicobject/content/cdata-docker-compose-dependency-management-isn-8217-t-a-silv.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id = "create-a-time-tracking-cli-tool-with-go-oauth2-and-google-ca"
2+
title = "Create a Time-Tracking CLI Tool with Go, OAuth2, and Google Calendar API"
3+
description = "In 2024, there's been a lot of hype around Golang. I felt inspired to try it out and write a program in this language."
4+
url = "https://spin.atomicobject.com/golang-time-tracking/"
5+
created_at = "2024-04-16T20:59:47Z"
6+
tags = ["Golang","time tracking","oauth2","calendar","golang","google"]
7+
reading_time_minutes = 4
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id = "docker-compose-dependency-management-isn-8217-t-a-silver-bul"
2+
title = "Docker Compose Dependency Management Isn't a Silver Bullet"
3+
description = "The dependency management in Docker Compose, particularly with the depends_on attribute, isn't a silver bullet."
4+
url = "https://spin.atomicobject.com/docker-dependency-management/"
5+
created_at = "2024-01-25T21:27:16Z"
6+
tags = ["DevOps & System Admin.","python","docker","docker-compose","django","mariadb"]
7+
reading_time_minutes = 3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
id = "cdata-from-green-to-great-building-confidence-in-consulting"
1+
id = "from-green-to-great-building-confidence-in-consulting"
22
title = "From Green to Great: Building Confidence in Consulting"
3-
description = "Preferring simplicity over complexity and being a great communicator are traits I&#039;ve observed from effective software consultants."
3+
description = "Preferring simplicity over complexity and being a great communicator are traits I've observed from effective software consultants."
44
url = "https://spin.atomicobject.com/software-consultants-confidence/"
55
created_at = "2024-07-17T18:51:31Z"
6+
tags = ["Growing as Makers","problem solving","career development","consulting","atomic accelerator"]
67
reading_time_minutes = 4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
id = "cdata-introducing-sst-v3-for-modern-aws-serverless-infrastru"
1+
id = "introducing-sst-v3-for-modern-aws-serverless-infrastructure"
22
title = "Introducing SST v3 for Modern AWS Serverless Infrastructure"
33
description = "Web apps often have rich front ends and lean back ends, leading to more dynamic, developer-friendly tools. SST v3 is one such tool."
44
url = "https://spin.atomicobject.com/sst-v3-for-aws-serverless/"
55
created_at = "2025-06-23T20:04:33Z"
6+
tags = ["AWS","aws","SST v3","IaC","serverless"]
67
reading_time_minutes = 9

0 commit comments

Comments
 (0)