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
Tilman Vatteroth
6b73016583
refactor: rename "Permissions" decorator to "RequirePermission"
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
4c384cc8de
test: add test for get note interceptor
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
b1dc383a7a
refactor: use "extractNoteFromRequest" in permission guard
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
ab5aebc9c4
refactor: extract "extract note from request" logic into separate function
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
65fb110a1e
refactor: move permissions decorator and guard into permissions directory
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
Tilman Vatteroth
22f0abbfbe
fix: remove redundant permission guard annotations
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-19 19:10:45 +02:00
renovate[bot]
1122a02f10
fix(deps): update dependency react-bootstrap-typeahead to v6.2.2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 11:31:56 +02:00
renovate[bot]
751c96c068
fix(deps): update i18next
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 11:31:35 +02:00
renovate[bot]
f412107131
chore(deps): update dependency eslint-config-next to v13.4.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 11:31:21 +02:00
renovate[bot]
dfc3766678
chore(deps): update nextjs monorepo to v13.4.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 11:31:11 +02:00
renovate[bot]
4ed2812798
fix(deps): update dependency @uiw/react-codemirror to v4.20.2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 11:30:42 +02:00
renovate[bot]
fe5edff238
fix(deps): update dependency vega-lite to v5.9.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-19 00:20:36 +00:00
renovate[bot]
8de7fcbdcb
chore(deps): update dependency @codemirror/view to v6.12.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-18 09:21:42 +02:00
renovate[bot]
7d56347289
chore(deps): update dependency turbo to v1.9.8
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-18 09:07:52 +02:00
renovate[bot]
4b44277660
fix(deps): update dependency rimraf to v5.0.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-18 03:43:38 +00:00
renovate[bot]
2707c76fa3
chore(deps): update nestjs packages
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-17 21:55:02 +02:00