mirror of
https://github.com/SupertigerDev/waybar-online.git
synced 2026-03-24 16:06:37 +00:00
Initial Commit
This commit is contained in:
10
src/main.ts
Normal file
10
src/main.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createRootPage } from "./routes/root";
|
||||
import { createWaybarPage } from "./routes/waybar";
|
||||
|
||||
if (location.pathname === "/waybar") {
|
||||
createWaybarPage();
|
||||
}
|
||||
|
||||
if (location.pathname === "/") {
|
||||
createRootPage();
|
||||
}
|
||||
5
src/routes/root.ts
Normal file
5
src/routes/root.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
const appElement = document.getElementById("app")!;
|
||||
|
||||
export const createRootPage = async () => {
|
||||
appElement.innerHTML = "test";
|
||||
};
|
||||
5
src/routes/waybar.ts
Normal file
5
src/routes/waybar.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
const appElement = document.getElementById("app")!;
|
||||
|
||||
export const createWaybarPage = async () => {
|
||||
appElement.innerHTML = "test";
|
||||
};
|
||||
1
src/vite-env.d.ts
vendored
Normal file
1
src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user