Commit graph

5217 commits

Author SHA1 Message Date
Philip Molares
575407ab6d internal links now use the Link component instead of the LinkContainer component, because the later is intended for use with react-bootstrap components and not for simple translated strings.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 22:12:24 +02:00
Philip Molares
bbc6b45735
user is now always explicitly currently logged-in user
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 22:00:17 +02:00
Philip Molares
a7356ce93e
base name now is /api/v2/
this change makes sense, because v2 client should still be able to call /api/v2/ on v2.1 servers

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:51:57 +02:00
Philip Molares
09ee8293cd
fixed typo
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:46:43 +02:00
Philip Molares
dc661ad768
removed trailing / on /history/{note}
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:46:18 +02:00
Philip Molares
e088741578
renamed revision to revisions
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:45:27 +02:00
Philip Molares
1461b7ad62
removed /notes/{note}/websocket
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:44:15 +02:00
Philip Molares
fda6cf2e06
added export tag to /me/export
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-06 21:43:06 +02:00
mrdrogdrog
a376c95fab
Add function for language code shortening (#156)
Add function for language code shortening
2020-06-06 11:55:41 +02:00
renovate[bot]
1c2dd630d9
Update dependency @testing-library/react to v10.2.1 (#160)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-05 21:57:33 +02:00
Renovate Bot
9212bae9ea Update dependency @testing-library/user-event to v11.2.1 2020-06-05 20:47:17 +02:00
Renovate Bot
c56430a6a6 Update dependency @testing-library/user-event to v11.2.0 2020-06-05 15:34:31 +02:00
Philip Molares
046d434f4c
added error modal (#124)
added error modal component

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-06-05 14:23:09 +02:00
Renovate Bot
59f3cb59e3 Update dependency @testing-library/jest-dom to v5 2020-06-05 11:55:13 +02:00
Renovate Bot
faa4fd9747 Update dependency @types/jest to v25 2020-06-05 11:51:02 +02:00
renovate[bot]
ebfec522b3
Update dependency typescript to v3.9.5 (#146)
* Update dependency typescript to v3.9.5
* changed > to {'>'}, because typescript >=3.9 does not support > and } in tsx files anymore

see https://www.typescriptlang.org/docs/handbook/release-notes/overview.html#-and--are-now-invalid-jsx-text-characters

Signed-off-by: Philip Molares <philip.molares@udo.edu>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
2020-06-05 11:22:31 +02:00
Renovate Bot
3c1b06046d Update dependency @testing-library/react to v10 2020-06-05 09:41:24 +02:00
Renovate Bot
b1012548e4 Update dependency i18next-http-backend to v1.0.15 2020-06-05 09:40:55 +02:00
Renovate Bot
8e1d5d9f16 Update dependency @types/node to v12.12.44 2020-06-05 09:40:37 +02:00
Renovate Bot
1db6dda124 Update typescript-eslint monorepo to v3.1.0 2020-06-05 09:39:44 +02:00
Renovate Bot
805d76f959 Update reactrouter monorepo to v5.2.0 2020-06-05 09:37:15 +02:00
Renovate Bot
b71479eaaf Update dependency @testing-library/user-event to v11 2020-06-05 09:35:23 +02:00
Renovate Bot
d0153d3904 Update dependency i18next-browser-languagedetector to v4.2.0 2020-06-05 09:34:20 +02:00
Renovate Bot
749834169e Update dependency moment to v2.26.0 2020-06-05 09:30:53 +02:00
Renovate Bot
2348072bde Update dependency react-i18next to v11.5.0 2020-06-05 09:30:37 +02:00
Renovate Bot
6b08ad391b Update dependency react-bootstrap-typeahead to v5.0.0-rc.3 2020-06-05 09:29:49 +02:00
Erik Michelson
b051b109e5
Show login-buttons and boxes only if providers are configured (#122)
* Hide "Sign-in via ..." box if no provider is enabled

* Show sign-in buttons only if auth-providers exist

* Rebase fixes

* Replaced ternary operators with ShowIf

* Added ShowIf on two other code positions
2020-06-04 23:38:21 +02:00
renovate[bot]
2b4c3c76ba
Update dependency eslint-plugin-flowtype to v5.1.3 (#138)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-04 23:27:22 +02:00
renovate[bot]
567f0d2423
Update dependency i18next to v19.4.5 (#139)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-04 23:27:05 +02:00
Tilman Vatteroth
03e1bf361a Add show if component
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-04 23:00:42 +02:00
Renovate Bot
70c6f2cf74 Update dependency bootstrap to v4.5.0 2020-06-04 22:58:30 +02:00
renovate[bot]
f81e66531f
Update definitelyTyped (#135)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-04 22:57:01 +02:00
Erik Michelson
e86bb00e8a
Configure renovate (#130)
* Add dependency label to PRs

* Add package groups and schedule

* Fixed times
2020-06-04 22:43:05 +02:00
Philip Molares
0d8ca681f8
finished history toolbar buttons (#117)
* added history toolbar functionality
* export now adds a version number
* renamed OldHistoryEntry to V0HistoryEntry

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-04 22:41:44 +02:00
Renovate Bot
d7fdb73814 Pin dependencies 2020-06-04 19:13:34 +02:00
renovate[bot]
c967553520
Add renovate.json (#126)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-04 18:46:08 +02:00
mrdrogdrog
a62e3857b4
Improve sign in button (#123)
* Improve sign in button

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Add missing size attribute

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* reformat code

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-06-03 13:17:46 +02:00
mrdrogdrog
39b1175850
Improvement/different background color (#118)
* Set new background color for body
2020-06-02 11:22:49 +02:00
Erik Michelson
fc8f5dbbf5
Removed tokens from API spec
With the suggested usage of an Authorization header instead of relying on session-cookies, the API will finally become stateless. Therefore we don't need the tokens for user password change and deletion anymore.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-06-02 00:04:24 +02:00
Tilman Vatteroth
ef725c8b6e Fix text color when hovering social link buttons
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-05-31 23:14:48 +02:00
mrdrogdrog
570c45017c
Restructure redux code (#109)
* Restructure redux code

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
2020-05-31 22:51:36 +02:00
mrdrogdrog
db5bec7000
Split user.ts into auth.ts and me.ts (#113)
Split user.ts into auth.ts and me.ts
2020-05-31 22:27:12 +02:00
Philip Molares
1fa8c8ac53 clear history modal now correctly closes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-05-31 22:25:05 +02:00
Philip Molares
c8e42eebd4
Replace font awesome with fork awesome (#114)
* added fork-awesome-icon
* removed fontAwesome
* changed FontAwesomeIcon to ForkAwesomeIcon

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-05-31 22:21:32 +02:00
Erik Michelson
747d9686fa
User profile page (#102)
* Added mock profile page

* Added translations

* Modularized page, added LoginProvider, started validation

* Re-adding profile route after router refactoring

* Added API calls for password and name change

* Added user deletion modal

* Refactored translations in profile-page to match new locales

* Fixed merge-conflicted locales/de.json

* Removed values for password fields

* Fixed capitalization of LoginProvider

* Fixed codestyle method declarations

* Fix names of methods and started countdown

* Fix countdown

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-05-31 21:56:39 +02:00
Tilman Vatteroth
515cf1f34d Replace react icon with default codimd icon
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-05-31 19:17:24 +02:00
mrdrogdrog
8ab0e54431
Add flex to grow button (#110)
* Add flex to grow button

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

* Add flex to grow button

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2020-05-31 18:39:52 +02:00
Erik Michelson
b9d7880075
Fixed wrong translation (#107) 2020-05-31 18:34:10 +02:00
Philip Molares
727beb69f9 change dark mode button to show sun icon if toggled
see https://github.com/codimd/server/issues/378

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-05-31 15:38:21 +02:00
Philip Molares
d035ff26a5 moved style folder
added index.scss to index.tsx

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2020-05-31 13:27:20 +02:00