mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 21:34:12 +00:00
e014eb36b5
* added info-banner component to show the banner.text, we got from the backend config. This banner is shown on top of the landing page (intro, history, login/signup and profile) and also on top of the editor and links to `/n/banner` * added banner to backendConfig Redux state * added BannerState to the ApplicationState with that the showing of the banner is globally controlled, the banner text is given to the banner component and the timestamp to acknowledge a banner was read by the user * the timestamp of a dismissed note is saved in the browsers localStorage to determine in the future if the banner should be shown Signed-off-by: Philip Molares <philip.molares@udo.edu> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
35 lines
759 B
Text
35 lines
759 B
Text
{
|
|
"allowAnonymous": true,
|
|
"authProviders": {
|
|
"facebook": true,
|
|
"github": true,
|
|
"twitter": true,
|
|
"gitlab": true,
|
|
"dropbox": true,
|
|
"ldap": true,
|
|
"google": true,
|
|
"saml": true,
|
|
"oauth2": true,
|
|
"email": true,
|
|
"openid": true
|
|
},
|
|
"banner": {
|
|
"text": "This is the test banner text",
|
|
"timestamp": "2020-05-22T20:46:08.962Z"
|
|
},
|
|
"customAuthNames": {
|
|
"ldap": "FooBar",
|
|
"oauth2": "Olaf2",
|
|
"saml": "aufSAMLn.de"
|
|
},
|
|
"specialLinks": {
|
|
"privacy": "test",
|
|
"termsOfUse": "test",
|
|
"imprint": "test"
|
|
},
|
|
"version": {
|
|
"version": "mock",
|
|
"sourceCodeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
|
"issueTrackerUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
|
}
|
|
}
|