Commit graph

71 commits

Author SHA1 Message Date
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
Nikita Karamov
555ac47080
Add description of toot
- adds a short description to the <title>
- adds a meta tag for description

See #13
2021-08-28 16:06:57 +02:00
Nikita Karamov
7839dfa6ff
Replace JS on form with a POST request
Closes #12
2021-08-27 15:03:24 +02:00
Nikita Karamov
4b545f4a14
Clean up JS code 2021-08-14 21:56:17 +02:00
Nikita Karamov
1e0469ebee
Update robots.txt 2021-08-14 19:12:50 +02:00
Nikita Karamov
67808803a4
Use Prettier to format files 2021-08-14 19:12:42 +02:00
Nikita Karamov
55c1e677e0
Remove old logo.svg 2021-08-14 19:03:29 +02:00
Nikita Karamov
d16f5ffa27
Update JS pipeline 2021-08-14 18:54:32 +02:00
Nikita Karamov
d9dca764cc
Update styles pipeline 2021-08-14 18:50:53 +02:00
Nikita Karamov
f036326abe
Replace Pug with pure HTML 2021-08-14 18:33:06 +02:00
Nikita Karamov
22638faf30
Span <main> across the whole page
Closes #11
2021-03-17 08:52:14 +01:00
Nikita Karamov
ece0b9a865
Add placeholder for <textarea> 2021-03-12 21:20:34 +01:00
Nikita Karamov
9f8bdbfb44
Style button like the Mastodon version of it 2021-03-12 21:20:25 +01:00
Nikita Karamov
eedb55459d
Add more Mastodon-like footer 2021-03-12 21:16:02 +01:00
Nikita Karamov
c6a92c3046
New, more Mastodon-like header 2021-03-12 21:10:10 +01:00
Nikita Karamov
7415bb2093
Add Mastodon logo to site's description
See #6
2021-03-12 20:46:34 +01:00
Nikita Karamov
3b5d3d5264
Optimize font loading 2021-01-30 14:32:09 +01:00
Nikita Karamov
157fdef188
Use toot logo instead of text heading 2021-01-30 14:28:35 +01:00
Nikita Karamov
a29d349349
Update favicons
New, simpler structure courtesy of
https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
2021-01-30 14:27:29 +01:00
Nikita Karamov
dc6e100993
Migrate license from MIT to AGPL-3.0
This was done to be accordance with Mastodon's projects' licenses
2021-01-30 00:48:40 +01:00
Nikita Karamov
a22563ce6d
Add EditorConfig
Indentation also changed to tabs
2021-01-29 22:56:37 +01:00
Andy Balaam
0563c29dd6 Open Mastodon in the same tab 2020-09-25 00:51:25 +01:00