Commit graph

51 commits

Author SHA1 Message Date
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
Ayase Minori
4a01821907
Finally figure out how to send data from server
Signed-off-by: GitHub <noreply@github.com>
2023-09-12 06:28:01 +00:00
Ayase Minori
07a479b20c
committed thy fucky wucky
Signed-off-by: GitHub <noreply@github.com>
2023-09-11 05:26:49 +00:00
Ayase Minori
89101c88ed
hydrate statistics when possible
Signed-off-by: GitHub <noreply@github.com>
2023-09-11 05:24:47 +00:00
Ayase Minori
3062eae5a6
Properly encode responses 2023-09-11 04:57:06 +00:00
Ayase Minori
062a03c708
Add debugging
Signed-off-by: GitHub <noreply@github.com>
2023-09-11 04:30:34 +00:00
Ayase Minori
77781faca9
Implement POSTing
Signed-off-by: GitHub <noreply@github.com>
2023-09-11 03:55:06 +00:00
Ayase Minori
237c12fb63
Add timestamping on logs
Signed-off-by: GitHub <noreply@github.com>
2023-09-11 03:31:28 +00:00
Ayase Minori
99d686c0cc Properly assign the values in server side
Signed-off-by: Ayase Minori <chinodesuuu@gmail.com>
2023-09-10 21:10:39 +08:00
Ayase Minori
c766574cc1 Implement eventsource properly
Signed-off-by: Ayase Minori <chinodesuuu@gmail.com>
2023-09-10 21:05:07 +08:00
Ayase Minori
5b90057f5f Set sane timeouts
Signed-off-by: Ayase Minori <chinodesuuu@gmail.com>
2023-09-10 20:31:19 +08:00