mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
「🏗️」 wip: kinda working friends menu
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user