Reto Brunner
cb4aaf6a97
client: remove setAppBadge and clearAppBadge
...
They already ship with typescript's lib.dom.d.ts
2024-05-10 13:21:18 +02:00
Reto Brunner
45c2fc87ee
client: properly type Socket in window
2024-05-10 12:27:41 +02:00
Reto Brunner
3259ac596d
client: fix all new linter errros
2024-05-04 12:29:57 +02:00
Reto Brunner
3fbbc39cd6
client/commands: statically import commands
...
Dynamic imports won't work very well with modules and we don't
really need them, it's just there to save us an import statement.
Let's flip this to a static version.
2024-05-04 12:29:57 +02:00
Reto Brunner
f25fee4c6c
previews: fix possibly undefined
2024-04-21 15:11:52 +02:00
Reto Brunner
96848c1c1b
msg_preview: fix possibly undefined error
2024-04-21 15:11:52 +02:00
Reto Brunner
4b07e05491
client: add missing import for SharedMsg
2024-04-21 15:11:52 +02:00
Reto Brunner
bb7c3925c6
type serverOptions for network:options
2024-04-21 15:11:52 +02:00
Reto Brunner
9898f38de6
add todo
2024-04-21 15:11:52 +02:00
Reto Brunner
9f2c82e152
fix mentions
2024-04-21 15:11:52 +02:00
Reto Brunner
17ba07db3b
fix mentions import
2024-04-21 15:11:52 +02:00
Reto Brunner
0311e5f836
add socket-events import to entry point
...
socket-events aren't ever imported, if we don't do that however
webpack never actually sees any code that leads to it and skips
bundling it.
So for now, do an import that has the side effect of registering
all the events until we have a proper registration in place that's
a bit more sane to call
2024-04-21 15:11:52 +02:00
Reto Brunner
4d0474b897
store: don't duplicate import
2024-04-21 15:11:52 +02:00
Reto Brunner
14b9169899
store: fix import
2024-04-21 15:11:52 +02:00
Reto Brunner
50037644c0
socket-events: fix join
2024-04-21 15:11:52 +02:00
Reto Brunner
7287c6bcaa
remove dead import
2024-04-21 15:11:52 +02:00
Reto Brunner
bfca0ca612
fix more
2024-04-21 15:11:52 +02:00
Reto Brunner
300bd4c84c
add timestamp to NotificationOptions
2024-04-21 15:11:52 +02:00
Reto Brunner
42ea66c343
socket-events/msg: fix errors
2024-04-21 15:11:51 +02:00
Reto Brunner
1565eb8d05
socket-events/msg: if/else chains are not a switch replacement
...
If we switch on a field, use switch for god's sake.
If/elif chains are for cases where you have multiple selectors.
2024-04-21 15:11:51 +02:00
Reto Brunner
29750a3e51
ClientChan: does need a user array after all
2024-04-21 15:11:51 +02:00
Reto Brunner
3ea5170e6a
socket-events: fix network:status
2024-04-21 15:11:51 +02:00
Reto Brunner
fe4f497fad
fix socket-event: network
2024-04-21 15:11:51 +02:00
Reto Brunner
bf7eb0e727
network event: remove unused array
...
All the network events only ever emit a single copy
There's no point in wrapping it into an array
2024-04-21 15:11:51 +02:00
Reto Brunner
9ab9ad0f56
socket-events: fix up init
2024-04-21 15:11:51 +02:00
Reto Brunner
f5c691f37b
wip: unbork init progress
2024-04-21 15:11:51 +02:00
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
Reto Brunner
c869ea9a73
sharedchans does not have users
2024-04-21 15:11:51 +02:00
Reto Brunner
6984e8f25a
unused import
2024-04-21 15:11:51 +02:00
Reto Brunner
e57e547b74
further chan fixes
2024-04-21 15:11:51 +02:00
Reto Brunner
88c8830a17
chatuserlist
2024-04-21 15:11:51 +02:00
Reto Brunner
7073584f1c
fix msg event
2024-04-21 15:11:51 +02:00
Reto Brunner
8e6920af1d
configuration
2024-04-21 15:11:51 +02:00
Reto Brunner
383907c2b8
Use SharedTypes
2024-04-21 15:10:45 +02:00
Reto Brunner
12a0b0b6f9
network
2024-04-21 15:10:45 +02:00
Reto Brunner
d716402da2
mention
2024-04-21 15:10:45 +02:00
Reto Brunner
d0b71aba32
shared: extract chan + user
2024-04-21 15:10:45 +02:00
Reto Brunner
b67e4699f5
wip sharedmsg in client
2024-04-21 15:10:45 +02:00
Reto Brunner
68ba13ca12
wip: searchquery
2024-04-21 15:10:45 +02:00
Reto Brunner
3eb19135f5
wip: msg
2024-04-21 15:10:41 +02:00
Nachtalb
daabb76781
Add shorcut to navigate between channels with undread msgs
2024-01-27 22:50:10 +01:00
Max Leiter
083abae750
Merge pull request #4783 from thelounge/router-api
...
router: don't use next() in router guards
2023-12-26 16:49:37 -08:00
Reto Brunner
9105fbc23a
Merge branch 'emoji'
2023-11-04 11:53:30 +01:00
Reto Brunner
03795a2718
router: don't use next() in router guards
...
Vue wants to get rid of the next call.
https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next
For one of the router guards, it's easy enough to do so let's do
that.
2023-09-16 13:17:06 +02:00
Reto Brunner
c0b38d4762
store: use return type over a type cast
2023-07-31 10:50:48 +02:00
Reto Brunner
607b9fc96a
update emoji
2023-07-15 10:41:43 +02:00
Max Leiter
c6a202d6ab
Merge pull request #4686 from thelounge/decoupleServer
...
Decouple server
2023-02-26 17:20:20 -08:00
Maxime Poulin
2ce374fe85
Fix uploader mount/unmount lifecycle
...
Currently, in `ChatInput.vue` we call `upload.abort()` which removes the event listeners, which are never added back. This effectively permanently disable uploads if the user navigates away to Settings or any other non-chat pages, and back.
Moves the binding to `mounted()` so that they're properly rebound when a chat window is in view, and also adds an `unmounted()` for clarity.
This should also fix an edge case if the page opens up on a non-chat page and there was never a ChatInput to unbind it, such as login page or add network pages.
2023-02-05 22:32:12 -05:00
Reto Brunner
b7540b5827
Move condensedTypes to shared/
...
This decouples the rest of the server from the client
2023-01-30 09:14:40 +01:00
Reto Brunner
e305e23c43
client: use the versions in shared/ where applicable
2023-01-30 09:14:40 +01:00