Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 30ecc13

Browse files
committed
Remove all references to IDME
1 parent 441915d commit 30ecc13

File tree

16 files changed

+12
-187
lines changed

16 files changed

+12
-187
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
mockServices
21
/src/scenes/home/home.js

CONTRIBUTING.md

-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ If your installation was successful you will get the versions of node and npm th
242242
├── docker-compose.yml
243243
├── index.html
244244
├── jsconfig.json
245-
├── mockServices
246-
│   └── idme.js
247245
├── node_modules
248246
│   └── DEPENDENCIES...
249247
├── package.json

EXTERNAL_DATA_SOURCES.md

-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ jumboQuote.js#3
77
faq.js#4
88
whatWeDo.js#8
99
successStories.js#7
10-
11-
There's a partial ID Me URL in idme.js#8.

config/env.js

-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ function getClientEnvironment(publicUrl) {
7575
OC_BACKEND_HOST: process.env.OC_BACKEND_HOST || 'http://localhost:3000/',
7676
OC_BACKEND_URL: process.env.OC_BACKEND_URL || 'http://localhost:3000/api/v1',
7777
OC_HOST: process.env.OC_HOST || 'http://localhost:4000',
78-
OC_IDME_CLIENT_ID: process.env.OC_IDME_CLIENT_ID || '6d781bfd42506613a0fe4ad4123aaf6d',
79-
OC_IDME_AUTH_URL: process.env.OC_IDME_AUTH_URL || 'http://localhost:4001/oauth/authorize',
8078
OC_GOOGLE_KEY: process.env.OC_GOOGLE_KEY,
8179
OC_FACEBOOK_KEY: process.env.OC_FACEBOOK_KEY
8280
}

mockServices/idme.js

-43
This file was deleted.

scripts/build.js

+7-11
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ process.env.BABEL_ENV = 'production';
55
process.env.NODE_ENV = 'production';
66
process.env.OC_BACKEND_HOST = 'https://api.operationcode.org/';
77
process.env.OC_BACKEND_URL = 'https://api.operationcode.org/api/v1';
8-
process.env.OC_IDME_CLIENT_ID = '6d781bfd42506613a0fe4ad4123aaf6d';
98
process.env.OC_HOST = 'https://operationcode.org';
10-
process.env.OC_IDME_AUTH_URL = 'https://api.id.me/oauth/authorize';
119

1210
// Makes the script crash on unhandled rejections instead of silently
1311
// ignoring them. In the future, promise rejections that are not handled will
1412
// terminate the Node.js process with a non-zero exit code.
15-
process.on('unhandledRejection', (err) => {
13+
process.on('unhandledRejection', err => {
1614
throw err;
1715
});
1816

@@ -29,8 +27,7 @@ const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
2927
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
3028
const FileSizeReporter = require('react-dev-utils/FileSizeReporter');
3129

32-
const measureFileSizesBeforeBuild =
33-
FileSizeReporter.measureFileSizesBeforeBuild;
30+
const measureFileSizesBeforeBuild = FileSizeReporter.measureFileSizesBeforeBuild;
3431
const printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild;
3532
const useYarn = fs.existsSync(paths.yarnLockFile);
3633

@@ -42,7 +39,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
4239
// First, read the current file sizes in build directory.
4340
// This lets us display how much they changed later.
4441
measureFileSizesBeforeBuild(paths.appBuild)
45-
.then((previousFileSizes) => {
42+
.then(previousFileSizes => {
4643
// Remove all content but keep the directory so that
4744
// if you're in it, you don't end up in Trash
4845
fs.emptyDirSync(paths.appBuild);
@@ -57,19 +54,18 @@ measureFileSizesBeforeBuild(paths.appBuild)
5754
console.log(chalk.yellow('Compiled with warnings.\n'));
5855
console.log(warnings.join('\n\n'));
5956
console.log(
60-
`\nSearch for the ${
61-
chalk.underline(chalk.yellow('keywords'))
62-
} to learn more about each warning.`
57+
`\nSearch for the ${chalk.underline(
58+
chalk.yellow('keywords')
59+
)} to learn more about each warning.`
6360
);
6461
} else {
6562
console.log(chalk.green('Compiled successfully.\n'));
6663
}
6764

6865
console.log('File sizes after gzip:\n');
6966
printFileSizesAfterBuild(stats, previousFileSizes, paths.appBuild);
70-
7167
},
72-
(err) => {
68+
err => {
7369
console.log(chalk.red('Failed to compile.\n'));
7470
console.log(`${err.message || err}\n`);
7571
process.exit(1);

src/config/environment-dev.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
const config = {
22
backendHost: 'http://localhost:3000/',
33
backendUrl: 'http://localhost:3000/api/v1',
4-
idmeClientId: '6d781bfd42506613a0fe4ad4123aaf6d',
5-
host: 'http://localhost:4000',
6-
idmeOAuthUrl: 'http://localhost:4001/oauth/authorize'
4+
host: 'http://localhost:4000'
75
};
86

97
export default config;

src/config/environment-mock.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const config = {
22
backendUrl: 'http://localhost:4001/api/v1',
3-
idmeClientId: '6d781bfd42506613a0fe4ad4123aaf6d',
4-
host: 'http://localhost:4000',
5-
idmeOAuthUrl: 'http://localhost:4001/oauth/authorize'
3+
host: 'http://localhost:4000'
64
};
75

86
export default config;

src/config/environment-prod.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
const config = {
22
backendHost: 'https://api.operationcode.org/',
33
backendUrl: 'https://api.operationcode.org/api/v1',
4-
idmeClientId: '6d781bfd42506613a0fe4ad4123aaf6d',
5-
host: 'https://www.operationcode.org',
6-
idmeOAuthUrl: 'https://api.id.me/oauth/authorize'
4+
host: 'https://www.operationcode.org'
75
};
86

97
export default config;

src/config/environment.js

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ const config = {
22
backendHost: process.env.OC_BACKEND_HOST,
33
backendUrl: process.env.OC_BACKEND_URL,
44
host: process.env.OC_HOST,
5-
idmeClientId: process.env.OC_IDME_CLIENT_ID,
6-
idmeOAuthUrl: process.env.OC_IDME_AUTH_URL,
75
googleKey: process.env.OC_GOOGLE_KEY,
86
facebookKey: process.env.OC_FACEBOOK_KEY
97
};

src/scenes/home/profile/profile.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@
2525
.profileContainer {
2626
flex-direction: column;
2727
}
28+
2829
.profileContainer__cards {
2930
width: 100%;
3031
}
31-
.profileContainer__idMe {
32-
width: 100%;
33-
}
3432
}
3533

3634
@media screen and (max-width: 650px) {
3735
.profileContainer__cards > * {
3836
margin-right: 25px;
3937
margin-left: 25px;
4038
}
39+
4140
.profile__icon {
4241
height: 50px;
4342
width: 50px;

src/shared/components/idme/idme.css

-16
This file was deleted.

src/shared/components/idme/idme.js

-25
This file was deleted.

src/shared/components/idme/idmeverify/idmeverify.css

-3
This file was deleted.

src/shared/components/idme/idmeverify/idmeverify.js

-58
This file was deleted.

stories/components/idme/index.js

-10
This file was deleted.

0 commit comments

Comments
 (0)