Commit Graph
160 Commits
Author SHA1 Message Date
Xyphyn 62baf475b6 design: tweak design 2023-07-30 14:44:43 -07:00
Xyphyn 461a15a1ef feat: add better thread viewing 2023-07-30 13:54:39 -07:00
Xyphyn 338a758219 misc: add some user badges 2023-07-30 12:28:35 -07:00
Xyphyn e10957ef94 misc: hide instance setting if LINKED_ISNTANCE_URL is set 2023-07-30 11:58:53 -07:00
Xyphyn ca3496a31f misc: change error message 2023-07-30 11:57:59 -07:00
Xyphyn eb1d90478e misc: switch to csr 2023-07-30 11:55:04 -07:00
Xyphyn 8721e61554 hotfix: git added stupid locale stuff because resets dont remove untracked files 2023-07-30 11:09:56 -07:00
Xyphyn a36b9c7c15 a11y: remove invalid roles 2023-07-29 19:53:58 -07:00
Xyphyn 981c18e65f misc: fix relative date component 2023-07-29 19:53:31 -07:00
Xyphyn 8488bb1e17 fix: change <p> to <div>, as it wasn't necessary for semantics 2023-07-29 15:24:36 -07:00
Xyphyn 1c9661546c feat: add unread filters to inbox and reports 2023-07-29 13:09:40 -07:00
Xyphyn 32f65add46 misc: tweak comments look 2023-07-29 10:22:03 -07:00
Xyphyn 9711ffe4d9 feat: add feed filtering to inbox 2023-07-29 10:21:48 -07:00
Xyphyn 590eedc0fb misc: minor tweaks 2023-07-28 18:52:37 -07:00
Thomas J Faughnan Jr 34c712c01c fix: parse date strings as UTC
For posts, comments, and other objects, the `published` attribute is a
string containing an ISO 8601 timestamp. This timestamp is UTC, though
it is not explicit in the string's contents. When the `Date` constructor
is used on such strings, they are parsed as though they are local
timestamps. According to [1]:

> When the time zone offset is absent, date-only forms are
> interpreted as a UTC time and date-time forms are interpreted as local
> time. This is due to a historical spec error that was not consistent
> with ISO 8601 but could not be changed due to web
> compatibility.

This patch explicitly appends a 'Z' to the `published` string when it is
used as the argument to the `Date` constructor.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
2023-07-28 20:02:01 -04:00
Xyphyn 3d19318355 misc: Increase post body padding 2023-07-28 16:22:50 -07:00
Xyphyn f90ecb703c misc: add login message to post create 2023-07-28 14:00:42 -07:00
Xylight d3aae647a8 feat: add moderation tools (#33)
* feat: Add post submission removal

* feat: add comment submission removal

* feat: add report viewing and resolving

* misc: add notification dot

* misc: add locked thread badge

* feat: add thread locking

* feat: add initiating message conversations

* feat: add post pinning/unpinning

* misc: bump version

* fix: tweak lock colors

* fix: update post data on pin

* fix: return if reason is empty
2023-07-27 15:53:31 -07:00
Xyphyn 53ef843cde feat: add profile page filtering 2023-07-27 12:48:43 -07:00
Xyphyn a39cb60652 feat: Add user blocking 2023-07-27 12:39:01 -07:00
Xyphyn 81270b72d3 feat: Add pagination to inbox page 2023-07-27 12:30:09 -07:00
Xyphyn c0aaf08a9f feat: add sorts to user pages 2023-07-27 12:25:26 -07:00
Xyphyn d427d4b2fc misc: remove useless page 2023-07-27 11:58:17 -07:00
Xyphyn 378580dd9f misc: switch to pagination component 2023-07-27 11:57:56 -07:00
Xyphyn 8e75e05585 fix: add pageination to user profiles 2023-07-27 11:52:09 -07:00
Xyphyn ef0cb48710 misc: switch to CommentItem for posts 2023-07-27 11:33:23 -07:00
Xyphyn b0e9e898f1 fix: fix #28 2023-07-27 11:30:56 -07:00
Xylight 93c670f20a Merge pull request #29 from Xyphyn/moderation
feat: add reporting
2023-07-26 21:46:27 -07:00
Peter Bui 54c03b96dc fix: properly load comments when sorting (#30)
Need to set type_ to 'All' when calling getComments().  Otherwise,
trying sort the comments on a post by "Top" or "New" will refresh
without any comments.
2023-07-26 21:14:44 -07:00
Xyphyn 6fcef02809 feat: add reporting 2023-07-26 19:13:26 -07:00
Xyphyn ff2d424a99 misc: tweak line height 2023-07-26 18:48:09 -07:00
Xyphyn c2746cafaf misc: make user card visible on mobile 2023-07-26 18:42:31 -07:00
Xyphyn 327ef007aa misc: change community sidebar to a modal 2023-07-26 18:40:26 -07:00
Xyphyn 1400779b18 misc: tweak user link color 2023-07-26 16:08:35 -07:00
Xyphyn 038a4363b0 fix: swap order of isImage and thumbnail 2023-07-26 15:03:43 -07:00
Xyphyn 5024e9edf1 feat: add #20 2023-07-26 12:45:34 -07:00
Xyphyn 9c9a3dc6a2 fix: Fix community sidebar going offscreen 2023-07-26 11:52:58 -07:00
Xyphyn 03d854011b feat: add #16 2023-07-26 11:52:41 -07:00
Xyphyn bb8818b17b fix: Add search button 2023-07-26 11:43:37 -07:00
Xyphyn 1dd179d636 feat: Add search function 2023-07-26 11:39:54 -07:00
Xyphyn 91134d05e4 fix: Fix 2FA form validation 2023-07-26 10:43:40 -07:00
Peter Bui e778450963 fix: show post.url if the post does not have a thumbnail (#23)
Right now, if a post does not have a post.thumbnail_url and is just a
link to another website, the link is not displayed... so the user cannot
go to the actual article.

This copies the link code from the Post object and provides a link if
there is a post.url but not a post.thumbnail_url.
2023-07-26 10:33:05 -07:00
Peter Bui e028113ab0 feat: show compact posts (#22)
Add a new UI setting for showing compact posts:

- Show a small thumbnail to the right of the metadata and title if a
  thumbnail is available or if the post is an image
- Do not show normal thumbnail or text bodies.
2023-07-26 10:32:04 -07:00
Xyphyn 2f1257fffa misc: Add empty search to community search 2023-07-25 19:19:18 -07:00
Xyphyn d42f8bc8af misc: Add empty subscribed feed message 2023-07-25 19:19:18 -07:00
Peter Bui fda05d200e fix: add onchange for Communities TextInput
This allows the user to simply enter in their filter and press enter,
rather than having to press the "Search" button.
2023-07-25 17:09:05 -04:00
Xyphyn 90587cfa26 fix: Fix #10 2023-07-25 11:30:27 -07:00
Xylight 7b1ad247f9 feat: Add post and comment editing (#12)
* feat: Add editing

* feat: Add comment badges

* fix: make loading more consistent

* misc: remove prop drilling

* feat: Add post editing

* misc: update version

* feat: Add comment deletion
2023-07-25 11:12:15 -07:00
Xyphyn 63788009b4 fix: use location.origin 2023-07-23 16:46:22 -07:00
Xyphyn 55f5b3591a fix: Don't show reply popup all the time 2023-07-22 16:41:03 -07:00