Commit Graph
68 Commits
Author SHA1 Message Date
Xyphyn 4113c1108c feat: use beforeNavigate to allow users to click back 2023-08-22 16:07:33 -07:00
Xyphyn 9df7dc0604 fix: add break-word 2023-08-19 17:51:28 -07:00
Xyphyn fee08ed7ed fix: reactivity issue causing comment tree to rebuild 2023-08-19 15:43:56 -07:00
Xyphyn 435c529abc feat: auto linkify post urls 2023-08-18 19:27:22 -07:00
Xyphyn a971e04bed feat: show crossposts 2023-08-18 18:44:36 -07:00
Xyphyn eac1c4981a feat: use ap_id 2023-08-18 18:31:42 -07:00
Xyphyn c09460bd9b feat: add option to resolve posts to your home instance 2023-08-15 16:03:13 -07:00
Xyphyn dca0edf0b1 misc: use bindings to show updated data easily 2023-08-12 10:11:39 -07:00
Xyphyn b1b9486d3e fix: only a few comments load when changing sort 2023-08-11 16:41:13 -07:00
Xyphyn f9becd1bd0 feat: add default comment sorts, close #93 2023-08-10 17:01:25 -07:00
Xyphyn 45e0326668 fix: show warning message for different page and user instance 2023-08-08 15:59:07 -07:00
Xyphyn d59060ab35 feat: switch to svh 2023-08-05 13:18:21 -07:00
Xyphyn 5c04bdb677 feat: add placeholder component 2023-08-05 12:48:15 -07:00
Xyphyn 2035ee052a feat: switch fetch function 2023-08-04 15:08:44 -07:00
Xyphyn e34cace14f feat: improve error handling 2023-08-03 12:07:57 -07:00
Xyphyn 4bb6f67e52 feat: add basic video support 2023-08-03 11:26:16 -07:00
Xyphyn ce59f413a0 misc: hide instance warning when logged out 2023-08-03 11:11:04 -07:00
Xyphyn 87612d6507 feat: switch to a string instead of enum 2023-08-02 14:22:27 -07:00
Xyphyn 2da415b670 feat: switch to new account system 2023-08-01 13:00:06 -07:00
Xyphyn bfb36a93f8 misc: remove useless padding 2023-07-31 14:49:49 -07:00
Xyphyn 461a15a1ef feat: add better thread viewing 2023-07-30 13:54:39 -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 32f65add46 misc: tweak comments look 2023-07-29 10:22:03 -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
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 b0e9e898f1 fix: fix #28 2023-07-27 11:30:56 -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 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 03d854011b feat: add #16 2023-07-26 11:52:41 -07:00
Xyphyn 1dd179d636 feat: Add search function 2023-07-26 11:39:54 -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
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 0fb17f626f fix: Make child loading indicator only appear on parent 2023-07-19 16:09:24 -07:00
Xyphyn 5d0e09f2e3 misc: minor design tweaks 2023-07-18 17:08:08 -07:00
Xyphyn b0f3e01f5a misc: Split post component into more components 2023-07-18 16:38:45 -07:00
Xyphyn 58057bbeaa fix centering 2023-07-18 14:35:37 -07:00
Xyphyn 1d5ddcbd70 misc: Fix spinner pos 2023-07-18 14:35:19 -07:00
Xyphyn 12d4a9d9de misc: Fix line height 2023-07-18 12:05:32 -07:00
Xyphyn 9d21f6331a misc: Minor design tweaks 2023-07-18 11:34:32 -07:00
Xyphyn 3bb849cb4b design: Increase contrast for instance url 2023-07-17 17:10:22 -07:00
Xyphyn 4bfdda2e27 feat: Add spinner 2023-07-17 16:30:05 -07:00
Xyphyn fed5cc2263 feat: Allow changing instance URL when not logged in 2023-07-17 10:40:06 -07:00
Xyphyn f127b5f645 fix: remove border 2023-07-16 16:44:59 -07:00
Xyphyn f1196be17c fix: Fix link desigb 2023-07-16 16:36:35 -07:00
Xyphyn ddfa1aae39 feat: Add better URL handling and badges to post page 2023-07-16 13:31:44 -07:00
Xyphyn eb006ed982 misc: I haven't eaten in 16 hours brb gonna get some food 2023-07-16 13:24:32 -07:00
Xyphyn d6204b24ce misc: Remove unused properties 2023-07-15 17:25:55 -07:00