Skip to content

Commit d4134a1

Browse files
committed
refactor client file structure
1 parent 7b3e4bd commit d4134a1

23 files changed

Lines changed: 65 additions & 72 deletions
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@use './common.scss';
2-
@use './header.scss';
1+
@use '../common.scss';
32

43
main {
54
text-align: center;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import ensure_token from "./ensure_token.js";
2-
import Cookies from "./cookie.js";
3-
import API from "./api.js";
1+
import ensure_token from "../scripts/ensure_token.js";
2+
import API from "../scripts/api.js";
43

54
ensure_token();
65

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88

99
<body>
10-
{{ insert("header") }}
10+
{{ insert("header/header") }}
1111
<main>
1212
<h1>Account Management</h1>
1313
<div id="account-info">
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@use './common.scss';
2-
@use './header.scss';
3-
1+
@use '../common.scss';
42

53
#server-list {
64
display: flex;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import ensure_token from "./ensure_token.js";
2-
import API from "./api.js";
3-
import { AccessLevel, ServerInfo } from "./types.js";
1+
import ensure_token from "../scripts/ensure_token.js";
2+
import API from "../scripts/api.js";
3+
import { AccessLevel, ServerInfo } from "../scripts/types.js";
44

55
ensure_token();
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88

99
<body>
10-
{{ insert("header") }}
10+
{{ insert("header/header") }}
1111
<main>
1212
<div id="server-list">
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use './common.scss';
1+
@use '../common.scss';
22

33
// === Dashboard Header ===
44
.dashboard-header {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<link rel="stylesheet" href="header.css" />
12
<header class="dashboard-header">
23
<button id="dashboard" onclick="window.location.href='dashboard.html'" {{"disabled" if page.name == "dashboard" else ""}}>
34
Dashboard
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import API from "./api.js";
2-
import Cookies from "./cookie.js";
1+
import API from "../scripts/api.js";
2+
import Cookies from "../scripts/cookie.js";
33

44
const disconnectBtn = document.getElementById('disconnect') as HTMLButtonElement;
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
{{ insert("metadata") }}
6-
<link rel="stylesheet" href="login.css" />
6+
<link rel="stylesheet" href="./login.css" />
77
</head>
88

99
<body>

0 commit comments

Comments
 (0)