stable

Clone or download

Read-only

request #14843: Add a "copy to clipboard" element when creating a SVN token, an access key or an OAuth2 client secret

This element is created via a Custom Element [0] to make possible to reuse the behavior in different contexts while keeping it isolated from the rest of the page. As IE11 does not support the custom elements, a polyfill is needed. To not penalize modern parts of Tuleap that do support IE11 (hopefully the majority of the new features) the polyfill must be imported manually by the users of the element. Jest now uses JSDOM 16 to have the support of the Custom Elements API. [0] https://html.spec.whatwg.org/multipage/custom-elements.html Change-Id: I584eec01a41f6ffcbc465e9dc821ebbb659de544

Modified Files

Name
M package-lock.json +168 −3 Go to diff View file
M package.json +2 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/writing-mode/QueryEditor.test.js +3 −1 Go to diff View file
M plugins/oauth2_server/include/ProjectAdmin/ListAppsController.php +2 −0 Go to diff View file
M plugins/oauth2_server/scripts/src/project-administration.ts +31 −0 Go to diff View file
M plugins/oauth2_server/site-content/fr_FR/LC_MESSAGES/tuleap-oauth2_server.po +6 −0 Go to diff View file
M plugins/oauth2_server/templates/project-admin.mustache +15 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/ProjectAdmin/ListAppsControllerTest.php +2 −0 Go to diff View file
A plugins/oauth2_server/themes/project-administration.scss +26 −0 Go to diff View file
M plugins/oauth2_server/webpack.common.js +1 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +12 −0 Go to diff View file
M src/common/User/Account/templates/keys-tokens.mustache +30 −2 Go to diff View file
M src/package-lock.json +5 −0 Go to diff View file
M src/package.json +1 −0 Go to diff View file
M src/scripts/account/keys-tokens.ts +31 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/copy-to-clipboard/README.md +21 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/copy-to-clipboard/clipboard.ts +55 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/copy-to-clipboard/copy-to-clipboard-element.test.ts +65 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/copy-to-clipboard/copy-to-clipboard-element.ts +75 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/copy-to-clipboard/index.ts +24 −0 Go to diff View file
A src/scripts/tuleap/custom-elements/custom-elements-polyfill-ie11.ts +23 −0 Go to diff View file
M src/themes/BurningParrot/css/account/_account.scss +8 −0 Go to diff View file
M tests/jest/jest.base.config.js +1 −0 Go to diff View file