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
Jérémie Astori
2dbb150463
Merge pull request #2109 from thelounge/xpaw/fix-stuck-rendering
...
Fix "rendering..." getting stuck on first connection
2018-02-23 20:27:56 -05:00
Pavel Djundik
bd2907c13f
Use document.body when wrapping it in a jquery object
2018-02-23 21:22:05 +02:00
Pavel Djundik
7ce1f1cf9e
Fix "rendering..." getting stuck on first connection
2018-02-23 21:18:42 +02:00
Jérémie Astori
a392b9f35f
Improve a bit window loading on init
2017-12-25 18:19:12 -05:00
Jérémie Astori
d1c2f0df72
Display the correct window on page reload
...
This commit packs 2 fixes:
- Reloading the page while viewing the settings or help window would now send you to a channel window. This was broken when fixing an issue with the "Join a channel..." form
- Reloading the page while viewing the changelog would also send you to a channel window. This is because, on reload, the click emitted was restricted to sidebar and footer, while it had to be emitted from the help page. It is yet another aspect of our wonky window management and hopefully we can make this much more robust with a better overall solution.
2017-12-23 20:46:43 -05:00
Jérémie Astori
6c50fe72b9
Fix join channel UI opening by itself
...
Without this, `target` was matching all of the lobby link, the "Join a channel..." button, and the join form submit button. This change restricts to the first one.
2017-12-23 03:00:16 -05:00
Pavel Djundik
e3823803aa
Handle javascript errors while loading
2017-12-03 17:16:56 +02:00
Jérémie Astori
1dc92d8934
Enforce dangling commas with ESLint
...
¯\_(ツ)_/¯
2017-11-15 01:35:15 -05:00
Pavel Djundik
649e9c3192
Fix opening first channel on server start
...
Fixes #1547
2017-09-20 16:17:38 +03:00