Philip Molares
f701f8d05f
refactor: remove show-if in favour of conditionals
...
This prevents a problem where show-if can trigger an error if a value is checked to exist with it.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-11-30 21:14:01 +01:00
Tilman Vatteroth
e953a5115a
fix(frontend): improve expected origin error message
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-10-24 13:49:12 +02:00
Tilman Vatteroth
a0bc8e98d0
feat(motd): read motd in RSC and provide via context
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-10-24 13:49:12 +02:00
Erik Michelson
75838ef426
enhancement(appbar): remove unnecessary history button from app bar
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-10-08 13:53:19 +02:00
Erik Michelson
3dfad0cea5
enhancement: use isLoggedIn hook
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-10-07 12:34:34 +02:00
Tilman Vatteroth
56643ffd85
feat: merge login, register and intro page
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-24 22:12:39 +02:00
Tilman Vatteroth
11a47b6087
Revert "fix(frontend): replace expected-origin-boundary with middleware"
...
This reverts commit 982bc4ba
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-10 21:38:53 +02:00
Tilman Vatteroth
b3fb1bbf30
fix: extract app bar into layout slot
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-05 12:41:26 +02:00
Tilman Vatteroth
982bc4ba59
fix(frontend): replace expected-origin-boundary with middleware
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
8602645bea
feat: migrate frontend app to nextjs app router
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-03 22:00:34 +02:00
Tilman Vatteroth
dccd58f0c1
fix: remove subpath support for HD_BASE_URL
...
With this commit we drop the subpath support which results in the constraint that HedgeDoc must always run on the root of a domain. This makes a lot of things in testing, rendering and security much easier.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-13 20:38:53 +02:00
Erik Michelson
d10c6d3290
refactor: move help entries into new global app bar
...
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Erik Michelson
ae37bd36f9
refactor: move settings dialog to global dialogs
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-07-02 17:54:23 +02:00
Tilman Vatteroth
76242330fd
fix(frontend): improve performance by caching translated texts
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-26 23:56:44 +02:00
Tilman Vatteroth
0993372290
fix: replace dark mode hack with bootstrap's own dark mode
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 22:38:50 +02:00
Philip Molares
eff6c53860
fix(frontend): use tabs instead of pills for settings modal
...
This way the button don't look so strange and this is more like the class is intended.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-05-13 14:12:53 +02:00
Tilman Vatteroth
3f96616b5a
fix: remove not migrated language files
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
745be42101
test(i18n): replace e2e test for language picker with unit test
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
07a28824d3
refactor(i18n): use browser api to determine display names for languages
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
53a3c92fdb
fix(i18n): use event to change luxon language setting
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 21:29:14 +02:00
Tilman Vatteroth
86276b0753
refactor: move mockI18n
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 20:29:45 +02:00
Tilman Vatteroth
e368203e16
feat: add setting for line wrapping
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-06 22:59:40 +02:00
Erik Michelson
97389fe0c4
fix: useTranslation hook in react components
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-03-25 16:14:03 +01: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
Philip Molares
1c16e25e14
feat(frontend): replace forkawesome with bootstrap icons
...
These icon replace fork awesome. A linter informs the user about the deprecation.
See https://github.com/hedgedoc/hedgedoc/issues/2929
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-24 14:31:17 +01:00
Philip Molares
7fb02c96e6
refactor(frontend): title for common modal via titleI18nKey or title prop
...
This is mainly needed because we use the common modal to show image light boxes and the title is then the title or alt text of the image
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-02-19 22:04:40 +01:00
Erik Michelson
cf34df21b7
feat: add license frontmatter field for link header
...
This commit adds the "license" frontmatter property which sets a link with the "license" relation in the head of the HTML page.
Furthermore, this commit restructures the other head elements for a note altogether into a single component that can be used to inject all head elements at once.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-02-13 18:10:51 +01:00
Tilman Vatteroth
9c3858797f
fix(frontend): Add generic type to act calls to trigger promise generation
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-12-24 14:45:05 +01:00
Tilman Vatteroth
e390c0dd15
fix(frontend): reformat source files
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-12-04 20:59:46 +01:00
Tilman Vatteroth
614374768a
fix(frontend): Await act calls in tests
...
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-11-21 18:23:44 +01:00
Tilman Vatteroth
762a0a850e
fix: Move content into to frontend directory
...
Doing this BEFORE the merge prevents a lot of merge conflicts.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-11-20 19:48:40 +01:00