2018-08-29 01:57:18 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// P A C K A G E
|
|
|
|
|
2018-08-29 18:58:55 +02:00
|
|
|
import asyncHtml from "choo-async/html";
|
2018-10-03 23:13:31 +02:00
|
|
|
import { require as local } from "app-root-path";
|
2018-08-29 01:57:18 +02:00
|
|
|
|
|
|
|
// V A R I A B L E S
|
|
|
|
|
2018-10-03 23:13:31 +02:00
|
|
|
const footer = local("app/components/footer").default;
|
|
|
|
const navigation = local("app/components/navigation").default;
|
2018-08-29 01:57:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// E X P O R T
|
|
|
|
|
2018-10-03 23:13:31 +02:00
|
|
|
export default children => (state, emit) => asyncHtml`
|
2018-08-29 18:58:55 +02:00
|
|
|
<main>
|
|
|
|
<noscript>
|
|
|
|
<p>LBRY is quite fancy and relies on a bit of JavaScript to do these fancy things.</p>
|
|
|
|
<p>Please enable it, if you can.</p>
|
|
|
|
</noscript>
|
|
|
|
|
2018-10-03 23:13:31 +02:00
|
|
|
${navigation(state.href)}
|
2018-08-29 18:58:55 +02:00
|
|
|
<aside class="flashes" id="flash-container"></aside>
|
|
|
|
${children(state, emit)}
|
|
|
|
${footer(state, emit)}
|
|
|
|
</main>
|
|
|
|
`;
|