-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
192 changed files
with
3,942 additions
and
2,525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# NPM | ||
node_modules/ | ||
|
||
# Logging | ||
log/ | ||
npm-debug.log | ||
|
||
# Test suite | ||
coverage/ | ||
|
||
# Config | ||
config/ | ||
|
||
.wallet | ||
.tmp | ||
frontend/ | ||
!frontend/components | ||
|
||
# Webpack-generated files | ||
component-map.json | ||
stats.json | ||
jest* | ||
workspace/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"presets": [ | ||
"env", | ||
"stage-2" | ||
], | ||
"plugins": [ | ||
["babel-plugin-transform-undefined-to-void"], | ||
["babel-plugin-transform-react-jsx", { "pragma": "h" }], | ||
["babel-plugin-transform-decorators-legacy"], | ||
["babel-plugin-transform-es2015-template-literals", { | ||
"loose": true, | ||
"spec": true | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { configure } from '@storybook/react'; | ||
|
||
function loadStories() { | ||
require('../stories/index.jsx'); | ||
// You can require as many stories as you need. | ||
} | ||
|
||
configure(loadStories, module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict' | ||
const ComponentTreePlugin = require('component-tree-webpack-plugin') | ||
|
||
let config = require('../webpack.config') | ||
|
||
config.plugins = config.plugins.filter(plugin => !(plugin instanceof ComponentTreePlugin)) | ||
|
||
config.resolve.alias['react'] = 'preact-compat' | ||
config.resolve.alias['react-dom'] = 'preact-compat' | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,3 @@ these files. | |
|
||
This copyright notice MUST APPEAR in all copies of the product! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
'use strict' | ||
const path = require('path') | ||
|
||
module.exports = { | ||
auth: { | ||
doc: 'Auth API Collection', | ||
|
@@ -84,33 +81,6 @@ module.exports = { | |
default: 'DADI' | ||
} | ||
}, | ||
assets: { | ||
doc: 'Asset API Endpoint', | ||
format: Object, | ||
default: { | ||
enabled: true | ||
}, | ||
enabled: { | ||
format: Boolean, | ||
default: true | ||
}, | ||
name: { | ||
format: String, | ||
default: 'No Name' | ||
}, | ||
host: { | ||
format: 'ipaddress', | ||
default: '0.0.0.0' | ||
}, | ||
port: { | ||
format: 'port', | ||
default: 3000 | ||
}, | ||
endpoint: { | ||
format: String, | ||
default: '' | ||
} | ||
}, | ||
cdn: { | ||
publicUrl: { | ||
doc: 'The host of the URL where the CDN instance can be publicly reached', | ||
|
@@ -182,25 +152,46 @@ module.exports = { | |
format: 'port', | ||
default: 3001 | ||
}, | ||
ssl: { | ||
enabled: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
dir: { | ||
doc: 'Directory for certificate store.', | ||
type: String, | ||
default: path.join(__dirname, '/../workspace/certs') | ||
}, | ||
domains: { | ||
doc: 'Domains to secure.', | ||
format: Array, | ||
default: [] | ||
}, | ||
email: { | ||
format: String, | ||
default: '[email protected]' | ||
} | ||
protocol: { | ||
doc: 'The protocol the application will use', | ||
format: String, | ||
default: 'http', | ||
env: 'PROTOCOL' | ||
}, | ||
redirectPort: { | ||
doc: 'Port from which to redirect HTTP connections to HTTPS', | ||
format: 'port', | ||
default: 0 | ||
}, | ||
sslPrivateKeyPath: { | ||
doc: 'The path to a SSL private key', | ||
format: String, | ||
default: '', | ||
env: 'SSL_PRIVATE_KEY_PATH' | ||
}, | ||
sslCertificatePath: { | ||
doc: 'The path to a SSL certificate', | ||
format: String, | ||
default: '', | ||
env: 'SSL_CERTIFICATE_PATH' | ||
}, | ||
sslPassphrase: { | ||
doc: 'The passphrase of the SSL private key', | ||
format: String, | ||
default: '', | ||
env: 'SSL_PRIVATE_KEY_PASSPHRASE' | ||
}, | ||
sslIntermediateCertificatePath: { | ||
doc: 'The path to a SSL intermediate certificate, if any', | ||
format: String, | ||
default: '', | ||
env: 'SSL_INTERMEDIATE_CERTIFICATE_PATH' | ||
}, | ||
sslIntermediateCertificatePaths: { | ||
doc: 'The paths to SSL intermediate certificates, overrides sslIntermediateCertificate (singular)', | ||
format: Array, | ||
default: [], | ||
env: 'SSL_INTERMEDIATE_CERTIFICATE_PATHS' | ||
}, | ||
healthcheck: { | ||
enabled: { | ||
|
@@ -209,23 +200,20 @@ module.exports = { | |
default: true | ||
}, | ||
frequency: { | ||
doc: 'Interval between checks (MS)', | ||
format: Number, | ||
doc: 'Interval between health checks, in milliseconds', | ||
format: function check (val) { | ||
if (isNaN(val)) { | ||
throw new Error('Healthcheck frequency must be a valid number and greater than 1000') | ||
} | ||
|
||
if (val < 1000) { | ||
throw new Error('Healthcheck frequency must be greater than 1000 milliseconds') | ||
} | ||
}, | ||
default: 2000 | ||
} | ||
} | ||
}, | ||
TZ: { | ||
doc: 'Process Timezone', | ||
default: 'Europe/London' | ||
}, | ||
ui: { | ||
inputDelay: { | ||
doc: 'Delay in ms to debounce inputs by', | ||
format: 'integer', | ||
default: 100 | ||
} | ||
}, | ||
logging: { | ||
enabled: { | ||
doc: 'If true, logging is enabled using the following settings.', | ||
|
@@ -265,7 +253,7 @@ module.exports = { | |
backgroundImage: { | ||
doc: 'The background image URL', | ||
format: String, | ||
default: '/public/images/bg-dark.jpg' | ||
default: '' | ||
}, | ||
logo: { | ||
doc: 'The logo URL', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.