pinafore/routes/_components/Layout.html

26 lines
485 B
HTML
Raw Normal View History

2018-01-28 01:34:08 +00:00
<:Window bind:online />
2018-02-03 18:57:45 +00:00
<Nav :page />
2018-01-06 23:51:25 +00:00
<div class="container">
<main>
<slot></slot>
</main>
</div>
2018-01-06 23:51:25 +00:00
<script>
import Nav from './Nav.html';
2018-01-25 16:23:14 +00:00
import VirtualListContainer from './virtualList/VirtualListContainer.html'
2018-01-28 21:09:39 +00:00
import { store } from '../_store/store'
2018-01-06 23:51:25 +00:00
export default {
2018-01-28 01:34:08 +00:00
oncreate() {
this.observe('online', online => {
this.store.set({online: online})
})
},
2018-01-06 23:51:25 +00:00
components: {
2018-01-23 05:30:14 +00:00
VirtualListContainer,
2018-01-06 23:51:25 +00:00
Nav
},
store: () => store
2018-01-23 05:30:14 +00:00
}
2018-01-06 23:51:25 +00:00
</script>