Commit graph

4,620 commits

Author SHA1 Message Date
Henry Jameson
b5da1f8b89 fix lint 2024-09-20 12:54:47 +03:00
Henry Jameson
48f0a95a3b more tests, fixed some issues 2024-09-20 12:50:05 +03:00
Henry Jameson
bd514ab6d0 found the file lol 2024-09-20 11:21:26 +03:00
Henry Jameson
71a4781080 at last... it's complete 2024-09-20 02:05:25 +03:00
tusooa
b14ba17256
Support displaying time in absolute format
This adds two config items: useAbsoluteTimeFormat (boolean) and
absoluteTimeFormatMinAge (string, number + unit ('d'|'h'|'m'|'s')).

When `useAbsoluteTimeFormat` is true, the Timeago component will display
absolute time if the time is at least `absoluteTimeFormatMinAge`
from now. If `longFormat` prop is true, the fully formatted time
is displayed. Otherwise, the format is determined by the `time` prop:
(1) if `time` is on the same day of now, display hour and minute;
(2) if `time` is in the same month of now, display day and hour;
(3) if `time` is in the same year of now, display month and day;
(4) otherwise, display year and month.

If it should display relative time, the format is the same as before.
2024-09-17 19:18:51 -04:00
Henry Jameson
a0c303efb6 fixed shadow preview, added more safeguards for spread on separateInset shadows 2024-09-16 00:03:40 +03:00
Henry Jameson
aa7a336183 Updated shadow control to be able to handle "absolute null" situation 2024-09-12 19:31:19 +03:00
Henry Jameson
2b9968eacd lint 2024-09-12 16:10:39 +03:00
Henry Jameson
a044dc377e Massively upgraded shadow control, added sorting by specificity in themes3, added/fixed disabled inputs 2024-09-12 15:54:23 +03:00
Henry Jameson
a586b9f6d2 fix themes3 specificity sorting 2024-09-12 12:46:47 +03:00
Henry Jameson
f5fbf9af64 fix nested panel headers 2024-08-28 23:54:46 +03:00
tusooa
71622e2932
Save draft on window's beforeunload event 2024-08-22 21:06:19 -04:00
tusooa
edf5e36bf8
Fix profile mention in drafts 2024-08-22 20:49:03 -04:00
tusooa
89346369e0
Clear draft if it is empty 2024-08-22 20:23:48 -04:00
tusooa
91500ee4b0
Disable drafts for chats 2024-08-22 20:13:56 -04:00
tusooa
f41f7c77d9
Make drafts work with Themes 3 2024-08-22 20:05:01 -04:00
tusooa
55598d1cad
Fix save draft button 2024-08-22 20:02:53 -04:00
tusooa
18d8bb2c04
Fix adding poll options not working 2024-08-22 20:02:53 -04:00
tusooa
5bc4ea2904
Do not popup dialog if autosave is on 2024-08-22 20:02:53 -04:00
tusooa
86f6fbeb46
Give the option to auto save drafts 2024-08-22 20:02:53 -04:00
tusooa
8a58de5c9f
Allow confirmation on closing edit form 2024-08-22 20:02:53 -04:00
tusooa
fb87477298
Allow confirmation on closing reply form 2024-08-22 20:02:53 -04:00
tusooa
b27f696d77
Use neutral badge for drafts 2024-08-22 20:02:53 -04:00
tusooa
5206609812
Prevent main post form from being associated with draft on load 2024-08-22 20:02:52 -04:00
tusooa
edcd6982a5
Fix poll duration unit 2024-08-22 20:02:52 -04:00
tusooa
95b06cacea
Fix adding/removing poll options 2024-08-22 20:02:52 -04:00
tusooa
dee38f7fe4
Save only if status has something to save 2024-08-22 20:02:52 -04:00
tusooa
2edf5fc9f6
Clean up debug statements 2024-08-22 20:02:52 -04:00
tusooa
b6f1178ea3
Save drafts permanently in local storage 2024-08-22 20:02:52 -04:00
tusooa
98bbb4eeef
Add drafts to side drawer 2024-08-22 20:02:52 -04:00
tusooa
71f16ec39c
Add draft count to nav panel 2024-08-22 20:02:52 -04:00
tusooa
2a8c7e8e7d
Handle polls in drafts 2024-08-22 20:02:52 -04:00
tusooa
747bad79fc
Handle situations where draft should be saved 2024-08-22 20:02:52 -04:00
tusooa
e67e5ff899
Abandon draft after all postings 2024-08-22 20:02:52 -04:00
tusooa
ba5cad90d8
Support editing 2024-08-22 20:02:51 -04:00
tusooa
8a7f17ac9e
Display information about replied-to/edited status 2024-08-22 20:02:51 -04:00
tusooa
a245379f43
Make it possible to abandon draft 2024-08-22 20:02:51 -04:00
tusooa
02e2e6b1bf
Add minimal draft management tool 2024-08-22 20:02:51 -04:00
tusooa
1edada7e9d
Save draft immediately before unmount 2024-08-22 20:02:51 -04:00
tusooa
1aa0901471
Add basic draft saving 2024-08-22 20:01:38 -04:00
Henry Jameson
ab90dc9fb1 Revert all the user highlight stuff for now 2024-08-15 21:53:12 +03:00
Henry Jameson
482f353f4d make posts have highlight on higher level 2024-08-15 11:35:33 +03:00
Henry Jameson
8b87d548ac didn't work, lol 2024-08-15 01:01:31 +03:00
Henry Jameson
5ad4d82b6b try to fix gaps 2024-08-15 00:57:23 +03:00
Henry Jameson
99490cdb21 speed up emoji picker somewhat 2024-08-13 23:54:18 +03:00
marcin mikołajczak
0878f5bfb4 Inform users that Smithereen public polls are public
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-13 19:41:06 +02:00
marcin mikołajczak
d67d24757f Use /api/v1/accounts/:id/follow for account subscriptions instead of the deprecated routes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-13 19:26:43 +02:00
Henry Jameson
aa17a92d4a fix missing zoom in appearance tab 2024-07-26 15:41:00 +03:00
Henry Jameson
27ee145450 fix theme preview styles being applied to post preview 2024-07-25 19:48:14 +03:00
Henry Jameson
d728fea3b1 fix language switcher 2024-07-25 11:58:58 +03:00