Update Logos and Data Fetch
This commit is contained in:
+4
-4
@@ -6,14 +6,14 @@
|
|||||||
"name": "bitcamp-2026",
|
"name": "bitcamp-2026",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@auth0/auth0-spa-js": "^2.19.0",
|
"@auth0/auth0-spa-js": "^2.19.0",
|
||||||
"chart.js": "^4.4.0",
|
"chart.js": "^4.5.1",
|
||||||
"chartjs-adapter-date-fns": "^3.0.0",
|
"chartjs-adapter-date-fns": "^3.0.0",
|
||||||
"date-fns": "^2.30.0",
|
"date-fns": "^2.30.0",
|
||||||
"maplibre-gl": "^5.0.1",
|
"maplibre-gl": "^5.22.0",
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify/svelte": "^5.2.1",
|
"@iconify/svelte": "^5.2.1",
|
||||||
"@sveltejs/adapter-node": "^5.2.10",
|
"@sveltejs/adapter-node": "^5.5.4",
|
||||||
"@sveltejs/adapter-static": "^3.0.10",
|
"@sveltejs/adapter-static": "^3.0.10",
|
||||||
"@sveltejs/kit": "^2.57.1",
|
"@sveltejs/kit": "^2.57.1",
|
||||||
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"@tailwindcss/vite": "^4.2.2",
|
"@tailwindcss/vite": "^4.2.2",
|
||||||
"@types/node": "^25.6.0",
|
"@types/node": "^25.6.0",
|
||||||
"@vite-pwa/sveltekit": "^0.6.6",
|
"@vite-pwa/sveltekit": "^0.6.8",
|
||||||
"svelte": "^5.55.3",
|
"svelte": "^5.55.3",
|
||||||
"svelte-check": "^4.4.6",
|
"svelte-check": "^4.4.6",
|
||||||
"tailwindcss": "^4.2.2",
|
"tailwindcss": "^4.2.2",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -15,7 +15,7 @@
|
|||||||
async function fetchStudyRoomData() {
|
async function fetchStudyRoomData() {
|
||||||
try {
|
try {
|
||||||
const res = await fetch(
|
const res = await fetch(
|
||||||
"http://localhost:8000/api/study-rooms/history",
|
"/api/study-rooms/history",
|
||||||
);
|
);
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { themeState } from '$lib/states/theme.svelte';
|
import { themeState } from '$lib/states/theme.svelte';
|
||||||
import logoDark from '../../../logo/HushMapLogo_dark.png';
|
import logoDark from '$lib/assets/logo/HushMapLogo_dark.png';
|
||||||
import logoLight from '../../../logo/HushMapLogo_light.png';
|
import logoLight from '$lib/assets/logo/HushMapLogo_light.png';
|
||||||
|
|
||||||
let expanded = $state(false);
|
let expanded = $state(false);
|
||||||
let collapseTimer: ReturnType<typeof setTimeout>;
|
let collapseTimer: ReturnType<typeof setTimeout>;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class MapState {
|
|||||||
this.historyLoading = true;
|
this.historyLoading = true;
|
||||||
try {
|
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) {
|
if (res.ok) {
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
this.historyData = json.data;
|
this.historyData = json.data;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import './layout.css';
|
import './layout.css';
|
||||||
import favicon from '$lib/assets/favicon.svg';
|
import favicon from '$lib/assets/logo/logo.png';
|
||||||
import Icon from '@iconify/svelte';
|
import Icon from '@iconify/svelte';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import VoiceButton from '$lib/components/VoiceButton.svelte';
|
import VoiceButton from '$lib/components/VoiceButton.svelte';
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
formData.append('file', blob, 'frame.jpg');
|
formData.append('file', blob, 'frame.jpg');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('http://localhost:8000/api/vision/room-status', {
|
const response = await fetch('/api/vision/room-status', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user