Skip to content

Commit 2ff095d

Browse files
author
Landon Reed
authored
Merge pull request ibi-group#413 from conveyal/dev
Merge dev to master
2 parents 113b359 + 8580318 commit 2ff095d

File tree

451 files changed

+64987
-26244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

451 files changed

+64987
-26244
lines changed

.flowconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[ignore]
2+
.*/node_modules/config-chain/.*
3+
.*/node_modules/fbjs/flow/.*
4+
.*/node_modules/immutable/.*
5+
.*/node_modules/mapbox.js/docs/examples/.*
6+
.*/node_modules/nock/node_modules/changelog/examples/.*
7+
.*/node_modules/npmconf/.*
8+
.*/node_modules/react-leaflet/src/.*
9+
.*/node_modules/reqwest/.*
10+
.*/node_modules/module-deps/test/invalid_pkg/package.json
11+
.*/node_modules/immutable/dist/immutable.js.flow
12+
13+
[include]
14+
15+
[libs]
16+
17+
[options]

.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@ node_modules/
22
.DS_Store
33
dist
44
*.log
5-
coverage
6-
target/
7-
src/main/client/config.js
8-
datatools-manager.iml
9-
config.yml
10-
config_server.yml
11-
configurations/*
12-
!configurations/default
5+
coverage*
136
tmp/
7+
.tags
148

159
# Optional npm cache directory
1610
.npm
@@ -21,9 +15,13 @@ tmp/
2115
# Configurations
2216
configurations/*
2317
!configurations/default
18+
!configurations/test
19+
!configurations/end-to-end
2420
dist
2521
assets
2622

2723
# Secret config files
2824
env.yml
2925
env.yml-original
26+
.env
27+
!configurations/test/env.yml

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
language: node_js
22
notifications:
33
email: false
4+
slack: conveyal:WQxmWiu8PdmujwLw4ziW72Gc
45
node_js:
5-
- '6'
6+
- '8'
67
cache:
78
yarn: true
89
before_install:
910
- npm i -g codecov
11+
# Use updated python to avoid SSL insecure warnings:
12+
# https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
13+
- python --version
14+
- pyenv versions
15+
- pyenv global 2.7.14
1016
- pip install --user mkdocs
1117
script:
1218
- yarn run lint
19+
- yarn run lint-messages
20+
- yarn run flow
1321
- yarn run cover-client
1422
- codecov
15-
- yarn run build
23+
- yarn run build -- --minify
1624
- mkdocs build
1725

1826
# If sudo is disabled, CI runs on container based infrastructure (allows caching &c.)
1927
sudo: false
2028

21-
# Notify us of the build status on the Slack channel
22-
notifications:
23-
slack: conveyal:WQxmWiu8PdmujwLw4ziW72Gc
24-
2529
# Push results to codecov.io
2630
after_success:
2731
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ This repository serves as the front end UI for the Data Manager application. It
88

99
## Documentation
1010

11-
View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
11+
View the [latest release documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
12+
13+
Note: `dev` branch docs can be found [here](http://conveyal-data-tools.readthedocs.org/en/dev/).

__mocks__/auth0-js.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import jwt from 'jsonwebtoken'
2+
3+
module.exports = {
4+
WebAuth: class WebAuth {
5+
constructor ({domain, clientID}) {
6+
if (!domain) {
7+
throw new Error('Domain required')
8+
}
9+
if (!clientID) {
10+
throw new Error('Client ID required')
11+
}
12+
}
13+
14+
renewAuth (
15+
{
16+
audience,
17+
nonce,
18+
postMessageDataType,
19+
redirectUri,
20+
scope,
21+
usePostMessage
22+
},
23+
callback
24+
) {
25+
return callback(null, {
26+
accessToken: jwt.sign(
27+
{
28+
nonce
29+
},
30+
'signingKey'
31+
),
32+
idToken: jwt.sign(
33+
{
34+
nonce
35+
},
36+
'signingKey'
37+
)
38+
})
39+
}
40+
}
41+
}

__mocks__/auth0-lock.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// TODO: remove. There was an import issue, so this is a temporary hack.
2+
// perhaps a later version of Auth0 will have negate the need for this file.
3+
module.exports = function () {}

0 commit comments

Comments
 (0)