From e838567074dd78859ca2b18b819a9d3342ffe132 Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 01:59:28 +0300 Subject: [PATCH 1/6] Update types.js --- src/js/components/types.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/components/types.js b/src/js/components/types.js index a225310..f3b28f9 100644 --- a/src/js/components/types.js +++ b/src/js/components/types.js @@ -23,6 +23,8 @@ export const TerminalPropTypes = { hideTopBar: PropTypes.bool, allowTabs: PropTypes.bool, msg: PropTypes.string, + openTitle: PropTypes.string, + openMessage: PropTypes.string, color: PropTypes.string, style: PropTypes.object, // eslint-disable-line prompt: PropTypes.string, @@ -79,6 +81,8 @@ export const TerminalDefaultProps = { allowTabs: true, showActions: true, msg: '', + openTitle: 'OOPS! You closed the window.', + openMessage: 'Click on the icon to reopen.', color: 'green', style: {}, prompt: 'green', From e39168072a18b83ff91a06771e8f395f78f3552d Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 02:02:11 +0300 Subject: [PATCH 2/6] Update index.js --- src/js/components/Terminal/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/components/Terminal/index.js b/src/js/components/Terminal/index.js index 462b680..db72484 100644 --- a/src/js/components/Terminal/index.js +++ b/src/js/components/Terminal/index.js @@ -268,7 +268,9 @@ class Terminal extends Component { // Show msg (on window close) getNote = () => ( -

OOPS! You closed the window.

+

+ {this.props.openTitle} +

- Click on the icon to reopen. + {this.props.openMessage}
); From 62937a4afdd3e742ae0ab5f42b07e7fdbfb11bcf Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 02:06:56 +0300 Subject: [PATCH 3/6] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8447269..d86dc21 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,13 @@ you can also handle the result with a callback ### Minimise, maximise and close the window +```jsx + +``` +

From 9ab0e5c352d534d9f819aeff583c68efc2a22909 Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 02:07:26 +0300 Subject: [PATCH 4/6] Update index.js --- src/js/components/Terminal/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/Terminal/index.js b/src/js/components/Terminal/index.js index db72484..33393d2 100644 --- a/src/js/components/Terminal/index.js +++ b/src/js/components/Terminal/index.js @@ -269,7 +269,7 @@ class Terminal extends Component { getNote = () => (

- {this.props.openTitle} + {this.props.closedTitle}

- {this.props.openMessage} + {this.props.closedMessage}
); From a8cbc95e840ec23351cd5c10cf8c1cbf592ee0e7 Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 02:07:55 +0300 Subject: [PATCH 5/6] Update types.js --- src/js/components/types.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/components/types.js b/src/js/components/types.js index f3b28f9..8f5efec 100644 --- a/src/js/components/types.js +++ b/src/js/components/types.js @@ -23,8 +23,8 @@ export const TerminalPropTypes = { hideTopBar: PropTypes.bool, allowTabs: PropTypes.bool, msg: PropTypes.string, - openTitle: PropTypes.string, - openMessage: PropTypes.string, + closedTitle: PropTypes.string, + closedMessage: PropTypes.string, color: PropTypes.string, style: PropTypes.object, // eslint-disable-line prompt: PropTypes.string, @@ -81,8 +81,8 @@ export const TerminalDefaultProps = { allowTabs: true, showActions: true, msg: '', - openTitle: 'OOPS! You closed the window.', - openMessage: 'Click on the icon to reopen.', + closedTitle: 'OOPS! You closed the window.', + closedMessage: 'Click on the icon to reopen.', color: 'green', style: {}, prompt: 'green', From 30a26c3ebf1ce404f2cd80501e8d7c73cb76348f Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 29 Aug 2018 02:10:58 +0300 Subject: [PATCH 6/6] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d86dc21..2adb43a 100644 --- a/README.md +++ b/README.md @@ -425,6 +425,8 @@ Use | **description** | object | {} | | **commands** | object | { clear, help, show, } | | **msg** | string | - | +| **closedTitle** | string | OOPS! You closed the window. | +| **closedMessage** | string | Click on the icon to reopen. | | **watchConsoleLogging** | bool | false | | **commandPassThrough** | function | null | | **promptSymbol** | string | > |