Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 9d787c9

Browse files
authored
Merge pull request #85 from watson-developer-cloud/terms-of-use
feat(Layout): add Terms of Use
2 parents f6814b8 + dbe74ce commit 9d787c9

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

public/css/style.css

+5
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,8 @@
8484
.disclaimer--message .base--h6{
8585
padding-top: 6px;
8686
}
87+
88+
.gdpr-info {
89+
font-size: 10pt;
90+
margin-top: 1em;
91+
}

test/unit/test.express.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ const app = require('../../app');
2424

2525

2626
describe('express', () => {
27-
it('load home page when GET /', () => request(app).get('/').expect(200));
27+
it('load home page when GET /', () => {
28+
request(app).get('/').expect(200);
29+
});
2830

29-
it('404 when page not found', () => request(app).get('/foo/bar').expect(404));
31+
it('404 when page not found', () => {
32+
request(app)
33+
.get('/foo/bar')
34+
.expect(new Error('Not Found'));
35+
});
3036
});

views/layout.jsx

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Header, Jumbotron } from 'watson-react-components';
44

55
// eslint-disable-next-line
66
const DESCRIPTION = 'Natural Language Classifier applies deep learning techniques to make predictions about the best predefined classes for short sentences or phrases.';
7+
const TERMS_OF_USE_URL = 'https://watson-developer-cloud.github.io/terms?name=Natural%20Language%20Classifier%20Demo';
78

89
export class Layout extends React.Component {
910
constructor(props) {
@@ -56,6 +57,12 @@ export class Layout extends React.Component {
5657
startInBluemix="https://cloud.ibm.com/registration/?target=%2Fcatalog%2Fservices%2Fnatural-language-classifier%3FhideTours%3Dtrue%26cm_mmc%3D-_-Watson%2BCore_Watson%2BCore%2B-%2BPlatform-_-WW_WW-_-wdc-ref%26cm_mmc%3D-_-Watson%2BCore_Watson%2BCore%2B-%2BPlatform-_-WW_WW-_-wdc-ref%26cm_mmca1%3D000000OF%26cm_mmca2%3D10000409"
5758
description={DESCRIPTION}
5859
/> : null }
60+
<div className="_container _container_large gdpr-info">
61+
By using this application, you agree to the &nbsp;
62+
<a target="_blank" rel="noreferrer noopener" href={TERMS_OF_USE_URL}>
63+
Terms of Use
64+
</a>
65+
</div>
5966
<div id="root">
6067
{children}
6168
</div>

0 commit comments

Comments
 (0)