Compare commits

...

2 Commits

Author SHA1 Message Date
bearfm 42d153af57
blog index loads after the DOM does now. 2024-03-11 21:09:21 -07:00
bearfm 0aff74a5bc
i forgor 2 2024-03-11 21:06:04 -07:00
6 changed files with 74 additions and 2 deletions

51
dist/blog/minimalMessaging.html vendored Normal file
View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-site-verification" content="bjvkxJW39IrGsgIIZidzUziC9B0c5Ej0ncQX2Btyv60" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="/css/style.css"> -->
<script src="/css.js" type=""></script>
<title>Why Keeping Your Applications Minimal Counts. -
bear.oops.wtf</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
<!-- https://bear.oops.wtf/git/bearfm/site -->
<!-- GPL-3.0-only or GPL-3.0-or-later -->
<body>
<header>
<nav>
<a href="/"><i class="material-icons">home</i> Home</a>
<a href="/blog"><i class="material-icons">book</i>Blog</a>
</nav>
</header>
<div class="header-container">
<h1 class="title">BEAR.OOPS.WTF</h1>
</div>
<div class="center-box">
<p class="meta">Page created: March 11, 2024</p>
<p class="meta">Page last modified: March 11, 2024</p>
</div>
<article class="article">
<h1 id="introduction">Introduction</h1>
<p>When a man is stuck with cell service for a while (and
abysmally slow LTE at that), he starts to realize how bloated
the web is. When slow dialup was common, people actually made
their websites lightweight because it was the only option,
otherwise the site wouldnt load for people trying to visit
it.</p>
<h1 id="the-solution">The Solution</h1>
<p>The solution? Normalize web apps and websites that are easy
on bandwidth (and your system for that matter). The cozy web is
full of these amazing sites, but the dark forest not so
much.</p>
<p>Might need to write another chatting protocol…</p>
</article>
</body>
</html>

2
dist/blogIndex.js vendored
View File

@ -1 +1 @@
({38:function(){var e=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function c(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))},t=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}};function n(n){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/(\d{4}-\d{2}-\d{2})/g," $1").replace(/\b\w/g,(function(e){return e.toUpperCase()}))];case 1:return[2,e.sent()]}}))}))}!function(){e(this,void 0,void 0,(function(){var r=this;return t(this,(function(i){return document.getElementById("blogIndex")&&document.getElementById("latestPost")?(document.getElementById("blogIndex").innerHTML="",document.getElementById("latestPost").innerHTML="",fetch("/blogindex.txt").then((function(e){return e.text()})).then((function(i){var o=i.split("\n").filter((function(e){return""!==e.trim()})).map((function(e){var t=e.split(" ");return{timestamp:parseInt(t[0]),uri:t[1]||""}}));o.sort((function(e,t){return t.timestamp-e.timestamp}));var a=document.createElement("ul");o.forEach((function(i){return e(r,void 0,void 0,(function(){var e,r,o,c,l,u;return t(this,(function(t){switch(t.label){case 0:return i.uri?(e=i.uri.split("/").pop().replace(".html",""),o="".concat,[4,n(e)]):[3,2];case 1:r=o.apply("",[t.sent()]),"index"!==e.toLowerCase()&&(c=document.createElement("li"),l=document.createElement("a"),u=document.createElement("p"),c.style.whiteSpace="nowrap",u.style.gap="10px",u.textContent="".concat(new Intl.DateTimeFormat(navigator.language).format(new Date(1e3*i.timestamp)),""),l.href=i.uri.substring(i.uri.indexOf("/blog/")),l.textContent=r,l.style.display="inline-block",u.style.display="inline-block",c.appendChild(u),c.appendChild(l),a.appendChild(c)),t.label=2;case 2:return[2]}}))}))})),document.getElementById("blogIndex").appendChild(a)})).catch((function(e){console.error("Error fetching and processing blog index:",e)})),[2]):[2]}))}))}()}})[38]();
({38:function(){var e=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))},t=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}};function n(n){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/(\d{4}-\d{2}-\d{2})/g," $1").replace(/\b\w/g,(function(e){return e.toUpperCase()}))];case 1:return[2,e.sent()]}}))}))}document.addEventListener("DOMContentLoaded",(function(){return e(this,void 0,void 0,(function(){var r=this;return t(this,(function(o){return document.getElementById("blogIndex")&&document.getElementById("latestPost")?(document.getElementById("blogIndex").innerHTML="",document.getElementById("latestPost").innerHTML="",fetch("/blogindex.txt").then((function(e){return e.text()})).then((function(o){var i=o.split("\n").filter((function(e){return""!==e.trim()})).map((function(e){var t=e.split(" ");return{timestamp:parseInt(t[0]),uri:t[1]||""}}));i.sort((function(e,t){return t.timestamp-e.timestamp}));var a=document.createElement("ul");i.forEach((function(o){return e(r,void 0,void 0,(function(){var e,r,i,c,l,u;return t(this,(function(t){switch(t.label){case 0:return o.uri?(e=o.uri.split("/").pop().replace(".html",""),i="".concat,[4,n(e)]):[3,2];case 1:r=i.apply("",[t.sent()]),"index"!==e.toLowerCase()&&(c=document.createElement("li"),l=document.createElement("a"),u=document.createElement("p"),c.style.whiteSpace="nowrap",u.style.gap="10px",u.textContent="".concat(new Intl.DateTimeFormat(navigator.language).format(new Date(1e3*o.timestamp)),""),l.href=o.uri.substring(o.uri.indexOf("/blog/")),l.textContent=r,l.style.display="inline-block",u.style.display="inline-block",c.appendChild(u),c.appendChild(l),a.appendChild(c)),t.label=2;case 2:return[2]}}))}))})),document.getElementById("blogIndex").appendChild(a)})).catch((function(e){console.error("Error fetching and processing blog index:",e)})),[2]):[2]}))}))}))}})[38]();

1
dist/blogindex.txt vendored
View File

@ -1,2 +1,3 @@
1708193771 https://bear.oops.wtf/blog/firstPost.html
1710212630 https://bear.oops.wtf/blog/index.html
1710216340 https://bear.oops.wtf/blog/minimalMessaging.html

1
dist/sitemap.xml vendored
View File

@ -3,6 +3,7 @@
<url><loc>https://bear.oops.wtf/418.html</loc></url>
<url><loc>https://bear.oops.wtf/blog/firstPost.html</loc></url>
<url><loc>https://bear.oops.wtf/blog/index.html</loc></url>
<url><loc>https://bear.oops.wtf/blog/minimalMessaging.html</loc></url>
<url><loc>https://bear.oops.wtf/coolLinks.html</loc></url>
<url><loc>https://bear.oops.wtf/git/index.html</loc></url>
<url><loc>https://bear.oops.wtf/index.html</loc></url>

View File

@ -61,4 +61,4 @@ async function blogIndex(): Promise<void> {
});
}
blogIndex();
document.addEventListener('DOMContentLoaded', blogIndex);

View File

@ -0,0 +1,19 @@
---
title: Why Keeping Your Applications Minimal Counts. - bear.oops.wtf
author: BearFM
date: March 11, 2024
modified: March 11, 2024
header:
---
# Introduction
When a man is stuck with cell service for a while (and abysmally slow LTE at that), he starts to realize how bloated the web is.
When slow dialup was common, people actually made their websites lightweight because it was the only option, otherwise the site wouldn't load for people trying to visit it.
# The Solution
The solution? Normalize web apps and websites that are easy on bandwidth (and your system for that matter).
The cozy web is full of these amazing sites, but the dark forest not so much.
Might need to write another chatting protocol...