2018-01-28 02:34:08 +01:00
|
|
|
<:Window bind:online />
|
2018-01-22 05:02:32 +01:00
|
|
|
<Nav :page :dynamicPage :dynamicHref :dynamicIcon :dynamicLabel/>
|
2018-01-07 00:51:25 +01:00
|
|
|
|
2018-01-24 18:47:31 +01:00
|
|
|
{{#if virtual}}
|
2018-01-27 19:46:52 +01:00
|
|
|
<VirtualListContainer realm="{{$currentInstance + '/' + virtualRealm}}">
|
2018-01-24 18:47:31 +01:00
|
|
|
<main>
|
|
|
|
<slot></slot>
|
|
|
|
</main>
|
|
|
|
</VirtualListContainer>
|
|
|
|
{{else}}
|
|
|
|
<div class="container">
|
|
|
|
<main>
|
|
|
|
<slot></slot>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-01-07 00:51:25 +01:00
|
|
|
<script>
|
|
|
|
import Nav from './Nav.html';
|
2018-01-25 17:23:14 +01:00
|
|
|
import VirtualListContainer from './virtualList/VirtualListContainer.html'
|
2018-01-27 19:46:52 +01:00
|
|
|
import { store } from '../_utils/store'
|
2018-01-07 00:51:25 +01:00
|
|
|
|
|
|
|
export default {
|
2018-01-28 02:34:08 +01:00
|
|
|
oncreate() {
|
|
|
|
this.observe('online', online => {
|
|
|
|
this.store.set({online: online})
|
|
|
|
})
|
|
|
|
},
|
2018-01-07 00:51:25 +01:00
|
|
|
components: {
|
2018-01-23 06:30:14 +01:00
|
|
|
VirtualListContainer,
|
2018-01-07 00:51:25 +01:00
|
|
|
Nav
|
2018-01-27 19:46:52 +01:00
|
|
|
},
|
|
|
|
store: () => store
|
2018-01-23 06:30:14 +01:00
|
|
|
}
|
2018-01-07 00:51:25 +01:00
|
|
|
</script>
|