Commit graph

35 commits

Author SHA1 Message Date
Lim Chee Aun
7d409bde5b Downgrade react-router
Latest version changed something with hashrouter
2023-01-22 16:49:58 +08:00
Lim Chee Aun
4f91d9e4e9 Upgrade masto 2023-01-21 00:27:20 +08:00
Lim Chee Aun
9bff95bcec Replace preact-router with react-router
Need more routing powers, hopefully things don't break 🤞
2023-01-21 00:23:59 +08:00
Lim Chee Aun
b26cac5ed2 Upgrade dependencies 2023-01-17 11:25:27 +08:00
Lim Chee Aun
3cf918672e Upgrade masto 2023-01-13 15:36:01 +08:00
Lim Chee Aun
71b50382e9 New feature: Unsent Drafts
For now, this only works for unsent unsaved drafts e.g. the browser kill the page without giving the user the chance to discard
2023-01-13 15:30:09 +08:00
Lim Chee Aun
adcea89a25 Add UID as Idempotency key 2023-01-11 14:44:20 +08:00
Lim Chee Aun
d6c0f83c15 Remove iconify-icon web component, bundle all icons
The whole iconify thing is about 20KB (8KB min-gzip), it's too huge just for icons.

Instead of getting icons from the API/CDN, bundle them all in.
2023-01-11 09:47:46 +08:00
Lim Chee Aun
9d4b2a208b Upgrade dependencies 2023-01-11 00:23:08 +08:00
Lim Chee Aun
fd9d09b8b2 Bump valtio 2023-01-06 01:52:09 +08:00
Lim Chee Aun
228c74655a Bump masto 2023-01-05 18:46:05 +08:00
Lim Chee Aun
04ccf8aca9 Replace @github/relative-time-element with dayjs 2023-01-05 10:50:27 +08:00
Lim Chee Aun
59ff5f8eca Upgrade dependencies 2023-01-04 19:04:40 +08:00
Lim Chee Aun
c2bf9eabc5 Remove consoles in prod 2023-01-02 15:09:31 +08:00
Lim Chee Aun
6fcf844893 Bump masto 2023-01-01 18:15:26 +08:00
Lim Chee Aun
151f0875ad Upgrade relative-time-elements
They've renamed the package name
2023-01-01 18:14:35 +08:00
Lim Chee Aun
724be17d3e Basic keyboard shortcuts
Esc for carousel modal, Ctrl/Cmd+Enter for Compose field
2022-12-30 21:36:14 +08:00
Lim Chee Aun
7200acc2a7 Swipe down for closing carousel 2022-12-28 19:43:02 +08:00
Lim Chee Aun
2a2b730b20 Try vite-plugin-html-config for conditional embed of script
Somehow the vite-if thing not working on vite-plugin-html-env. Leaving it installed since the ENV thing works.
2022-12-28 13:47:11 +08:00
Lim Chee Aun
a08a3e58fb Upgrade valtio 2022-12-27 21:30:26 +08:00
Lim Chee Aun
605e6ac588 Conditionally use error logging
Totally not needed on local dev at all. Disable for prod for now
2022-12-27 20:47:23 +08:00
Lim Chee Aun
fb09e94615 Bump masto 2022-12-26 17:39:02 +08:00
Lim Chee Aun
6b41666efe It's time to toast 🥂 2022-12-26 14:02:05 +08:00
Lim Chee Aun
318c2aeffc Upgrade masto.js to V5
- Fix all breaking changes
- Have to manual remove null/undefined values before creating statuses
- Have to recreate iterator instance if start from scratch because can't pass args in next()
2022-12-25 23:28:55 +08:00
Lim Chee Aun
13a347ce37 New: char count for Compose field
Uses pre-compiled regex for perf
2022-12-23 16:45:02 +08:00
Lim Chee Aun
a1fef8fd1d Always tilde 2022-12-22 19:25:54 +08:00
Lim Chee Aun
51121845db Upgrade dependencies 2022-12-22 19:25:19 +08:00
Lim Chee Aun
3b6f0f277e Rewrite whole scroll logic for Status page
Handle 3 cases, all written down in comments.

Crossing my fingers 🤞🤞🤞
2022-12-21 18:02:13 +08:00
Lim Chee Aun
ee360403fd It's time for MVP PWA/ServiceWorker
- Not 100% offline yet, very minimal caching
- Fix logo a little
2022-12-19 14:51:56 +08:00
Lim Chee Aun
400bc6f696 Truncate long posts on timeline, show "Read more"
10-line clamping for now
2022-12-17 21:06:51 +08:00
Lim Chee Aun
9f58c305d4 Upgrade dependencies 2022-12-15 10:58:49 +08:00
Lim Chee Aun
e96b1433ff Upgrade dependencies 2022-12-15 01:21:40 +08:00
Lim Chee Aun
764a7fcdee autoprefixer should be a dev dependency 2022-12-12 13:14:49 +08:00
Lim Chee Aun
7f02a7f794 Use a better string length
Using `string-length` instead of `stringz` that's used by Mastodon
2022-12-10 20:46:56 +08:00
Lim Chee Aun
2b9390a0a1 Initial commit 2022-12-10 17:14:48 +08:00