Commit 51997ae
authored
Update (#57)
* chore(deps,tooling): upgrade deps and replace add-new-post CLI with shell script
- Upgrade React 18→19, Gatsby 5.14→5.16, ESLint 9→10, Jest 29→30
- Replace add-new-post TypeScript CLI with scripts/add-new-post.sh
- Remove .eslintrc.js, src/utilities/cli.ts, tsconfig.cli.json
- Add prettier-plugin-sh, simplify .prettierignore, update lint-staged
* refactor: update ESLint configuration and improve TypeScript support
- Adjust parser options to allow default projects for JavaScript files.
- Expand TypeScript file matching to include .tsx files.
- Disable specific TypeScript rules until parser options are reliably set.
- Refactor various components to use interfaces instead of types for better consistency.
- Clean up image markdown formatting in blog posts and add new posts for "Poor animals" in both English and Russian.
* feat: add images and update titles for "Poor animals" blog post
- Added five new images related to the blog post.
- Updated the post titles in both English and Russian to include "RIP".
* feat: implement BitTorrent visualization component
- Added a new visualization component for BitTorrent using Processing.js.
- Implemented peer and connection management, including adding/removing peers and visual representation of data transfer.
- Enhanced user interaction with keyboard controls for adding/removing peers and seeders.
- Introduced a graphical representation of peers and their data bits, improving the overall user experience.
* refactor: rename and restructure BitTorrent visualization classes
- Renamed `Bit` class to `Piece` and `Kibble` class to `PieceTransfer` for clarity.
- Updated connection management to handle pieces instead of bits, improving code readability.
- Refactored methods to create and draw pieces, enhancing the visualization logic.
- Adjusted peer management to track pieces instead of bits, streamlining data handling.
* feat: enhance user interaction in BitTorrent visualization
- Added mouse interaction for selecting peers and adding/removing them based on clicks.
- Implemented a function to check if a mouse click is within a peer's visual representation.
- Improved user experience by allowing right-click to add seeders and left-click to add peers.1 parent 01e7010 commit 51997ae
42 files changed
Lines changed: 5040 additions & 5837 deletions
File tree
- scripts
- src
- components
- BitTorrentVisualization
- HeaderLink
- Header
- Head
- LanguageContext
- SelectLanguage
- constants
- pages
- blog
- 2016-03-28-black-line
- 2024-03-08-sakartvelo
- 2024-10-02-good-bye
- 2024-10-24-mini
- 2026-02-08-poor-animals
- types
- utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
19 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
35 | 51 | | |
36 | 52 | | |
37 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
0 commit comments