diff --git a/package.json b/package.json index c814a762..3b0a75d0 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,8 @@ "react-screen-size": "^1.0.1", "react-timeago": "^3.4.3", "react-title-component": "^1.0.1", - "react-transition-group": "^1.2.0" + "react-transition-group": "^1.2.0", + "text-security": "^1.2.0" }, "devDependencies": { "babel-core": "^6.25.0", diff --git a/src/screens/repo/screens/secrets/components/form.js b/src/screens/repo/screens/secrets/components/form.js index a3e24494..77aed66a 100644 --- a/src/screens/repo/screens/secrets/components/form.js +++ b/src/screens/repo/screens/secrets/components/form.js @@ -8,6 +8,7 @@ import { } from "shared/constants/events"; import styles from "./form.less"; +import "./security.css"; export class Form extends Component { constructor(props, context) { @@ -86,10 +87,11 @@ export class Form extends Component {

Events

diff --git a/src/screens/repo/screens/secrets/components/security.css b/src/screens/repo/screens/secrets/components/security.css new file mode 100644 index 00000000..eed88129 --- /dev/null +++ b/src/screens/repo/screens/secrets/components/security.css @@ -0,0 +1,6 @@ +@import "../../../../../../node_modules/text-security/dist/text-security-disc.css"; + +/* Hides sensitive information from displaying */ +.hide_secret { + font-family: 'text-security-disc'; +} diff --git a/yarn.lock b/yarn.lock index a69a1b48..3be50afd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6001,6 +6001,11 @@ text-encoding@0.6.4: version "0.6.4" resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.6.4.tgz#e399a982257a276dae428bb92845cb71bdc26d19" +text-security@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/text-security/-/text-security-1.2.0.tgz#2a2218595ca681f58f5024616f9863e75a591659" + integrity sha512-vFsHhVNOgqpbaOebmSOy1DXapZda8ZVZetlI4LzHbUnhHKu8GE8XCNQ0X3ndeoH3orHZXV82hBc7F0RcMZcWwQ== + text-table@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"