Commit graph

61 commits

Author SHA1 Message Date
Ayase Minori
0f63c6f833 feat: Add Partytown and update MarkdownContent import paths
Added Partytown package and updated import paths for MarkdownContent components.
2023-11-22 05:48:25 +00:00
Ayase Minori
bd2e5438c5
Update Takeback tracking link 2023-10-28 16:48:40 +08:00
Ayase Minori
4b6fe1c5f3 aint no way deno doesnt like emojis 💀 2023-10-24 00:24:47 +08:00
Ayase Minori
41be1559f1
refactor: Update dependencies and refactor code (#18)
* refactor: Update dependencies and refactor code

Removed axios-web and replaced with BroadcastChannel and WebSocket for counter and global count functionalities.

* feat: Update CounterCard and routes

Update CounterCard timeout and routes POST method

* Debug socket message

* ensure value is always treated as a BigInt internally

* Frogot to put it below that 💀

* Move type conversion to database

* I swear if this doesnt work im going to choke someone

* assign converted value to a variable

SURELY this will work right?

* Revert db to use numbers again
2023-10-24 00:11:50 +08:00
Ayane Satomi
97d20ea68f Remove header validation since its crashing everyone 2023-10-23 13:57:40 +00:00
Ayane Satomi
438712c05b Use Sec-Fetch-Mode to check instead 2023-10-23 13:53:35 +00:00
Ayane Satomi
69e462f758 guard against arbitrarily large numbers on payload on serverside too 2023-10-23 13:40:51 +00:00
Ayane Satomi
fa903f2932 Ensure endpoints are only accessed by actual browsers 2023-10-23 13:37:32 +00:00
Ayane Satomi
725c7a1d24 feat: Add user agent check
Add code to check if useragent is a browser
2023-10-23 13:32:04 +00:00
Ayane Satomi
cdf547e4bd feat: Add websocket handling
Added websocket functionality for keeping the connection alive and handling events.
2023-10-23 13:22:03 +00:00
Ayane Satomi
d00cf3a9c3 Make server not send anything if socket state is anything but open 2023-10-23 09:09:00 +00:00
Ayase Minori
4d1aded8a8
Remove evtsrc logging 2023-10-23 01:00:10 +08:00
Ayase Minori
cc34b8f0d9
Merge pull request #16 from sr229/sr229/websockets
Change Transport from SSEs to Websockets
2023-10-23 00:50:56 +08:00
Ayane Satomi
c6f3decb45 Fix BroadcastChannel sending Encoded bytes 2023-10-22 16:43:51 +00:00
Ayane Satomi
4ea19cd5a0 Switch transport to Websockets 2023-10-22 16:34:52 +00:00
Ayase Minori
25497d2a94
Rollback Cloudflare site for now
We're having problems routing the SSEs so we're going back to the deno subdomain
2023-10-22 14:51:47 +08:00
Ayane Satomi
33c03ca078 fix: Remove script tag
Removed a script tag from _app.tsx file.
2023-10-22 06:38:31 +00:00
Ayane Satomi
bc4fc678c7 feat: Add Cloudflare Insights beacon.
Adds a script tag to include Cloudflare Insights beacon in _app.tsx.
2023-10-22 06:35:25 +00:00
Ayase Minori
b5a93a58fa
Change canonical site to the Cloudflare-backed site 2023-10-22 14:28:28 +08:00
Ayane Satomi
238c01bcd7 feat: Update globalCount type to bigint
Update globalCount type from number to bigint in CounterCard and index files, and in setGlobalStatistics function
2023-10-22 05:56:36 +00:00
Ayane Satomi
033da63a46 feat: Add X-Content-Type-Options header
Added 'X-Content-Type-Options' header with value 'nosniff' to the middleware
2023-10-21 15:21:34 +00:00
Ayane Satomi
cabcf3fe8d style: Update Cache-Control header settings
Updated the max-age value of the Cache-Control header from 14400 to 3600 and removed X-CSRF-Token and Authorization headers.
2023-10-21 15:17:26 +00:00
Ayane Satomi
5d7a5f4aae refactor: Update cache control headers in _middleware.ts
Remove 'must-revalidate' from cache control headers in _middleware.ts
2023-10-21 15:08:01 +00:00
Ayase Minori
a01319b3d2
Change swr to must-revalidate 2023-10-21 23:05:25 +08:00
Ayane Satomi
319c45a5ac fix: Update meta content type
Changed meta content type from text/html; charset=utf-8 to utf-8.
2023-10-21 15:03:18 +00:00
Ayane Satomi
3eaa783c15 feat: Added middleware for handling CORS
Added middleware for handling CORS and setting necessary headers
2023-10-21 14:55:25 +00:00
Ayane Satomi
1cbb7d8651 feat: Update CounterCard and MarkdownContent styles
Update CounterCard and MarkdownContent styles, and add Credits Content
2023-10-21 13:24:38 +00:00
Ayane Satomi
45409382db Seperate Markdown content in its own island
Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
2023-10-21 12:00:46 +00:00
Ayane Satomi
5b9a559b51 Move Footer to components
It didn't make sense to put it there anyway

Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
2023-10-21 11:55:25 +00:00
Ayane Satomi
4eb0e8fb32 style: Update text alignment and styling
Update text alignment and styling in index.tsx file
2023-10-21 11:49:05 +00:00
Ayane Satomi
1c14ba47aa Somehow I forgot the dot 2023-10-21 08:56:13 +00:00
Ayane Satomi
54f336b496 feat: Update meta tags and script source
Update meta tags for Open Graph and description, and update script source URL.
2023-10-21 08:54:24 +00:00
Ayase Minori
417c4d016e
Yo dawg I heard you like SEO 2023-10-21 16:45:32 +08:00
Ayane Satomi
0ec5364a71 Migrate domain name for discoverability
Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
2023-10-21 08:35:30 +00:00
Ayane Satomi
f8716cdf26 Improve search engine visibility using values from herta.eu.org
Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
2023-10-21 08:34:00 +00:00
Ayane
0b241fa735
rewrite markdown
Signed-off-by: Ayane <ayane@vignetteapp.org>
2023-10-02 13:01:32 +08:00
Ayase Minori
6619815a57
Add Site analytics 2023-09-22 22:35:39 +08:00
Ayane
d155724a14
set index for favicon 2023-09-19 14:43:41 +08:00
Ayane
65438a50ce
More styling changes 2023-09-19 14:42:54 +08:00
Ayane
d47de9ca79
This should allow internationalization later on 2023-09-19 14:32:38 +08:00
Ayane
26904b6047
Implement Markdown parsing
I cba to implement the fucking website piece by piece

and localization is hell
2023-09-19 14:17:44 +08:00
Ayane
e104635898
Stylize 404 as well lmao 2023-09-19 14:02:46 +08:00
Ayane
e73d8788e9
Add le license 2023-09-19 13:53:35 +08:00
Ayane
35a788ac1c
Remove unused import 2023-09-19 13:18:27 +08:00
Ayane
e491860f51
Add the funny audio
This is hardcoded for now, but we want to add i8n later on
2023-09-19 13:17:36 +08:00
Ayane
2c756f6372
Fix z-index for title and article 2023-09-19 11:58:36 +08:00
Ayane
bdd00f95ea
Assign a tailwind class for the mascot
Signed-off-by: Ayane <ayane@vignetteapp.org>
2023-09-19 11:50:56 +08:00
Ayane Satomi
175577b723 Change branding now xd 2023-09-19 02:46:31 +00:00
Ayane Satomi
3d31f8308c Fix global statistics not being hydrated properly 2023-09-19 01:29:06 +00:00
Ayase Minori
1a42b2ccf0
Finally figure out how to increment this lol
Signed-off-by: GitHub <noreply@github.com>
2023-09-12 06:38:05 +00:00