Update Logos and Data Fetch
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 127 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -15,7 +15,7 @@
|
||||
async function fetchStudyRoomData() {
|
||||
try {
|
||||
const res = await fetch(
|
||||
"http://localhost:8000/api/study-rooms/history",
|
||||
"/api/study-rooms/history",
|
||||
);
|
||||
if (res.ok) {
|
||||
const json = await res.json();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { themeState } from '$lib/states/theme.svelte';
|
||||
import logoDark from '../../../logo/HushMapLogo_dark.png';
|
||||
import logoLight from '../../../logo/HushMapLogo_light.png';
|
||||
import logoDark from '$lib/assets/logo/HushMapLogo_dark.png';
|
||||
import logoLight from '$lib/assets/logo/HushMapLogo_light.png';
|
||||
|
||||
let expanded = $state(false);
|
||||
let collapseTimer: ReturnType<typeof setTimeout>;
|
||||
|
||||
@@ -42,7 +42,7 @@ class MapState {
|
||||
this.historyLoading = true;
|
||||
try {
|
||||
|
||||
const res = await fetch('http://127.0.0.1:8000/api/study-rooms/history');
|
||||
const res = await fetch('/api/study-rooms/history');
|
||||
if (res.ok) {
|
||||
const json = await res.json();
|
||||
this.historyData = json.data;
|
||||
|
||||
Reference in New Issue
Block a user