Commit graph

92 commits

Author SHA1 Message Date
Nikita Karamov
b556e7f12d
Remove GoatCounter 2023-09-02 21:56:49 +02:00
Nikita Karamov
ea48a7f29a
Extract license and privacy policy into separate pages 2023-09-02 21:56:49 +02:00
Nikita Karamov
4842d9954f
Implement Hometown support 2023-09-02 21:56:48 +02:00
Nikita Karamov
f4506ae4bc
Detect Akkoma as Pleroma 2023-09-02 21:56:48 +02:00
Nikita Karamov
2ad24a91da
Improve instance detection
Instance detection is now based on NodeInfo, which is standardized and
lighterweight.
2023-09-02 21:56:48 +02:00
Nikita Karamov
6d4eca0131
Improve instance list
This now returns the list of instances of multiple Fediverse projects.
Currently pretty slow because of the Mastodon and Pleroma being too big.
2023-09-02 21:56:48 +02:00
Nikita Karamov
f5cbb082ed
Fix some typing errors 2023-09-02 21:56:48 +02:00
Nikita Karamov
effac10b7e
Mention other networks 2023-09-02 21:56:47 +02:00
Nikita Karamov
546c9029aa
Make detect return 404 instead of 400 2023-09-02 21:56:47 +02:00
Nikita Karamov
4dfe43918f
Add Misskey (untested) 2023-09-02 21:56:47 +02:00
Nikita Karamov
cb0fc3e11d
Kinda implement Hubzilla? 2023-09-02 21:56:47 +02:00
Nikita Karamov
e1aa6966c0
Use a stricter TypeScript config 2023-09-02 21:56:47 +02:00
Nikita Karamov
4031a76291
Use a more specific path for GNU Social 2023-09-02 21:56:47 +02:00
Nikita Karamov
2c8a6c7da8
Implement Friendica 2023-09-02 21:56:46 +02:00
Nikita Karamov
808ab27ed4
Return empty list if no instances could be fetched 2023-09-02 21:56:46 +02:00
Nikita Karamov
f811ba371d
Add copyright notices 2023-09-02 21:56:45 +02:00
Nikita Karamov
64cc54e717
Remove deprecated slash division 2023-09-02 21:56:45 +02:00
Nikita Karamov
9771d67af9
Re-add GoatCounter script 2023-09-02 21:56:45 +02:00
Nikita Karamov
47c498ad2e
Re-implement prefilling instance and text 2023-09-02 21:56:44 +02:00
Nikita Karamov
378351a5d8
Add host detection
This re-implements the posting that was achieved in v3.
2023-09-02 21:56:44 +02:00
Nikita Karamov
6f338966d7
Fix lint error 2023-09-02 21:56:44 +02:00
Nikita Karamov
3de15b1b4c
Re-implement saving instances
Also implements saving of multiple instances, which
closes https://github.com/kytta/share2fedi/issues/29
2023-09-02 21:56:44 +02:00
Nikita Karamov
f2ba7d5324
Add a bit better error handling 2023-09-02 21:56:44 +02:00
Nikita Karamov
49a489d532
Re-implement pre-filling instances 2023-09-02 21:56:43 +02:00
Nikita Karamov
43d36bd6d7
Fix bug in datalist 2023-09-02 21:56:43 +02:00
Nikita Karamov
d3fb510bbb
Rewrite the instance selector
This commit adds a new '/api/instances' endpoint that returns
the domains of the available Mastodon instances. This also changes the
input field, making it accept a host rather than the full domain.
2023-09-02 21:56:43 +02:00
Nikita Karamov
6031d959ea
Migrate HTML file and basic API functionality 2023-09-02 21:56:43 +02:00
Nikita Karamov
1ba204644b
Install Astro instead of Vite 2023-09-02 21:56:43 +02:00
Nikita Karamov
ea3339d413
Replace Gulp with Vite 2023-09-02 21:56:38 +02:00
Nikita Karamov
01e82d462d
Update URLs to lead to GitHub 2023-09-02 21:56:38 +02:00
Nikita Karamov
bf556860c1
Update copyright headers in files
This updates the project name, description, and copyright years
2023-09-02 21:56:37 +02:00
Nikita Karamov
a040b32405
Use at() instead of charAt() 2023-06-17 14:08:15 +02:00
Nikita Karamov
9c0d08eb7d
Use a better robots.txt to prevent information leakage 2023-06-17 14:00:32 +02:00
Nikita Karamov
4df79c322b
Fix lint problems 2023-03-01 12:42:40 +01:00
Nikita Karamov
e2ddc5221f
Fix formatting issues 2023-03-01 12:42:40 +01:00
Nikita Karamov
74090c9ec7
Fix instance prefill not working
Closes https://codeberg.org/kytta/toot/issues/15
2023-03-01 11:51:12 +01:00
Nikita Karamov
445908b34a
Check for instance at the very beginning 2022-12-23 03:08:22 +01:00
Nikita Karamov
5f0e28e506
Only count views on the official instances 2022-12-23 03:05:09 +01:00
Nikita Karamov
9982dded07
Redo analytics again
This time I am manually calling the sendBeacon() function instead of
the script loading an image. This is faster, more privacy-friendly, and
more performant, since sendBeacon is being sent asynchronously. The
script I got at the end is also very small and hosted on my side.
2022-12-23 02:55:30 +01:00
Nikita Karamov
3702f9a596
Remove pixel and only submit empty path 2022-12-21 11:59:25 +01:00
Nikita Karamov
cd8ba5b43c
Fix remember instances
Closes #12
2022-11-20 16:09:11 +01:00
Nikita Karamov
a87bf08e2e
Add canonical URL 2022-11-14 10:58:41 +01:00
Nikita Karamov
3c2931cab6
Add GoatCounter analytics
I know, it sounds horrible, but it isn't as bad as it sounds. This is a
GDPR-friendly analytics engine that respects adblockers and doesn't
store any identifying data about the page. I am using it to estimate the
visitors count of this page.

Statistics are available here:
https://share2fedi.goatcounter.com/
2022-11-14 10:58:32 +01:00
Nikita Karamov
80b1e796af
Fix font naming 2022-03-16 13:55:08 +01:00
Nikita Karamov
4ecf304519
Self-host Google Fonts
Due to questionable privacy policy of Google Fonts (including them being
called illegal by the Munich court [1]), I have decided to self-host the
fonts. I have used the google-webfonts-helper[2] to load the subset
version of the font.

I have also added the `local()` source so that the font will not be
loaded if the user has a font with the same name installed on their
system.

After this commit, toot requires no 3rd-party resources any more 🎉

[1]: https://rewis.io/urteile/urteil/lhm-20-01-2022-3-o-1749320/
[2]: https://google-webfonts-helper.herokuapp.com/
2022-03-16 13:44:00 +01:00
Nikita Karamov
e699cc20eb
Update years in licence headers 2022-02-12 12:36:08 +01:00
Nikita Karamov
929338c93f
Update hosting to Codeberg 2022-02-12 12:35:53 +01:00
Nikita Karamov
a5acc3dfdf
Update usernames 2022-02-02 15:32:36 +01:00
Nikita Karamov
3b8e22a507
Replace karamoff.dev with kytta.dev 2021-11-04 18:01:45 +01:00
Nikita Karamov
0ad7c5595f
Add licence identifiers to the source
- add SPDX licence identifiers to every source file
- add LibreJS-compatible identifiers to the JS code
2021-08-29 13:54:14 +02:00