Skip to content

Commit cf5b576

Browse files
committed
style: fix prettier formatting issues
1 parent a2eef1c commit cf5b576

File tree

14 files changed

+106
-111
lines changed

14 files changed

+106
-111
lines changed

src/routes/(pages)/about/+page.svelte

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
cornerstone for distributed file sharing. Despite the emergence of newer technologies like
3636
the
3737
<a href="https://ipfs.tech/">InterPlanetary File System</a>
38-
(IPFS) and centralized cloud storage solutions such as Dropbox, Google Drive, and Amazon S3,
39-
BitTorrent continues to hold significant relevance. Here's why maintaining and enhancing BitTorrent
40-
is not just worthwhile but essential.
38+
(IPFS) and centralized cloud storage solutions such as Dropbox, Google Drive, and Amazon S3, BitTorrent
39+
continues to hold significant relevance. Here's why maintaining and enhancing BitTorrent is not
40+
just worthwhile but essential.
4141
</p>
4242

4343
<p>
@@ -57,8 +57,8 @@
5757
<h3>Current use cases</h3>
5858

5959
<p>
60-
<strong>Media Distribution:</strong> Independent creators and open-source projects often use
61-
BitTorrent to distribute content without incurring high bandwidth costs.
60+
<strong>Media Distribution:</strong> Independent creators and open-source projects often use BitTorrent
61+
to distribute content without incurring high bandwidth costs.
6262
</p>
6363

6464
<p>
@@ -80,8 +80,7 @@
8080

8181
<p>
8282
<strong>Blockchain and Cryptocurrency:</strong> Integrating BitTorrent with blockchain technology
83-
could lead to innovative content distribution models, rewarding content creators and sharers
84-
directly.
83+
could lead to innovative content distribution models, rewarding content creators and sharers directly.
8584
</p>
8685

8786
<p>
@@ -149,10 +148,10 @@
149148

150149
<ul>
151150
<li>
152-
<strong>High Performance:</strong> Rust offers exceptional speed and efficiency, which can
153-
significantly improve the performance of BitTorrent tools. Its focus on concurrency and memory
154-
safety allows for the development of high-speed data transmission tools without the common
155-
pitfalls of memory leaks and crashes.
151+
<strong>High Performance:</strong> Rust offers exceptional speed and efficiency, which can significantly
152+
improve the performance of BitTorrent tools. Its focus on concurrency and memory safety allows
153+
for the development of high-speed data transmission tools without the common pitfalls of memory
154+
leaks and crashes.
156155
</li>
157156
<li>
158157
<strong>Resource Optimization:</strong> Modern devices vary widely in their capabilities. Developing
@@ -181,10 +180,10 @@
181180

182181
<ul>
183182
<li>
184-
<strong>Modern Interfaces:</strong> Updating BitTorrent clients with modern, user-friendly
185-
interfaces can make the technology more accessible to a broader audience, encouraging adoption.
186-
Simplifying the user experience without compromising on advanced features appeals to both novice
187-
and experienced users.
183+
<strong>Modern Interfaces:</strong> Updating BitTorrent clients with modern, user-friendly interfaces
184+
can make the technology more accessible to a broader audience, encouraging adoption. Simplifying
185+
the user experience without compromising on advanced features appeals to both novice and experienced
186+
users.
188187
</li>
189188
<li>
190189
<strong>Cross-Platform Compatibility:</strong>Developing with modern frameworks and

src/routes/(pages)/community/+page.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@
119119
A <strong>torrent</strong> is a small file that contains metadata about the files and folders
120120
to be shared and information about the network of computers that share these files. It's used
121121
with BitTorrent protocol, which enables fast and efficient distribution of large files over the
122-
internet by allowing users to connect directly to each other to download and upload portions
123-
of the file simultaneously. This decentralized method of sharing files reduces the load on any
124-
single server and can lead to faster download speeds for the users involved. Torrents themselves
125-
do not contain the actual content being shared, only the information needed to find and download
126-
the content from peers in the BitTorrent network.
122+
internet by allowing users to connect directly to each other to download and upload portions of
123+
the file simultaneously. This decentralized method of sharing files reduces the load on any single
124+
server and can lead to faster download speeds for the users involved. Torrents themselves do not
125+
contain the actual content being shared, only the information needed to find and download the
126+
content from peers in the BitTorrent network.
127127
</p>
128128

129129
<h3>What Is a Tracker?</h3>
@@ -142,9 +142,9 @@
142142
<h3>What Is a Torrent Index?</h3>
143143

144144
<p>
145-
A <strong>BitTorrent index</strong> site is a website that lists torrent files for download.
146-
These sites serve as search engines or directories for finding specific files or content within
147-
the BitTorrent network. Users can search for and download torrent files based on various categories
145+
A <strong>BitTorrent index</strong> site is a website that lists torrent files for download. These
146+
sites serve as search engines or directories for finding specific files or content within the
147+
BitTorrent network. Users can search for and download torrent files based on various categories
148148
such as movies, music, software, games, and more. Each torrent file listed on an index site contains
149149
metadata about the content it represents, such as the file name, size, and the address of the
150150
tracker managing the distribution of the content.

src/routes/blog/bencode-to-json-converter-in-rust/+page.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
</ul>
7575
<h2 id="how-you-can-use-it">How You Can Use It</h2>
7676
<p>
77-
Using <code>bencode2json</code> is straightforward. Here&#39;s a quick guide on how to get
78-
started:
77+
Using <code>bencode2json</code> is straightforward. Here&#39;s a quick guide on how to get started:
7978
</p>
8079
<h3 id="installation">Installation</h3>
8180
<p>Add the crate to your <code>Cargo.toml</code>:</p>
@@ -184,8 +183,8 @@ println!("{output}"); // It prints the JSON string: "spam"`}
184183
<a href="https://github.com/Chocobo1">@Chocobo1</a>.
185184
</p>
186185
<p>
187-
We also want to thank <a href="https://github.com/da2ce7">@da2ce7</a> for his feedback and
188-
review that has improved this project significantly.
186+
We also want to thank <a href="https://github.com/da2ce7">@da2ce7</a> for his feedback and review
187+
that has improved this project significantly.
189188
</p>
190189
<p>
191190
If you have any questions or issues regarding this post, please <a

src/routes/blog/containerizing-rust-applications-best-practices/+page.svelte

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,7 @@ CMD ["./target/release/dependencies-cache-with-cargo-chef"]`}
432432
>.
433433
</p>
434434
<p>
435-
We are using it to install <code>cargo chef</code> and <code>cargo nextest</code> packages
436-
easily.
435+
We are using it to install <code>cargo chef</code> and <code>cargo nextest</code> packages easily.
437436
</p>
438437

439438
<CodeBlock
@@ -459,8 +458,8 @@ CMD ["./target/release/app"]`}
459458
is useful to separate the &quot;build&quot; phase from the &quot;run&quot; phase.
460459
</p>
461460
<p>
462-
In the <a href="https://nexte.st/book/reusing-builds.html">official documentation</a> they
463-
describe some use cases like:
461+
In the <a href="https://nexte.st/book/reusing-builds.html">official documentation</a> they describe
462+
some use cases like:
464463
</p>
465464
<ul>
466465
<li>
@@ -747,8 +746,8 @@ CMD ["/usr/local/bin/app"]`}
747746
The <code>entry.sh</code> script is always called when you run the container because it is
748747
defined as an <code>ENTRYPOINT</code>. This &quot;middleware&quot; script creates the user
749748
if it does not exist, and then runs the application using the
750-
<a href="https://github.com/ncopa/su-exec">su-exec</a> program to change the user ID it is
751-
executed with.
749+
<a href="https://github.com/ncopa/su-exec">su-exec</a> program to change the user ID it is executed
750+
with.
752751
</p>
753752
<p>
754753
<strong
@@ -856,8 +855,8 @@ RUN cargo binstall --no-confirm cargo-chef cargo-nextest`}
856855

857856
<p>
858857
There is nothing really strange here. We use the latest Debian “bookworm” at the time of
859-
writing this article. And we also use <code>binstall</code> to install the binaries, since
860-
both of these binaries are written in Rust.
858+
writing this article. And we also use <code>binstall</code> to install the binaries, since both
859+
of these binaries are written in Rust.
861860
</p>
862861
<p>
863862
The next stage is the base Tester Image. It only installs <code>cargo-nextest</code> to
@@ -878,8 +877,8 @@ RUN cargo binstall --no-confirm cargo-nextest`}
878877
<p>
879878
The following is another stage used just to compile the small program <a
880879
href="https://github.com/ncopa/su-exec">su-exec</a
881-
> that we use to change the user ID when we run the container. The program is written in C
882-
code, so we only need a C compiler.
880+
> that we use to change the user ID when we run the container. The program is written in C code,
881+
so we only need a C compiler.
883882
</p>
884883

885884
<CodeBlock
@@ -975,8 +974,8 @@ RUN chown -R root:root /app; chmod -R u=rw,go=r,a+X /app; chmod -R a+x /app/bin`
975974
minimum &quot;distroless&quot; image variant. We add an entrypoint to setup the
976975
application and also to make sure we don&#39;t use the <code>root</code> user to run it.
977976
The entrypoint just runs the application provided as an argument, in our case, our
978-
application in <code>debug</code> or <code>release</code> mode, depending of which one you
979-
want to run.
977+
application in <code>debug</code> or <code>release</code> mode, depending of which one you want
978+
to run.
980979
</p>
981980

982981
<CodeBlock

src/routes/blog/contributor-path/+page.svelte

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@
242242
<ul>
243243
<li>Peers authentication and authorization (only for HTTP trackers)</li>
244244
<li>
245-
Whitelist: the tracker can run in <code>listed</code> mode when only some infohashes are
246-
allowed.
245+
Whitelist: the tracker can run in <code>listed</code> mode when only some infohashes are allowed.
247246
</li>
248247
<li>Torrents: the core in-memory data structure which contains all the torrents info.</li>
249248
</ul>
@@ -324,10 +323,10 @@
324323
<p>
325324
Finally, there are many protocol extensions not implement yet. FOr example <a
326325
href="https://webtorrent.io/">webtorrent</a
327-
> protocol. This enables a lot of cool projects running BitTorrent clients in the browser.
328-
Right now it&#39;s not possible to use the Torrust Tracker for those projects. THis feature
329-
requires a big effort to understand the protocol and implement it. There is not much information
330-
but at least there are other implementation in Rust (for example aquatic).
326+
> protocol. This enables a lot of cool projects running BitTorrent clients in the browser. Right
327+
now it&#39;s not possible to use the Torrust Tracker for those projects. THis feature requires
328+
a big effort to understand the protocol and implement it. There is not much information but
329+
at least there are other implementation in Rust (for example aquatic).
331330
</p>
332331
<p>
333332
If you want to limit the scope maybe console clients and tracker clients are a good

src/routes/blog/deploying-torrust-to-production/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ torrust/index-gui develop sha256:b30deb84cdee8fa34e4d3783ce2f467542e
159159
<p>
160160
Please refer to <a href="https://docs.digitalocean.com/">Digital Ocean Documentation</a> for
161161
more information about how to create projects and droplets. Projects are the way DO (Digital
162-
Ocean) organizes resources (virtual machines, databases, domains, etc.). We have a project
163-
called &quot;torrust-demo.com&quot;.
162+
Ocean) organizes resources (virtual machines, databases, domains, etc.). We have a project called
163+
&quot;torrust-demo.com&quot;.
164164
</p>
165165
<p>
166166
Once you have created your project and droplet you can follow the <a
@@ -583,8 +583,8 @@ certbot certonly --webroot --webroot-path=/var/www/html --email [email protected]
583583

584584
<h4 id="update-nginx-configuration">Update Nginx Configuration</h4>
585585
<p>
586-
Edit the file <code>./storage/proxy/etc/nginx-conf/nginx.conf</code> and uncomment all the
587-
commented lines for HTTPs servers:
586+
Edit the file <code>./storage/proxy/etc/nginx-conf/nginx.conf</code> and uncomment all the commented
587+
lines for HTTPs servers:
588588
</p>
589589

590590
<Callout type="warning">

src/routes/blog/hash2torrent-retrieve-torrent-files-effortlessly/+page.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
href="https://github.com/ikatson/rqbit">rqbit</a
7272
>. rqbit has an option to add a torrent to the client in <code>list-only</code> mode, meaning
7373
the torrent is not downloaded, but only listed in the client. When you add a new torrent from
74-
a magnet-link, the client automatically gets the torrent file from other peers if it&#39;s
75-
available.
74+
a magnet-link, the client automatically gets the torrent file from other peers if it&#39;s available.
7675
</p>
7776
<p>
7877
The API generates a magnet-link for the info-hash and adds that magnet-link to the client
@@ -93,8 +92,8 @@
9392

9493
<Callout type="info">
9594
<strong>NOTICE:</strong> You need the DHT to find other peers having the torrent. In the future
96-
we could also also user to introduce a magnet-link that may contain a list of trackers. In
97-
that case, the client could use those tracker to find peers.
95+
we could also also user to introduce a magnet-link that may contain a list of trackers. In that
96+
case, the client could use those tracker to find peers.
9897
</Callout>
9998

10099
<h2 id="benefits-of-using-hash2torrent">Benefits of Using Hash2Torrent</h2>

src/routes/blog/how-to-contribute-to-this-site/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<div id="toc-contents" class="content-preview">
2929
<p>
3030
All blog posts are located inside the <code>src/routes/(blog-article)</code> folder. Each
31-
folder inside it represents a blog post, and each folder has a <code>+page.md</code> file,
32-
which is the file that contains the post's content.
31+
folder inside it represents a blog post, and each folder has a <code>+page.md</code> file, which
32+
is the file that contains the post's content.
3333
</p>
3434

3535
<p>

src/routes/blog/profiling-the-torrust-bittorrent-udp-tracker/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
second.
120120
</p>
121121
<p>
122-
The <code>announce</code> request is the most important request a tracker needs to handle.
123-
Peers get the list of other peers from the tracker by making announce requests. The purpose
124-
of that request is:
122+
The <code>announce</code> request is the most important request a tracker needs to handle. Peers
123+
get the list of other peers from the tracker by making announce requests. The purpose of that
124+
request is:
125125
</p>
126126
<ul>
127127
<li>

src/routes/blog/review-and-setup-guide-for-unit3d/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@
170170
The <a href="https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki"
171171
>documentation</a
172172
> for UNIT3D system dependencies is comprehensive, covering local development and basic server
173-
management. However, there is room for improvement in terms of end user guides, tutorials,
174-
examples, installation for production and troubleshooting guides.
173+
management. However, there is room for improvement in terms of end user guides, tutorials, examples,
174+
installation for production and troubleshooting guides.
175175
</p>
176176
<h3 id="community-support-and-activity">Community Support and Activity</h3>
177177
<p>

0 commit comments

Comments
 (0)