Commit 61fd569e7a

61fd569e7a981560f83af9c7bab27b1e443688df

parent: 2b1b4d306b

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-03-28 10:09 UTC

Fixes formatting

Layout: unified · split

web/src/components/Hero.astro +5 −3
@@ -9,14 +9,17 @@ import FontAwesome from '@components/form/FontAwesome.svelte';
99 popular software and services.
1010 </p>
1111 <div class="github-link-wrap">
12 <a href="https://github.com/lissy93/awesome-privacy" target="_blank" rel="noopener noreferrer">
12 <a
13 href="https://github.com/lissy93/awesome-privacy"
14 target="_blank"
15 rel="noopener noreferrer"
16 >
1317 <FontAwesome iconName="github" />
1418 View on GitHub
1519 </a>
1620 </div>
1721</div>
1822
19
2023<style lang="scss">
2124 .hero {
2225 color: var(--accent-fg);
@@ -94,5 +97,4 @@ import FontAwesome from '@components/form/FontAwesome.svelte';
9497 }
9598 }
9699 }
97
98100</style>
web/src/components/scafold/Footer.astro +8 −5
@@ -5,12 +5,15 @@ const year = new Date().getFullYear();
55<footer>
66 <a href="/about">Awesome Privacy</a> is licensed under <a
77 href="https://github.com/Lissy93/awesome-privacy/blob/main/LICENSE"
8 target="_blank" rel="noopener noreferrer">CC0 1.0 Universal</a
8 target="_blank"
9 rel="noopener noreferrer">CC0 1.0 Universal</a
910 >
10 © <a href="https://aliciasykes.com" target="_blank" rel="noopener noreferrer">Alicia Sykes</a> 2018 - {
11 year || 'Present'
12 } | Source code available on <a
13 href="https://github.com/Lissy93/awesome-privacy" target="_blank" rel="noopener noreferrer">GitHub</a
11 © <a href="https://aliciasykes.com" target="_blank" rel="noopener noreferrer"
12 >Alicia Sykes</a
13 > 2018 - {year || 'Present'} | Source code available on <a
14 href="https://github.com/Lissy93/awesome-privacy"
15 target="_blank"
16 rel="noopener noreferrer">GitHub</a
1417 >
1518</footer>
1619
web/src/components/scafold/NavBar.astro +78 −35
@@ -3,13 +3,17 @@ import FontAwesome from '@components/form/FontAwesome.svelte';
33import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
44
55const navLinks = [
6 { label: 'View All', href: '/all' },
7 { label: 'Search', href: '/search' },
6 { label: 'View All', href: '/all' },
7 { label: 'Search', href: '/search' },
88 { label: 'Changelog', href: '/changelog' },
9 { label: 'API', href: '/api' },
10 { label: 'Saved', href: '/inventory', id: 'saved-nav-link', hidden: true },
11 { label: 'About', href: '/about' },
12 { label: 'GitHub', href: 'https://github.com/lissy93/awesome-privacy', external: true },
9 { label: 'API', href: '/api' },
10 { label: 'Saved', href: '/inventory', id: 'saved-nav-link', hidden: true },
11 { label: 'About', href: '/about' },
12 {
13 label: 'GitHub',
14 href: 'https://github.com/lissy93/awesome-privacy',
15 external: true,
16 },
1317];
1418---
1519
@@ -25,22 +29,25 @@ const navLinks = [
2529 aria-expanded="false"
2630 aria-controls="nav-menu"
2731 >
28 <span class="burger-line" /><span class="burger-line" /><span class="burger-line" />
32 <span class="burger-line"></span><span class="burger-line"></span><span
33 class="burger-line"></span>
2934 </button>
3035 <nav id="nav-menu" aria-label="Main navigation">
31 {navLinks.map((link) => (
32 <a
33 href={link.href}
34 class="nav-link"
35 id={link.id}
36 style={link.hidden ? 'display:none' : undefined}
37 target={link.external ? '_blank' : undefined}
38 rel={link.external ? 'noopener noreferrer' : undefined}
39 >
40 {link.label}
41 {link.external && <span class="sr-only">(opens in new tab)</span>}
42 </a>
43 ))}
36 {
37 navLinks.map((link) => (
38 <a
39 href={link.href}
40 class="nav-link"
41 id={link.id}
42 style={link.hidden ? 'display:none' : undefined}
43 target={link.external ? '_blank' : undefined}
44 rel={link.external ? 'noopener noreferrer' : undefined}
45 >
46 {link.label}
47 {link.external && <span class="sr-only">(opens in new tab)</span>}
48 </a>
49 ))
50 }
4451 <div class="theme-switcher">
4552 <ThemeSwitcher client:load />
4653 </div>
@@ -81,7 +88,9 @@ const navLinks = [
8188 const saved = JSON.parse(localStorage.getItem('savedServices') || '[]');
8289 const el = document.getElementById('saved-nav-link');
8390 if (el && saved.length > 0) el.style.display = '';
84 } catch { /* ignore parse errors */ }
91 } catch {
92 /* ignore parse errors */
93 }
8594 });
8695</script>
8796
@@ -137,9 +146,15 @@ const navLinks = [
137146 transition: var(--transition-fast);
138147 }
139148 &.is-active .burger-line {
140 &:nth-child(1) { transform: translateY(7px) rotate(45deg); }
141 &:nth-child(2) { opacity: 0; }
142 &:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
149 &:nth-child(1) {
150 transform: translateY(7px) rotate(45deg);
151 }
152 &:nth-child(2) {
153 opacity: 0;
154 }
155 &:nth-child(3) {
156 transform: translateY(-7px) rotate(-45deg);
157 }
143158 }
144159 }
145160
@@ -154,13 +169,25 @@ const navLinks = [
154169 font-weight: bold;
155170 color: var(--foreground);
156171 text-decoration: none;
157 transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
172 transition:
173 background 0.3s ease-in-out,
174 color 0.3s ease-in-out;
158175 &:hover {
159176 color: var(--accent-fg);
160 &:nth-child(4n+1) { background: var(--accent); }
161 &:nth-child(4n+2) { background: var(--accent-2); color: var(--foreground); }
162 &:nth-child(4n+3) { background: var(--accent-3); }
163 &:nth-child(4n+4) { background: var(--accent-4); color: var(--foreground); }
177 &:nth-child(4n + 1) {
178 background: var(--accent);
179 }
180 &:nth-child(4n + 2) {
181 background: var(--accent-2);
182 color: var(--foreground);
183 }
184 &:nth-child(4n + 3) {
185 background: var(--accent-3);
186 }
187 &:nth-child(4n + 4) {
188 background: var(--accent-4);
189 color: var(--foreground);
190 }
164191 }
165192 }
166193 .theme-switcher {
@@ -175,7 +202,9 @@ const navLinks = [
175202 font-size: var(--text-base);
176203 }
177204 .logo {
178 span { font-size: var(--text-3xl); }
205 span {
206 font-size: var(--text-3xl);
207 }
179208 }
180209 }
181210
@@ -183,10 +212,20 @@ const navLinks = [
183212 flex-wrap: wrap;
184213 .logo {
185214 margin: 0 auto;
186 :global(svg) { @media (max-width: 428px) { display: none; } }
187 span { @media (max-width: 428px) { font-size: var(--text-2xl); } }
215 :global(svg) {
216 @media (max-width: 428px) {
217 display: none;
218 }
219 }
220 span {
221 @media (max-width: 428px) {
222 font-size: var(--text-2xl);
223 }
224 }
225 }
226 .burger {
227 display: flex;
188228 }
189 .burger { display: flex; }
190229 nav {
191230 display: none;
192231 flex-direction: column;
@@ -198,14 +237,18 @@ const navLinks = [
198237 border-bottom: 2px solid var(--accent-3);
199238 z-index: 100;
200239 height: auto;
201 &.open { display: flex; }
240 &.open {
241 display: flex;
242 }
202243 .nav-link {
203244 width: 100%;
204245 text-align: center;
205246 padding: var(--space-md) var(--space-lg);
206247 border-bottom: 1px solid var(--accent-3-translucent);
207248 }
208 .theme-switcher { display: none; }
249 .theme-switcher {
250 display: none;
251 }
209252 }
210253 }
211254 }
web/src/components/things/DataActions.svelte +7 −3
@@ -91,9 +91,13 @@
9191{#if lineNumbers}
9292 <h4>Edit {serviceName} Data</h4>
9393 <p>
94 You can edit {serviceName}'s entry in <a href={getGitHubSrcFile()}> this section </a> of <code>awesome-privacy.yml</code> by submitting a PR to our GitHub repo.<br>
95 Note that some of the information shown above has been aggregated from external sources,
96 a list of these can be found <a href="/about#our-data">data documentation</a>.
94 You can edit {serviceName}'s entry in
95 <a href={getGitHubSrcFile()}> this section </a>
96 of <code>awesome-privacy.yml</code> by submitting a PR to our GitHub repo.<br
97 />
98 Note that some of the information shown above has been aggregated from external
99 sources, a list of these can be found
100 <a href="/about#our-data">data documentation</a>.
97101 </p>
98102
99103 <h4>Origin Data</h4>
web/src/components/things/ListingHero.astro +178 −62
@@ -14,9 +14,21 @@ interface Props {
1414
1515const { service, parentSection, categoryName, privacyPolicyLink } = Astro.props;
1616const {
17 name, description, url, github, tosdrId, iosApp, androidApp,
18 discordInvite, subreddit, icon, followWith, links,
19 securityAudited, openSource, acceptsCrypto,
17 name,
18 description,
19 url,
20 github,
21 tosdrId,
22 iosApp,
23 androidApp,
24 discordInvite,
25 subreddit,
26 icon,
27 followWith,
28 links,
29 securityAudited,
30 openSource,
31 acceptsCrypto,
2032} = service;
2133
2234const catSlug = slugify(categoryName);
@@ -28,23 +40,81 @@ const otherServices = parentSection.services.filter(
2840
2941const infoLinks = [
3042 url && { label: 'Homepage', href: url, text: formatLink(url) },
31 github && { label: 'GitHub', href: `https://github.com/${github}`, text: `github.com/${github}` },
32 tosdrId && { label: 'Privacy', href: privacyPolicyLink, text: formatLink(privacyPolicyLink || '') },
43 github && {
44 label: 'GitHub',
45 href: `https://github.com/${github}`,
46 text: `github.com/${github}`,
47 },
48 tosdrId && {
49 label: 'Privacy',
50 href: privacyPolicyLink,
51 text: formatLink(privacyPolicyLink || ''),
52 },
3353 iosApp && { label: 'iOS App', href: iosApp, text: formatLink(iosApp) },
34 androidApp && { label: 'Android App', href: `https://play.google.com/store/apps/details?id=${androidApp}`, text: `play.google.com/.../${androidApp}` },
35 discordInvite && { label: 'Discord', href: `https://discord.com/invite/${discordInvite}`, text: discordInvite },
36 subreddit && { label: 'Subreddit', href: `https://reddit.com/r/${subreddit}`, text: `r/${subreddit}` },
37 url && { label: 'Web info', href: `https://web-check.xyz/check/${formatLink(url)}`, text: `web-check.xyz/check/${formatLink(url).split('/')[0]}` },
38 ...(links || []).map((link) => ({ label: link.title, href: link.url, text: link.url })),
54 androidApp && {
55 label: 'Android App',
56 href: `https://play.google.com/store/apps/details?id=${androidApp}`,
57 text: `play.google.com/.../${androidApp}`,
58 },
59 discordInvite && {
60 label: 'Discord',
61 href: `https://discord.com/invite/${discordInvite}`,
62 text: discordInvite,
63 },
64 subreddit && {
65 label: 'Subreddit',
66 href: `https://reddit.com/r/${subreddit}`,
67 text: `r/${subreddit}`,
68 },
69 url && {
70 label: 'Web info',
71 href: `https://web-check.xyz/check/${formatLink(url)}`,
72 text: `web-check.xyz/check/${formatLink(url).split('/')[0]}`,
73 },
74 ...(links || []).map((link) => ({
75 label: link.title,
76 href: link.url,
77 text: link.url,
78 })),
3979].filter(Boolean) as { label: string; href: string | null; text: string }[];
4080
4181const highlights = [
42 securityAudited && { icon: 'securityAudited', text: 'Security Audited', cls: 'great', title: `${name} has been security audited by an accredited auditor, with results published publicly` },
43 acceptsCrypto && { icon: 'cryptoAccepted', text: 'Crypto Payments Accepted', cls: 'great', title: `${name} accepts anonymous payment methods` },
44 securityAudited === false && { icon: 'notSecurityAudited', text: 'No Security Audit', cls: 'warning', title: `${name} has not been audited` },
45 openSource === false && { icon: 'closedSource', text: 'Not Open Source', cls: 'warning', title: `${name} is not open source` },
46 (openSource || (github && openSource !== false)) && { icon: 'openSource', text: 'Open Source', cls: 'great', title: `${name} is open source` },
47].filter(Boolean) as { icon: string; text: string; cls: string; title: string }[];
82 securityAudited && {
83 icon: 'securityAudited',
84 text: 'Security Audited',
85 cls: 'great',
86 title: `${name} has been security audited by an accredited auditor, with results published publicly`,
87 },
88 acceptsCrypto && {
89 icon: 'cryptoAccepted',
90 text: 'Crypto Payments Accepted',
91 cls: 'great',
92 title: `${name} accepts anonymous payment methods`,
93 },
94 securityAudited === false && {
95 icon: 'notSecurityAudited',
96 text: 'No Security Audit',
97 cls: 'warning',
98 title: `${name} has not been audited`,
99 },
100 openSource === false && {
101 icon: 'closedSource',
102 text: 'Not Open Source',
103 cls: 'warning',
104 title: `${name} is not open source`,
105 },
106 (openSource || (github && openSource !== false)) && {
107 icon: 'openSource',
108 text: 'Open Source',
109 cls: 'great',
110 title: `${name} is open source`,
111 },
112].filter(Boolean) as {
113 icon: string;
114 text: string;
115 cls: string;
116 title: string;
117}[];
48118---
49119
50120<section class="hero-section">
@@ -86,45 +156,63 @@ const highlights = [
86156 <div>
87157 <p class="description" set:html={parseMarkdown(description)} />
88158 <ul>
89 {infoLinks.map((link) => (
90 <li>
91 <b>{link.label}:</b>
92 <a href={link.href} target="_blank" rel="noopener noreferrer">{link.text}</a>
93 </li>
94 ))}
159 {
160 infoLinks.map((link) => (
161 <li>
162 <b>{link.label}:</b>
163 <a href={link.href} target="_blank" rel="noopener noreferrer">
164 {link.text}
165 </a>
166 </li>
167 ))
168 }
95169 </ul>
96170 <div class="related">
97 {(parentSection.alternativeTo || []).length > 0 && (
98 <div class="related-group">
99 <h4 class="avoid"><FontAwesome iconName="faceBad" /> Avoid</h4>
100 <ul>
101 {(parentSection.alternativeTo || []).map((alt: string) => (
102 <li><span>{alt}</span></li>
103 ))}
104 </ul>
105 </div>
106 )}
107 {otherServices.length > 0 && (
108 <div class="related-group">
109 <h4 class="consider"><FontAwesome iconName="faceGood" /> Also Consider</h4>
110 <ul>
111 {otherServices.map((s: Service) => (
112 <li>
113 <a href={`/${catSlug}/${secSlug}/${slugify(s.name)}`}>{s.name}</a>
114 </li>
115 ))}
116 </ul>
117 </div>
118 )}
171 {
172 (parentSection.alternativeTo || []).length > 0 && (
173 <div class="related-group">
174 <h4 class="avoid">
175 <FontAwesome iconName="faceBad" /> Avoid
176 </h4>
177 <ul>
178 {(parentSection.alternativeTo || []).map((alt: string) => (
179 <li>
180 <span>{alt}</span>
181 </li>
182 ))}
183 </ul>
184 </div>
185 )
186 }
187 {
188 otherServices.length > 0 && (
189 <div class="related-group">
190 <h4 class="consider">
191 <FontAwesome iconName="faceGood" /> Also Consider
192 </h4>
193 <ul>
194 {otherServices.map((s: Service) => (
195 <li>
196 <a href={`/${catSlug}/${secSlug}/${slugify(s.name)}`}>
197 {s.name}
198 </a>
199 </li>
200 ))}
201 </ul>
202 </div>
203 )
204 }
119205 </div>
120206 </div>
121207 </div>
122208 <div class="highlights">
123 {highlights.map((h) => (
124 <span class={`meta-item ${h.cls}`} title={h.title}>
125 <FontAwesome iconName={h.icon} /> {h.text}
126 </span>
127 ))}
209 {
210 highlights.map((h) => (
211 <span class={`meta-item ${h.cls}`} title={h.title}>
212 <FontAwesome iconName={h.icon} /> {h.text}
213 </span>
214 ))
215 }
128216 </div>
129217</section>
130218
@@ -143,18 +231,24 @@ const highlights = [
143231 h2 {
144232 font-size: var(--text-4xl);
145233 margin: 0;
146 @media (max-width: 768px) { text-align: center; }
234 @media (max-width: 768px) {
235 text-align: center;
236 }
147237 }
148238 .url-wrap {
149239 display: flex;
150240 align-items: center;
151241 gap: var(--space-sm);
152 a { font-size: var(--text-md); }
242 a {
243 font-size: var(--text-md);
244 }
153245 .follow-with {
154246 font-style: italic;
155247 opacity: var(--opacity-muted);
156248 }
157 @media (max-width: 768px) { flex-direction: column; }
249 @media (max-width: 768px) {
250 flex-direction: column;
251 }
158252 }
159253 }
160254
@@ -170,11 +264,15 @@ const highlights = [
170264 opacity: 0.9;
171265 display: flex;
172266 gap: var(--space-sm);
173 @media (max-width: 768px) { flex-direction: column; }
267 @media (max-width: 768px) {
268 flex-direction: column;
269 }
174270 .service-icon {
175271 border-radius: var(--curve-md);
176272 margin-top: var(--space-md);
177 @media (max-width: 768px) { margin: var(--space-md) auto 0 auto; }
273 @media (max-width: 768px) {
274 margin: var(--space-md) auto 0 auto;
275 }
178276 }
179277 ul {
180278 padding-left: var(--space-md);
@@ -187,7 +285,10 @@ const highlights = [
187285 font-weight: 400;
188286 min-width: 100px;
189287 display: inline-block;
190 @media (max-width: 768px) { width: auto; display: block; }
288 @media (max-width: 768px) {
289 width: auto;
290 display: block;
291 }
191292 }
192293 }
193294 }
@@ -207,9 +308,16 @@ const highlights = [
207308 display: flex;
208309 align-items: center;
209310 gap: var(--space-xs);
210 :global(svg) { width: var(--text-sm); height: var(--text-sm); }
211 &.avoid :global(svg) { color: var(--danger); }
212 &.consider :global(svg) { color: var(--success-muted); }
311 :global(svg) {
312 width: var(--text-sm);
313 height: var(--text-sm);
314 }
315 &.avoid :global(svg) {
316 color: var(--danger);
317 }
318 &.consider :global(svg) {
319 color: var(--success-muted);
320 }
213321 }
214322 ul {
215323 list-style: none;
@@ -226,9 +334,13 @@ const highlights = [
226334 a {
227335 color: var(--foreground);
228336 text-decoration: none;
229 &:hover { color: var(--accent); }
337 &:hover {
338 color: var(--accent);
339 }
340 }
341 span {
342 opacity: var(--opacity-soft);
230343 }
231 span { opacity: var(--opacity-soft); }
232344 }
233345 }
234346 }
@@ -254,11 +366,15 @@ const highlights = [
254366 }
255367 .warning {
256368 color: var(--danger);
257 :global(svg) { color: var(--danger); }
369 :global(svg) {
370 color: var(--danger);
371 }
258372 }
259373 .great {
260374 color: var(--success-muted);
261 :global(svg) { color: var(--success-muted); }
375 :global(svg) {
376 color: var(--success-muted);
377 }
262378 }
263379 }
264380</style>
web/src/components/things/ServiceCard.svelte +12 −2
@@ -50,11 +50,21 @@
5050 </div>
5151
5252 <div class="service-links">
53 <a class="link" href={service.url} target="_blank" rel="noopener noreferrer">
53 <a
54 class="link"
55 href={service.url}
56 target="_blank"
57 rel="noopener noreferrer"
58 >
5459 <FontAwesome iconName="website" /> <span>{formatLink(service.url)}</span>
5560 </a>
5661 {#if service.github}
57 <a class="link" href={`https://github.com/${service.github}`} target="_blank" rel="noopener noreferrer">
62 <a
63 class="link"
64 href={`https://github.com/${service.github}`}
65 target="_blank"
66 rel="noopener noreferrer"
67 >
5868 <FontAwesome iconName="sourceCode" /> GitHub
5969 </a>
6070 {/if}
web/src/pages/[...listing].astro +22 −8
@@ -50,10 +50,16 @@ const makeKeyWordTag = () => {
5050 const keywords = [
5151 `open source ${parentSection.name}`,
5252 `${parentSection.name} comparison`,
53 ...(parentSection.alternativeTo || []).map((alt: string) => `${alt} alternative`),
53 ...(parentSection.alternativeTo || []).map(
54 (alt: string) => `${alt} alternative`,
55 ),
5456 ...(parentSection.services || []).map((serv: Service) => `${serv.name} vs`),
55 'private', 'ad free', 'encrypted', 'open source software',
56 'privacy respecting apps', 'free tools',
57 'private',
58 'ad free',
59 'encrypted',
60 'open source software',
61 'privacy respecting apps',
62 'free tools',
5763 ];
5864 return keywords.join(', ');
5965};
@@ -135,7 +141,9 @@ const githubData = github ? await fetchGitHubStats(github) : null;
135141const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
136142const iosData = iosApp ? await fetchIosInfo(iosApp) : null;
137143const androidData = androidApp ? await fetchAndroidInfo(androidApp) : null;
138const discordData = discordInvite ? await fetchDiscordInfo(discordInvite) : null;
144const discordData = discordInvite
145 ? await fetchDiscordInfo(discordInvite)
146 : null;
139147const redditData = subreddit ? await fetchRedditInfo(subreddit) : null;
140148const dockerData = await fetchDockerData(name);
141149const websiteData =
@@ -176,8 +184,10 @@ const findPrivacyPolicyLink = () => {
176184 if (!privacyData) return null;
177185 const docs = privacyData?.parameters?.documents;
178186 if (docs) {
179 const pp = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy'));
180 if (pp) return pp.url;
187 const pp = (docs || []).find((doc) =>
188 doc.name.toLowerCase().includes('privacy policy'),
189 );
190 if (pp) return pp.url;
181191 }
182192 return `https://tosdr.org/en/service/${tosdrId}`;
183193};
@@ -374,7 +384,9 @@ const getApiEndpoint = () => {
374384 background: var(--accent-fg);
375385 }
376386
377 p { margin: var(--space-xs) 0 var(--space-sm) 0; }
387 p {
388 margin: var(--space-xs) 0 var(--space-sm) 0;
389 }
378390
379391 h3 {
380392 font-size: var(--text-3xl);
@@ -403,7 +415,9 @@ const getApiEndpoint = () => {
403415 border-radius: var(--curve-sm);
404416 font-family: var(--font-code);
405417 font-size: var(--text-sm);
406 @media (max-width: 768px) { white-space: break-spaces; }
418 @media (max-width: 768px) {
419 white-space: break-spaces;
420 }
407421 }
408422 }
409423
web/src/pages/changelog.astro +19 −10
@@ -7,21 +7,30 @@ import { fetchChangelog } from '@utils/fetch-changelog';
77const changelog = await fetchChangelog();
88---
99
10<Layout title="Changelog | Awesome Privacy" description="A transparent log of all additions, removals, and amendments to the Awesome Privacy list.">
10<Layout
11 title="Changelog | Awesome Privacy"
12 description="A transparent log of all additions, removals, and amendments to the Awesome Privacy list."
13>
1114 <div class="changelog-page">
1215 <Main>
1316 <h2>Changelog</h2>
1417 <p>
15 All data in awesome-privacy is managed via Git,
16 so that we have a complete and transparent changelog
17 of exactly what was added when and by whom.
18 The corresponding PR for each change contains full details and justifications.
18 All data in awesome-privacy is managed via Git, so that we have a
19 complete and transparent changelog of exactly what was added when and by
20 whom. The corresponding PR for each change contains full details and
21 justifications.
1922 </p>
20 {changelog.entries.length > 0 ? (
21 <ChangelogTimeline client:load entries={changelog.entries} rejections={changelog.rejections || []} />
22 ) : (
23 <p class="fallback">Changelog data is currently unavailable.</p>
24 )}
23 {
24 changelog.entries.length > 0 ? (
25 <ChangelogTimeline
26 client:load
27 entries={changelog.entries}
28 rejections={changelog.rejections || []}
29 />
30 ) : (
31 <p class="fallback">Changelog data is currently unavailable.</p>
32 )
33 }
2534 </Main>
2635 </div>
2736</Layout>
web/src/pages/index.astro +10 −7
@@ -25,9 +25,7 @@ const description =
2525 <div class="action-card">
2626 <Search client:visible data={categories} />
2727 <span class="action-divider">or</span>
28 <a href="/all" class="browse-cta">
29 Browse All Listings &rarr;
30 </a>
28 <a href="/all" class="browse-cta"> Browse All Listings &rarr; </a>
3129 </div>
3230 <h2 class="browse-title"><a href="/all">Categories</a></h2>
3331 <ul class="categories">
@@ -115,10 +113,12 @@ const description =
115113 padding: var(--space-md) var(--space-lg);
116114 margin: var(--space-lg) auto;
117115 width: 100%;
118 box-sizing: border-box;
116 box-sizing: border-box;
119117 :global(.search-wrap) {
120118 flex: 1;
121 :global(label) { font-size: var(--text-sm); }
119 :global(label) {
120 font-size: var(--text-sm);
121 }
122122 }
123123 .action-divider {
124124 font-family: var(--font-subtitle);
@@ -148,7 +148,10 @@ const description =
148148 align-items: center;
149149 width: 95%;
150150 padding: var(--space-md);
151 .browse-cta { width: 100%; text-align: center; }
151 .browse-cta {
152 width: 100%;
153 text-align: center;
154 }
152155 }
153156 }
154157
@@ -172,7 +175,7 @@ const description =
172175 box-shadow: var(--shadow-md);
173176 padding: var(--space-md);
174177 width: 100%;
175 box-sizing: border-box;
178 box-sizing: border-box;
176179 margin: 0 auto;
177180 }
178181
web/src/styles/typography.css +2 −1
@@ -62,7 +62,8 @@
6262 font-display: swap;
6363 src:
6464 local('Libre Franklin ExtraBold'),
65 url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf') format('truetype');
65 url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf')
66 format('truetype');
6667}
6768
6869/* Lekton Font Faces */
web/src/utils/fetch-android-info.ts +4 −1
@@ -11,7 +11,10 @@ export const fetchAndroidInfo = async (
1111 try {
1212 const res = await fetch(endpoint);
1313 if (!res.ok) {
14 error('Android', `HTTP ${res.status} for ${androidPackage} (${endpoint})`);
14 error(
15 'Android',
16 `HTTP ${res.status} for ${androidPackage} (${endpoint})`,
17 );
1518 return null;
1619 }
1720 return await res.json();
web/src/utils/fetch-changelog.ts +1 −1
@@ -2,7 +2,7 @@ import { error } from './logger';
22
33const changelogUrl =
44 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 // 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/7c6ec883ae70cb8b7a88f3c0babd67f719f59f65/changelog.json';
5// 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/7c6ec883ae70cb8b7a88f3c0babd67f719f59f65/changelog.json';
66
77export interface ChangelogPr {
88 number: number;
web/src/utils/fetch-data.ts +4 −1
@@ -10,7 +10,10 @@ export const fetchData = async (): Promise<AwesomePrivacy> => {
1010 try {
1111 const res = await fetch(awesomePrivacyData);
1212 if (!res.ok) {
13 error('Data', `HTTP ${res.status} fetching awesome-privacy.yml (${awesomePrivacyData})`);
13 error(
14 'Data',
15 `HTTP ${res.status} fetching awesome-privacy.yml (${awesomePrivacyData})`,
16 );
1417 return {} as AwesomePrivacy;
1518 }
1619 const text = await res.text();
web/src/utils/fetch-privacy-policy.ts +4 −1
@@ -7,7 +7,10 @@ export const fetchTosdrPrivacy = async (
77 try {
88 const res = await fetch(endpoint);
99 if (!res.ok) {
10 error('ToS;DR', `HTTP ${res.status} for service ${serviceId} (${endpoint})`);
10 error(
11 'ToS;DR',
12 `HTTP ${res.status} for service ${serviceId} (${endpoint})`,
13 );
1114 return null;
1215 }
1316 return await res.json();
web/src/utils/fetch-repo-info.ts +19 −11
@@ -3,27 +3,33 @@ import { error } from './logger';
33const githubHeaders = (): Record<string, string> => {
44 const headers: Record<string, string> = {
55 'User-Agent': 'awesome-privacy',
6 'Accept': 'application/vnd.github.v3+json',
6 Accept: 'application/vnd.github.v3+json',
77 };
88 const token = import.meta.env.GITHUB_API_KEY;
99 if (token) headers['Authorization'] = `token ${token}`;
1010 return headers;
1111};
1212
13const fetchFromGitHub = async (github: string): Promise<GitHubStatsResponse | null> => {
13const fetchFromGitHub = async (
14 github: string,
15): Promise<GitHubStatsResponse | null> => {
1416 const base = `https://api.github.com/repos/${github}`;
1517 const headers = githubHeaders();
1618
17 const [infoRes, langsRes, tagsRes, contribRes, commitsRes] = await Promise.all([
18 fetch(base, { headers }),
19 fetch(`${base}/languages`, { headers }),
20 fetch(`${base}/tags`, { headers }),
21 fetch(`${base}/contributors`, { headers }),
22 fetch(`${base}/commits`, { headers }),
23 ]);
19 const [infoRes, langsRes, tagsRes, contribRes, commitsRes] =
20 await Promise.all([
21 fetch(base, { headers }),
22 fetch(`${base}/languages`, { headers }),
23 fetch(`${base}/tags`, { headers }),
24 fetch(`${base}/contributors`, { headers }),
25 fetch(`${base}/commits`, { headers }),
26 ]);
2427
2528 if (!infoRes.ok) {
26 error('GitHub Stats', `GitHub API returned ${infoRes.status} for ${github}`);
29 error(
30 'GitHub Stats',
31 `GitHub API returned ${infoRes.status} for ${github}`,
32 );
2733 return null;
2834 }
2935
@@ -76,7 +82,9 @@ const fetchFromGitHub = async (github: string): Promise<GitHubStatsResponse | nu
7682 };
7783};
7884
79const fetchFromWorker = async (github: string): Promise<GitHubStatsResponse | null> => {
85const fetchFromWorker = async (
86 github: string,
87): Promise<GitHubStatsResponse | null> => {
8088 const res = await fetch(`https://repo-info.as93.workers.dev/${github}`);
8189 if (!res.ok) return null;
8290 return res.json();
web/src/utils/logger.ts +7 −2
@@ -21,7 +21,10 @@ export const error = (source: string, message: string) => {
2121export const printSummary = () => {
2222 if (entries.length === 0) return;
2323
24 const grouped: Record<string, { errors: number; warnings: number; messages: string[] }> = {};
24 const grouped: Record<
25 string,
26 { errors: number; warnings: number; messages: string[] }
27 > = {};
2528 for (const entry of entries) {
2629 if (!grouped[entry.source]) {
2730 grouped[entry.source] = { errors: 0, warnings: 0, messages: [] };
@@ -33,7 +36,9 @@ export const printSummary = () => {
3336 }
3437
3538 console.log('\n───────────── Build fetch summary ──────────────');
36 for (const [source, { errors, warnings, messages }] of Object.entries(grouped)) {
39 for (const [source, { errors, warnings, messages }] of Object.entries(
40 grouped,
41 )) {
3742 const parts = [];
3843 if (errors) parts.push(`${errors} error${errors > 1 ? 's' : ''}`);
3944 if (warnings) parts.push(`${warnings} warning${warnings > 1 ? 's' : ''}`);