Commit Graph

5611 Commits

Author SHA1 Message Date
Henry Jameson
4a1ffced44 fix unit tests 2022-10-10 22:04:49 +03:00
Henry Jameson
faca1b31e3 better autocomplete handling, fix leak 2022-10-10 20:26:32 +03:00
Henry Jameson
692342a77f focus search input when opening emoji picker 2022-10-10 20:11:04 +03:00
Henry Jameson
d2fabe1a71 use anchor for picker 2022-10-10 00:37:59 +03:00
Henry Jameson
8fa1f0b50d move keepOpen to picker 2022-10-10 00:33:58 +03:00
Henry Jameson
296a6fa4e3 some shitty initial implementation of emoji picker with popover 2022-10-09 23:42:36 +03:00
Henry Jameson
518fcf856a fix blinking popup 2022-10-09 23:09:31 +03:00
Henry Jameson
2469415809 fix css 2022-10-09 23:02:42 +03:00
Henry Jameson
05640e4cc1 cleanup 2022-10-09 23:02:39 +03:00
Henry Jameson
3dd9f6f68c moved popovers space outside app because otherwise it causes weird
issues A LOT
2022-10-09 23:01:49 +03:00
Henry Jameson
4631b1b9f7 suggestor popover 2022-10-09 22:09:50 +03:00
Henry Jameson
8b957fb85e fix chevrons alignment 2022-10-09 19:04:45 +03:00
Henry Jameson
cf9957c733 fix alert dot 2022-10-09 19:00:25 +03:00
Henry Jameson
5fa533fbb7 Merge remote-tracking branch 'origin/develop' into scrolltotop
* origin/develop: (89 commits)
  Update dependency @vuelidate/validators to v2.0.0
  Remove lolex package
  Remove diff package
  Pin dependencies
  Update dependency sass to v1.55.0
  Make suggestor suggest according to cldr annotations
  Make chunks named
  Use import() for emoji.json
  Add regional indicators
  Support filtering by keywords from cldr
  Display localized unicode emoji names
  Load unicode emoji annotations
  Extract language list to its own file
  using the half-shit approach since proper approach is full-shit
  Make unicode emoji phrases match with _
  Use console.info
  Fix non-square emojis being truncated
  Fix emoji picker lint
  Fix emoji picker lint
  Tweak efficiency when changing filter keywords in emoji picker
  ...
2022-10-09 18:51:42 +03:00
Henry Jameson
0331e42ee8 move definitions for timeline header buttons to Panel.scss, now called
rightside buttons
2022-10-09 18:50:13 +03:00
Henry Jameson
ce6ce4b6cd minor improvements 2022-09-29 11:52:48 +03:00
Henry Jameson
a4e0eeea7a fix buttons overlapping 2022-09-29 11:49:19 +03:00
Henry Jameson
66014fcfcb port changes to notifications 2022-09-28 21:34:53 +03:00
Henry Jameson
7519c7f5d5 cleanup 2022-09-28 21:34:41 +03:00
Henry Jameson
d3b5ba4864 added scrolltotop for mobile notifications 2022-09-28 21:34:33 +03:00
Henry Jameson
1c459028cc fix scrollerref not setting properly 2022-09-28 21:23:27 +03:00
Henry Jameson
8c4de692f4 apply same for scrolltop button 2022-09-28 21:17:44 +03:00
Henry Jameson
c041d7aa9b refactor css for timeline buttons, make it a bit easier to tap them 2022-09-28 21:16:05 +03:00
Ilja
131d310703 Only show Reports tab in Interactions when privileged to see reports 2022-09-24 16:00:10 +02:00
Ilja
5541d0ec29 Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into fine_grained_moderation_privileges 2022-09-24 15:56:27 +02:00
HJ
03b61f0a9c Merge branch 'from/develop/tusooa/grouped-emoji-picker' into 'develop'
Group emojis into packs in emoji picker

See merge request pleroma/pleroma-fe!1408
2022-09-22 08:11:25 +00:00
Tusooa Zhu
a7f836a64e
Make suggestor suggest according to cldr annotations 2022-09-21 23:16:33 -04:00
Tusooa Zhu
a758e18dce
Make chunks named 2022-09-20 23:13:07 -04:00
Tusooa Zhu
6fab7b9e3f
Use import() for emoji.json 2022-09-20 22:03:31 -04:00
Tusooa Zhu
cc58b9b93d
Add regional indicators 2022-09-20 21:50:40 -04:00
Tusooa Zhu
980241c1ac
Support filtering by keywords from cldr 2022-09-20 21:06:57 -04:00
Tusooa Zhu
a73f9731f5
Display localized unicode emoji names 2022-09-20 20:44:52 -04:00
Tusooa Zhu
1c3bdda14c
Load unicode emoji annotations 2022-09-20 20:15:32 -04:00
Tusooa Zhu
d5411c9f88
Extract language list to its own file 2022-09-20 19:27:26 -04:00
tusooa
aa9cae8c71 Merge branch 'add/remove-from-followers' into 'develop'
Added support for removing users from followers

See merge request pleroma/pleroma-fe!1640
2022-09-20 18:58:32 +00:00
Henry Jameson
fa1d9f3fb4 using the half-shit approach since proper approach is full-shit 2022-09-20 00:24:08 +03:00
Tusooa Zhu
0445d7c882
Make unicode emoji phrases match with _ 2022-09-18 13:19:55 -04:00
HJ
8bd27165f3
Fix non-square emojis being truncated 2022-09-18 13:19:55 -04:00
Tusooa Zhu
6e2b87f5af
Fix emoji picker lint 2022-09-18 13:19:55 -04:00
Tusooa Zhu
58b01db9e1
Fix emoji picker lint 2022-09-18 13:19:54 -04:00
Tusooa Zhu
5d6f3a5c8b
Tweak efficiency when changing filter keywords in emoji picker 2022-09-18 13:19:54 -04:00
Tusooa Zhu
09bcb6a5b1
Use trimmed keyword for filtering emojis 2022-09-18 13:19:54 -04:00
Tusooa Zhu
0fd0d6c4c2
Limit the width of unsupported multichar emojis 2022-09-18 13:19:54 -04:00
Tusooa Zhu
e01c76c7e9
Make emoji picker work with vue3 2022-09-18 13:19:54 -04:00
Tusooa Zhu
96564609f8
Make StillImage react to src changes 2022-09-18 13:19:54 -04:00
Tusooa Zhu
fbbeb33f48
Lint 2022-09-18 13:19:54 -04:00
Tusooa Zhu
a29ac5b9a4
Add English translation for unicode emoji group names 2022-09-18 13:19:53 -04:00
Tusooa Zhu
02de0ed825
Add icons for unicode emoji groups 2022-09-18 13:19:53 -04:00
Tusooa Zhu
8f4f02683f
Make emoji picker use grouped unicode emojis 2022-09-18 13:19:53 -04:00
Tusooa Zhu
38861fc6cc
Scroll active tab header into view in emoji picker 2022-09-18 13:19:53 -04:00
Tusooa Zhu
d9e428ebab
Clean up emoji picker css 2022-09-18 13:19:53 -04:00
Tusooa Zhu
b77259a9a0
Use StillImage to render emojis in emoji picker 2022-09-18 13:19:52 -04:00
Tusooa Zhu
c93da0b865
Fix error on emoji picker first load
Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
d648a6f8dc
Group emojis only by pack and remove pack: prefix
Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
3156f046b4
Lint
Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
06a636db37
Lazy-load emoji picker in post form
When clicking the reply button, we used to load the whole emoji picker.
This causes a considerable delay even if the user is not going to use
the emoji picker. Now the content of the emoji picker is loaded only
after the user has explicitly opened the emoji picker.

Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
9aeffd7634
Fix sticker picker heading tab
Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
d00ebc14f1
Fix vertical scrollbar of emoji picker header
Ref: grouped-emoji-picker
2022-09-18 13:19:52 -04:00
Tusooa Zhu
5ab51613b7
Use StillImage for emoji group header
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
031a01be79
Remove useless class disabled in emoji picker
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
f1d6e6afce
Clean up unused variables
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
23edc4f7e2
Fix scrol->highlight behaviour
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
8777b6eadd
Clean up legacy code in emoji picker
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
c70cdbb873
Use lozad for lazy image loading
Ref: grouped-emoji-picker
2022-09-18 13:19:51 -04:00
Tusooa Zhu
90f757cc6d
Lint 2022-09-18 13:19:51 -04:00
Tusooa Zhu
123913f34f
Optimise emoji picker loading process 2022-09-18 13:19:50 -04:00
Tusooa Zhu
99a368dbb3
Load emoji properly on first showing 2022-09-18 13:19:50 -04:00
Tusooa Zhu
ba1b006e05
Load visible emoji groups when scrolling 2022-09-18 13:19:50 -04:00
Tusooa Zhu
992d57ef69
Display all emoji groups on emoji picker header 2022-09-18 13:19:50 -04:00
Tusooa Zhu
ff2242e85d
Fix load more emoji action 2022-09-18 13:19:50 -04:00
Tusooa Zhu
69b3102fb2
Group custom emojis by pack in emoji picker 2022-09-18 13:19:40 -04:00
Sean King
3c707608ce
Change "Remove this follower" to "Remove Follower" and add a button to remove a follower in the followers tab for the logged in user 2022-09-17 11:36:34 -06:00
Sean King
12d8d1711b
Added support for removing users from followers 2022-09-15 22:02:58 -06:00
HJ
d8730cad60 Merge branch 'apology-fixes' into 'develop'
add a mask to load shape to flow text around quicker

Closes #1183

See merge request pleroma/pleroma-fe!1618
2022-09-14 15:11:18 +00:00
tusooa
2bea5d8128 Merge branch 'add/edit-status' into 'develop'
Add edit status functionality

See merge request pleroma/pleroma-fe!1537
2022-09-11 18:08:00 +00:00
Tusooa Zhu
12b0561992
Fix follow request count 2022-09-07 20:00:41 -04:00
Henry Jameson
2ab51a4ccb fix veryfaint not applying 2022-08-31 01:19:18 +03:00
Henry Jameson
73abae1b3e lint 2022-08-31 00:58:03 +03:00
Henry Jameson
98f97ff9a9 lint 2022-08-31 00:57:02 +03:00
Henry Jameson
8ecb67230c make custom router-link for nav-entry to un-nest the interactive elements 2022-08-31 00:48:38 +03:00
Henry Jameson
3ffe62acdc make "up to date" icon even more faint to distinguish it from actual
interactive elements
2022-08-30 23:55:35 +03:00
Henry Jameson
887fac5add Merge remote-tracking branch 'origin/develop' into scrolltotop
* origin/develop: (59 commits)
  a11y
  Use dedicated indicator for non-ascii domain names
  add a favorites "timeline" shortcut
  refactor navigation-entry and use them in other nav items
  Update dependency sinon-chai to v3
  Update dependency semver to v7
  Update dependency vue-router to v4.1.5
  Update dependency eslint to v8.23.0
  Update dependency vue-template-compiler to v2.7.10
  Update dependency @vue/babel-helper-vue-jsx-merge-props to v1.4.0
  Update dependency eslint-plugin-promise to v6.0.1
  fix lists edit page
  change ugly checkbox to a list element that doesn't look too much out of place
  a11y
  squeeze/stretch pinned items as long as there's enough space for it, hide items that won't fitc
  Remove isparta
  lint
  fix being unable to edit timeline pins on mobile
  aria
  fix mobile side drawer causing issues
  ...
2022-08-30 23:54:16 +03:00
tusooa
8b25febe36 Merge branch 'navigation-update' into 'develop'
Navigation update + preferences storage (and some minor fixes)

See merge request pleroma/pleroma-fe!1592
2022-08-30 00:14:30 +00:00
Henry Jameson
dbb6f22442 a11y 2022-08-30 02:36:41 +03:00
Tusooa Zhu
0a79a74773
Use dedicated indicator for non-ascii domain names 2022-08-29 18:46:41 -04:00
Henry Jameson
ec320e8fb6 add a favorites "timeline" shortcut 2022-08-30 00:53:20 +03:00
Henry Jameson
768b3ea14f refactor navigation-entry and use them in other nav items 2022-08-30 00:15:42 +03:00
Henry Jameson
af734afe36 lint 2022-08-24 22:46:41 +03:00
Henry Jameson
f31bec7ef8 only mark as read if closed intentionally 2022-08-24 22:42:58 +03:00
Henry Jameson
09a4d963d4 fix notifications 2022-08-24 22:37:07 +03:00
Henry Jameson
986c453702 use a bit more compact layout on mobile 2022-08-24 22:31:48 +03:00
Henry Jameson
4e339d9be3 Merge remote-tracking branch 'origin/develop' into scrolltotop
* origin/develop: (47 commits)
  Update dependency eslint-plugin-vue to v9.4.0
  Update dependency opn to v5
  fix notices being under the navbar, also change offset to use variable
  fix modals not having proper z index
  reduce indexes to be below 9999 so that develop error messages appear above
  Fix react & extra buttons not styled on tab-focus
  Fix popover not popping up
  Fix styling on Safari
  Use :focus-visible instead of :focus for focus markers
  Optimize Reply badge position
  Add badges to status interacting buttons
  Update dependency nightwatch to v2
  Update dependency eslint-plugin-n to v15.2.5
  Update dependency mocha to v10
  Update dependency karma-coverage to v2
  Update dependency sass to v1.54.5
  Update dependency karma-firefox-launcher to v2
  Update dependency vue-template-compiler to v2.7.9
  Pin dependencies
  Refresh yarn.lock
  ...
2022-08-24 22:01:00 +03:00
Henry Jameson
ea3ce55929 fix lists edit page 2022-08-24 20:33:04 +03:00
Henry Jameson
8c48a56a89 change ugly checkbox to a list element that doesn't look too much out of place 2022-08-24 20:24:21 +03:00
Henry Jameson
cf714c2756 a11y 2022-08-24 20:24:08 +03:00
Henry Jameson
8dceffa8d7 squeeze/stretch pinned items as long as there's enough space for it,
hide items that won't fitc
2022-08-24 19:57:57 +03:00
Henry Jameson
dc5992f990 lint 2022-08-23 22:18:33 +03:00
Henry Jameson
d3454ca7de fix being unable to edit timeline pins on mobile 2022-08-23 22:16:51 +03:00
Henry Jameson
f44ae0ce6b aria 2022-08-23 22:15:46 +03:00
Henry Jameson
666015c9fa fix mobile side drawer causing issues 2022-08-23 22:10:21 +03:00
Henry Jameson
cd7380efe7 Merge remote-tracking branch 'origin/develop' into navigation-update
* origin/develop:
  Update dependency opn to v5
  fix notices being under the navbar, also change offset to use variable
  fix modals not having proper z index
  reduce indexes to be below 9999 so that develop error messages appear above
  Do not allow to find by name in findUser()
  Use lookup endpoint to obtain users by nickname
  Use $ for id UserProfile routes
  Allow opening profile: multiChoiceProprties record, anonymous access
  Allow opening profile when clicking an avatar inside of user popover
2022-08-23 21:52:17 +03:00
Henry Jameson
bd7356376e fix links not being active by default 2022-08-23 15:36:54 +03:00
Henry Jameson
63f35509a7 improve submenu and improve icon buttons hover effects 2022-08-23 13:26:05 +03:00
Sean King
ee58e3868c
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into add/edit-status 2022-08-22 19:08:58 -06:00
Henry Jameson
6e1639cc1e fetch text height only after mask has been loaded 2022-08-23 02:06:54 +03:00
Henry Jameson
420f29b6a4 add a mask to load shape to flow text around quicker 2022-08-23 02:01:56 +03:00
HJ
cb6b96b9ba Merge branch 'zindexes-fix' into 'develop'
Fix various issues related to z-indexes

See merge request pleroma/pleroma-fe!1617
2022-08-22 22:58:57 +00:00
Henry Jameson
1a24f8b4c1 fix notices being under the navbar, also change offset to use variable 2022-08-23 01:49:22 +03:00
Henry Jameson
ef4ea49653 fix modals not having proper z index 2022-08-23 01:46:59 +03:00
Henry Jameson
0f51b00540 reduce indexes to be below 9999 so that develop error messages appear above 2022-08-23 01:30:17 +03:00
HJ
272b748f26 Merge branch 'develop' into 'allow-opening-profile-in-user-popover'
# Conflicts:
#   src/components/settings_modal/tabs/general_tab.vue
2022-08-22 22:29:13 +00:00
HJ
88a3cf8705 Merge branch 'from/develop/tusooa/user-profile-routes' into 'develop'
Stop generating /:nickname user profile routes

See merge request pleroma/pleroma-fe!1589
2022-08-22 21:56:55 +00:00
Henry Jameson
fa41f6cf96 add an underline to the selected pin to improve accesibility 2022-08-23 00:50:38 +03:00
Henry Jameson
7b6745bb84 Merge remote-tracking branch 'origin/develop' into navigation-update
* origin/develop: (49 commits)
  Fix react & extra buttons not styled on tab-focus
  Fix popover not popping up
  Fix styling on Safari
  Use :focus-visible instead of :focus for focus markers
  Optimize Reply badge position
  Add badges to status interacting buttons
  Update dependency nightwatch to v2
  Update dependency eslint-plugin-n to v15.2.5
  Update dependency mocha to v10
  Update dependency karma-coverage to v2
  Update dependency sass to v1.54.5
  Update dependency karma-firefox-launcher to v2
  Update dependency vue-template-compiler to v2.7.9
  Pin dependencies
  Refresh yarn.lock
  Allow column width configuration: allow stretching navbar with columns
  Remove legacy code for chunksSortMode
  Add FIXME comment about html-webpack-plugin-after-emit
  Use exact webpack version in package.json
  Reintroduce css minimizer
  ...
2022-08-23 00:35:25 +03:00
HJ
8e97a40c70 Merge branch 'allow-application-width-configuration' into 'develop'
Allow application width configuration

See merge request pleroma/pleroma-fe!1533
2022-08-22 21:32:31 +00:00
Tusooa Zhu
cd536157ee Fix react & extra buttons not styled on tab-focus 2022-08-22 20:28:52 +00:00
Tusooa Zhu
5676b5cfc9 Fix popover not popping up
Sometimes the "focus-marker" gets clicked. In this situation,
it will trigger an open, and then a close, because the original
focus-marker was removed from the dom, so $el.contains() no
longer thinks the marker is part of the trigger! We replaced the
v-if with v-show to resolve this problem.
2022-08-22 20:28:52 +00:00
Tusooa Zhu
11672bc490 Fix styling on Safari 2022-08-22 20:28:52 +00:00
Tusooa Zhu
97951fccfd Use :focus-visible instead of :focus for focus markers
In this way, after the user clicked with a pointer and moved that
pointer away, the focus marker will no longer show a focused style.

As Safari remains the only major browser engine that does not support
:focus-visible, a fallback to :focus is used if there is no browser
support for :focus-visible.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
2022-08-22 20:28:52 +00:00
Tusooa Zhu
378ed3682e Optimize Reply badge position 2022-08-22 20:28:52 +00:00
Tusooa Zhu
b2e4827741 Add badges to status interacting buttons
Now, the following badges will be added:
0: (+) sign to reply, favourite, repeat, react and extra buttons
1: (-) sign to unfavourite and unrepeat
2: (x) sign to close reply form, close react popover, and close extra buttons popover
3: Check mark to favourited and repeated statuses

https://git.pleroma.social/pleroma/pleroma-fe/-/issues/1092
2022-08-22 20:28:52 +00:00
Henry Jameson
e9ad922eeb oops 2022-08-17 21:34:56 +03:00
Henry Jameson
711a610727 fix routes and tests 2022-08-17 21:25:02 +03:00
Henry Jameson
b440982220 fix lists not having pins in edit mode 2022-08-17 21:14:10 +03:00
Henry Jameson
f12198c2b3 fix edit mode checkbox showing up for anon users 2022-08-17 21:13:39 +03:00
Henry Jameson
efc6b6b703 add "scroll to top" button to timelines and notifications 2022-08-17 20:49:20 +03:00
Henry Jameson
faefd05c03 create new list UI 2022-08-17 20:21:10 +03:00
Alexander Tumin
a29835375a Allow column width configuration: allow stretching navbar with columns 2022-08-17 09:49:52 +03:00
Henry Jameson
b4f4b370d4 forgot to actually add add/remove methods, lel. remove some consolelogs 2022-08-17 00:58:05 +03:00
Henry Jameson
77dcbe641c lint 2022-08-17 00:49:07 +03:00
Henry Jameson
d074aefb4f List edit UI overhaul 2022-08-17 00:48:10 +03:00
Henry Jameson
821a09109c fix list tests 2022-08-16 20:00:29 +03:00
Henry Jameson
04acf069d1 ignore invalid journal entries 2022-08-16 19:33:34 +03:00
Henry Jameson
840ce06397 proper journal trimming + remove some old workaround to my local bad data 2022-08-16 19:24:45 +03:00
Tusooa Zhu
aa97335b20
Make webpack 5 work 2022-08-15 18:01:33 -04:00
Henry Jameson
8d6e5c1e69 whoops, forgot the most important bit 2022-08-15 23:33:07 +03:00
Henry Jameson
bbd99dc3cf fix 2022-08-15 23:31:05 +03:00
Henry Jameson
50f5afbce1 add and remove users to/from lists from their profile 2022-08-15 23:19:33 +03:00
Henry Jameson
14292d7ed1 edit mode 2022-08-15 21:56:07 +03:00
Henry Jameson
96090ea98f fix anon user issues 2022-08-15 21:03:27 +03:00
Henry Jameson
ebe095bd76 fix prod build again + fetch lists (and follow request) on login,
stop fetching on logout, don't start fetching in components
2022-08-15 20:44:21 +03:00
Henry Jameson
50924aab5c fix prod build 2022-08-15 20:34:45 +03:00
Henry Jameson
80600137d1 lint 2022-08-12 01:27:09 +03:00
Henry Jameson
7d13f38d88 limit amount of pins on desktop to 6 (for now) 2022-08-12 01:26:19 +03:00
Henry Jameson
f54fcda887 band-aid to prevent misclics on logout 2022-08-12 01:22:00 +03:00
Henry Jameson
8d3d8fffab fixes, clear cache on logout 2022-08-12 01:19:19 +03:00
Henry Jameson
c3e7eadddf let mobile users customize top bar as well 2022-08-12 01:00:41 +03:00
Henry Jameson
0123872b56 fixes + fixes for anon users 2022-08-12 00:50:08 +03:00
Henry Jameson
3a16a59f37 navigation refactored, used in mobile nav as well 2022-08-11 21:56:30 +03:00
Henry Jameson
9e453372b3 show pinned lists between timelines and rest 2022-08-11 21:08:53 +03:00