feat: more blocks, view other boards, taller buttons
This commit is contained in:
parent
482b2f69fd
commit
c4d32433a7
|
@ -15,18 +15,18 @@ services:
|
|||
# timeout: 10s
|
||||
# retries: 5
|
||||
|
||||
queueb:
|
||||
image: maxwellmichael/paradisbend:QB-Latest
|
||||
container_name: queueb
|
||||
restart: always
|
||||
ports:
|
||||
- "3014:3014"
|
||||
networks:
|
||||
- scylla-network
|
||||
environment:
|
||||
- SCYLLA_HOST=scylla
|
||||
depends_on:
|
||||
- scylla
|
||||
# queueb:
|
||||
# image: maxwellmichael/paradisbend:QB-Latest
|
||||
# container_name: queueb
|
||||
# restart: always
|
||||
# ports:
|
||||
# - "3014:3014"
|
||||
# networks:
|
||||
# - scylla-network
|
||||
# environment:
|
||||
# - SCYLLA_HOST=scylla
|
||||
# depends_on:
|
||||
# - scylla
|
||||
# scylla:
|
||||
# condition: service_healthy
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@ async function sydb(client) {
|
|||
"CREATE TABLE IF NOT EXISTS qb.scores (id UUID, username TEXT, email TEXT, day INT, count INT, score INT, cube TEXT, PRIMARY KEY (day, score, username, id));";
|
||||
let blocks =
|
||||
"CREATE TABLE IF NOT EXISTS qb.blocks (day INT PRIMARY KEY, blocks list<int>);";
|
||||
let drop = "DROP TABLE qb.blocks;"
|
||||
//let drop = "DROP TABLE qb.blocks;"
|
||||
|
||||
let queries = [keyspace, drop, users, blocks, scores];
|
||||
let queries = [keyspace, users, blocks, scores];
|
||||
|
||||
async function executeQueries() {
|
||||
for (const query of queries) {
|
||||
|
|
|
@ -503,8 +503,17 @@
|
|||
<div class="score">Count</div>
|
||||
<div class="score">Score</div>
|
||||
</div>
|
||||
{#each scoreboard.prev as sc}
|
||||
<div class='scoreTile'>
|
||||
{#each scoreboard.prev as sc, i}
|
||||
<div class='scoreTile'
|
||||
tabindex="0"
|
||||
role="button"
|
||||
style="cursor: pointer;"
|
||||
on:click={()=>onShare(i,'prev')}
|
||||
on:keydown={(e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
onShare(i,'prev');
|
||||
}
|
||||
}}>
|
||||
<div class="username">{sc.username}</div>
|
||||
<div class="score">{sc.count}</div>
|
||||
<div class="score">{sc.score}</div>
|
||||
|
|
Loading…
Reference in New Issue