Commit graph

36 commits

Author SHA1 Message Date
Reto Brunner
0067c30273 Split sort event
The sort event bundled networks and channels for no reason at all.
They share none of the actual logic, so combining them just makes
the typing poor but serves no benefit.
2024-04-21 15:11:51 +02:00
Max Leiter
dd05ee3a65
TypeScript and Vue 3 (#4559)
Co-authored-by: Eric Nemchik <eric@nemchik.com>
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
2022-06-18 17:25:21 -07:00
itsjohncs
763047889d Remove uses of window.event.
window.event is a deprecated global that's set to the currently
dispatched event.

- Opened and closed mentions box by clicking its icon in the top bar
- Left and right clicked on an inline channel name and saw context menu
  open both times
- Two-finger swiped on iOS and saw channel change
- Long-touched and dragged channel in network list on iOS and reordered
  the list successfully
2021-12-20 15:34:28 -08:00
itsjohncs
393d4fe591 Enable Android's context menus in network list.
After #4326 Android users could no longer long-touch to bring up the
context menu for channels in the network list. Now they can again.
2021-10-30 02:06:35 -07:00
Max Leiter
fcffab1259
Merge pull request #4326 from itsjohncs/mobile-channel-list-sorting
Allow network list reordering via touch.
2021-10-12 15:53:18 -07:00
John Sullivan
8a57f90b65
Prevent sporadic rounding of search input on iOS. (#4328) 2021-10-11 10:23:20 -07:00
itsjohncs
5c614785bf Suppress iOS long touch behavior in network list.
When a user long touches on iOS, they will select the nearest
selectable text. This causes a distracting visual bug when reordering
the network list (which also uses a long press).
2021-10-10 17:08:17 -07:00
itsjohncs
a48f449c59 Allow network list reordering via touch.
Users can now long touch and drag a channel or network to change its
ordering in the sidebar.
2021-10-10 14:40:08 -07:00
Max Leiter
f23cc0712c
Aria-label improvements for chatuserlist/networklist 2021-06-21 22:21:36 -07:00
Max Leiter
0aabacd549
Initial accessibility improvements
Set aria-hidden to true for cosmetic and repetitive elements
Improve channel/network aria labels in network list
Experiment with different aria-roles for landmarks
2021-04-20 18:04:40 -07:00
Pavel Djundik
1c004cbd17 Upgrade eslint-plugin-vue and fix rules 2020-09-30 17:44:07 +03:00
Pavel Djundik
b74b692391 Update prettier and apply formatting 2020-08-25 12:49:53 +03:00
Tim Miller-Williams
06d6dbe3a3 Fix usage of v-for and v-if on same component 2020-04-28 17:00:08 +01:00
Pavel Djundik
52bf7b116e Do not handle keybinds in inputs if not empty
Fix #3813
2020-03-22 20:44:14 +02:00
Pavel Djundik
881b3eda19 Run format after updating to prettier 2.0 2020-03-21 22:55:36 +02:00
Richard Lewis
9e76fe2a76 Fix race condition and remove redundant computed properties. 2020-02-10 19:43:44 +02:00
Richard Lewis
f5884957a5 Fix CSS styles, scroll to selected channel and improve bindings.
Co-Authored-By: Pavel Djundik <xPaw@users.noreply.github.com>
2020-02-10 19:43:44 +02:00
Richard Lewis
606c62dc70 Move styles to component. 2020-02-10 19:04:34 +02:00
Richard Lewis
0b5cbceffd Implement jump to channel feature. 2020-02-10 19:04:35 +02:00
Pavel Djundik
1870145674 Add keybinds to expand and collapse networks
Fixes #3523
2020-01-02 22:45:21 +02:00
Richard Lewis
8cb49ae56a Relocate not-secure and not-connected classes. 2019-12-19 13:00:24 +00:00
Pavel Djundik
fd6bc3ecb6 Fix up css refactoring 2019-12-10 19:25:32 +02:00
Richard Lewis
c022377c49 Refactor some CSS selectors. 2019-12-10 14:19:31 +02:00
Pavel Djundik
0ac9601a3a Remove some data attributes 2019-11-25 20:13:15 +02:00
Pavel Djundik
aba2487126 Make findChannel and findNetwork getters 2019-11-25 20:12:54 +02:00
Pavel Djundik
2f635069e0 Move vuex state to a separate file and reorganize some code
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-11-25 20:12:54 +02:00
Pavel Djundik
a7bdc99d47 Fix channel list not working on some touch devices
Fixes #3309
2019-07-19 14:27:59 +03:00
Alistair McKinlay
133e7bf710 Format js/vue with prettier 2019-07-19 11:27:40 +01:00
Pavel Djundik
b2e5be33d6 A better way of disabling sorting on touch devices 2019-07-12 13:43:47 +03:00
Pavel Djundik
f9459ee1c3 Fix up sorting channel styling 2019-03-27 12:23:50 +02:00
Jérémie Astori
0812ffc2e7
Run ESLint autofix after requiring new line on closing brackets 2019-02-25 00:57:48 -05:00
Pavel Djundik
5d4400ef90 Revert "Remove draggable for now"
This reverts commit f4c0a68fde99471bd546902ec2b9301ff6cec73a.
2019-02-12 12:49:04 +02:00
Pavel Djundik
6877199515 Update eslint-plugin-vue 2019-02-12 12:48:45 +02:00
Pavel Djundik
2c5549a567 Find channel in joinchannel correctly 2019-02-12 12:48:45 +02:00
Pavel Djundik
04d86a3550 Fix channel sort not working 2019-02-12 12:48:44 +02:00
Pavel Djundik
3d43b96d5a Make network lobby a separate component 2019-02-12 12:48:43 +02:00
Renamed from client/components/Network.vue (Browse further)