Commit f943ff78e7
f943ff78e71d4d71f1645b0656d47d60d7b88120
parent: ddb2180827
Unsigned
Alicia Sykes <alicia@omg.lol> · 2026-05-12 16:41 UTC
Sort all listings alphabetically, more impartial
Layout: unified · split
web/src/components/things/ServiceList.astro
+6 −2
| @@ -27,13 +27,17 @@ const { |
| 27 | 27 | sectionName, |
| 28 | 28 | categoryName, |
| 29 | 29 | } = Astro.props; |
| 30 | |
| 31 | const sortedServices = [...(services || [])].sort((a, b) => |
| 32 | a.name.localeCompare(b.name), |
| 33 | ); |
| 30 | 34 | --- |
| 31 | 35 | |
| 32 | 36 | <section> |
| 33 | 37 | { |
| 34 | | services && services.length > 0 ? ( |
| 38 | sortedServices.length > 0 ? ( |
| 35 | 39 | <ul> |
| 36 | | {services.map((service: Service) => ( |
| 40 | {sortedServices.map((service: Service) => ( |
| 37 | 41 | <li id={slugify(service.name)}> |
| 38 | 42 | <DeleteListing |
| 39 | 43 | client:load |
web/src/components/things/WebsiteDetailedInfo.astro
+15 −2
| @@ -163,7 +163,11 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; |
| 163 | 163 | <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" /> |
| 164 | 164 | <div class="link-to-web-check"> |
| 165 | 165 | <Button url={`https://web-check.xyz/check/${url}`}> |
| 166 | | <span>View full report at</span><br /><b class="web-check-title">web-check.xyz</b> |
| 166 | <img width="32" src="https://web-check.xyz/favicon.svg" /> |
| 167 | <div class="btn-text"> |
| 168 | <span>View full report at</span> |
| 169 | <b class="web-check-title">web-check.xyz</b> |
| 170 | </div> |
| 167 | 171 | </Button> |
| 168 | 172 | </div> |
| 169 | 173 | |
| @@ -263,7 +267,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; |
| 263 | 267 | } |
| 264 | 268 | |
| 265 | 269 | .link-to-web-check { |
| 266 | | width: 180px; |
| 270 | width: 260px; |
| 267 | 271 | float: right; |
| 268 | 272 | font-size: var(--text-base); |
| 269 | 273 | transform: scale(0.8); |
| @@ -279,6 +283,15 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; |
| 279 | 283 | .web-check-title { |
| 280 | 284 | font-size: var(--text-lg); |
| 281 | 285 | } |
| 286 | :global(a) { |
| 287 | display: flex; |
| 288 | gap: var(--space-md); |
| 289 | .btn-text { |
| 290 | display: flex; |
| 291 | flex-direction: column; |
| 292 | text-align: left; |
| 293 | } |
| 294 | } |
| 282 | 295 | } |
| 283 | 296 | |
| 284 | 297 | </style> |
web/src/pages/all.astro
+1 −1
| @@ -59,7 +59,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; |
| 59 | 59 | </a> |
| 60 | 60 | </h3> |
| 61 | 61 | <section class="grid"> |
| 62 | | {section.services.map((service: Service) => ( |
| 62 | {[...section.services].sort((a, b) => a.name.localeCompare(b.name)).map((service: Service) => ( |
| 63 | 63 | <ServiceCard |
| 64 | 64 | service={service} |
| 65 | 65 | sectionName={section.name} |