2018-08-29 01:57:18 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-30 21:46:22 +01:00
|
|
|
// I M P O R T S
|
2018-08-29 01:57:18 +02:00
|
|
|
|
|
|
|
import html from "choo/html";
|
|
|
|
import { require as local } from "app-root-path";
|
|
|
|
|
2018-10-10 19:56:35 +02:00
|
|
|
// U T I L S
|
2018-08-29 01:57:18 +02:00
|
|
|
|
2018-11-30 21:46:22 +01:00
|
|
|
import editLink from "./edit-link";
|
|
|
|
import emailSubscribe from "./email-subscribe";
|
|
|
|
|
2018-08-29 01:57:18 +02:00
|
|
|
const config = local("/config");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// E X P O R T
|
|
|
|
|
2018-10-03 21:14:38 +02:00
|
|
|
export default state => {
|
2019-01-24 20:09:52 +01:00
|
|
|
if (state.hideFooter) {
|
|
|
|
return "";
|
|
|
|
}
|
2018-08-29 01:57:18 +02:00
|
|
|
return html`
|
|
|
|
<section class="email-subscribe-container">
|
|
|
|
${emailSubscribe()}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="inner-wrap">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-10-04 18:07:11 +02:00
|
|
|
<a href="//${process.env.NODE_ENV === "development" ? "localhost:8000" : "lbry.io"}" title="Rediscover content freedom">← LBRY.io</a> |
|
2018-08-29 01:57:18 +02:00
|
|
|
${editLink(state.href)}
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li><a href="/overview" title="LBRY overview">Overview</a></li>
|
2018-10-01 05:58:33 +02:00
|
|
|
<li><a href="/playground" title="Play with LBRY">Playground</a></li>
|
2018-08-29 01:57:18 +02:00
|
|
|
<li><a href="/resources" title="View LBRY resources">Resources</a></li>
|
2018-10-01 05:58:33 +02:00
|
|
|
<li><a href="/community" title="Hang with LBRY">Community</a></li>
|
2018-08-29 01:57:18 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="/assets/scripts/app.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");
|
|
|
|
|
|
|
|
ga("create", "${config.ga}", "auto");
|
|
|
|
ga("send", "pageview");
|
|
|
|
</script>
|
|
|
|
`;
|
2018-10-03 21:14:38 +02:00
|
|
|
};
|