This commit is contained in:
boyska 2022-08-20 20:07:15 +02:00
parent 807de742a0
commit c569423e65
4 changed files with 5 additions and 2 deletions

View file

@ -7,6 +7,7 @@
<div id="app">
</div>
<script type="module" src="/static/js/spa.js"></script>
</body>
<script type="importmap">
{ "imports": {
@ -19,6 +20,7 @@
border: 1px solid #ccc;
margin: 1em 0;
padding: 1em 0.2em;
font-size: 8vw;
}
</style>

View file

@ -39,4 +39,3 @@ var app = createApp({
})
app.use(store)
app.mount('#app')

View file

@ -1,5 +1,5 @@
const template = `
<div class="counter">Fila {{queue_desc}}: {{counter}}
<div class="counter">Fila {{queue_desc}}: <div class="counter-number">{{counter}}</div>
<div v-if="loggedIn"><button @click="callNext">Prossimo</button></div></div>
`

View file

@ -1,7 +1,9 @@
import { defineAsyncComponent } from '/static/js/vue.esm-browser.min.js'
const template = `
<div class="counters">
<CounterController v-for="q in queues" :queue_num="q"></CounterController>
</div>
`
export default {