Run formatter

This commit is contained in:
supercolbat 2023-08-05 14:15:14 -05:00
parent ebe120deca
commit 4871b83850
No known key found for this signature in database
GPG Key ID: 4C9B319E75DD8072
7 changed files with 29 additions and 15 deletions

View File

@ -11,3 +11,6 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
# Ignore NixOS flake lock
flake.lock

View File

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />

View File

@ -5,7 +5,13 @@ import type { Provider } from "@auth/core/providers";
import type { Profile } from "@auth/core/types";
import { redirect, type Handle } from "@sveltejs/kit";
import { sequence } from "@sveltejs/kit/hooks";
import { announcements, pubnixUsers, blogPosts, blogTags, blogAuthors } from "./stores";
import {
announcements,
pubnixUsers,
blogPosts,
blogTags,
blogAuthors
} from "./stores";
import axios from "axios";
import { Agent } from "https";
@ -74,10 +80,10 @@ export const fetchGhost = async (action: string, additional?: string) => {
const updateMap = async () => {
try {
const res = await axios(
env.KUMA_URL,
{ httpsAgent: agent, timeout: 10000 }
);
const res = await axios(env.KUMA_URL, {
httpsAgent: agent,
timeout: 10000
});
if (res.status === 200) {
announcements.set(res.data);
@ -89,10 +95,10 @@ const updateMap = async () => {
}
try {
const res = await axios(
"https://publapi.p.projectsegfau.lt/users",
{ httpsAgent: agent, timeout: 10000 }
);
const res = await axios("https://publapi.p.projectsegfau.lt/users", {
httpsAgent: agent,
timeout: 10000
});
if (res.status === 200) {
pubnixUsers.set(res.data);

View File

@ -10,5 +10,5 @@ export const load = (async () => {
return {
users: get(pubnixUsers),
...meta
}
};
}) satisfies PageServerLoad;

View File

@ -10,5 +10,5 @@ export const load = (async () => {
return {
users: get(pubnixUsers),
...meta
}
};
}) satisfies PageServerLoad;

View File

@ -22,7 +22,12 @@ export default defineConfig({
transformers: [transformerVariantGroup(), transformerDirectives()],
safelist: ["i-ic:outline-dark-mode", "i-ic:outline-light-mode", "i-ic:baseline-toggle-on", "i-ic:baseline-toggle-off"],
safelist: [
"i-ic:outline-dark-mode",
"i-ic:outline-light-mode",
"i-ic:baseline-toggle-on",
"i-ic:baseline-toggle-off"
],
theme: {
fontFamily: {