1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-02 14:56:48 +01:00

34 lines
672 B
HTML
Raw Normal View History

2018-01-27 17:34:08 -08:00
<:Window bind:online />
2018-02-03 10:57:45 -08:00
<Nav :page />
2018-01-06 15:51:25 -08:00
2018-01-24 09:47:31 -08:00
{{#if virtual}}
<VirtualListContainer realm="{{$currentInstance + '/' + virtualRealm}}">
2018-01-24 09:47:31 -08:00
<main>
<slot></slot>
</main>
</VirtualListContainer>
{{else}}
<div class="container">
<main>
<slot></slot>
</main>
</div>
{{/if}}
2018-01-06 15:51:25 -08:00
<script>
import Nav from './Nav.html';
2018-01-25 08:23:14 -08:00
import VirtualListContainer from './virtualList/VirtualListContainer.html'
2018-01-28 13:09:39 -08:00
import { store } from '../_store/store'
2018-01-06 15:51:25 -08:00
export default {
2018-01-27 17:34:08 -08:00
oncreate() {
this.observe('online', online => {
this.store.set({online: online})
})
},
2018-01-06 15:51:25 -08:00
components: {
2018-01-22 21:30:14 -08:00
VirtualListContainer,
2018-01-06 15:51:25 -08:00
Nav
},
store: () => store
2018-01-22 21:30:14 -08:00
}
2018-01-06 15:51:25 -08:00
</script>