mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-22 16:13:00 +05:30
Run formatter
This commit is contained in:
parent
ebe120deca
commit
4871b83850
@ -11,3 +11,6 @@ node_modules
|
|||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
|
# Ignore NixOS flake lock
|
||||||
|
flake.lock
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
@ -5,7 +5,13 @@ import type { Provider } from "@auth/core/providers";
|
|||||||
import type { Profile } from "@auth/core/types";
|
import type { Profile } from "@auth/core/types";
|
||||||
import { redirect, type Handle } from "@sveltejs/kit";
|
import { redirect, type Handle } from "@sveltejs/kit";
|
||||||
import { sequence } from "@sveltejs/kit/hooks";
|
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 axios from "axios";
|
||||||
import { Agent } from "https";
|
import { Agent } from "https";
|
||||||
|
|
||||||
@ -74,10 +80,10 @@ export const fetchGhost = async (action: string, additional?: string) => {
|
|||||||
|
|
||||||
const updateMap = async () => {
|
const updateMap = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await axios(
|
const res = await axios(env.KUMA_URL, {
|
||||||
env.KUMA_URL,
|
httpsAgent: agent,
|
||||||
{ httpsAgent: agent, timeout: 10000 }
|
timeout: 10000
|
||||||
);
|
});
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
announcements.set(res.data);
|
announcements.set(res.data);
|
||||||
@ -89,10 +95,10 @@ const updateMap = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await axios(
|
const res = await axios("https://publapi.p.projectsegfau.lt/users", {
|
||||||
"https://publapi.p.projectsegfau.lt/users",
|
httpsAgent: agent,
|
||||||
{ httpsAgent: agent, timeout: 10000 }
|
timeout: 10000
|
||||||
);
|
});
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
pubnixUsers.set(res.data);
|
pubnixUsers.set(res.data);
|
||||||
@ -142,4 +148,4 @@ const updateMap = async () => {
|
|||||||
|
|
||||||
updateMap();
|
updateMap();
|
||||||
|
|
||||||
setInterval(updateMap, 30000);
|
setInterval(updateMap, 30000);
|
||||||
|
@ -10,5 +10,5 @@ export const load = (async () => {
|
|||||||
return {
|
return {
|
||||||
users: get(pubnixUsers),
|
users: get(pubnixUsers),
|
||||||
...meta
|
...meta
|
||||||
}
|
};
|
||||||
}) satisfies PageServerLoad;
|
}) satisfies PageServerLoad;
|
||||||
|
@ -10,5 +10,5 @@ export const load = (async () => {
|
|||||||
return {
|
return {
|
||||||
users: get(pubnixUsers),
|
users: get(pubnixUsers),
|
||||||
...meta
|
...meta
|
||||||
}
|
};
|
||||||
}) satisfies PageServerLoad;
|
}) satisfies PageServerLoad;
|
||||||
|
@ -8,4 +8,4 @@ export const blogPosts: Writable<{}> = writable({});
|
|||||||
|
|
||||||
export const blogTags: Writable<{}> = writable({});
|
export const blogTags: Writable<{}> = writable({});
|
||||||
|
|
||||||
export const blogAuthors: Writable<{}> = writable({});
|
export const blogAuthors: Writable<{}> = writable({});
|
||||||
|
@ -22,7 +22,12 @@ export default defineConfig({
|
|||||||
|
|
||||||
transformers: [transformerVariantGroup(), transformerDirectives()],
|
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: {
|
theme: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
|
Loading…
Reference in New Issue
Block a user