Commit graph

258 commits

Author SHA1 Message Date
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
renovate[bot]
a015655406 fix(deps): update dependency yjs to v13.5.51
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-22 13:53:17 +01:00
renovate[bot]
26d8a012e1 fix(deps): update dependency lib0 to v0.2.72
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 14:34:20 +01:00
renovate[bot]
7f537f7617 chore(deps): update dependency prettier to v2.8.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 13:45:04 +01:00
renovate[bot]
b0d182f7fb chore(deps): update typescript-eslint monorepo to v5.56.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 10:01:30 +01:00
renovate[bot]
1bbc0d0f61 chore(deps): update dependency eslint-config-prettier to v8.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 10:01:15 +01:00
renovate[bot]
64dcc08f95 fix(deps): update dependency lib0 to v0.2.70
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 00:43:59 +00:00
renovate[bot]
bb87c5f82c chore(deps): update dependency prettier to v2.8.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-20 11:03:16 +01:00
renovate[bot]
45638b7456 chore(deps): update dependency typescript to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-18 22:15:01 +01:00
renovate[bot]
307437d8c3 fix(deps): update dependency lib0 to v0.2.69
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-17 15:01:48 +00:00
renovate[bot]
173406215c chore(deps): update yarn to v3.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-17 09:01:42 +01:00
renovate[bot]
c1b17e58b1 fix(deps): update dependency lib0 to v0.2.68
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-16 20:41:34 +01:00
renovate[bot]
bb461c65c0 fix(deps): update dependency lib0 to v0.2.67
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 20:23:26 +01:00
renovate[bot]
ae1fef26c3 chore(deps): update typescript-eslint monorepo to v5.55.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 16:33:53 +01:00
renovate[bot]
65b0ffcb1f fix(deps): update dependency ws to v8.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 21:57:13 +01:00
renovate[bot]
3ca0e3bfd4 chore(deps): update test packages to v29.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 20:51:41 +01:00
renovate[bot]
c44c8b6477 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 20:51:24 +01:00
renovate[bot]
837d722bb0 chore(deps): update dependency @jest/types to v29.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 20:47:28 +01:00
renovate[bot]
3b0bcec075 fix(deps): update dependency yjs to v13.5.50
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:17:56 +01:00
renovate[bot]
4f1c3a6ebd chore(deps): update typescript-eslint monorepo to v5.54.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:14:54 +01:00
renovate[bot]
b748c444e9 fix(deps): update dependency lib0 to v0.2.66
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:00:20 +01:00
Avinash
e81e88139a chore: added decalration map
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-03-11 09:11:43 +01:00
renovate[bot]
7a7c83d934 chore(deps): update typescript-eslint monorepo to v5.54.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-05 18:38:34 +01:00
renovate[bot]
e0144f8769 fix(deps): update dependency yjs to v13.5.48
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-04 13:20:44 +01:00
renovate[bot]
a5102954d2 chore(deps): update dependency eslint to v8.35.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-26 12:57:35 +01:00
renovate[bot]
565000446e fix(deps): update dependency yjs to v13.5.47
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 19:13:32 +01:00
renovate[bot]
9b82e0cce7 chore(deps): update typescript-eslint monorepo to v5.53.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 17:37:48 +01:00
renovate[bot]
dac8e943b6 fix(deps): update dependency lib0 to v0.2.63
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 13:59:28 +01:00
renovate[bot]
5ddce7a316 chore(deps): update typescript-eslint monorepo to v5.52.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-19 08:14:22 +01:00
renovate[bot]
0848792af0 chore(deps): update test packages to v29.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-18 21:42:18 +00:00
renovate[bot]
2b31807cdd fix(deps): update dependency yjs to v13.5.46
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-18 21:54:27 +01:00
renovate[bot]
9a41f87bd9 fix(deps): update dependency ws to v8.12.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-18 21:50:25 +01:00
renovate[bot]
e58ae7482a chore(deps): update dependency @jest/types to v29.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-18 20:50:57 +01:00
renovate[bot]
35d02a945f chore(deps): update dependency eslint to v8.34.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-11 10:43:28 +01:00
renovate[bot]
4d1d9b7815 chore(deps): update typescript-eslint monorepo to v5.51.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-11 10:07:26 +01:00
renovate[bot]
ac572a2fbb chore(deps): update test packages to v29.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-11 09:40:36 +01:00
renovate[bot]
0dccf6ba07 chore(deps): update dependency @jest/types to v29.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-11 09:30:21 +01:00
renovate[bot]
a5dffe603e chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-11 09:28:46 +01:00
Tilman Vatteroth
11c2f57e4b fix(commons): extract name of markdown content yjs channel into the commons package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-09 15:43:59 +01:00
Tilman Vatteroth
329a4d4e55 chore(deps): pin dependencies of commons package
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-09 13:53:11 +01:00
Erik Michelson
305b6f5910 misc: add turbo monorepo util
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: David Mehren <git@herrmehren.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: David Mehren <git@herrmehren.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-07 21:38:40 +01:00
renovate[bot]
8fa9bf0aa8 chore(deps): update typescript-eslint monorepo to v5.50.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-06 10:41:17 +01:00
renovate[bot]
f8be64cfba chore(deps): update yarn to v3.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-06 10:07:06 +01:00
renovate[bot]
8023b126a2 fix(deps): update dependency yjs to v13.5.45
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-05 23:26:22 +01:00
Tilman Vatteroth
5e1fdbe81d fix(config): Replace HD_DOMAIN and HD_EDITOR_BASE_URL with HD_BASE_URL
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-05 22:32:31 +01:00
Tilman Vatteroth
65ac00913b chore(deps): Update optional to 1.1.0
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-05 22:32:31 +01:00
Tilman Vatteroth
9ccfaf3d0e fix(commons): remove redundant tsconfig for eslint
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-05 21:21:59 +01:00
Tilman Vatteroth
d76714f2a2 fix(commons): Move "wait for other promises to finish" util to commons
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-05 18:38:32 +01:00
renovate[bot]
37398df3bd chore(deps): update dependency typescript to v4.9.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-04 14:00:25 +01:00
renovate[bot]
834faf7213 chore(deps): update dependency eslint to v8.33.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-04 13:59:49 +01:00
renovate[bot]
2cbeffa2d0 chore(deps): update typescript-eslint monorepo to v5.49.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-29 19:28:52 +01:00
renovate[bot]
843d66c0f2 chore(deps): update test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-28 17:35:49 +01:00
renovate[bot]
ff62178da8 chore(deps): update dependency @jest/types to v29.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-28 16:18:25 +01:00
renovate[bot]
e285d4f0da chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-22 14:46:27 +01:00
renovate[bot]
9356651684 chore(deps): update dependency ts-jest to v29.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-17 19:30:31 +01:00
renovate[bot]
3915a05e24 chore(deps): update typescript-eslint monorepo to v5.48.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-17 19:29:22 +01:00
renovate[bot]
cf9131c06e chore(deps): update dependency prettier to v2.8.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-16 11:54:32 +00:00
renovate[bot]
cd875b6402 chore(deps): update dependency prettier to v2.8.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-07 22:57:48 +01:00
renovate[bot]
021ec535dd chore(deps): update typescript-eslint monorepo to v5.48.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-07 22:45:24 +01:00
renovate[bot]
43c3d04f46 chore(deps): update dependency eslint-plugin-jest to v27.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-07 12:32:08 +00:00
renovate[bot]
47ba755db0 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-06 11:53:24 +01:00
renovate[bot]
ea535d6be0 fix(deps): update dependency yjs to v13.5.44
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-01 20:16:54 +00:00
renovate[bot]
45799627ad chore(deps): update dependency eslint to v8.31.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-31 11:02:30 +01:00
renovate[bot]
9d8d5e8d55 chore(deps): update dependency @types/ws to v8.5.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-30 11:01:28 +01:00
renovate[bot]
b67fab7491 chore(deps): update typescript-eslint monorepo to v5.47.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-28 19:03:30 +01:00
Tilman Vatteroth
1eeb1dadc4 fix(commons): Fix array creation in awareness state request
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-12-28 17:22:40 +01:00
renovate[bot]
c7251b7f06 chore(deps): update typescript-eslint monorepo to v5.47.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-24 13:55:13 +01:00
renovate[bot]
43f69da085 chore(deps): update yarn to v3.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-24 12:10:51 +00:00
renovate[bot]
e9632e3e78 chore(deps): update typescript-eslint monorepo to v5.46.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-18 21:58:01 +01:00
renovate[bot]
b57152ac24 Update dependency eslint to v8.30.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-17 18:48:09 +01:00
renovate[bot]
7ea0973a98 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-17 12:25:16 +01:00
Tilman Vatteroth
7320fe2ac1 feat(packages): add commons package
This is an import of 166ca8da12
with some changes to make it fit into the mono repo.
- TypedEventEmitter has been replaced with EventEmitter2 because EventEmitter2 is faster and TypedEventEmitter had some troubles with the new way of compiling.
- tsc-esm has been replaced with microbundle. The problems that lib0 doesn't export its types correctly has been solved using yarn patch.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-12-11 23:09:10 +01:00