rhyshort opened a new pull request #1331: URL: https://github.com/apache/couchdb-fauxton/pull/1331
<!-- Thank you for your contribution! Please file this form by replacing the Markdown comments with your text. If a section needs no action - remove it. Also remember, that CouchDB uses the Review-Then-Commit (RTC) model of code collaboration. Positive feedback is represented +1 from committers and negative is a -1. The -1 also means veto, and needs to be addressed to proceed. Once there are no objections, the PR can be merged by a CouchDB committer. See: http://couchdb.apache.org/bylaws.html#decisions for more info. --> ## Overview To enable users to remove the CSP directive `style-src unsafe-inline`, the ace editor version needs to be upgraded to at least 1.4.13 which includes the global option `useStrictCSP`. In order to do this brace has had to be replaced since it hasn't had an update in 4 years. react-ace is chosen as a replacement as it uses ace-builds and wraps ace in a react component. The option `useStrictCSP` is enabled, with the required style sheets imported, where possible properties that can be handled by react-ace are passed directly to `AceEditor` as part of the `render()` call, otherwise customizations are left to be handled by the codeeditor component. ## Testing recommendations <!-- Describe how we can test your changes. Does it provides any behaviour that the end users could notice? --> The changes should be covered by the existing nightwatch tests and from an end user perspective the changes should be not be noticable. ## GitHub issue number <!-- If this is a significant change, please file a separate issue at: https://github.com/apache/couchdb-fauxton/issues and include the number here and in commit message(s) using syntax like "Fixes #472" or "Fixes apache/couchdb#472". --> n/a ## Related Pull Requests <!-- If your changes affects multiple components in different repositories please put links to those pull requests here. --> n/a ## Checklist - [x] Code is written and works correctly; - [x] Changes are covered by tests; - [ ] Documentation reflects the changes; - [ ] Update [rebar.config.script](https://github.com/apache/couchdb/blob/main/rebar.config.script) with the correct tag once a new Fauxton release is made -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org