2018-05-25 22:02:50 +02:00
|
|
|
<template>
|
2018-05-29 19:46:20 +02:00
|
|
|
<section class="ecosystem">
|
|
|
|
<aside class="ecosystem__submodules">
|
2018-06-27 23:35:27 +02:00
|
|
|
<div class="ecosystem__submodule chainquery" v-on:click="openSubmodule('chainquery')">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h3 class="ecosystem__submodule__title">chainquery</h3>
|
2018-06-19 00:37:07 +02:00
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
<div class="ecosystem__submodule__description">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h4 class="ecosystem__submodule__description__title">Overview</h4>
|
|
|
|
<p>The model of Chainquery at its foundation consist of the fundamental data types found in the block chain. This information is then expounded on with additional columns and tables that make querying the data much easier.</p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title __connection">Connection to...</h4>
|
|
|
|
<p class="__connection-details"></p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title">Source</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="https://github.com/lbryio/chainquery" title="chainquery source code">https://github.com/lbryio/chainquery</a></li>
|
|
|
|
</ul>
|
2018-06-13 22:47:02 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
<div class="ecosystem__submodule wallet" v-on:click="openSubmodule('wallet')">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h3 class="ecosystem__submodule__title">wallet server</h3>
|
2018-06-19 00:37:07 +02:00
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
<div class="ecosystem__submodule__description">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h4 class="ecosystem__submodule__description__title">Overview</h4>
|
|
|
|
<p>The LBRY app is a graphical browser for the decentralized content marketplace provided by the <a href="https://lbry.io" title="">LBRY</a> protocol. It is essentially the <a href="https://github.com/lbryio/lbry" title="">lbry daemon</a> bundled with an UI using <a href="http://electron.atom.io" title="">Electron</a>.</p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title __connection">Connection to...</h4>
|
|
|
|
<p class="__connection-details"></p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title">Source</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="https://github.com/lbryio/lbry-app" title="lbry-app source code">https://github.com/lbryio/lbry-app</a></li>
|
|
|
|
</ul>
|
2018-06-13 22:47:02 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
|
|
|
</aside>
|
2018-05-25 22:02:50 +02:00
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
<section class="ecosystem__modules">
|
2018-05-30 06:44:44 +02:00
|
|
|
<div class="ecosystem__module lbrycrd">
|
2018-05-29 23:01:06 +02:00
|
|
|
<h2 class="__title">
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('lbrycrd')">
|
|
|
|
Blockchain
|
|
|
|
<em>The blockchain is "lbrycrd"</em>
|
|
|
|
</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
|
|
|
|
<div>
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('applications')">Applications</span>
|
|
|
|
<span v-on:click="open('lbry')">Data Network</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
</div>
|
|
|
|
</h2>
|
2018-05-25 22:02:50 +02:00
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
<div class="ecosystem__module__details">
|
2018-06-13 01:28:30 +02:00
|
|
|
<p>
|
|
|
|
<em>
|
|
|
|
This section assumes "blockchain" already means something to you. If you're totally new, the key problem solved by blockhain is the ability for distributed, disparate entities to all agree on a rivalrous state of affairs (such as account balances or metadata associated with a URL).
|
|
|
|
</em>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
The LBRY blockchain is a public and uses proof-of-work consensus. It is the foundation of the protocol stack.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
The most salient feature of the LBRY blockchain is the association of a normalized character string with up to 8KB of metadata.
|
2018-06-13 22:47:02 +02:00
|
|
|
This string of characters forms a LBRY URL, e.g.
|
2018-06-13 01:28:30 +02:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
The LBRY blockchain contains two parallel [[Merkle Tree]]s, one for transactions (ala Bitcoin) and one for storing LBRY URLs and metadata.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Conventionally, this metadata contains information about the content, such as the title and creator, the price (if any), and a unique signature allowing the actual content to be fetched from the data network, the next level in the LBRY stack.
|
|
|
|
</p>
|
|
|
|
<h3>Additional Resources</h3>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
See the [Whitepaper]
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
See [[Naming]] for learning more about LBRY URLs and how they work.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
See [[Identities]] for learning how the LBRY blockchain handles publisher identities.
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
<span class="__close" v-on:click="close()">×</span>
|
2018-05-28 18:40:05 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
|
2018-05-29 23:01:06 +02:00
|
|
|
<div class="ecosystem__module lbry">
|
|
|
|
<h2 class="__title">
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('lbry')">
|
|
|
|
Data Network
|
|
|
|
<em>The data network is "lbry"</em>
|
|
|
|
</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
|
|
|
|
<div>
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('applications')">Applications</span>
|
|
|
|
<span v-on:click="open('lbrycrd')">Blockchain</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
</div>
|
|
|
|
</h2>
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
<div class="ecosystem__module__details">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<strong class="__title">lbryschema</strong>
|
|
|
|
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
|
|
<li>Himenaeos purus facilisi litora suspendisse molestie, cubilia maecenas faucibus vivamus.</li>
|
|
|
|
<li>Nisi sociosqu interdum augue condimentum vivamus, ac leo feugiat.</li>
|
|
|
|
<li>Justo eu neque aenean nec sagittis, cubilia magnis arcu.</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<strong class="__title">lbryumx</strong>
|
|
|
|
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
|
|
<li>Himenaeos purus facilisi litora suspendisse molestie, cubilia maecenas faucibus vivamus.</li>
|
|
|
|
<li>Nisi sociosqu interdum augue condimentum vivamus, ac leo feugiat.</li>
|
|
|
|
<li>Justo eu neque aenean nec sagittis, cubilia magnis arcu.</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-06-14 23:30:13 +02:00
|
|
|
|
|
|
|
<h3>Additional Resources</h3>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/lbryschema" title="lbryschema source code">lbryschema</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/lbryumx" title="lbryumx source code">lbryumx</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
<span class="__close" v-on:click="close()">×</span>
|
2018-05-28 18:40:05 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
|
2018-05-29 23:01:06 +02:00
|
|
|
<div class="ecosystem__module applications">
|
|
|
|
<h2 class="__title">
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('applications')">
|
|
|
|
Applications
|
|
|
|
<em>LBRY has a lot of applications</em>
|
|
|
|
</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
|
|
|
|
<div>
|
2018-05-30 06:44:44 +02:00
|
|
|
<span v-on:click="open('lbrycrd')">Blockchain</span>
|
|
|
|
<span v-on:click="open('lbry')">Data Network</span>
|
2018-05-29 23:01:06 +02:00
|
|
|
</div>
|
|
|
|
</h2>
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
<div class="ecosystem__module__details">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<strong class="__title">Desktop</strong>
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<strong class="__title">Mobile</strong>
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<strong class="__title">spee.ch</strong>
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
2018-06-14 23:30:13 +02:00
|
|
|
<strong class="__title">lighthouse</strong>
|
2018-05-29 19:46:20 +02:00
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<strong class="__title">chainquery</strong>
|
|
|
|
<p>Vel nisi hendrerit id tristique congue tortor nisl luctus, vulputate sem ridiculus inceptos et at torquent feugiat, mus cursus lobortis aenean senectus posuere odio. Imperdiet nascetur dapibus eget convallis ante donec iaculis dictumst mi est, venenatis quisque integer etiam justo id aliquet non diam semper erat, blandit quis lectus ac aptent magna cubilia augue laoreet. Mollis luctus pharetra nisl auctor potenti magna penatibus cras, justo lobortis iaculis porta a vel habitasse vulputate, taciti sociis arcu facilisis duis orci aliquam.</p>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-06-14 23:30:13 +02:00
|
|
|
|
|
|
|
<h3>Additional Resources</h3>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/lbry-app" title="source code for LBRY's desktop apps">Linux, macOS, and Windows apps</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/lbry-android" title="LBRY Android app source code">Android app</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/spee.ch" title="spee.ch source code">spee.ch</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/lighthouse" title="lighthouse source code">lighthouse</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lbryio/chainquery" title="chainquery source code">chainquery</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
<span class="__close" v-on:click="close()">×</span>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<aside class="ecosystem__submodules">
|
2018-06-27 23:35:27 +02:00
|
|
|
<div class="ecosystem__submodule lighthouse" v-on:click="openSubmodule('lighthouse')">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h3 class="ecosystem__submodule__title">lighthouse</h3>
|
2018-06-19 00:37:07 +02:00
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
<div class="ecosystem__submodule__description">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h4 class="ecosystem__submodule__description__title">Overview</h4>
|
|
|
|
<p>Lighthouse is a lightning-fast advanced search engine API for publications on the lbrycrd with autocomplete capabilities.</p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title __connection">Connection to...</h4>
|
|
|
|
<p class="__connection-details"></p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title">Source</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="https://github.com/lbryio/lighthouse" title="lighthouse source code">https://github.com/lbryio/lighthouse</a></li>
|
|
|
|
</ul>
|
2018-06-13 22:47:02 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
</div>
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
<div class="ecosystem__submodule reflector" v-on:click="openSubmodule('reflector')">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h3 class="ecosystem__submodule__title">reflector</h3>
|
2018-06-19 00:37:07 +02:00
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
<div class="ecosystem__submodule__description">
|
2018-06-28 23:40:09 +02:00
|
|
|
<h4 class="ecosystem__submodule__description__title">Overview</h4>
|
|
|
|
<p>A reflector cluster to accept LBRY content for hosting en masse, rehost the content, and make money on data fees (TODO). This code includes Go implementations of the LBRY peer protocol, reflector protocol, and DHT.</p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title __connection">Connection to...</h4>
|
|
|
|
<p class="__connection-details"></p>
|
|
|
|
|
|
|
|
<h4 class="ecosystem__submodule__description__title">Source</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="https://github.com/lbryio/reflector.go" title="reflector source code">https://github.com/lbryio/reflector.go</a></li>
|
|
|
|
</ul>
|
2018-06-13 22:47:02 +02:00
|
|
|
</div>
|
2018-05-28 18:40:05 +02:00
|
|
|
</div>
|
2018-05-29 19:46:20 +02:00
|
|
|
</aside>
|
2018-05-25 22:02:50 +02:00
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
2018-05-28 18:40:05 +02:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
open (ecosystemComponentClassName) {
|
2018-05-29 19:46:20 +02:00
|
|
|
document.querySelectorAll(".ecosystem__module").forEach(n => n.classList.remove("active"));
|
2018-05-28 18:40:05 +02:00
|
|
|
document.getElementsByClassName(ecosystemComponentClassName)[0].classList.add("active");
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
switch (true) {
|
2018-05-30 06:44:44 +02:00
|
|
|
case (ecosystemComponentClassName === "lbrycrd"):
|
2018-06-15 03:11:56 +02:00
|
|
|
resetClasses();
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("chainquery")[0].className += " on red";
|
|
|
|
document.getElementsByClassName("lighthouse")[0].className += " on red";
|
|
|
|
document.getElementsByClassName("wallet")[0].className += " on red";
|
2018-05-29 19:46:20 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-15 03:11:56 +02:00
|
|
|
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
case (ecosystemComponentClassName === "lbry"):
|
2018-06-15 03:11:56 +02:00
|
|
|
resetClasses();
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("reflector")[0].className += " on blue";
|
|
|
|
document.getElementsByClassName("wallet")[0].className += " on blue";
|
2018-05-29 19:46:20 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-15 03:11:56 +02:00
|
|
|
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
case (ecosystemComponentClassName === "applications"):
|
2018-06-15 03:11:56 +02:00
|
|
|
resetClasses();
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("chainquery")[0].className += " on green";
|
|
|
|
document.getElementsByClassName("lighthouse")[0].className += " on green";
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
},
|
2018-06-28 23:40:09 +02:00
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
openSubmodule (ecosystemComponentClassName) {
|
|
|
|
if (!document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("on")) return; // do not activate unless submodule is `.on`
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
document.querySelectorAll(".ecosystem__submodule").forEach(n => {
|
|
|
|
n.classList.remove("active");
|
|
|
|
n.classList.remove("on");
|
|
|
|
});
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
document.querySelectorAll(".ecosystem__module").forEach(n => n.classList.remove("active"));
|
|
|
|
|
|
|
|
switch (true) {
|
|
|
|
case (ecosystemComponentClassName === "chainquery"):
|
2018-06-28 23:40:09 +02:00
|
|
|
setSubmoduleConnectionTitle(ecosystemComponentClassName);
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("green")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of LBRY.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("red")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of the LBRY blockchain.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("ecosystem")[0].className += " expand-left";
|
2018-06-28 23:40:09 +02:00
|
|
|
document.getElementsByClassName(ecosystemComponentClassName)[0].className += " active";
|
2018-06-27 23:35:27 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
case (ecosystemComponentClassName === "wallet"):
|
2018-06-28 23:40:09 +02:00
|
|
|
setSubmoduleConnectionTitle(ecosystemComponentClassName);
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("blue")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of the LBRY data network.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("red")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of the LBRY blockchain.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("ecosystem")[0].className += " expand-left";
|
2018-06-28 23:40:09 +02:00
|
|
|
document.getElementsByClassName(ecosystemComponentClassName)[0].className += " active";
|
2018-06-27 23:35:27 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
case (ecosystemComponentClassName === "lighthouse"):
|
2018-06-28 23:40:09 +02:00
|
|
|
setSubmoduleConnectionTitle(ecosystemComponentClassName);
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("green")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of LBRY.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("red")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of the LBRY blockchain.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("ecosystem")[0].className += " expand-right";
|
2018-06-28 23:40:09 +02:00
|
|
|
document.getElementsByClassName(ecosystemComponentClassName)[0].className += " active";
|
2018-06-27 23:35:27 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
case (ecosystemComponentClassName === "reflector"):
|
2018-06-28 23:40:09 +02:00
|
|
|
setSubmoduleConnectionTitle(ecosystemComponentClassName);
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(ecosystemComponentClassName)[0].classList.contains("blue")) {
|
|
|
|
document.querySelector(`.${ecosystemComponentClassName} .__connection-details`).innerHTML = `
|
|
|
|
<strong>${ecosystemComponentClassName}</strong> is an application built on top of the LBRY data network.
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
document.getElementsByClassName("ecosystem")[0].className += " expand-right";
|
2018-06-28 23:40:09 +02:00
|
|
|
document.getElementsByClassName(ecosystemComponentClassName)[0].className += " active";
|
2018-05-29 19:46:20 +02:00
|
|
|
break;
|
|
|
|
|
2018-06-15 03:11:56 +02:00
|
|
|
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2018-05-30 06:44:44 +02:00
|
|
|
},
|
2018-06-28 23:40:09 +02:00
|
|
|
|
2018-05-30 06:44:44 +02:00
|
|
|
close () {
|
2018-06-15 03:11:56 +02:00
|
|
|
resetClasses();
|
2018-05-30 06:44:44 +02:00
|
|
|
document.querySelectorAll(".ecosystem__module").forEach(n => n.classList.remove("active"));
|
2018-06-15 03:11:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
function setSubmoduleConnectionTitle(submoduleClass) {
|
|
|
|
if (document.getElementsByClassName(submoduleClass)[0].classList.contains("blue")) {
|
|
|
|
document.querySelector(`.${submoduleClass} .__connection`).innerHTML = "Connection to Data Network";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(submoduleClass)[0].classList.contains("green")) {
|
|
|
|
document.querySelector(`.${submoduleClass} .__connection`).innerHTML = "Connection to Applications";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.getElementsByClassName(submoduleClass)[0].classList.contains("red")) {
|
|
|
|
document.querySelector(`.${submoduleClass} .__connection`).innerHTML = "Connection to Blockchain";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-15 03:11:56 +02:00
|
|
|
function resetClasses() {
|
|
|
|
document.querySelectorAll(".ecosystem__submodule").forEach(n => {
|
|
|
|
n.classList.remove("active");
|
|
|
|
n.classList.remove("blue");
|
|
|
|
n.classList.remove("green");
|
2018-06-27 23:35:27 +02:00
|
|
|
n.classList.remove("on");
|
2018-06-15 03:11:56 +02:00
|
|
|
n.classList.remove("red");
|
|
|
|
});
|
2018-06-27 23:35:27 +02:00
|
|
|
|
|
|
|
document.getElementsByClassName("ecosystem")[0].classList.remove("expand-left");
|
|
|
|
document.getElementsByClassName("ecosystem")[0].classList.remove("expand-right");
|
2018-05-28 18:40:05 +02:00
|
|
|
}
|
|
|
|
</script>
|
2018-05-25 22:02:50 +02:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "../scss/init/colors";
|
|
|
|
@import "../scss/init/mixins";
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
.ecosystem {
|
|
|
|
margin-bottom: 2rem; padding-top: 1rem;
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
font-size: 1rem;
|
|
|
|
grid-gap: 1rem;
|
2018-06-27 23:35:27 +02:00
|
|
|
|
|
|
|
&:not(.expand-left):not(.expand-right) {
|
|
|
|
grid-template-columns: 144px auto 144px;
|
|
|
|
|
|
|
|
.ecosystem__submodules {
|
|
|
|
padding-top: 2.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.expand-left {
|
|
|
|
grid-template-columns: 50% auto;
|
|
|
|
|
|
|
|
.ecosystem__submodules:last-of-type,
|
|
|
|
.ecosystem__submodule:not(.active) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.expand-right {
|
|
|
|
grid-template-columns: auto 50%;
|
|
|
|
|
|
|
|
.ecosystem__submodules:first-of-type,
|
|
|
|
.ecosystem__submodule:not(.active) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ecosystem__module {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2018-05-29 23:01:06 +02:00
|
|
|
|
|
|
|
> div {
|
|
|
|
float: right;
|
|
|
|
font-size: 1rem;
|
|
|
|
padding-top: 1.95rem;
|
2018-05-30 06:44:44 +02:00
|
|
|
padding-right: 3rem;
|
2018-05-29 23:01:06 +02:00
|
|
|
position: relative;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@include font-serif;
|
2018-05-30 06:44:44 +02:00
|
|
|
top: 0.9rem; right: 3rem;
|
2018-05-29 23:01:06 +02:00
|
|
|
|
|
|
|
content: "explore";
|
|
|
|
font-size: 80%;
|
|
|
|
font-style: italic;
|
|
|
|
opacity: 0.3;
|
|
|
|
position: absolute;
|
|
|
|
text-align: right;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-right: 1rem;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
top: 0; right: -0.7rem;
|
|
|
|
|
|
|
|
color: rgba($gray, 0.3);
|
|
|
|
content: "/";
|
|
|
|
font-style: italic;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
h3 {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
&::before {
|
|
|
|
width: 100%; height: 100%;
|
|
|
|
top: 0; left: 0;
|
|
|
|
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2018-05-29 21:13:34 +02:00
|
|
|
z-index: 0;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.active) {
|
|
|
|
@include center;
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.5rem;
|
2018-05-29 23:01:06 +02:00
|
|
|
text-align: center;
|
|
|
|
|
2018-05-30 00:22:18 +02:00
|
|
|
> span {
|
|
|
|
cursor: pointer;
|
2018-05-30 06:44:44 +02:00
|
|
|
display: block;
|
|
|
|
padding: 1.9rem 2rem;
|
|
|
|
|
|
|
|
em {
|
|
|
|
display: block;
|
|
|
|
font-size: 70%;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2018-05-30 00:22:18 +02:00
|
|
|
}
|
|
|
|
|
2018-05-29 23:01:06 +02:00
|
|
|
> div {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.ecosystem__module__details {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
.__close {
|
|
|
|
top: 2rem;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
z-index: 0;
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2018-05-30 06:44:44 +02:00
|
|
|
padding: 1.9rem 2rem;
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
h2 {
|
|
|
|
font-size: 3rem;
|
|
|
|
margin-bottom: 1rem;
|
2018-05-30 00:22:18 +02:00
|
|
|
|
|
|
|
> span {
|
|
|
|
cursor: default;
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
em {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-30 00:22:18 +02:00
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
.__close {
|
|
|
|
top: 2.35rem;
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-30 06:44:44 +02:00
|
|
|
&.lbrycrd {
|
2018-05-29 19:46:20 +02:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
&:not(.active)::before {
|
|
|
|
background-color: $red;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
&.active::before {
|
|
|
|
border: 2px solid $red;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.lbry {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
&:not(.active) {
|
|
|
|
&::before {
|
|
|
|
background-color: $blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&::after {
|
2018-05-30 06:44:44 +02:00
|
|
|
bottom: 1rem; left: 0;
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
content: "◼︎◼︎";
|
|
|
|
font-size: 0.5rem;
|
|
|
|
letter-spacing: 0.1rem;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2018-05-30 06:44:44 +02:00
|
|
|
z-index: -1;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
&.active::before {
|
|
|
|
border: 2px solid $blue;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.applications {
|
|
|
|
&:not(.active) {
|
|
|
|
&::before {
|
|
|
|
background-color: $green;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&::after {
|
2018-05-30 06:44:44 +02:00
|
|
|
bottom: 1rem; left: 0;
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
content: "◼︎◼︎◼︎◼︎◼︎";
|
|
|
|
font-size: 0.5rem;
|
|
|
|
letter-spacing: 0.1rem;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
&.active::before {
|
|
|
|
border: 2px solid $green;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ecosystem__module__piece {
|
|
|
|
background-color: $white;
|
|
|
|
left: 10%;
|
|
|
|
line-height: 2;
|
|
|
|
position: relative;
|
|
|
|
width: 80%;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ecosystem__submodule {
|
2018-06-15 03:11:56 +02:00
|
|
|
border-width: 2px;
|
2018-05-29 23:01:06 +02:00
|
|
|
cursor: default;
|
2018-06-13 22:47:02 +02:00
|
|
|
position: relative;
|
2018-06-27 23:35:27 +02:00
|
|
|
transition: border-color 0.2s;
|
2018-06-13 22:47:02 +02:00
|
|
|
z-index: 2;
|
2018-05-29 19:46:20 +02:00
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
&:not(.on):not(.active) {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
2018-05-29 19:46:20 +02:00
|
|
|
&:not(.active) {
|
2018-06-27 23:35:27 +02:00
|
|
|
@include center;
|
|
|
|
width: 144px; height: 144px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
border-style: dashed;
|
|
|
|
|
|
|
|
.ecosystem__submodule__description {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
2018-06-13 22:47:02 +02:00
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
&.active {
|
2018-06-28 23:40:09 +02:00
|
|
|
width: 100%; height: 100%; max-height: 383px;
|
|
|
|
|
2018-06-27 23:35:27 +02:00
|
|
|
border-style: solid;
|
2018-06-28 23:40:09 +02:00
|
|
|
overflow-y: auto;
|
|
|
|
padding: 2rem;
|
2018-06-27 23:35:27 +02:00
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
.ecosystem__submodule__title {
|
|
|
|
margin-bottom: 1rem;
|
2018-06-13 22:47:02 +02:00
|
|
|
}
|
|
|
|
}
|
2018-06-19 00:37:07 +02:00
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
/*
|
2018-06-13 22:47:02 +02:00
|
|
|
&.chainquery,
|
|
|
|
&.wallet {
|
|
|
|
}
|
|
|
|
|
|
|
|
&.lighthouse,
|
|
|
|
&.reflector {
|
|
|
|
}
|
2018-06-28 23:40:09 +02:00
|
|
|
*/
|
2018-06-15 03:11:56 +02:00
|
|
|
|
|
|
|
&:not(.blue):not(.green):not(.red) {
|
2018-06-27 23:35:27 +02:00
|
|
|
border-color: rgba($gray, 0.3);
|
2018-06-15 03:11:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.blue,
|
|
|
|
&.green,
|
|
|
|
&.red {
|
2018-06-27 23:35:27 +02:00
|
|
|
&:not(.active) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-06-15 03:11:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.blue {
|
2018-06-28 23:40:09 +02:00
|
|
|
background-color: rgba($blue, 0.025);
|
2018-06-15 03:11:56 +02:00
|
|
|
border-color: $blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.green {
|
2018-06-28 23:40:09 +02:00
|
|
|
background-color: rgba($green, 0.025);
|
2018-06-15 03:11:56 +02:00
|
|
|
border-color: $green;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.red {
|
2018-06-28 23:40:09 +02:00
|
|
|
background-color: rgba($red, 0.025);
|
2018-06-15 03:11:56 +02:00
|
|
|
border-color: $red;
|
|
|
|
}
|
2018-06-13 22:47:02 +02:00
|
|
|
}
|
|
|
|
|
2018-06-28 23:40:09 +02:00
|
|
|
.ecosystem__submodule__title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2018-06-13 22:47:02 +02:00
|
|
|
.ecosystem__submodule__description {
|
2018-06-28 23:40:09 +02:00
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ecosystem__submodule__description__title {
|
|
|
|
color: rgba($black, 0.3);
|
|
|
|
letter-spacing: 0.1rem;
|
|
|
|
text-transform: uppercase;
|
2018-05-29 19:46:20 +02:00
|
|
|
}
|
2018-05-30 06:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.__close {
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 2rem;
|
|
|
|
position: absolute;
|
|
|
|
right: 2rem;
|
|
|
|
transition: all 0.2s;
|
|
|
|
}
|
2018-05-25 22:02:50 +02:00
|
|
|
</style>
|