Skip to content

Commit

Permalink
Replaced ReDoc with SwaggerUI #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Parrello committed Aug 28, 2018
1 parent 5a813ed commit 66264a5
Show file tree
Hide file tree
Showing 35 changed files with 8,395 additions and 5,351 deletions.
73 changes: 73 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"extends": ["react-app"],
"plugins": ["react"],
"rules": {
"quotes": ["error", "double"], // Use double-quotes for strings.
"jsx-quotes": ["error", "prefer-double"], // Use double-quotes for strings in JSX.
"semi": ["error", "always"], // Enforce semicolon at the end of statements.
"indent": ["error", 4, { "SwitchCase": 1 }], // Indent with 4 spaces.
"react/jsx-indent": ["error", 4], // Indent JSX with 4 spaces.
"no-multi-spaces": "error", // Do not allow multiple spaces in js.
"no-multiple-empty-lines": ["error", { "max": 1 }], // Do not allow consecutive empty lines.
"no-trailing-spaces": "error", // Disallow trailing whitespace at the end of lines.
"max-len": ["error", { "code": 120 }], // Restrict maximum line length to 120 characters.
"no-console": "warn", // Restrict usage of console.log/error etc.
"no-unused-vars": "error", // Do not allow declaring unused variables.
"prefer-template": "error", // Use back-tick for string concatanation if needed.
"object-curly-spacing": ["error", "always"], // Enforce spaces inside inline object curly braces.
"newline-before-return": "error", // Enforce new-line before return statements.
"react/jsx-curly-spacing": [2, {"when": "always", // Enforce spaces inside objects in JSX.
"spacing": {
"objectLiterals": "never"
},
"children": true
}],
"react/jsx-tag-spacing": ["error", { // Enforce space before tag close in JSX.
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}],

// Doc-block settings
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"object": "Object",
"String": "string"
},
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": false
}],

// React-specific settings
"react/forbid-component-props": ["error", { "forbid": ["style"] }], // Forbid inline style in JSX.

// Flow-specific settings
"flowtype/newline-after-flow-annotation": [2, "never"], // Do not allow empty line after flow annotation.
"flowtype/require-valid-file-annotation": [2, "always"], // Validate flow annotations and report missing ones.

/* the following are to suppress some warnings that might come up due to eslint version inconsistency */
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
}
}
14 changes: 14 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[ignore]
node_modules

[include]

[libs]

[lints]

[options]
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src

[strict]
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
node_modules
# dependencies
/node_modules

# misc
.DS_Store
.idea

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# css
src/**/*.css
30 changes: 0 additions & 30 deletions SERVICEWORKER.md

This file was deleted.

6 changes: 6 additions & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"main.css": "static/css/main.9c9d507a.css",
"main.css.map": "static/css/main.9c9d507a.css.map",
"main.js": "static/js/main.9b60bc3c.js",
"main.js.map": "static/js/main.9b60bc3c.js.map"
}
Binary file added build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="favicon.ico"><title>bunq API Documentation</title><link href="/static/css/main.9c9d507a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="header"></div><div id="root"></div><script type="text/javascript" src="/static/js/main.9b60bc3c.js"></script></body></html>
15 changes: 15 additions & 0 deletions build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "bunqDoc",
"name": "bunq API Documentation",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#FFFFFF"
}
1 change: 1 addition & 0 deletions build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions build/static/css/main.9c9d507a.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/css/main.9c9d507a.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/static/js/main.9b60bc3c.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.9b60bc3c.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions docs/assets/css/style.css

This file was deleted.

Loading

0 comments on commit 66264a5

Please sign in to comment.