Pavel Djundik
ec85372132
Fix uri handling and add tests
2019-11-25 20:13:18 +02:00
Pavel Djundik
0cb8dc73bb
Use es6 import syntax
2019-11-25 20:13:12 +02:00
Pavel Djundik
7584f47c7d
Cleanup webpush code
2019-11-25 20:13:10 +02:00
Pavel Djundik
17365d9967
Remove references to vue.js
2019-11-25 20:13:09 +02:00
Pavel Djundik
54a1e11f50
Move some init code around
2019-11-25 20:13:09 +02:00
Pavel Djundik
a4490bf1d6
Fix up connect uri parsing, use direct router references
...
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-11-25 20:13:08 +02:00
Pavel Djundik
f2309c7c89
Improve router experience
2019-11-25 20:13:07 +02:00
Pavel Djundik
2044bc88dd
Switch channels on quit only if current network is being quit
2019-11-25 20:13:06 +02:00
Tim Miller-Williams
cbaf4db339
Replace synchronizeNotifiedState with a getter & watcher
2019-11-25 20:13:05 +02:00
Tim Miller-Williams
6a15fd95f0
Refactor userList behaviour to not use methods in root Vue instance
2019-11-25 20:13:04 +02:00
Tim Miller-Williams
dd9efad23c
Refactor sidebar behaviour to no longer use methods in root Vue instance
2019-11-25 20:13:04 +02:00
Pavel Djundik
a1f183f216
Cleanup auth flow
2019-11-25 20:12:58 +02:00
Pavel Djundik
743ae987ec
Fix up login and initial window
2019-11-25 20:12:55 +02:00
Pavel Djundik
2b5a13a043
Register routes after init
2019-11-25 20:12:55 +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
f76ad57c63
Move confirmExit
2019-11-25 20:12:50 +02:00
Richard Lewis
737afc759b
Implement vue-router.
2019-11-25 20:12:48 +02:00
Richard Lewis
467ebab31f
Move most side bar and user list interactions to vue.
2019-11-25 20:12:28 +02:00
Richard Lewis
69cb891b1a
Add vuex and move isConnected to vuex state.
2019-11-25 20:12:23 +02:00
Pavel Djundik
09e12affe8
Begin moving windows to Vue
2019-11-25 20:12:21 +02:00
Pavel Djundik
00e59000fd
Merge pull request #3460 from thelounge/xpaw/history-reconnect
...
Fix history not loading in certain cases after reconnect
2019-10-21 11:01:41 +03:00
Pavel Djundik
ebfecc3e9d
Fix client not loading messages after reconnect in channels with less than 100 total messages
2019-10-17 13:27:15 +03:00
Pavel Djundik
7687c90edc
Synchronize user list correctly on reconnection
2019-10-15 20:33:03 +03:00
Alistair McKinlay
133e7bf710
Format js/vue with prettier
2019-07-19 11:27:40 +01:00
Pavel Djundik
2b1197880d
Merge network/channel objects when reconnecting
2019-07-17 12:07:49 +03:00
Pavel Djundik
f3cf69796d
Don't merge messages on client if server sends over 100 of them
2019-02-13 16:44:15 +02:00
Pavel Djundik
7b15c53ed4
Rename some vue variables
2019-02-12 12:49:05 +02:00
Pavel Djundik
b6e07a43f5
Make a consistent single funciton for updating notified/favicon/title
2019-02-12 12:49:05 +02:00
Pavel Djundik
26dc37033c
Make connection-error a vue state
2019-02-12 12:49:04 +02:00
Pavel Djundik
cebfa6ac84
A little cleanup
2019-02-12 12:48:44 +02:00
Pavel Djundik
a10ac4e7da
Make a single function to initialize channel variables
2019-02-12 12:48:44 +02:00
Pavel Djundik
ad0f638487
Add jump-to-bottom arrow when scrolled up
2019-02-12 12:48:44 +02:00
Pavel Djundik
0e7880a049
Fix autocompleting multiple times not working
2019-02-12 12:48:44 +02:00
Pavel Djundik
1bfaef1985
Keep pendingMessage on reconnect
2019-02-12 12:48:44 +02:00
Pavel Djundik
0ba6200bb7
Keep scrolledToBottom on reconnect
2019-02-12 12:48:44 +02:00
Pavel Djundik
c42fc55c6f
Fix reconnection state
2019-02-12 12:48:44 +02:00
Pavel Djundik
8931570c02
Port join-channel completely to Vue
2019-02-12 12:48:43 +02:00
Pavel Djundik
a8c777c797
Remove render.js
2019-02-12 12:48:43 +02:00
Pavel Djundik
dee76adc0c
Implement network collapsing in Vue
2019-02-12 12:48:41 +02:00
Pavel Djundik
a229138ca6
Add connected state
2019-02-12 12:48:41 +02:00
Pavel Djundik
0e930c9356
Make history loading work
2019-02-12 12:48:41 +02:00
Pavel Djundik
7e332b817d
Channel list rendering with Vue
...
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-02-12 12:48:41 +02:00
William Boman
658dc5a3a2
fix automatically closing sidebar on some mobile viewports
...
Co-authored-by: Pavel Djundik <github@xpaw.me>
Mobile viewports whose width is equal to the upper boundary
of the mobile viewport breakpoint would not automatically
close the sidebar when selecting an item in it.
Closes #2783 .
2018-09-19 09:37:03 +02:00
Pavel Djundik
cdebd532ce
Make menu state consistent on desktop and mobile; fix sliding on desktop
...
Fixes #2572
2018-07-06 12:27:26 +03:00
Pavel Djundik
d63f0ccc50
Make userlist state consistent on mobile and desktop
2018-07-04 10:26:07 +03:00
Pavel Djundik
ee5e82fe9a
Fix connect window opening twice in public mode
2018-05-02 13:08:00 +03:00
Jérémie Astori
1762db8bd4
Make "Show older messages" style consistent with other buttons
...
Also store the loading text in a `data` attribute instead of duplicate in template + JS, in order to help with future internationalization
2018-04-18 00:12:24 +02:00
Pavel Djundik
103c3395dd
Store visibility status of sidebar menus
...
Fixes #51
Closes #1606
2018-03-16 09:03:16 +02:00
Pavel Djundik
bb066ecb02
Do not listen to touch events until client is initialized
...
Fixes #2148
2018-03-07 10:02:02 +02:00