Commit Graph
43 Commits
Author SHA1 Message Date
Xyphyn c53ec52d86 feat: switch from card to material 2023-09-04 11:27:19 -07:00
Xyphyn 43b0e87ebf feat: use new spinner component 2023-09-04 11:04:31 -07:00
Xyphyn e946d0de48 feat: add community search to search page 2023-09-04 10:49:31 -07:00
Xyphyn c4a1f143cb misc: tweak color 2023-09-02 22:00:34 -07:00
Xyphyn e97e43230f fix: overlap 2023-08-31 19:13:55 -07:00
Xyphyn 72cfd7a894 fix: post vote style 2023-08-31 18:45:25 -07:00
Xyphyn 9833a775c4 feat: change compact post style 2023-08-31 18:38:41 -07:00
Xyphyn 9df7dc0604 fix: add break-word 2023-08-19 17:51:28 -07:00
Xyphyn 6630b89bce misc: tweak image 2023-08-13 20:15:19 -07:00
Xyphyn dca0edf0b1 misc: use bindings to show updated data easily 2023-08-12 10:11:39 -07:00
Xyphyn dff48fa213 misc: improve accessibility 2023-08-11 15:48:12 -07:00
Xyphyn b1356ffb66 misc: increase max post height 2023-08-11 13:52:02 -07:00
Xyphyn 542bd3fb41 fix: fix dark theme image loading 2023-08-10 17:51:50 -07:00
Xyphyn 1ef6d804d8 misc: remove spinner 2023-08-09 11:36:57 -07:00
Xyphyn 7e1bca149f misc: improve image loading 2023-08-09 11:35:10 -07:00
Xyphyn 3f1becf792 feat: add ability to click on images, close #86 2023-08-09 11:19:45 -07:00
Xyphyn 5c04bdb677 feat: add placeholder component 2023-08-05 12:48:15 -07:00
Xylight 3ef90fdf26 Revert "Rearrange post meta for better alignment in compact post view (#63)" (#64)
This reverts commit 6b496f43f5.
2023-08-02 14:40:08 -07:00
6b496f43f5 Rearrange post meta for better alignment in compact post view (#63)
* Compact post view: Allow post meta to fill the card & align post title with thumbnail

* misc: fix gap

---------

Co-authored-by: zamuz <>
Co-authored-by: Xyphyn <james@xylight.dev>
2023-08-02 14:37:16 -07:00
Xyphyn 87612d6507 feat: switch to a string instead of enum 2023-08-02 14:22:27 -07:00
Xyphyn 4970d44033 fix: #60 2023-08-01 18:40:15 -07:00
Xyphyn b4bcadf40d misc: re-add markdown to posts 2023-07-31 13:00:35 -07:00
Xyphyn d23b58776c fix: fix another centering issue and line cutoff issue 2023-07-30 15:25:39 -07:00
Xyphyn 62baf475b6 design: tweak design 2023-07-30 14:44:43 -07:00
Xyphyn d9da0d9fd0 misc: improve bundle size 2023-07-30 13:11:46 -07:00
Xyphyn 8b752393e0 misc: change thumbnail size 2023-07-29 20:01:44 -07:00
Xyphyn e1ac96def3 a11y: improve accessibility 2023-07-29 19:59:55 -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 d65c62d2d9 misc: increase post body length before cutoff 2023-07-29 12:47:23 -07:00
Xyphyn ba6fc8cbeb misc: add markdown to body preview 2023-07-29 12:40:06 -07:00
Xyphyn 32f65add46 misc: tweak comments look 2023-07-29 10:22:03 -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
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 6fcef02809 feat: add reporting 2023-07-26 19:13:26 -07:00
Xyphyn e5492313bd tweak: change colors 2023-07-26 13:23:16 -07:00
Xyphyn 607fc7f837 fix: Fix ratio not appearing if downvotes are 0 2023-07-26 11:44:44 -07:00
Xyphyn 1dd179d636 feat: Add search function 2023-07-26 11:39:54 -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
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 752c827455 Revert "misc: tweak color"
This reverts commit bb62fd0a9b.
2023-07-22 16:45:43 -07:00
Xyphyn bb62fd0a9b misc: tweak color 2023-07-22 16:39:48 -07:00
Xyphyn b0f3e01f5a misc: Split post component into more components 2023-07-18 16:38:45 -07:00
Xyphyn 9d21f6331a misc: Minor design tweaks 2023-07-18 11:34:32 -07:00