format everything
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Soph :3 2024-07-27 17:19:19 +03:00
parent 4aca2a7720
commit b260c88345
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
4 changed files with 28 additions and 23 deletions

View file

@ -1,4 +1,4 @@
import Nano, { Component, Fragment, Suspense } from "nano-jsx"
import Nano, { Component } from "nano-jsx"
import { BlogPage } from "./blog_page";
import { Giscus } from "./giscus";
import { useState } from "nano-jsx/esm/hooks/useState.js";

View file

@ -30,9 +30,14 @@ class Particle {
this.y = y;
this.id = Math.random();
this.angle = 2 * Math.PI * this.id;
this.color = "hsl(" + 360 * Math.random() + ',' +
(25 + 70 * Math.random()) + '%,' +
(85 + 10 * Math.random()) + '%)';
this.color =
"hsl(" +
360 * Math.random() +
"," +
(25 + 70 * Math.random()) +
"%," +
(85 + 10 * Math.random()) +
"%)";
this.style = Math.random() < 0.5 ? "-" : Math.random() > 0.5 ? "+" : "*";
}
@ -51,7 +56,7 @@ class Particle {
renderSurfaceContext.restore();
if (renderSurface.height < this.y) {
particles = particles.filter(z=>z.id !== this.id)
particles = particles.filter((z) => z.id !== this.id);
}
}
}

View file

@ -33,7 +33,7 @@ interface LatestStatus {
const parser = new DOMParser();
const doc = parser.parseFromString(await req.text(), "text/xml");
const latestEntryRaw = doc.querySelector("feed > entry");
if (!latestEntryRaw) throw new Error("Missing latest entry!");;
if (!latestEntryRaw) throw new Error("Missing latest entry!");
const latestEntry: LatestStatus = {
username: doc.querySelector("feed > author > name")?.textContent!,