Commit graph

94 commits

Author SHA1 Message Date
Dessalines
464ea862b1
Preferred usernames, banners and icons. (#1055)
* Re-organizing federation tests. #746 #1040

* Adding federation support for user bios. Fixes #992

* Adding icons, banners, and preferred usernames.

- Added optional community icons, and community banners.
- Added user banners.
- Added Site icon and banner, with custom favicon.
- Set up preferred usernames. Fixes #1017
- Added an additional post sort: Active
  - Hot rank now uses the published time.
  - Active uses the most recent comment time, and is default.
- DB Migration was required to add all these fields to the views.
- Added transfercommunity helper function.
- Removed title column from communities page.
- Abstracted an image-upload-form.tsx, and a banner-icon-header.tsx
- Fixes #899

* Some navbar fixes.

* Fixing css

* Some fixes.

- Showing correct user icon and banner after save without page reload.
- Abstracting diesel update overwrite.
- Adding some docs.

* Adding @ when a user doesn't have a preferred username.
2020-08-05 12:03:46 -04:00
Dessalines
ae78b3473f Some more prettifying, cleaning up community and main.tsx 2020-07-29 00:23:24 -04:00
Dessalines
6e4599411b
Adding inferno-helmet to fix page titles. Fixes #1028 (#1030) 2020-07-27 11:54:42 -04:00
Dessalines
d1342afe93
Remove extra jwt claims (for user settings) (#1025)
* Remove extra jwt claims (for user settings)

- The JWT token only contains the issuer, and your user id now.
- Now only a page refresh is necessary to pick up your settings on all
  clients, including theme, language, etc.
- GetSiteResponse now gives you your user and settings if logged in.
- Fixes #773

* Remove extra comment line, I tested nsfw

* Adding a todo to add a User_::readSafe()
2020-07-27 09:23:08 -04:00
Dessalines
76fec39670 Adding a lot of front end prettying.
- Re-did litely theme.
- Increased spacing.
- Fixed up navbar to not full width.
- Made login/sign up stand out.
- Made thumbnails have a light background.
- Removed btn-sm, made almost all buttons bigger.
- Made all badges lighter.
- Made card backgrounds transparent.
- Fixes #888
2020-07-23 02:10:22 -04:00
Dessalines
59da2976ab Some more API cleanup.
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
2020-07-22 14:20:08 -04:00
Dessalines
b6a6d52a92 Merge branch 'main' into api_edit_separation 2020-07-22 13:47:52 -04:00
Dessalines
55ce7b1339
Adding version to GetSite. Fixes #1001 (#1002)
* Adding version to GetSite. Fixes #1001

* Removing version.ts file
2020-07-21 13:20:23 +00:00
Dessalines
2eac037408 Adding post delete, remove, lock, and sticky. 2020-07-20 23:46:36 -04:00
Dessalines
fd96dfdb5e Added comment delete, remove, read. 2020-07-20 21:37:44 -04:00
Dessalines
9bc6698f58 Added community delete and remove. 2020-07-20 13:37:39 -04:00
Dessalines
23688f17bb Making chat only sortable by new. 2020-07-13 15:20:46 -04:00
Dessalines
c72acfd282 Fixing offset for mobile reflow. 2020-07-12 14:10:38 -04:00
Dessalines
ff2f70b1de Moving recent comments into main view as a chat select. Fixes #943 2020-07-12 00:58:42 -04:00
Dessalines
cd4e0ab3c2 HTML title bugs.
- Fixing HTML titles for some pages. Fixes #801
- Removing WebSocketService.Instance.site, fetching site on demand now.
2020-07-08 01:02:14 -04:00
Dessalines
b5c1fec845 Fixing issue with empty crossposts. 2020-05-18 09:50:05 -04:00
Dessalines
99e4551cf6 Simplify cross-posts. Fixes #727 2020-05-17 18:39:15 -04:00
Dessalines
221e35ec38 Try to fix post creation bug. 2020-04-05 10:11:16 -04:00
Dessalines
1f0439badd Adding showContext for comments to more places by default. 2020-03-20 22:24:27 -04:00
Dessalines
47dd8acf54 Adding loading indicators to save and mark as read. #519 2020-03-19 11:45:23 -04:00
Dessalines
a823084947 Adding key to comment-node to not clear out form. Fixes #588 2020-03-09 21:38:10 -04:00
Dessalines
08af66ba28 Some comment-node additions
- Hiding extra vote counts if no downvotes.
- Showing numbers on actions if there are.
2020-03-06 09:57:15 -05:00
Dessalines
858366c57b Proper comment-node depth coloring. 2020-03-05 15:10:46 -05:00
Dessalines
c999579c05 Better tippy loading. Fixes #577 2020-03-04 22:35:55 -05:00
Dessalines
774518e4fe Fixing unread indicator on link click. Fixes #527 2020-02-11 10:14:09 -05:00
Dessalines
fd8814677e Live post and comment resorting. Fixes #522
- Moving sorting to utils.
2020-02-09 11:44:24 -05:00
Dessalines
56cd103209 Fixing some technical debt. Fixes #524 2020-02-08 23:20:11 -05:00
Dessalines
716ce0f779 Adding if found to catch errors. 2020-02-05 14:24:35 -05:00
Dessalines
b0b50098a4 Websocket reconnect reload page data. Fixes #504 2020-02-04 11:19:05 -05:00
Dessalines
caba049da1 Merge branch 'dev' into websocket_scopes 2020-02-02 14:37:19 -05:00
Dessalines
ccda4d8453 Some minor fixes. 2020-02-02 14:10:15 -05:00
Dessalines
ac943f8951 Finishing up interpolation rework. 2020-02-02 13:50:44 -05:00
Dessalines
96a7e99e57 Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends. 2020-02-02 12:45:41 -05:00
Dessalines
cda1e6e741 Fixing issue with multiple notifications. 2020-02-02 10:09:01 -05:00
Dessalines
8036474dda Starting to work on user message scope. 2020-01-31 20:02:20 -05:00
Richard
2f9a052f89 usability features
This are all the commits from another PR combined into a single commit.
2020-01-31 21:52:27 +01:00
D Anzorge
8bcf191a1d Add sorting by old (date, ascending) to comment frontend 2020-01-28 20:14:08 +01:00
Dessalines
2e84441e66 Strictly typing websocket forms. 2020-01-27 21:04:30 -05:00
Dessalines
aa5a911edc Fixing front end error messages. Fixes #462 2020-01-25 09:58:53 -05:00
Dessalines
ac1d5f2b86 Done merging http-api and private_message 2020-01-23 19:17:42 -05:00
Dessalines
3b4258096c Adding a toaster to replace alerts. Fixes #457 2020-01-22 22:29:11 -05:00
Dessalines
e31090c9bd Adding comment and post vote loading indicators. Fixes #449 2020-01-20 10:11:50 -05:00
Dessalines
ac7a4031a8 Hide next paginator.
- Fixes #441
- Hide post sort radio if no comments.
2020-01-19 16:47:54 -05:00
Dessalines
dcd60228ed Strongly typing WebsocketJsonResponse. Forgot comment-form.tsx 2020-01-19 00:38:45 -05:00
Dessalines
a044718066 First pass at fixing UI to work with new websocketresponses. 2020-01-18 23:54:10 -05:00
Dessalines
82253f625b Upgrade package.json. 2020-01-06 11:22:51 -05:00
Dessalines
4e55612833 Running prettier on code.
- #305 , #309
2019-10-18 17:20:27 -07:00
Dessalines
c0821fcaa5 Adding 8 different themes.
- Fixes #276
2019-10-15 12:21:27 -07:00
Dessalines
c4bb6028c4 Sort removed and deleted comments at the bottom.
- Fixes #279
2019-10-13 12:53:41 -07:00
Dessalines
c8da0a92ec Add Creator flair for post creator / OPs comments
- Fixes #275
2019-09-13 08:37:12 -07:00