Commit graph

121 commits

Author SHA1 Message Date
renovate[bot]
16b60ddde7 chore(deps): update dependency typescript to v5.1.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 11:14:03 +02:00
renovate[bot]
222d4b23ae chore(deps): update dependency eslint to v8.42.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 11:12:54 +02:00
Tilman Vatteroth
753c6e593f refactor: remove isomorphic-ws
The package caused some issues while working on other features.
Mostly because bundlers have been unable to determine the correct
websocket constructor.
So I replaced it with a more object-oriented approach.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-02 17:40:25 +02:00
renovate[bot]
fd78605657 chore(deps): update yarn to v3.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-02 08:36:15 +02:00
Tilman Vatteroth
4d9792bcb9 refactor: reorganize files in commons package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-31 23:42:46 +02:00
Tilman Vatteroth
e5911b09c1 refactor: reorder commons index.ts
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
0b06bcf67b fix: correct iso6391
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
db43e1db3f refactor: move frontmatter parser into commons package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
4d0a2cb79e refactor: change return type of frontmatter extractor to use undefined
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
Tilman Vatteroth
77f858bff8 fix: remove redundant note detail props
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +02:00
renovate[bot]
e510a41496 chore(deps): update typescript-eslint monorepo to v5.59.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 22:50:19 +00:00
renovate[bot]
0b025a41ab chore(deps): update typescript-eslint monorepo to v5.59.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-23 17:28:56 +00:00
renovate[bot]
d7663e3090 chore(deps): update dependency eslint to v8.41.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-21 19:47:03 +02:00
renovate[bot]
500ab6d8b9 chore(deps): update typescript-eslint monorepo to v5.59.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-16 10:01:00 +00:00
Tilman Vatteroth
d29e840bc6 fix(realtime): allow realtime user status updates from users that have read-only access
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 20:33:23 +02:00
Tilman Vatteroth
eebbb79d08 fix: retrieve read-only state for y-doc-sync-server-adapter from connection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
renovate[bot]
6698f49af5 chore(deps): update typescript-eslint monorepo to v5.59.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-08 21:48:54 +02:00
renovate[bot]
d734163e5f chore(deps): update dependency eslint to v8.40.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-06 17:29:35 +02:00
renovate[bot]
122d3e6354 fix(deps): update dependency yjs to v13.6.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 17:24:04 +02:00
renovate[bot]
993d0e8b7e chore(deps): update yarn to v3.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-02 05:55:25 +00:00
renovate[bot]
d1df704d22 chore(deps): update typescript-eslint monorepo to v5.59.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-02 02:40:39 +00:00
renovate[bot]
138278bb13 chore(deps): update typescript-eslint monorepo to v5.59.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-25 09:31:21 +02:00
renovate[bot]
745247c04f chore(deps): update dependency eslint to v8.39.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 20:25:57 +02:00
renovate[bot]
fa7b262ad1 fix(deps): update dependency yjs to v13.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 20:25:43 +02:00
renovate[bot]
777e9d7015 chore(deps): update dependency prettier to v2.8.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 14:46:32 +00:00
renovate[bot]
b962676dad fix(deps): update dependency yjs to v13.5.53
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-19 16:15:35 +02:00
renovate[bot]
07c7c97b86 chore(deps): update typescript-eslint monorepo to v5.59.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 10:19:15 +02:00
Tilman Vatteroth
3962cafa5d feat: move title extraction into commons package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:05:24 +02:00
renovate[bot]
d1498a4861 fix(deps): update dependency reveal.js to v4.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-13 14:41:24 +02:00
renovate[bot]
1c58a732e4 chore(deps): update typescript-eslint monorepo to v5.58.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-10 20:48:24 +02:00
renovate[bot]
2f200078ef chore(deps): update dependency eslint to v8.38.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-08 14:53:57 +02:00
renovate[bot]
143da53e46 chore(deps): update dependency typescript to v5.0.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-07 22:21:41 +02:00
Philip Molares
c2f41118b6 feat: check permissions in realtime code and frontend
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-06 22:54:50 +02:00
renovate[bot]
5d9e220e1f chore(deps): update typescript-eslint monorepo to v5.57.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-03 20:20:47 +02:00
renovate[bot]
266eaf29e6 chore(deps): update dependency ts-jest to v29.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-03 20:06:05 +02:00
renovate[bot]
84ab3ecc58 fix(deps): update dependency yjs to v13.5.52
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 17:08:10 +00:00
renovate[bot]
ae58cab019 chore(deps): update dependency typescript to v5.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-31 15:43:28 +02:00
renovate[bot]
d0f2b0a471 chore(deps): update dependency eslint to v8.37.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-29 15:09:22 +02:00
Tilman Vatteroth
598fc8ee11 feat(realtime): synchronize and show realtime activity state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-29 01:16:43 +02:00
renovate[bot]
4d749fb480 chore(deps): update typescript-eslint monorepo to v5.57.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-27 19:58:01 +02:00
Tilman Vatteroth
ef699a9123 fix: disconnect websocket if trying to send over closed connection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-26 17:36:25 +02:00
Philip Molares
8e57188ab5 refactor(common): extract frontmatter code into commons
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-26 14:58:38 +02:00
Philip Molares
8bd7fd1be8 refactor(common): extract frontmatter code into commons
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-03-26 14:58:38 +02:00
Tilman Vatteroth
a78ac5f097 fix: use correct callback on websocket error
the error event of the websocket occurs if the connection is already closed.
Therefore, the disconnect call does nothing and the transporter won't throw the disconnected event.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-26 12:25:40 +02:00
Philip Molares
4956a99ced refactor(frontend/commons): rename .test files to .spec
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-03-25 15:02:29 +01:00
Tilman Vatteroth
24b7514e25 feat: submit own style index on realtime user state set
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-25 13:11:40 +01:00
Tilman Vatteroth
a826677225 refactor: save ydoc state in the database, so it can be restored easier
By storing the ydoc state in the database we can reconnect lost clients easier
and enable offline editing because we continue using the crdt data that has been
used by the client before the connection loss.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-24 16:03:55 +01:00
Tilman Vatteroth
3a06f84af1 refactor: reimplement realtime-communication
This commit refactors a lot of things that are not easy to separate.
It replaces the binary protocol of y-protocols with json.
It introduces event based message processing.
It implements our own code mirror plugins for synchronisation of content and remote cursors

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-24 14:06:03 +01:00
renovate[bot]
1219d83bc8 chore(deps): update dependency prettier to v2.8.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-24 12:16:22 +01:00
renovate[bot]
9d4a5f45d9 fix(deps): update dependency lib0 to v0.2.73
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-23 19:22:48 +01:00