I don't know what I did anymore

This commit is contained in:
Laurent
2024-10-22 11:15:06 +02:00
parent c8df868626
commit f200cbfd1d
5 changed files with 13 additions and 4 deletions

View File

@@ -35,6 +35,7 @@
},
"type": "module",
"dependencies": {
"express": "^4.21.1",
"jquery": "^3.7.1"
}
}

11
server.js Normal file
View File

@@ -0,0 +1,11 @@
import express from 'express';
import { handler } from './build/handler.js';
const app = express();
const port = 80;
app.use(handler);
app.listen(port, '0.0.0.0', () => {
console.log(`Server is running on http://localhost:${port}`);
});

View File

@@ -4,6 +4,4 @@
</script>
<button on:click={() => {scoreStore.reset()}}>Clear leaderboard</button>
<LeaderBoard bind:scores={$scoreStore}></LeaderBoard>

View File

@@ -102,7 +102,6 @@
border-radius: 10px;
background-color: #f1ecec;
border: 2px solid #A1674A;
background-size: 1800% 1800%;
box-shadow: 0 0 10px #343232;
}

View File

@@ -6,4 +6,4 @@ export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
});
});