Commit graph

5188 commits

Author SHA1 Message Date
renovate[bot]
361e6e0da9 chore(deps): update dependency @types/react to v18.2.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-01 21:26:54 +00:00
renovate[bot]
92e5742333 chore(deps): update github/codeql-action action to v2.3.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-01 18:10:16 +02:00
renovate[bot]
fb9060f1a3 fix(deps): update dependency mermaid to v10.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-01 13:46:31 +02:00
Tilman Vatteroth
71e5d00f55 refactor: extract height monitor hook
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-01 13:46:19 +02:00
renovate[bot]
21b2fb042c chore(deps): update dependency turbo to v1.10.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-01 03:23:28 +00: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
renovate[bot]
c9b98f6185 chore(deps): update dependency @types/jest to v29.5.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-31 20:54:58 +02:00
renovate[bot]
8f4ca7738e chore(deps): update dependency turbo to v1.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-31 16:42:30 +02:00
renovate[bot]
e02fe72126 fix(deps): update dependency react-redux to v8.0.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-31 02:40:18 +00:00
renovate[bot]
c60fa67ece fix(deps): update dependency @fontsource/source-sans-pro to v5.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-30 21:13:59 +00:00
Tilman Vatteroth
d1ce1cb3e4 refactor: turn random word list source from json to ts
This prevents future import issues

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-30 09:17:05 +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]
cdfcd325a1 fix(deps): update dependency i18next-browser-languagedetector to v7.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-30 00:36:23 +00: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]
be1640df3a chore(deps): update dependency mkdocs-material to v9.1.15
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 18:43:09 +00:00
renovate[bot]
2638f0807c chore(deps): lock file maintenance
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 03:11:58 +00:00
renovate[bot]
2b4641122e chore(deps): update nextjs monorepo to v13.4.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-26 07:26:23 +00:00
renovate[bot]
67031a34d3 chore(deps): update dependency eslint-config-next to v13.4.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-26 03:18:31 +00:00
renovate[bot]
7b6f4c5d2d chore(deps): update github/codeql-action action to v2.3.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-25 23:29:18 +00:00
renovate[bot]
31e5ed6228 chore(deps): update github/codeql-action action to v2.3.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-25 01:54:53 +00:00
renovate[bot]
8bbce2e767 fix(deps): update dependency mermaid to v10.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 21:27:01 +02:00
renovate[bot]
2cb5b91d76 fix(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 21:22:34 +02:00
Tilman Vatteroth
d57e6261da fix: height of reveal rendering
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-24 21:16:10 +02:00
renovate[bot]
5ea313fcb0 fix(deps): update dependency @fontsource/source-sans-pro to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 21:09:14 +02:00
renovate[bot]
2c1de84b92 chore(deps): update dependency @types/react to v18.2.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 21:08:58 +02:00
renovate[bot]
c67e9bef60 fix(deps): update dependency minio to v7.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 21:08:48 +02:00
renovate[bot]
8655273064 chore(deps): update dependency cypress to v12.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 18:37:03 +02:00
renovate[bot]
7f3f584ea5 chore(deps): update dependency @types/testing-library__jest-dom to v5.14.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 04:51:51 +00:00
renovate[bot]
763cd62bfd fix(deps): update nestjs packages to v9.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-24 00:34:30 +00:00
renovate[bot]
1de95157ef chore(deps): update dependency turbo to v1.9.9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-23 23:09:02 +02:00
renovate[bot]
4959919fec chore(deps): update dependency ts-loader to v9.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-23 20:31:30 +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]
ad6d41e218 chore(deps): update dependency @codemirror/state to v6.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-23 13:00:48 +00:00
renovate[bot]
d1a250db87 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-22 09:11:44 +02:00
Tilman Vatteroth
0c03e03a95 fix: update test snapshots
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-21 22:31:52 +02:00
Tilman Vatteroth
4eb341308a feat: add concat-css-classes helper method
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-21 22:31:52 +02: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]
9af8d5927c chore(deps): update dependency mkdocs-material to v9.1.14
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-20 14:12:32 +00:00
renovate[bot]
6e890d6f0d chore(deps): update dependency @codemirror/language to v6.7.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 19:34:21 +02:00
renovate[bot]
554f7bee56 fix(deps): update dependency i18next-resources-to-backend to v1.1.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 19:19:01 +02:00
Tilman Vatteroth
11ccd678de test: add test for permissions guard
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
a852c79947 refactor: replace permission check methods with ordered permission enum
This commit replaces the "mayWrite", "mayRead" and "checkPermissionOnNote"
functions with one that returns a sortable permission value.
This is done because many places in the code need to do actions based on the fact if
the user has no, read or write access. If done with the may-functions then the permission
data need to be looked through multiple times.

Also, the whole check code is split into more functions that are tested separately and make it easier
to understand the process.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
4e298cccfb refactor: make class fields of permissions guard read-only
They're only read and never written after the construction

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
6e0e63688b refactor: allow only one required permission in require-permission decorator
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
9ca6485219 refactor: extract permission metadata key
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
488238d854 refactor: rename "Permissions" enum to "RequiredPermission"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00