Skip to content

Commit

Permalink
Merge #24: Fix index page not being prerendered
Browse files Browse the repository at this point in the history
b60a76d chore: auto fix lint errors (Jose Celano)
8274bdb fix: [#4] index page not being preendered (Jose Celano)

Pull request description:

  It fixes this error building the app:

  ```
  node:internal/event_target:1100
    process.nextTick(() => { throw err; });
                             ^
  Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app:
    - /(pages)/index

  See https://kit.svelte.dev/docs/page-options#prerender-troubleshooting for info on how to solve this
      at prerender (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:505:9)
      at async MessagePort.<anonymous> (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/utils/fork.js:22:16)
  Emitted 'error' event on Worker instance at:
      at [kOnErrorMessage] (node:internal/worker:326:10)
      at [kOnMessage] (node:internal/worker:337:37)
      at MessagePort.<anonymous> (node:internal/worker:232:57)
      at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20)
      at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)

  Node.js v20.12.2
  ```

ACKs for top commit:
  josecelano:
    ACK b60a76d

Tree-SHA512: e5fad8cbc061d7be72df3905f6fb19e0ae6cb62886003b326e6febf5a5b72596ad5b8da8f282405b9e1a487664791079a6215e56b2e879db9780fa1bbf86c55d
  • Loading branch information
josecelano committed Sep 24, 2024
2 parents 2ab71a6 + b60a76d commit aa942ce
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 94 deletions.
8 changes: 5 additions & 3 deletions src/lib/components/organisms/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
<div class="links-wrapper">
<ul class="links">
<li>
<a href="/index" class={currentPath === '/index' ? 'active' : ''} on:click={toggleMenu}
>Index</a
<a
href="/torrent-index"
class={currentPath === '/torrent-index' ? 'active' : ''}
on:click={toggleMenu}>Index</a
>
</li>
<li>
<a
href="/tracker"
href="/torrent-tracker"
class={currentPath === '/tracker' ? 'active' : ''}
on:click={toggleMenu}>Tracker</a
>
Expand Down
14 changes: 6 additions & 8 deletions src/lib/components/singletons/WhyContribute.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
<div class="contribute-container">
<h2>Why Contribute to Our Project?</h2>
<p>
Our project is designed to push the boundaries of decentralized
technology, providing a robust, open-source BitTorrent tracker and
index. By contributing, you’re helping build tools that empower
communities, enable file-sharing freedom, and promote digital
collaboration. Your input helps shape the future of the platform,
ensuring it remains free, transparent, and accessible to all.
Together, we can create a platform that upholds the values of
privacy, security, and decentralized infrastructure.
Our project is designed to push the boundaries of decentralized technology, providing a
robust, open-source BitTorrent tracker and index. By contributing, you’re helping build tools
that empower communities, enable file-sharing freedom, and promote digital collaboration. Your
input helps shape the future of the platform, ensuring it remains free, transparent, and
accessible to all. Together, we can create a platform that upholds the values of privacy,
security, and decentralized infrastructure.
</p>
</div>
<div class="card-container">
Expand Down
36 changes: 14 additions & 22 deletions src/routes/(pages)/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,21 @@
<h2 id="bitTorrent">Why BitTorrent?</h2>

<p>
In a world driven by digital content, the BitTorrent protocol
remains a cornerstone for decentralized, efficient file sharing.
While newer technologies such as IPFS and cloud storage
solutions have emerged, BitTorrent continues to serve a
critical role in enabling large-scale data distribution with
unparalleled efficiency and scalability.
In a world driven by digital content, the BitTorrent protocol remains a cornerstone for
decentralized, efficient file sharing. While newer technologies such as IPFS and cloud
storage solutions have emerged, BitTorrent continues to serve a critical role in enabling
large-scale data distribution with unparalleled efficiency and scalability.
</p>

<h2 id="bitTorrentProtocol">Why does the BitTorrent protocol still matter?</h2>

<p>
Despite the rise of centralized alternatives and new distributed
systems, the BitTorrent protocol remains a key player in the digital
landscape. Its decentralized nature ensures that users maintain
control over data distribution, making it a critical tool in today's
interconnected world. The focus on distributing content without
over-reliance on a single server continues to make BitTorrent
relevant for various use cases, from media sharing to large-scale
software updates.
Despite the rise of centralized alternatives and new distributed systems, the BitTorrent
protocol remains a key player in the digital landscape. Its decentralized nature ensures
that users maintain control over data distribution, making it a critical tool in today's
interconnected world. The focus on distributing content without over-reliance on a single
server continues to make BitTorrent relevant for various use cases, from media sharing to
large-scale software updates.
</p>

<p>
Expand Down Expand Up @@ -280,17 +276,13 @@
BitTorrent remains a vital part of the internet's infrastructure.
</p>
<h2 id="team">The Team</h2>

<p>
TODO
</p>

<p>TODO</p>

<h2 id="collaborators">Collaborators</h2>

<p>
TODO
</p>

<p>TODO</p>

<h2 id="sponsors">Sponsors</h2>
<p>
Nautilus Cyberneering is dedicated to creating new Open Source Ecosystems. They define Open
Expand Down
19 changes: 8 additions & 11 deletions src/routes/(pages)/community/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,15 @@
<h2 id="whyContribute">Why Contribute to our Project?</h2>

<p>
At Torrust, we believe in building a strong, decentralized
ecosystem where users and developers can collaboratively
contribute to our vision of a transparent and accessible
BitTorrent infrastructure. Whether you’re passionate about
open-source software, enjoy working with Rust, or are simply
looking to be part of a growing community, there’s a place for
you here. By contributing to Torrust, you’re not just adding
code—you’re shaping the future of a platform built on trust,
performance, and innovation. Join us as we redefine file-sharing
technology for the modern web.
At Torrust, we believe in building a strong, decentralized ecosystem where users and
developers can collaboratively contribute to our vision of a transparent and accessible
BitTorrent infrastructure. Whether you’re passionate about open-source software, enjoy
working with Rust, or are simply looking to be part of a growing community, there’s a place
for you here. By contributing to Torrust, you’re not just adding code—you’re shaping the
future of a platform built on trust, performance, and innovation. Join us as we redefine
file-sharing technology for the modern web.
</p>

<ul class="list">
<li>Rust</li>
<li>Good documentation</li>
Expand Down
15 changes: 4 additions & 11 deletions src/routes/(pages)/self-host/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,18 @@

<h2 id="buildSources">Build from sources (Rust)</h2>

<p>
TODO
<p>TODO</p>
<h2 id="docker">Docker</h2>

<p>
TODO
</p>
<p>TODO</p>

<h2 id="tutorials">Tutorials</h2>

<p>
TODO
</p>
<p>TODO</p>

<h2 id="torrustTracker">Torrust tracker</h2>

<p>
TODO
</p>
<p>TODO</p>
</PostBody>
</PostContainer>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@
<div class="inner-container">
<h2>Key Features</h2>
<p>
Torrust Index provides a highly optimized and scalable platform for
organizing torrent metadata. With fast search capabilities and a
robust backend powered by Rust, the index ensures efficient
performance for even the most demanding use cases. Designed with
privacy and decentralization in mind, it allows users to manage
their content freely while upholding strong data integrity
principles.
Torrust Index provides a highly optimized and scalable platform for organizing torrent
metadata. With fast search capabilities and a robust backend powered by Rust, the index
ensures efficient performance for even the most demanding use cases. Designed with privacy and
decentralization in mind, it allows users to manage their content freely while upholding
strong data integrity principles.
</p>
</div>
<div>
Expand All @@ -72,12 +70,11 @@
<div class="inner-container">
<h2>Comparison to other products</h2>
<p>
Compared to other torrent indexing solutions, Torrust Index offers a
unique blend of speed, security, and scalability. By leveraging
modern technologies like Rust and SQLite, it outperforms many
competitors in resource efficiency and ease of use. Its open-source
nature ensures transparency, allowing contributors to shape the
future development of the platform based on community needs.
Compared to other torrent indexing solutions, Torrust Index offers a unique blend of speed,
security, and scalability. By leveraging modern technologies like Rust and SQLite, it
outperforms many competitors in resource efficiency and ease of use. Its open-source nature
ensures transparency, allowing contributors to shape the future development of the platform
based on community needs.
</p>
<Table tableHeading={indexTableHeadings} tableData={indexTableData} />
</div>
Expand Down Expand Up @@ -152,13 +149,9 @@
</p>
<p>You can install the Index from sources or using docker.</p>
<h2 id="buildSources">Build from sources (Rust)</h2>
<p>
TODO
</p>
<p>TODO</p>
<h2 id="docker">Docker</h2>
<p>
TODO
</p>
<p>TODO</p>
<h2 id="licenses">Licenses</h2>
<h2 id="copyright">Copyright (c) 2023 The Torrust Developers.</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,34 @@
<div class="container">
<div class="inner-container">
<h2>Key Features</h2>
<ul>
<li><b>Efficient and Reliable:</b> The Torrust Tracker is built to handle
high loads while ensuring reliable and accurate tracking of peers
and torrents.</li>
<li><b>Customizable:</b> Offers flexible configurations to support different
use cases, from private trackers to large public ones.</li>
<li><b>Scalable Persistence:</b> Choose between SQLite and MySQL for
persistence, allowing the Tracker to scale according to your needs.</li>
<li><b>Written in Rust:</b> Benefit from the performance and safety features
of Rust, which powers both the REST API and the HTTP tracker.</li>
</ul>
<div>
<ul>
<li>
<b>Efficient and Reliable:</b> The Torrust Tracker is built to handle high loads while ensuring
reliable and accurate tracking of peers and torrents.
</li>
<li>
<b>Customizable:</b> Offers flexible configurations to support different use cases, from private
trackers to large public ones.
</li>
<li>
<b>Scalable Persistence:</b> Choose between SQLite and MySQL for persistence, allowing the Tracker
to scale according to your needs.
</li>
<li>
<b>Written in Rust:</b> Benefit from the performance and safety features of Rust, which powers
both the REST API and the HTTP tracker.
</li>
</ul>
<div>
<Slider titleArr={trackerTitleArr1} />
</div>
</div>
<div class="inner-container">
<h2>Stack</h2>
<p>
Torrust Tracker uses SQLite or MySQL for persistence and is built
with Rust using the Axum framework for its REST API and HTTP tracker.
This combination allows for high-performance and secure operations,
giving developers flexibility in deployment options.
Torrust Tracker uses SQLite or MySQL for persistence and is built with Rust using the Axum
framework for its REST API and HTTP tracker. This combination allows for high-performance and
secure operations, giving developers flexibility in deployment options.
</p>
<div class="stack-icons">
<div>
Expand All @@ -72,10 +78,9 @@
<div class="inner-container">
<h2>Comparison to other products</h2>
<p>
Unlike other trackers, Torrust Tracker balances speed with feature
richness. While some trackers prioritize minimalism at the cost of
flexibility, Torrust focuses on offering extensive functionality
with only a small compromise in speed.
Unlike other trackers, Torrust Tracker balances speed with feature richness. While some
trackers prioritize minimalism at the cost of flexibility, Torrust focuses on offering
extensive functionality with only a small compromise in speed.
</p>
<Table tableHeading={trackerTableHeadings} tableData={indexTableData} />
</div>
Expand Down

0 comments on commit aa942ce

Please sign in to comment.