diff --git a/.prettierignore b/.prettierignore index 3897265..7645bbe 100644 --- a/.prettierignore +++ b/.prettierignore @@ -11,3 +11,6 @@ node_modules pnpm-lock.yaml package-lock.json yarn.lock + +# Ignore NixOS flake lock +flake.lock diff --git a/src/app.html b/src/app.html index c972643..8b1f564 100644 --- a/src/app.html +++ b/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/src/hooks.server.ts b/src/hooks.server.ts index ea5d35a..3b9591a 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -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); @@ -142,4 +148,4 @@ const updateMap = async () => { updateMap(); -setInterval(updateMap, 30000); \ No newline at end of file +setInterval(updateMap, 30000); diff --git a/src/routes/pubnix/+page.server.ts b/src/routes/pubnix/+page.server.ts index f48f33c..040ed68 100644 --- a/src/routes/pubnix/+page.server.ts +++ b/src/routes/pubnix/+page.server.ts @@ -10,5 +10,5 @@ export const load = (async () => { return { users: get(pubnixUsers), ...meta - } + }; }) satisfies PageServerLoad; diff --git a/src/routes/pubnix/users/+page.server.ts b/src/routes/pubnix/users/+page.server.ts index 3960332..1219059 100644 --- a/src/routes/pubnix/users/+page.server.ts +++ b/src/routes/pubnix/users/+page.server.ts @@ -10,5 +10,5 @@ export const load = (async () => { return { users: get(pubnixUsers), ...meta - } + }; }) satisfies PageServerLoad; diff --git a/src/stores.ts b/src/stores.ts index d11523e..0ede79a 100644 --- a/src/stores.ts +++ b/src/stores.ts @@ -8,4 +8,4 @@ export const blogPosts: Writable<{}> = writable({}); export const blogTags: Writable<{}> = writable({}); -export const blogAuthors: Writable<{}> = writable({}); \ No newline at end of file +export const blogAuthors: Writable<{}> = writable({}); diff --git a/uno.config.ts b/uno.config.ts index b7eb682..0cf2e27 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -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: {