🏗️」 wip: kinda working friends menu

This commit is contained in:
2025-10-19 14:58:05 +02:00
12 changed files with 586 additions and 194 deletions

View File

@ -1,6 +1,6 @@
import { oneko } from "./oneko.ts";
import Profile from "./views/Profile.ts";
let profile_view = new Profile;
import ProfileMenu from "./views/ProfileMenu.ts";
let profile_view = new ProfileMenu;
export async function isLogged(): Promise<boolean> {
let uuid_req = await fetch("http://localhost:3001/me", {
@ -40,7 +40,9 @@ const routes = [
{ path: "/login", view: () => import("./views/LoginPage.ts") },
{ path: "/register", view: () => import("./views/RegisterPage.ts") },
{ path: "/friends", view: () => import("./views/Friends.ts") }
{ path: "/friends", view: () => import("./views/Friends.ts") },
{ path: "/profile", view: () => import("./views/Profile.ts") },
{ path: "/settings", view: () => import("./views/Settings.ts") },
];
const router = async () => {
@ -97,7 +99,8 @@ document.addEventListener("DOMContentLoaded", () => {
oneko();
function updateClock() {
function updateClock()
{
const days = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
const months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
const clock = document.getElementById("taskbar-clock");
@ -113,3 +116,5 @@ function updateClock() {
setInterval(updateClock, 5000);
updateClock();
oneko();