hedgedoc/public/api/v2/config
Erik Michelson 79469c5ddc
Show warning if note is longer than configured maximum length (#534)
* Add maximum document length config option

* Show remaining characters in tooltip of status-bar length-info

* Remove unnecessary checkDocumentLength function

* Add max-length warning

* Update translation wording

* Set dialog to medium size

* Add coloring to status-bar length info

* Improve wording in warning modal

* Add cypress e2e tests

I included the cypress-commands package and set the language level to ES6 to allow easier testing e.g. of element attributes.

* Changed way how the modal-advice was styled and positioned

* Show warning modal only on first length exceeding

* Improved length tooltip by adding messages when exceeding or reaching limit
2020-09-05 16:36:46 +02:00

43 lines
1 KiB
Text

{
"allowAnonymous": true,
"authProviders": {
"facebook": true,
"github": true,
"twitter": true,
"gitlab": true,
"dropbox": true,
"ldap": true,
"google": true,
"saml": true,
"oauth2": true,
"internal": true,
"openid": true
},
"allowRegister": true,
"branding": {
"name": "ACME Corp",
"logo": "http://localhost:3001/acme.png"
},
"banner": {
"text": "This is the test banner text",
"timestamp": "2020-05-22T20:46:08.962Z"
},
"customAuthNames": {
"ldap": "FooBar",
"oauth2": "Olaf2",
"saml": "aufSAMLn.de"
},
"maxDocumentLength": 100000,
"useImageProxy": false,
"plantumlServer": "http://www.plantuml.com/plantuml",
"specialLinks": {
"privacy": "https://example.com/privacy",
"termsOfUse": "https://example.com/termsOfUse",
"imprint": "https://example.com/imprint"
},
"version": {
"version": "mock",
"sourceCodeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"issueTrackerUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}