mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-10-18 18:07:53 +00:00
chore(build): update dist
This commit is contained in:
committed by
github-actions[bot]
parent
80139d559b
commit
3bdb660b8a
Vendored
+9
-2
@@ -85,22 +85,27 @@
|
|||||||
this.error = '';
|
this.error = '';
|
||||||
this.ok = false;
|
this.ok = false;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
const token = () => this.$el.querySelector('[name=cf-turnstile-response]')?.value;
|
||||||
|
for (let i = 0; i < 50 && !token(); i++) await new Promise((r) => setTimeout(r, 100));
|
||||||
try {
|
try {
|
||||||
const res = await fetch('https://newsletter.planetrenox.com/api/sub', {
|
const res = await fetch('https://newsletter.planetrenox.com/api/sub', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ pool: 'apophenia', email: this.email })
|
body: JSON.stringify({ pool: 'apophenia', email: this.email, token: token() || '' })
|
||||||
});
|
});
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (res.ok && data.ok) {
|
if (res.ok && data.ok) {
|
||||||
this.ok = true;
|
this.ok = true;
|
||||||
this.email = '';
|
this.email = '';
|
||||||
} else {
|
} else {
|
||||||
this.error = data.error === 'invalid email' ? 'That email doesn\'t look right.' : 'Something went wrong. Please try again.';
|
this.error = data.error === 'invalid email' ? 'That email doesn\'t look right.'
|
||||||
|
: data.error === 'captcha failed' ? 'Couldn\'t verify you\'re human. Please try again.'
|
||||||
|
: 'Something went wrong. Please try again.';
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.error = 'Network error. Please try again.';
|
this.error = 'Network error. Please try again.';
|
||||||
}
|
}
|
||||||
|
window.turnstile?.reset();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
@@ -126,6 +131,7 @@
|
|||||||
<i data-lucide="arrow-right" class="h-4 w-4"></i>
|
<i data-lucide="arrow-right" class="h-4 w-4"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="cf-turnstile mt-3" data-sitekey="0x4AAAAAAFG4HWETOcDDQ5vg" data-appearance="interaction-only" data-size="flexible"></div>
|
||||||
|
|
||||||
<p x-show="ok" x-cloak class="mt-4 inline-flex items-center gap-2 text-sm font-medium text-emerald-700">
|
<p x-show="ok" x-cloak class="mt-4 inline-flex items-center gap-2 text-sm font-medium text-emerald-700">
|
||||||
<i data-lucide="check-circle" class="h-4 w-4"></i>
|
<i data-lucide="check-circle" class="h-4 w-4"></i>
|
||||||
@@ -138,6 +144,7 @@
|
|||||||
|
|
||||||
<p class="mt-4 text-xs text-zinc-500">Unsubscribe anytime. We never share your email.</p>
|
<p class="mt-4 text-xs text-zinc-500">Unsubscribe anytime. We never share your email.</p>
|
||||||
</form>
|
</form>
|
||||||
|
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<link>https://apophenia.news/</link>
|
<link>https://apophenia.news/</link>
|
||||||
<description>Signals, anomalies, civilization trajectories, and deep pattern analysis.</description>
|
<description>Signals, anomalies, civilization trajectories, and deep pattern analysis.</description>
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<lastBuildDate>Wed, 23 Sep 2026 20:33:19 GMT</lastBuildDate>
|
<lastBuildDate>Mon, 28 Sep 2026 14:08:39 GMT</lastBuildDate>
|
||||||
<item>
|
<item>
|
||||||
<title>My Theory of Everything</title>
|
<title>My Theory of Everything</title>
|
||||||
<link>https://apophenia.news/my-theory-of-everything/</link>
|
<link>https://apophenia.news/my-theory-of-everything/</link>
|
||||||
|
|||||||
Vendored
+4
-4
@@ -2,19 +2,19 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://apophenia.news/</loc>
|
<loc>https://apophenia.news/</loc>
|
||||||
<lastmod>2026-09-23</lastmod>
|
<lastmod>2026-09-28</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://apophenia.news/newsletter/</loc>
|
<loc>https://apophenia.news/newsletter/</loc>
|
||||||
<lastmod>2026-09-23</lastmod>
|
<lastmod>2026-09-28</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://apophenia.news/write/</loc>
|
<loc>https://apophenia.news/write/</loc>
|
||||||
<lastmod>2026-09-23</lastmod>
|
<lastmod>2026-09-28</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://apophenia.news/author/renox/</loc>
|
<loc>https://apophenia.news/author/renox/</loc>
|
||||||
<lastmod>2026-09-23</lastmod>
|
<lastmod>2026-09-28</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://apophenia.news/my-theory-of-everything/</loc>
|
<loc>https://apophenia.news/my-theory-of-everything/</loc>
|
||||||
|
|||||||
Reference in New Issue
Block a user