|
@@ -25,6 +25,7 @@
|
|
<li class:is-active={active === Einstellungen} on:click={() => active=Einstellungen}>Einstellungen</li>
|
|
<li class:is-active={active === Einstellungen} on:click={() => active=Einstellungen}>Einstellungen</li>
|
|
<li class:is-active={active === Infos} on:click={() => active=Infos}>Infos</li>
|
|
<li class:is-active={active === Infos} on:click={() => active=Infos}>Infos</li>
|
|
<li class:is-active={active === Teams} on:click={() => active=Teams}>Teams</li>
|
|
<li class:is-active={active === Teams} on:click={() => active=Teams}>Teams</li>
|
|
|
|
+ <!-- <li class:is-active={active === Reservierung} on:click={() => active=Reservierung}>iPads</li> -->
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<svelte:component this={active} schueler={schueler_filter} {privat} {einstellungen} {knexConfig}/>
|
|
<svelte:component this={active} schueler={schueler_filter} {privat} {einstellungen} {knexConfig}/>
|
|
@@ -68,8 +69,9 @@
|
|
import Einstellungen from './components/einstellungen.svelte'
|
|
import Einstellungen from './components/einstellungen.svelte'
|
|
import Infos from './components/infos.svelte'
|
|
import Infos from './components/infos.svelte'
|
|
import Teams from './components/teams.svelte'
|
|
import Teams from './components/teams.svelte'
|
|
|
|
+ // import Reservierung from './components/reservierung.svelte'
|
|
export let knexConfig, privat
|
|
export let knexConfig, privat
|
|
- let active = ProjektwocheDrucksache
|
|
|
|
|
|
+ let active = Teams
|
|
let suche = ''
|
|
let suche = ''
|
|
|
|
|
|
const { Pool } = R('pg')
|
|
const { Pool } = R('pg')
|
|
@@ -83,7 +85,7 @@
|
|
einstellungen || postgres.query(`INSERT INTO einstellungen DEFAULT VALUES RETURNING *`)
|
|
einstellungen || postgres.query(`INSERT INTO einstellungen DEFAULT VALUES RETURNING *`)
|
|
.then(res => einstellungen = res.rows[0])
|
|
.then(res => einstellungen = res.rows[0])
|
|
})
|
|
})
|
|
- postgres.query(`SELECT schueler.*,
|
|
|
|
|
|
+ postgres.query(`SELECT schueler.*, AGE(schueler.geburtsdatum),
|
|
wlan.voucher,
|
|
wlan.voucher,
|
|
wahlen.*
|
|
wahlen.*
|
|
FROM schueler
|
|
FROM schueler
|
|
@@ -91,6 +93,7 @@
|
|
LEFT JOIN wahlen ON schueler.id = wahlen.schueler_id`)
|
|
LEFT JOIN wahlen ON schueler.id = wahlen.schueler_id`)
|
|
.then(resp => {
|
|
.then(resp => {
|
|
schueler_entfernt = resp.rows
|
|
schueler_entfernt = resp.rows
|
|
|
|
+ console.log(resp.rows)
|
|
})
|
|
})
|
|
const mysql_connection = mysql.createConnection(knexConfig.connection)
|
|
const mysql_connection = mysql.createConnection(knexConfig.connection)
|
|
mysql_connection.connect()
|
|
mysql_connection.connect()
|