diff --git a/.gitignore b/.gitignore index 496fe9b..b853c4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,185 @@ *.DS_Store -node_modules \ No newline at end of file +node_modules + + +techCurriculum/ + +### Maven ### +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +# JetBrains templates +**___jb_tmp___ + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +.idea/sonarlint \ No newline at end of file diff --git a/caseStudy/ui/package-lock.json b/caseStudy/ui/package-lock.json new file mode 100644 index 0000000..1ae18ab --- /dev/null +++ b/caseStudy/ui/package-lock.json @@ -0,0 +1,9310 @@ +{ + "name": "rename-this-to-your-app-name", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/runtime": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.4.tgz", + "integrity": "sha512-w0+uT71b6Yi7i5SE0co4NioIpSYS6lLiXvCzWzGSKvpK5vdQtCbICHMj+gbAKAOtxiV6HsVh/MBdaF9EQ6faSg==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + }, + "axios": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "requires": { + "follow-redirects": "^1.3.0", + "is-buffer": "^1.1.5" + } + }, + "blacklist": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/blacklist/-/blacklist-1.1.4.tgz", + "integrity": "sha1-st0J1hd2JbLKppg1o3somV+povI=" + }, + "classnames": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" + }, + "core-js": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", + "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" + }, + "create-react-class": { + "version": "15.6.3", + "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", + "integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==", + "requires": { + "fbjs": "^0.8.9", + "loose-envify": "^1.3.1", + "object-assign": "^4.1.1" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "dom-helpers": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.4.0.tgz", + "integrity": "sha512-LnuPJ+dwqKDIyotW1VzmOZ5TONUN7CwkCR5hrgawTUbkBGYdeoNLZo6nNfGkCrjtE1nXXaj7iMMpDa8/d9WoIA==", + "requires": { + "@babel/runtime": "^7.1.2" + } + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "requires": { + "iconv-lite": "~0.4.13" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "fbjs": { + "version": "0.8.17", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz", + "integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=", + "requires": { + "core-js": "^1.0.0", + "isomorphic-fetch": "^2.1.1", + "loose-envify": "^1.0.0", + "object-assign": "^4.1.0", + "promise": "^7.1.1", + "setimmediate": "^1.0.5", + "ua-parser-js": "^0.7.18" + } + }, + "follow-redirects": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.7.0.tgz", + "integrity": "sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==", + "requires": { + "debug": "^3.2.6" + } + }, + "fsevents": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.0.14.tgz", + "integrity": "sha1-VY6Mw4ZD2O9A/kUVhIbQ0ldY7uQ=", + "dev": true, + "optional": true, + "requires": { + "nan": "^2.3.0", + "node-pre-gyp": "^0.6.29" + }, + "dependencies": { + "abbrev": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "optional": true + }, + "aproba": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.0 || ^1.1.13" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "async": { + "version": "1.5.2", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "bl": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "readable-stream": "~2.0.5" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + } + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "~2.0.0" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.x.x" + } + }, + "brace-expansion": { + "version": "1.1.5", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^0.4.1", + "concat-map": "0.0.1" + } + }, + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.11.0", + "bundled": true, + "dev": true, + "optional": true + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.9.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.x.x" + } + }, + "dashdash": { + "version": "1.14.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "0.7.1" + } + }, + "deep-extend": { + "version": "0.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "extend": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "1.0.0-rc4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "async": "^1.5.2", + "combined-stream": "^1.0.5", + "mime-types": "^2.1.10" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.10", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "^1.0.0", + "inherits": "2", + "minimatch": "^3.0.0" + } + }, + "gauge": { + "version": "2.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-color": "^0.1.7", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "generate-function": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "generate-object-property": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "is-property": "^1.0.0" + } + }, + "getpass": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.0.5", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.2", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.1.4", + "bundled": true, + "dev": true + }, + "graceful-readlink": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chalk": "^1.1.1", + "commander": "^2.9.0", + "is-my-json-valid": "^2.12.4", + "pinkie-promise": "^2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "has-color": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.x.x", + "cryptiles": "2.x.x", + "hoek": "2.x.x", + "sntp": "1.x.x" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^0.2.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "inflight": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-my-json-valid": { + "version": "2.13.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "generate-function": "^2.0.0", + "generate-object-property": "^1.1.0", + "jsonpointer": "2.0.0", + "xtend": "^4.0.0" + } + }, + "is-property": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "jsbn": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.2", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonpointer": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2", + "json-schema": "0.2.2", + "verror": "1.3.6" + } + }, + "mime-db": { + "version": "1.23.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.11", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "~1.23.0" + } + }, + "minimatch": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.0.0" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "0.7.1", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.29", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "mkdirp": "~0.5.0", + "nopt": "~3.0.1", + "npmlog": "~3.1.2", + "rc": "~1.1.0", + "request": "2.x", + "rimraf": "~2.5.0", + "semver": "~5.2.0", + "tar": "~2.2.0", + "tar-pack": "~3.1.0" + } + }, + "node-uuid": { + "version": "1.4.7", + "bundled": true, + "dev": true, + "optional": true + }, + "nopt": { + "version": "3.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1" + } + }, + "npmlog": { + "version": "3.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.6.0", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.3.3", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "path-is-absolute": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "qs": { + "version": "6.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "~0.4.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~1.0.4" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "requires": { + "buffer-shims": "^1.0.0", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, + "request": { + "version": "2.73.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "~0.6.0", + "aws4": "^1.2.1", + "bl": "~1.1.2", + "caseless": "~0.11.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.0", + "forever-agent": "~0.6.1", + "form-data": "~1.0.0-rc4", + "har-validator": "~2.0.6", + "hawk": "~3.1.3", + "http-signature": "~1.1.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.7", + "node-uuid": "~1.4.7", + "oauth-sign": "~0.8.1", + "qs": "~6.2.0", + "stringstream": "~0.0.4", + "tough-cookie": "~2.2.0", + "tunnel-agent": "~0.4.1" + } + }, + "rimraf": { + "version": "2.5.3", + "bundled": true, + "dev": true, + "requires": { + "glob": "^7.0.5" + } + }, + "semver": { + "version": "5.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "hoek": "2.x.x" + } + }, + "sshpk": { + "version": "1.8.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jodid25519": "^1.0.0", + "jsbn": "~0.1.0", + "tweetnacl": "~0.13.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "dev": true + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "*", + "fstream": "^1.0.2", + "inherits": "2" + } + }, + "tar-pack": { + "version": "3.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "~2.2.0", + "fstream": "~1.0.10", + "fstream-ignore": "~1.0.5", + "once": "~1.3.3", + "readable-stream": "~2.1.4", + "rimraf": "~2.5.1", + "tar": "~2.2.1", + "uid-number": "~0.0.6" + } + }, + "tough-cookie": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "optional": true + }, + "tunnel-agent": { + "version": "0.4.3", + "bundled": true, + "dev": true, + "optional": true + }, + "tweetnacl": { + "version": "0.13.3", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "^1.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "xtend": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "highcharts": { + "version": "5.0.11", + "resolved": "https://registry.npmjs.org/highcharts/-/highcharts-5.0.11.tgz", + "integrity": "sha1-yOfr5MtYTqmdET9/x5JbK5A5hFM=" + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "requires": { + "loose-envify": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "isomorphic-fetch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", + "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "requires": { + "node-fetch": "^1.0.1", + "whatwg-fetch": ">=0.10.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==" + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "nan": { + "version": "2.13.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz", + "integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==", + "dev": true, + "optional": true + }, + "node-fetch": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", + "requires": { + "encoding": "^0.1.11", + "is-stream": "^1.0.1" + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "requires": { + "asap": "~2.0.3" + } + }, + "prop-types": { + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", + "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.8.1" + } + }, + "prop-types-extra": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/prop-types-extra/-/prop-types-extra-1.1.0.tgz", + "integrity": "sha512-QFyuDxvMipmIVKD2TwxLVPzMnO4e5oOf1vr3tJIomL8E7d0lr6phTHd5nkPhFIzTD1idBLLEPeylL9g+rrTzRg==", + "requires": { + "react-is": "^16.3.2", + "warning": "^3.0.0" + } + }, + "react": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react/-/react-15.6.2.tgz", + "integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=", + "requires": { + "create-react-class": "^15.6.0", + "fbjs": "^0.8.9", + "loose-envify": "^1.1.0", + "object-assign": "^4.1.0", + "prop-types": "^15.5.10" + } + }, + "react-bootstrap-typeahead": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/react-bootstrap-typeahead/-/react-bootstrap-typeahead-1.4.2.tgz", + "integrity": "sha1-GRPjLOpNeb7NA6yrvZM2EWiEgVs=", + "requires": { + "classnames": "^2.2.0", + "create-react-class": "^15.5.2", + "invariant": "^2.2.1", + "lodash": "^4.17.2", + "prop-types": "^15.5.8", + "react-highlighter": "^0.4.0", + "react-input-autosize": "^1.1.4", + "react-onclickoutside": "^5.7.0", + "react-overlays": "^0.7.0", + "react-prop-types": "^0.4.0", + "warning": "^3.0.0" + } + }, + "react-date-range": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/react-date-range/-/react-date-range-0.9.4.tgz", + "integrity": "sha1-2XUVVFoo7ccXtnThaaUKIV1p7BU=", + "requires": { + "classnames": "^2.2.1", + "moment": "^2.10.6", + "prop-types": "^15.5.10" + } + }, + "react-datepicker": { + "version": "0.46.0", + "resolved": "https://registry.npmjs.org/react-datepicker/-/react-datepicker-0.46.0.tgz", + "integrity": "sha1-3QxY796ZMZZKJIhU4HMVE3T8k38=", + "requires": { + "classnames": "^2.2.5", + "moment": "^2.17.1", + "prop-types": "^15.5.8", + "react-onclickoutside": "^5.11.1", + "tether": "^1.4.0" + } + }, + "react-dom": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-15.6.2.tgz", + "integrity": "sha1-Qc+t9pO3V/rycIRDodH9WgK+9zA=", + "requires": { + "fbjs": "^0.8.9", + "loose-envify": "^1.1.0", + "object-assign": "^4.1.0", + "prop-types": "^15.5.10" + } + }, + "react-highlighter": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/react-highlighter/-/react-highlighter-0.4.3.tgz", + "integrity": "sha512-dwItRaGRHBceuzZd5NXeroapdmZ2JCAWZ3AdwdthRlSkdtPCY18DWrd6mPmiMCfSB6lgVwwCPQl4unZzG5sXXw==", + "requires": { + "blacklist": "^1.1.4", + "create-react-class": "^15.6.2", + "escape-string-regexp": "^1.0.5", + "prop-types": "^15.6.0" + } + }, + "react-input-autosize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-1.2.0.tgz", + "integrity": "sha1-hyQQcRWfdCEjiXaR2meW7DO1fQU=", + "requires": { + "create-react-class": "^15.5.2", + "prop-types": "^15.5.8" + } + }, + "react-is": { + "version": "16.8.6", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.6.tgz", + "integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==" + }, + "react-onclickoutside": { + "version": "5.11.1", + "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-5.11.1.tgz", + "integrity": "sha1-ADFOUlZ89V+rqUyrus0RlhkHBiM=", + "requires": { + "create-react-class": "^15.5.x" + } + }, + "react-overlays": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/react-overlays/-/react-overlays-0.7.4.tgz", + "integrity": "sha512-7vsooMx3siLAuEfTs8FYeP/lAORWWFXTO8PON3KgX0Htq1Oa+po6ioSjGyO0/GO5CVSMNhpWt6V2opeexHgBuQ==", + "requires": { + "classnames": "^2.2.5", + "dom-helpers": "^3.2.1", + "prop-types": "^15.5.10", + "prop-types-extra": "^1.0.1", + "warning": "^3.0.0" + } + }, + "react-prop-types": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/react-prop-types/-/react-prop-types-0.4.0.tgz", + "integrity": "sha1-+ZsL+0AGkpya8gUefBQUpcdbk9A=", + "requires": { + "warning": "^3.0.0" + } + }, + "react-scripts": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-0.7.0.tgz", + "integrity": "sha1-5Jnrr4uwd/cEV3Dq7x31z+MI4+A=", + "dev": true, + "requires": { + "autoprefixer": "6.5.1", + "babel-core": "6.17.0", + "babel-eslint": "7.0.0", + "babel-jest": "16.0.0", + "babel-loader": "6.2.5", + "babel-preset-react-app": "^1.0.0", + "case-sensitive-paths-webpack-plugin": "1.1.4", + "chalk": "1.1.3", + "connect-history-api-fallback": "1.3.0", + "cross-spawn": "4.0.2", + "css-loader": "0.25.0", + "detect-port": "1.0.1", + "dotenv": "2.0.0", + "eslint": "3.8.1", + "eslint-config-react-app": "^0.3.0", + "eslint-loader": "1.6.0", + "eslint-plugin-flowtype": "2.21.0", + "eslint-plugin-import": "2.0.1", + "eslint-plugin-jsx-a11y": "2.2.3", + "eslint-plugin-react": "6.4.1", + "extract-text-webpack-plugin": "1.0.1", + "file-loader": "0.9.0", + "filesize": "3.3.0", + "find-cache-dir": "0.1.1", + "fs-extra": "0.30.0", + "fsevents": "1.0.14", + "gzip-size": "3.0.0", + "html-webpack-plugin": "2.24.0", + "http-proxy-middleware": "0.17.2", + "jest": "16.0.2", + "json-loader": "0.5.4", + "object-assign": "4.1.0", + "path-exists": "2.1.0", + "postcss-loader": "1.0.0", + "promise": "7.1.1", + "react-dev-utils": "^0.3.0", + "recursive-readdir": "2.1.0", + "rimraf": "2.5.4", + "strip-ansi": "3.0.1", + "style-loader": "0.13.1", + "url-loader": "0.5.7", + "webpack": "1.13.2", + "webpack-dev-server": "1.16.2", + "webpack-manifest-plugin": "1.1.0", + "whatwg-fetch": "1.0.0" + }, + "dependencies": { + "Base64": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "abab": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "abbrev": { + "version": "1.0.9", + "bundled": true, + "dev": true + }, + "accepts": { + "version": "1.3.3", + "bundled": true, + "dev": true, + "requires": { + "mime-types": "~2.1.11", + "negotiator": "0.6.1" + } + }, + "acorn": { + "version": "4.0.3", + "bundled": true, + "dev": true + }, + "acorn-globals": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "acorn": "^2.1.0" + }, + "dependencies": { + "acorn": { + "version": "2.7.0", + "bundled": true, + "dev": true + } + } + }, + "acorn-jsx": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "acorn": "^3.0.4" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "bundled": true, + "dev": true + } + } + }, + "ajv": { + "version": "4.8.2", + "bundled": true, + "dev": true, + "requires": { + "co": "^4.6.0", + "json-stable-stringify": "^1.0.1" + } + }, + "ajv-keywords": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "align-text": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" + } + }, + "alphanum-sort": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "amdefine": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "ansi-escapes": { + "version": "1.4.0", + "bundled": true, + "dev": true + }, + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "ansicolors": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "anymatch": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "arrify": "^1.0.0", + "micromatch": "^2.1.5" + } + }, + "append-transform": { + "version": "0.3.0", + "bundled": true, + "dev": true + }, + "argparse": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arr-diff": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "arr-flatten": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "array-differ": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "array-equal": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "array-union": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "array-uniq": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "arrify": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "asap": { + "version": "2.0.5", + "bundled": true, + "dev": true + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true + }, + "assert": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "requires": { + "util": "0.10.3" + } + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "async": { + "version": "1.5.2", + "bundled": true, + "dev": true + }, + "async-each": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "autoprefixer": { + "version": "6.5.1", + "bundled": true, + "dev": true, + "requires": { + "browserslist": "~1.4.0", + "caniuse-db": "^1.0.30000554", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "postcss": "^5.2.4", + "postcss-value-parser": "^3.2.3" + } + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true + }, + "aws4": { + "version": "1.5.0", + "bundled": true, + "dev": true + }, + "babel-code-frame": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.0", + "esutils": "^2.0.2", + "js-tokens": "^2.0.0" + } + }, + "babel-core": { + "version": "6.17.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.16.0", + "babel-generator": "^6.17.0", + "babel-helpers": "^6.16.0", + "babel-messages": "^6.8.0", + "babel-register": "^6.16.0", + "babel-runtime": "^6.9.1", + "babel-template": "^6.16.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0", + "babylon": "^6.11.0", + "convert-source-map": "^1.1.0", + "debug": "^2.1.1", + "json5": "^0.4.0", + "lodash": "^4.2.0", + "minimatch": "^3.0.2", + "path-exists": "^1.0.0", + "path-is-absolute": "^1.0.0", + "private": "^0.1.6", + "shebang-regex": "^1.0.0", + "slash": "^1.0.0", + "source-map": "^0.5.0" + }, + "dependencies": { + "path-exists": { + "version": "1.0.0", + "bundled": true, + "dev": true + } + } + }, + "babel-eslint": { + "version": "7.0.0", + "bundled": true, + "dev": true, + "requires": { + "babel-traverse": "^6.15.0", + "babel-types": "^6.15.0", + "babylon": "^6.11.2", + "lodash.pickby": "^4.6.0" + } + }, + "babel-generator": { + "version": "6.17.0", + "bundled": true, + "dev": true, + "requires": { + "babel-messages": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-types": "^6.16.0", + "detect-indent": "^3.0.1", + "jsesc": "^1.3.0", + "lodash": "^4.2.0", + "source-map": "^0.5.0" + } + }, + "babel-helpers": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-template": "^6.16.0" + } + }, + "babel-jest": { + "version": "16.0.0", + "bundled": true, + "dev": true, + "requires": { + "babel-core": "^6.0.0", + "babel-plugin-istanbul": "^2.0.0", + "babel-preset-jest": "^16.0.0" + } + }, + "babel-loader": { + "version": "6.2.5", + "bundled": true, + "dev": true, + "requires": { + "loader-utils": "^0.2.11", + "mkdirp": "^0.5.1", + "object-assign": "^4.0.1" + } + }, + "babel-messages": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-istanbul": { + "version": "2.0.3", + "bundled": true, + "dev": true, + "requires": { + "find-up": "^1.1.2", + "istanbul-lib-instrument": "^1.1.4", + "object-assign": "^4.1.0", + "test-exclude": "^2.1.1" + } + }, + "babel-plugin-jest-hoist": { + "version": "16.0.0", + "bundled": true, + "dev": true + }, + "babel-preset-jest": { + "version": "16.0.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^16.0.0" + } + }, + "babel-preset-react-app": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-transform-class-properties": "6.16.0", + "babel-plugin-transform-es2015-destructuring": "6.16.0", + "babel-plugin-transform-es2015-parameters": "6.17.0", + "babel-plugin-transform-object-rest-spread": "6.16.0", + "babel-plugin-transform-react-constant-elements": "6.9.1", + "babel-plugin-transform-react-jsx-self": "6.11.0", + "babel-plugin-transform-react-jsx-source": "6.9.0", + "babel-plugin-transform-regenerator": "6.16.1", + "babel-plugin-transform-runtime": "6.15.0", + "babel-preset-env": "0.0.6", + "babel-preset-latest": "6.16.0", + "babel-preset-react": "6.16.0", + "babel-runtime": "6.11.6" + }, + "dependencies": { + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "babel-code-frame": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.0", + "esutils": "^2.0.2", + "js-tokens": "^2.0.0" + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.15.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-types": "^6.15.0" + } + }, + "babel-helper-builder-react-jsx": { + "version": "6.9.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-types": "^6.9.0", + "esutils": "^2.0.0", + "lodash": "^4.2.0" + } + }, + "babel-helper-call-delegate": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-traverse": "^6.8.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-define-map": { + "version": "6.9.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-function-name": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-types": "^6.9.0", + "lodash": "^4.2.0" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-traverse": "^6.8.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-function-name": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-get-function-arity": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.8.0", + "babel-traverse": "^6.8.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-get-function-arity": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-hoist-variables": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-optimise-call-expression": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-helper-regex": { + "version": "6.9.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-types": "^6.9.0", + "lodash": "^4.2.0" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.16.2", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-function-name": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0" + } + }, + "babel-helper-replace-supers": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "^6.8.0", + "babel-messages": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0" + } + }, + "babel-messages": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-flow": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-jsx": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "^6.16.0", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-function-name": "^6.8.0", + "babel-plugin-syntax-class-properties": "^6.8.0", + "babel-runtime": "^6.9.1" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.15.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-template": "^6.15.0", + "babel-traverse": "^6.15.0", + "babel-types": "^6.15.0", + "lodash": "^4.2.0" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.14.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-define-map": "^6.9.0", + "babel-helper-function-name": "^6.8.0", + "babel-helper-optimise-call-expression": "^6.8.0", + "babel-helper-replace-supers": "^6.14.0", + "babel-messages": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-template": "^6.14.0", + "babel-traverse": "^6.14.0", + "babel-types": "^6.14.0" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-define-map": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.9.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-function-name": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-types": "^6.9.0" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.16.0", + "babel-types": "^6.16.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.14.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.8.0", + "babel-runtime": "^6.11.6", + "babel-template": "^6.14.0" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.12.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-template": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-replace-supers": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.17.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-call-delegate": "^6.8.0", + "babel-helper-get-function-arity": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-regex": "^6.8.0", + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.11.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-regex": "^6.8.0", + "babel-runtime": "^6.0.0", + "regexpu-core": "^2.0.0" + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "^6.8.0", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-flow-strip-types": { + "version": "6.14.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-flow": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-object-rest-spread": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-react-constant-elements": { + "version": "6.9.1", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.1" + } + }, + "babel-plugin-transform-react-display-name": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-react-jsx": { + "version": "6.8.0", + "bundled": true, + "dev": true, + "requires": { + "babel-helper-builder-react-jsx": "^6.8.0", + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.0.0" + } + }, + "babel-plugin-transform-react-jsx-self": { + "version": "6.11.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.9.0" + } + }, + "babel-plugin-transform-react-jsx-source": { + "version": "6.9.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.9.0" + } + }, + "babel-plugin-transform-regenerator": { + "version": "6.16.1", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-types": "^6.16.0", + "private": "~0.1.5" + } + }, + "babel-plugin-transform-runtime": { + "version": "6.15.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.11.3", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.0.0", + "babel-types": "^6.8.0" + } + }, + "babel-preset-env": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "^6.3.13", + "babel-plugin-syntax-trailing-function-commas": "^6.13.0", + "babel-plugin-transform-async-to-generator": "^6.8.0", + "babel-plugin-transform-es2015-arrow-functions": "^6.3.13", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13", + "babel-plugin-transform-es2015-block-scoping": "^6.6.0", + "babel-plugin-transform-es2015-classes": "^6.6.0", + "babel-plugin-transform-es2015-computed-properties": "^6.3.13", + "babel-plugin-transform-es2015-destructuring": "^6.6.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.6.0", + "babel-plugin-transform-es2015-for-of": "^6.6.0", + "babel-plugin-transform-es2015-function-name": "^6.3.13", + "babel-plugin-transform-es2015-literals": "^6.3.13", + "babel-plugin-transform-es2015-modules-amd": "^6.8.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.6.0", + "babel-plugin-transform-es2015-modules-systemjs": "^6.12.0", + "babel-plugin-transform-es2015-modules-umd": "^6.12.0", + "babel-plugin-transform-es2015-object-super": "^6.3.13", + "babel-plugin-transform-es2015-parameters": "^6.6.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.3.13", + "babel-plugin-transform-es2015-spread": "^6.3.13", + "babel-plugin-transform-es2015-sticky-regex": "^6.3.13", + "babel-plugin-transform-es2015-template-literals": "^6.6.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.6.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.3.13", + "babel-plugin-transform-exponentiation-operator": "^6.8.0", + "babel-plugin-transform-regenerator": "^6.6.0", + "browserslist": "^1.4.0" + } + }, + "babel-preset-es2015": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "^6.3.13", + "babel-plugin-transform-es2015-arrow-functions": "^6.3.13", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13", + "babel-plugin-transform-es2015-block-scoping": "^6.14.0", + "babel-plugin-transform-es2015-classes": "^6.14.0", + "babel-plugin-transform-es2015-computed-properties": "^6.3.13", + "babel-plugin-transform-es2015-destructuring": "^6.16.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.6.0", + "babel-plugin-transform-es2015-for-of": "^6.6.0", + "babel-plugin-transform-es2015-function-name": "^6.9.0", + "babel-plugin-transform-es2015-literals": "^6.3.13", + "babel-plugin-transform-es2015-modules-amd": "^6.8.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.16.0", + "babel-plugin-transform-es2015-modules-systemjs": "^6.14.0", + "babel-plugin-transform-es2015-modules-umd": "^6.12.0", + "babel-plugin-transform-es2015-object-super": "^6.3.13", + "babel-plugin-transform-es2015-parameters": "^6.16.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.3.13", + "babel-plugin-transform-es2015-spread": "^6.3.13", + "babel-plugin-transform-es2015-sticky-regex": "^6.3.13", + "babel-plugin-transform-es2015-template-literals": "^6.6.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.6.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.3.13", + "babel-plugin-transform-regenerator": "^6.16.0" + } + }, + "babel-preset-es2016": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-transform-exponentiation-operator": "^6.3.13" + } + }, + "babel-preset-es2017": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-trailing-function-commas": "^6.8.0", + "babel-plugin-transform-async-to-generator": "^6.16.0" + } + }, + "babel-preset-latest": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-preset-es2015": "^6.16.0", + "babel-preset-es2016": "^6.16.0", + "babel-preset-es2017": "^6.16.0" + } + }, + "babel-preset-react": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-plugin-syntax-flow": "^6.3.13", + "babel-plugin-syntax-jsx": "^6.3.13", + "babel-plugin-transform-flow-strip-types": "^6.3.13", + "babel-plugin-transform-react-display-name": "^6.3.13", + "babel-plugin-transform-react-jsx": "^6.3.13", + "babel-plugin-transform-react-jsx-self": "^6.11.0", + "babel-plugin-transform-react-jsx-source": "^6.3.13" + } + }, + "babel-runtime": { + "version": "6.11.6", + "bundled": true, + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.9.5" + } + }, + "babel-template": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0", + "babylon": "^6.11.0", + "lodash": "^4.2.0" + } + }, + "babel-traverse": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.16.0", + "babel-messages": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-types": "^6.16.0", + "babylon": "^6.11.0", + "debug": "^2.2.0", + "globals": "^8.3.0", + "invariant": "^2.2.0", + "lodash": "^4.2.0" + } + }, + "babel-types": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.1", + "esutils": "^2.0.2", + "lodash": "^4.2.0", + "to-fast-properties": "^1.0.1" + } + }, + "babylon": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "browserslist": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "caniuse-db": "^1.0.30000539" + } + }, + "caniuse-db": { + "version": "1.0.30000564", + "bundled": true, + "dev": true + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "core-js": { + "version": "2.4.1", + "bundled": true, + "dev": true + }, + "debug": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "esutils": { + "version": "2.0.2", + "bundled": true, + "dev": true + }, + "globals": { + "version": "8.18.0", + "bundled": true, + "dev": true + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "invariant": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "js-tokens": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "jsesc": { + "version": "0.5.0", + "bundled": true, + "dev": true + }, + "lodash": { + "version": "4.16.4", + "bundled": true, + "dev": true + }, + "loose-envify": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "js-tokens": "^1.0.1" + }, + "dependencies": { + "js-tokens": { + "version": "1.0.3", + "bundled": true, + "dev": true + } + } + }, + "ms": { + "version": "0.7.1", + "bundled": true, + "dev": true + }, + "private": { + "version": "0.1.6", + "bundled": true, + "dev": true + }, + "regenerate": { + "version": "1.3.1", + "bundled": true, + "dev": true + }, + "regenerator-runtime": { + "version": "0.9.5", + "bundled": true, + "dev": true + }, + "regexpu-core": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" + } + }, + "regjsgen": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "jsesc": "~0.5.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "to-fast-properties": { + "version": "1.0.2", + "bundled": true, + "dev": true + } + } + }, + "babel-register": { + "version": "6.16.3", + "bundled": true, + "dev": true, + "requires": { + "babel-core": "^6.16.0", + "babel-runtime": "^6.11.6", + "core-js": "^2.4.0", + "home-or-tmp": "^1.0.0", + "lodash": "^4.2.0", + "mkdirp": "^0.5.1", + "path-exists": "^1.0.0", + "source-map-support": "^0.4.2" + }, + "dependencies": { + "path-exists": { + "version": "1.0.0", + "bundled": true, + "dev": true + } + } + }, + "babel-runtime": { + "version": "6.11.6", + "bundled": true, + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.9.5" + } + }, + "babel-template": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.0", + "babel-traverse": "^6.16.0", + "babel-types": "^6.16.0", + "babylon": "^6.11.0", + "lodash": "^4.2.0" + } + }, + "babel-traverse": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.16.0", + "babel-messages": "^6.8.0", + "babel-runtime": "^6.9.0", + "babel-types": "^6.16.0", + "babylon": "^6.11.0", + "debug": "^2.2.0", + "globals": "^8.3.0", + "invariant": "^2.2.0", + "lodash": "^4.2.0" + } + }, + "babel-types": { + "version": "6.16.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.9.1", + "esutils": "^2.0.2", + "lodash": "^4.2.0", + "to-fast-properties": "^1.0.1" + } + }, + "babylon": { + "version": "6.13.0", + "bundled": true, + "dev": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "base64-js": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "batch": { + "version": "0.5.3", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "big.js": { + "version": "3.1.3", + "bundled": true, + "dev": true + }, + "binary-extensions": { + "version": "1.7.0", + "bundled": true, + "dev": true + }, + "bl": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "readable-stream": "~2.0.5" + } + }, + "bluebird": { + "version": "3.4.6", + "bundled": true, + "dev": true + }, + "boolbase": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.x.x" + } + }, + "brace-expansion": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^0.4.1", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "bundled": true, + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "browser-resolve": { + "version": "1.11.2", + "bundled": true, + "dev": true, + "requires": { + "resolve": "1.1.7" + } + }, + "browserify-zlib": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "pako": "~0.2.0" + } + }, + "browserslist": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "caniuse-db": "^1.0.30000539" + } + }, + "bser": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer": { + "version": "4.9.1", + "bundled": true, + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "builtin-modules": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "bytes": { + "version": "2.3.0", + "bundled": true, + "dev": true + }, + "caller-path": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "requires": { + "callsites": "^0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "camel-case": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.1.1" + } + }, + "camelcase": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, + "caniuse-db": { + "version": "1.0.30000564", + "bundled": true, + "dev": true + }, + "cardinal": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansicolors": "~0.2.1", + "redeyed": "~1.0.0" + } + }, + "case-sensitive-paths-webpack-plugin": { + "version": "1.1.4", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.11.0", + "bundled": true, + "dev": true + }, + "center-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "requires": { + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" + } + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + } + } + }, + "change-case": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "camel-case": "^3.0.0", + "constant-case": "^2.0.0", + "dot-case": "^2.1.0", + "header-case": "^1.0.0", + "is-lower-case": "^1.1.0", + "is-upper-case": "^1.1.0", + "lower-case": "^1.1.1", + "lower-case-first": "^1.0.0", + "no-case": "^2.2.0", + "param-case": "^2.1.0", + "pascal-case": "^2.0.0", + "path-case": "^2.1.0", + "sentence-case": "^2.1.0", + "snake-case": "^2.1.0", + "swap-case": "^1.1.0", + "title-case": "^2.1.0", + "upper-case": "^1.1.1", + "upper-case-first": "^1.1.0" + } + }, + "chokidar": { + "version": "1.6.1", + "bundled": true, + "dev": true, + "requires": { + "anymatch": "^1.3.0", + "async-each": "^1.0.0", + "fsevents": "^1.0.0", + "glob-parent": "^2.0.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^2.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0" + }, + "dependencies": { + "fsevents": { + "version": "1.0.14", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "nan": "^2.3.0", + "node-pre-gyp": "^0.6.29" + }, + "dependencies": { + "abbrev": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "optional": true + }, + "aproba": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.0 || ^1.1.13" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "async": { + "version": "1.5.2", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "bl": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "readable-stream": "~2.0.5" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + } + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "~2.0.0" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.x.x" + } + }, + "brace-expansion": { + "version": "1.1.5", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^0.4.1", + "concat-map": "0.0.1" + } + }, + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.11.0", + "bundled": true, + "dev": true, + "optional": true + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.9.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.x.x" + } + }, + "dashdash": { + "version": "1.14.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "0.7.1" + } + }, + "deep-extend": { + "version": "0.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "extend": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "1.0.0-rc4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "async": "^1.5.2", + "combined-stream": "^1.0.5", + "mime-types": "^2.1.10" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.10", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "^1.0.0", + "inherits": "2", + "minimatch": "^3.0.0" + } + }, + "gauge": { + "version": "2.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-color": "^0.1.7", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "generate-function": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "generate-object-property": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "is-property": "^1.0.0" + } + }, + "getpass": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.0.5", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.2", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.1.4", + "bundled": true, + "dev": true + }, + "graceful-readlink": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chalk": "^1.1.1", + "commander": "^2.9.0", + "is-my-json-valid": "^2.12.4", + "pinkie-promise": "^2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "has-color": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.x.x", + "cryptiles": "2.x.x", + "hoek": "2.x.x", + "sntp": "1.x.x" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^0.2.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "inflight": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-my-json-valid": { + "version": "2.13.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "generate-function": "^2.0.0", + "generate-object-property": "^1.1.0", + "jsonpointer": "2.0.0", + "xtend": "^4.0.0" + } + }, + "is-property": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "jsbn": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.2", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonpointer": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2", + "json-schema": "0.2.2", + "verror": "1.3.6" + } + }, + "mime-db": { + "version": "1.23.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.11", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "~1.23.0" + } + }, + "minimatch": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.0.0" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "0.7.1", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.29", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "mkdirp": "~0.5.0", + "nopt": "~3.0.1", + "npmlog": "~3.1.2", + "rc": "~1.1.0", + "request": "2.x", + "rimraf": "~2.5.0", + "semver": "~5.2.0", + "tar": "~2.2.0", + "tar-pack": "~3.1.0" + } + }, + "node-uuid": { + "version": "1.4.7", + "bundled": true, + "dev": true, + "optional": true + }, + "nopt": { + "version": "3.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1" + } + }, + "npmlog": { + "version": "3.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.6.0", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.3.3", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "path-is-absolute": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "qs": { + "version": "6.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "~0.4.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~1.0.4" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "requires": { + "buffer-shims": "^1.0.0", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, + "request": { + "version": "2.73.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "~0.6.0", + "aws4": "^1.2.1", + "bl": "~1.1.2", + "caseless": "~0.11.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.0", + "forever-agent": "~0.6.1", + "form-data": "~1.0.0-rc4", + "har-validator": "~2.0.6", + "hawk": "~3.1.3", + "http-signature": "~1.1.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.7", + "node-uuid": "~1.4.7", + "oauth-sign": "~0.8.1", + "qs": "~6.2.0", + "stringstream": "~0.0.4", + "tough-cookie": "~2.2.0", + "tunnel-agent": "~0.4.1" + } + }, + "rimraf": { + "version": "2.5.3", + "bundled": true, + "dev": true, + "requires": { + "glob": "^7.0.5" + } + }, + "semver": { + "version": "5.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "hoek": "2.x.x" + } + }, + "sshpk": { + "version": "1.8.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jodid25519": "^1.0.0", + "jsbn": "~0.1.0", + "tweetnacl": "~0.13.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "dev": true + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "*", + "fstream": "^1.0.2", + "inherits": "2" + } + }, + "tar-pack": { + "version": "3.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "~2.2.0", + "fstream": "~1.0.10", + "fstream-ignore": "~1.0.5", + "once": "~1.3.3", + "readable-stream": "~2.1.4", + "rimraf": "~2.5.1", + "tar": "~2.2.1", + "uid-number": "~0.0.6" + } + }, + "tough-cookie": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "optional": true + }, + "tunnel-agent": { + "version": "0.4.3", + "bundled": true, + "dev": true, + "optional": true + }, + "tweetnacl": { + "version": "0.13.3", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "^1.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "xtend": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true + } + } + } + } + }, + "ci-info": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "circular-json": { + "version": "0.3.1", + "bundled": true, + "dev": true + }, + "clap": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3" + } + }, + "clean-css": { + "version": "3.4.20", + "bundled": true, + "dev": true, + "requires": { + "commander": "2.8.x", + "source-map": "0.4.x" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "cli-cursor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "restore-cursor": "^1.0.1" + } + }, + "cli-table": { + "version": "0.3.1", + "bundled": true, + "dev": true, + "requires": { + "colors": "1.0.3" + }, + "dependencies": { + "colors": { + "version": "1.0.3", + "bundled": true, + "dev": true + } + } + }, + "cli-usage": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "marked": "^0.3.6", + "marked-terminal": "^1.6.2" + } + }, + "cli-width": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "cliui": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "center-align": "^0.1.1", + "right-align": "^0.1.1", + "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "bundled": true, + "dev": true + } + } + }, + "clone": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "co": { + "version": "4.6.0", + "bundled": true, + "dev": true + }, + "coa": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "q": "^1.1.2" + } + }, + "code-point-at": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "color": { + "version": "0.11.3", + "bundled": true, + "dev": true, + "requires": { + "clone": "^1.0.2", + "color-convert": "^1.3.0", + "color-string": "^0.3.0" + } + }, + "color-convert": { + "version": "1.5.0", + "bundled": true, + "dev": true + }, + "color-name": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "color-string": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "color-name": "^1.0.0" + } + }, + "colormin": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "color": "^0.11.0", + "css-color-names": "0.0.4", + "has": "^1.0.1" + } + }, + "colors": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.8.1", + "bundled": true, + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "commondir": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "compressible": { + "version": "2.0.8", + "bundled": true, + "dev": true, + "requires": { + "mime-db": ">= 1.23.0 < 2" + } + }, + "compression": { + "version": "1.6.2", + "bundled": true, + "dev": true, + "requires": { + "accepts": "~1.3.3", + "bytes": "2.3.0", + "compressible": "~2.0.8", + "debug": "~2.2.0", + "on-headers": "~1.0.1", + "vary": "~1.1.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "concat-stream": { + "version": "1.5.2", + "bundled": true, + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "~2.0.0", + "typedarray": "~0.0.5" + } + }, + "connect-history-api-fallback": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "console-browserify": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "date-now": "^0.1.4" + } + }, + "constant-case": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "snake-case": "^2.1.0", + "upper-case": "^1.1.1" + } + }, + "constants-browserify": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "contains-path": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "content-disposition": { + "version": "0.5.1", + "bundled": true, + "dev": true + }, + "content-type": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "content-type-parser": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "convert-source-map": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "cookie": { + "version": "0.3.1", + "bundled": true, + "dev": true + }, + "cookie-signature": { + "version": "1.0.6", + "bundled": true, + "dev": true + }, + "core-js": { + "version": "2.4.1", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cosmiconfig": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "js-yaml": "^3.4.3", + "minimist": "^1.2.0", + "object-assign": "^4.1.0", + "os-homedir": "^1.0.1", + "parse-json": "^2.2.0", + "require-from-string": "^1.1.0" + } + }, + "cross-spawn": { + "version": "4.0.2", + "bundled": true, + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "which": "^1.2.9" + } + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.x.x" + } + }, + "crypto-browserify": { + "version": "3.2.8", + "bundled": true, + "dev": true, + "requires": { + "pbkdf2-compat": "2.0.1", + "ripemd160": "0.2.0", + "sha.js": "2.2.6" + } + }, + "css-color-names": { + "version": "0.0.4", + "bundled": true, + "dev": true + }, + "css-loader": { + "version": "0.25.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.11.0", + "css-selector-tokenizer": "^0.6.0", + "cssnano": ">=2.6.1 <4", + "loader-utils": "~0.2.2", + "lodash.camelcase": "^3.0.1", + "object-assign": "^4.0.1", + "postcss": "^5.0.6", + "postcss-modules-extract-imports": "^1.0.0", + "postcss-modules-local-by-default": "^1.0.1", + "postcss-modules-scope": "^1.0.0", + "postcss-modules-values": "^1.1.0", + "source-list-map": "^0.1.4" + } + }, + "css-select": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "boolbase": "~1.0.0", + "css-what": "2.1", + "domutils": "1.5.1", + "nth-check": "~1.0.1" + } + }, + "css-selector-tokenizer": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "requires": { + "cssesc": "^0.1.0", + "fastparse": "^1.1.1", + "regexpu-core": "^1.0.0" + } + }, + "css-what": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "cssesc": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "cssnano": { + "version": "3.7.7", + "bundled": true, + "dev": true, + "requires": { + "autoprefixer": "^6.3.1", + "decamelize": "^1.1.2", + "defined": "^1.0.0", + "has": "^1.0.1", + "object-assign": "^4.0.1", + "postcss": "^5.0.14", + "postcss-calc": "^5.2.0", + "postcss-colormin": "^2.1.8", + "postcss-convert-values": "^2.3.4", + "postcss-discard-comments": "^2.0.4", + "postcss-discard-duplicates": "^2.0.1", + "postcss-discard-empty": "^2.0.1", + "postcss-discard-overridden": "^0.1.1", + "postcss-discard-unused": "^2.2.1", + "postcss-filter-plugins": "^2.0.0", + "postcss-merge-idents": "^2.1.5", + "postcss-merge-longhand": "^2.0.1", + "postcss-merge-rules": "^2.0.3", + "postcss-minify-font-values": "^1.0.2", + "postcss-minify-gradients": "^1.0.1", + "postcss-minify-params": "^1.0.4", + "postcss-minify-selectors": "^2.0.4", + "postcss-normalize-charset": "^1.1.0", + "postcss-normalize-url": "^3.0.7", + "postcss-ordered-values": "^2.1.0", + "postcss-reduce-idents": "^2.2.2", + "postcss-reduce-initial": "^1.0.0", + "postcss-reduce-transforms": "^1.0.3", + "postcss-svgo": "^2.1.1", + "postcss-unique-selectors": "^2.0.2", + "postcss-value-parser": "^3.2.3", + "postcss-zindex": "^2.0.1" + } + }, + "csso": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "clap": "^1.0.9", + "source-map": "^0.5.3" + } + }, + "cssom": { + "version": "0.3.1", + "bundled": true, + "dev": true + }, + "cssstyle": { + "version": "0.2.37", + "bundled": true, + "dev": true, + "requires": { + "cssom": "0.3.x" + } + }, + "d": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "requires": { + "es5-ext": "~0.10.2" + } + }, + "damerau-levenshtein": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "dashdash": { + "version": "1.14.0", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true + } + } + }, + "date-now": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "debug": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "decamelize": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "bundled": true, + "dev": true + }, + "defined": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "del": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "requires": { + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" + } + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "depd": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "destroy": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "detect-indent": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "get-stdin": "^4.0.1", + "minimist": "^1.1.0", + "repeating": "^1.1.0" + } + }, + "detect-port": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "commander": "~2.8.1" + } + }, + "diff": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "doctrine": { + "version": "1.5.0", + "bundled": true, + "dev": true, + "requires": { + "esutils": "^2.0.2", + "isarray": "^1.0.0" + } + }, + "dom-converter": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "utila": "~0.3" + }, + "dependencies": { + "utila": { + "version": "0.3.3", + "bundled": true, + "dev": true + } + } + }, + "dom-serializer": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "requires": { + "domelementtype": "~1.1.1", + "entities": "~1.1.1" + }, + "dependencies": { + "domelementtype": { + "version": "1.1.3", + "bundled": true, + "dev": true + } + } + }, + "domain-browser": { + "version": "1.1.7", + "bundled": true, + "dev": true + }, + "domelementtype": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "domhandler": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "domelementtype": "1" + } + }, + "domutils": { + "version": "1.5.1", + "bundled": true, + "dev": true, + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "dot-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "dotenv": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "duplexer": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "ee-first": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "emojis-list": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "encodeurl": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "enhanced-resolve": { + "version": "0.9.1", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.2.0", + "tapable": "^0.1.8" + }, + "dependencies": { + "memory-fs": { + "version": "0.2.0", + "bundled": true, + "dev": true + } + } + }, + "entities": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "errno": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "prr": "~0.0.0" + } + }, + "error-ex": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es5-ext": { + "version": "0.10.12", + "bundled": true, + "dev": true, + "requires": { + "es6-iterator": "2", + "es6-symbol": "~3.1" + } + }, + "es6-iterator": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "d": "^0.1.1", + "es5-ext": "^0.10.7", + "es6-symbol": "3" + } + }, + "es6-map": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "d": "~0.1.1", + "es5-ext": "~0.10.11", + "es6-iterator": "2", + "es6-set": "~0.1.3", + "es6-symbol": "~3.1.0", + "event-emitter": "~0.3.4" + } + }, + "es6-set": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "d": "~0.1.1", + "es5-ext": "~0.10.11", + "es6-iterator": "2", + "es6-symbol": "3", + "event-emitter": "~0.3.4" + } + }, + "es6-symbol": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "d": "~0.1.1", + "es5-ext": "~0.10.11" + } + }, + "es6-weak-map": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "d": "^0.1.1", + "es5-ext": "^0.10.8", + "es6-iterator": "2", + "es6-symbol": "3" + } + }, + "escape-html": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "escodegen": { + "version": "1.8.1", + "bundled": true, + "dev": true, + "requires": { + "esprima": "^2.7.1", + "estraverse": "^1.9.1", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.2.0" + }, + "dependencies": { + "estraverse": { + "version": "1.9.3", + "bundled": true, + "dev": true + }, + "source-map": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "escope": { + "version": "3.6.0", + "bundled": true, + "dev": true, + "requires": { + "es6-map": "^0.1.3", + "es6-weak-map": "^2.0.1", + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint": { + "version": "3.8.1", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3", + "concat-stream": "^1.4.6", + "debug": "^2.1.1", + "doctrine": "^1.2.2", + "escope": "^3.6.0", + "espree": "^3.3.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "glob": "^7.0.3", + "globals": "^9.2.0", + "ignore": "^3.1.5", + "imurmurhash": "^0.1.4", + "inquirer": "^0.12.0", + "is-my-json-valid": "^2.10.0", + "is-resolvable": "^1.0.0", + "js-yaml": "^3.5.1", + "json-stable-stringify": "^1.0.0", + "levn": "^0.3.0", + "lodash": "^4.0.0", + "mkdirp": "^0.5.0", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.1", + "pluralize": "^1.2.1", + "progress": "^1.1.8", + "require-uncached": "^1.0.2", + "shelljs": "^0.6.0", + "strip-bom": "^3.0.0", + "strip-json-comments": "~1.0.1", + "table": "^3.7.8", + "text-table": "~0.2.0", + "user-home": "^2.0.0" + }, + "dependencies": { + "globals": { + "version": "9.12.0", + "bundled": true, + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "user-home": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "os-homedir": "^1.0.0" + } + } + } + }, + "eslint-config-react-app": { + "version": "0.3.0", + "bundled": true, + "dev": true + }, + "eslint-import-resolver-node": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "requires": { + "debug": "^2.2.0", + "object-assign": "^4.0.1", + "resolve": "^1.1.6" + } + }, + "eslint-loader": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "requires": { + "find-cache-dir": "^0.1.1", + "loader-utils": "^0.2.7", + "object-assign": "^4.0.1" + } + }, + "eslint-module-utils": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "debug": "2.2.0", + "pkg-dir": "^1.0.0" + } + }, + "eslint-plugin-flowtype": { + "version": "2.21.0", + "bundled": true, + "dev": true, + "requires": { + "lodash": "^4.15.0" + } + }, + "eslint-plugin-import": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "builtin-modules": "^1.1.1", + "contains-path": "^0.1.0", + "debug": "^2.2.0", + "doctrine": "1.3.x", + "eslint-import-resolver-node": "^0.2.0", + "eslint-module-utils": "^1.0.0", + "has": "^1.0.1", + "lodash.cond": "^4.3.0", + "minimatch": "^3.0.3", + "pkg-up": "^1.0.0" + }, + "dependencies": { + "doctrine": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "esutils": "^2.0.2", + "isarray": "^1.0.0" + } + } + } + }, + "eslint-plugin-jsx-a11y": { + "version": "2.2.3", + "bundled": true, + "dev": true, + "requires": { + "damerau-levenshtein": "^1.0.0", + "jsx-ast-utils": "^1.0.0", + "object-assign": "^4.0.1" + } + }, + "eslint-plugin-react": { + "version": "6.4.1", + "bundled": true, + "dev": true, + "requires": { + "doctrine": "^1.2.2", + "jsx-ast-utils": "^1.3.1" + } + }, + "espree": { + "version": "3.3.2", + "bundled": true, + "dev": true, + "requires": { + "acorn": "^4.0.1", + "acorn-jsx": "^3.0.0" + } + }, + "esprima": { + "version": "2.7.3", + "bundled": true, + "dev": true + }, + "esrecurse": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "requires": { + "estraverse": "~4.1.0", + "object-assign": "^4.0.1" + }, + "dependencies": { + "estraverse": { + "version": "4.1.1", + "bundled": true, + "dev": true + } + } + }, + "estraverse": { + "version": "4.2.0", + "bundled": true, + "dev": true + }, + "esutils": { + "version": "2.0.2", + "bundled": true, + "dev": true + }, + "etag": { + "version": "1.7.0", + "bundled": true, + "dev": true + }, + "event-emitter": { + "version": "0.3.4", + "bundled": true, + "dev": true, + "requires": { + "d": "~0.1.1", + "es5-ext": "~0.10.7" + } + }, + "eventemitter3": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "events": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "eventsource": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "original": ">=0.0.5" + } + }, + "exec-sh": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "requires": { + "merge": "^1.1.3" + } + }, + "exit-hook": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "expand-range": { + "version": "1.8.2", + "bundled": true, + "dev": true, + "requires": { + "fill-range": "^2.1.0" + } + }, + "express": { + "version": "4.14.0", + "bundled": true, + "dev": true, + "requires": { + "accepts": "~1.3.3", + "array-flatten": "1.1.1", + "content-disposition": "0.5.1", + "content-type": "~1.0.2", + "cookie": "0.3.1", + "cookie-signature": "1.0.6", + "debug": "~2.2.0", + "depd": "~1.1.0", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "etag": "~1.7.0", + "finalhandler": "0.5.0", + "fresh": "0.3.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.1", + "path-to-regexp": "0.1.7", + "proxy-addr": "~1.1.2", + "qs": "6.2.0", + "range-parser": "~1.2.0", + "send": "0.14.1", + "serve-static": "~1.11.1", + "type-is": "~1.6.13", + "utils-merge": "1.0.0", + "vary": "~1.1.0" + }, + "dependencies": { + "qs": { + "version": "6.2.0", + "bundled": true, + "dev": true + } + } + }, + "extend": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "extglob": { + "version": "0.3.2", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "extract-text-webpack-plugin": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "async": "^1.5.0", + "loader-utils": "^0.2.3", + "webpack-sources": "^0.1.0" + } + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.5", + "bundled": true, + "dev": true + }, + "fastparse": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "faye-websocket": { + "version": "0.10.0", + "bundled": true, + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fb-watchman": { + "version": "1.9.0", + "bundled": true, + "dev": true, + "requires": { + "bser": "^1.0.2" + } + }, + "figures": { + "version": "1.7.0", + "bundled": true, + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "file-entry-cache": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" + } + }, + "file-loader": { + "version": "0.9.0", + "bundled": true, + "dev": true, + "requires": { + "loader-utils": "~0.2.5" + } + }, + "filename-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "fileset": { + "version": "0.2.1", + "bundled": true, + "dev": true, + "requires": { + "glob": "5.x", + "minimatch": "2.x" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "bundled": true, + "dev": true, + "requires": { + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "minimatch": { + "version": "2.0.10", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.0.0" + } + } + } + }, + "filesize": { + "version": "3.3.0", + "bundled": true, + "dev": true + }, + "fill-range": { + "version": "2.2.3", + "bundled": true, + "dev": true, + "requires": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^1.1.3", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } + }, + "finalhandler": { + "version": "0.5.0", + "bundled": true, + "dev": true, + "requires": { + "debug": "~2.2.0", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "statuses": "~1.3.0", + "unpipe": "~1.0.0" + } + }, + "find-cache-dir": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "requires": { + "commondir": "^1.0.1", + "mkdirp": "^0.5.1", + "pkg-dir": "^1.0.0" + } + }, + "find-up": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "flat-cache": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "requires": { + "circular-json": "^0.3.0", + "del": "^2.0.2", + "graceful-fs": "^4.1.2", + "write": "^0.2.1" + } + }, + "flatten": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "for-in": { + "version": "0.1.6", + "bundled": true, + "dev": true + }, + "for-own": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "for-in": "^0.1.5" + } + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true + }, + "form-data": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.5", + "mime-types": "^2.1.11" + } + }, + "forwarded": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "fresh": { + "version": "0.3.0", + "bundled": true, + "dev": true + }, + "fs-extra": { + "version": "0.30.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^2.1.0", + "klaw": "^1.0.0", + "path-is-absolute": "^1.0.0", + "rimraf": "^2.2.8" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "function-bind": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "generate-function": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "generate-object-property": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "is-property": "^1.0.0" + } + }, + "get-caller-file": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "get-stdin": { + "version": "4.0.1", + "bundled": true, + "dev": true + }, + "getpass": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true + } + } + }, + "glob": { + "version": "7.1.1", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.2", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-base": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" + } + }, + "glob-parent": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-glob": "^2.0.0" + } + }, + "globals": { + "version": "8.18.0", + "bundled": true, + "dev": true + }, + "globby": { + "version": "5.0.0", + "bundled": true, + "dev": true, + "requires": { + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "graceful-fs": { + "version": "4.1.9", + "bundled": true, + "dev": true + }, + "graceful-readlink": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "growly": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "gzip-size": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "duplexer": "^0.1.1" + } + }, + "handlebars": { + "version": "4.0.5", + "bundled": true, + "dev": true, + "requires": { + "async": "^1.4.0", + "optimist": "^0.6.1", + "source-map": "^0.4.4", + "uglify-js": "^2.6" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "har-validator": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.1", + "commander": "^2.9.0", + "is-my-json-valid": "^2.12.4", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "commander": { + "version": "2.9.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + } + } + }, + "has": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "function-bind": "^1.0.2" + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "has-flag": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.x.x", + "cryptiles": "2.x.x", + "hoek": "2.x.x", + "sntp": "1.x.x" + } + }, + "he": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "header-case": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.1.3" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "home-or-tmp": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "os-tmpdir": "^1.0.1", + "user-home": "^1.1.1" + } + }, + "hosted-git-info": { + "version": "2.1.5", + "bundled": true, + "dev": true + }, + "html-comment-regex": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "html-encoding-sniffer": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.1" + } + }, + "html-minifier": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "change-case": "3.0.x", + "clean-css": "3.4.x", + "commander": "2.9.x", + "he": "1.1.x", + "ncname": "1.0.x", + "relateurl": "0.2.x", + "uglify-js": "2.7.x" + }, + "dependencies": { + "commander": { + "version": "2.9.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + } + } + }, + "html-webpack-plugin": { + "version": "2.24.0", + "bundled": true, + "dev": true, + "requires": { + "bluebird": "^3.4.6", + "html-minifier": "^3.1.0", + "loader-utils": "^0.2.16", + "lodash": "^4.16.4", + "pretty-error": "^2.0.2", + "toposort": "^1.0.0" + } + }, + "htmlparser2": { + "version": "3.3.0", + "bundled": true, + "dev": true, + "requires": { + "domelementtype": "1", + "domhandler": "2.1", + "domutils": "1.1", + "readable-stream": "1.0" + }, + "dependencies": { + "domutils": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "requires": { + "domelementtype": "1" + } + }, + "isarray": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "bundled": true, + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + } + } + }, + "http-browserify": { + "version": "1.7.0", + "bundled": true, + "dev": true, + "requires": { + "Base64": "~0.2.0", + "inherits": "~2.0.1" + } + }, + "http-errors": { + "version": "1.5.0", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.1", + "setprototypeof": "1.0.1", + "statuses": ">= 1.3.0 < 2" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "bundled": true, + "dev": true + } + } + }, + "http-proxy": { + "version": "1.15.2", + "bundled": true, + "dev": true, + "requires": { + "eventemitter3": "1.x.x", + "requires-port": "1.x.x" + } + }, + "http-proxy-middleware": { + "version": "0.17.2", + "bundled": true, + "dev": true, + "requires": { + "http-proxy": "^1.15.1", + "is-glob": "^3.0.0", + "lodash": "^4.16.2", + "micromatch": "^2.3.11" + }, + "dependencies": { + "is-extglob": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "is-glob": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^0.2.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "https-browserify": { + "version": "0.0.0", + "bundled": true, + "dev": true + }, + "iconv-lite": { + "version": "0.4.13", + "bundled": true, + "dev": true + }, + "icss-replace-symbols": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "ieee754": { + "version": "1.1.8", + "bundled": true, + "dev": true + }, + "ignore": { + "version": "3.2.0", + "bundled": true, + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "indexes-of": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "indexof": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "inquirer": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-escapes": "^1.1.0", + "ansi-regex": "^2.0.0", + "chalk": "^1.0.0", + "cli-cursor": "^1.0.1", + "cli-width": "^2.0.0", + "figures": "^1.3.5", + "lodash": "^4.3.0", + "readline2": "^1.0.1", + "run-async": "^0.1.0", + "rx-lite": "^3.1.2", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.0", + "through": "^2.3.6" + } + }, + "interpret": { + "version": "0.6.6", + "bundled": true, + "dev": true + }, + "invariant": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "invert-kv": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "ipaddr.js": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "is-absolute-url": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.4", + "bundled": true, + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "builtin-modules": "^1.0.0" + } + }, + "is-ci": { + "version": "1.0.10", + "bundled": true, + "dev": true, + "requires": { + "ci-info": "^1.0.0" + } + }, + "is-dotfile": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "requires": { + "is-primitive": "^2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-glob": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "is-lower-case": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "lower-case": "^1.1.0" + } + }, + "is-my-json-valid": { + "version": "2.15.0", + "bundled": true, + "dev": true, + "requires": { + "generate-function": "^2.0.0", + "generate-object-property": "^1.1.0", + "jsonpointer": "^4.0.0", + "xtend": "^4.0.0" + } + }, + "is-number": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-path-cwd": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-path-inside": "^1.0.0" + } + }, + "is-path-inside": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "path-is-inside": "^1.0.1" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "is-posix-bracket": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-property": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "is-resolvable": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "tryit": "^1.0.1" + } + }, + "is-svg": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "html-comment-regex": "^1.1.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-upper-case": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "upper-case": "^1.1.0" + } + }, + "is-utf8": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isexe": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "isobject": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true + }, + "istanbul": { + "version": "0.4.5", + "bundled": true, + "dev": true, + "requires": { + "abbrev": "1.0.x", + "async": "1.x", + "escodegen": "1.8.x", + "esprima": "2.7.x", + "glob": "^5.0.15", + "handlebars": "^4.0.1", + "js-yaml": "3.x", + "mkdirp": "0.5.x", + "nopt": "3.x", + "once": "1.x", + "resolve": "1.1.x", + "supports-color": "^3.1.0", + "which": "^1.1.1", + "wordwrap": "^1.0.0" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "bundled": true, + "dev": true, + "requires": { + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "istanbul-api": { + "version": "1.0.0-aplha.10", + "bundled": true, + "dev": true, + "requires": { + "async": "1.x", + "clone": "^1.0.2", + "fileset": "0.2.x", + "istanbul-lib-coverage": "^1.0.0-alpha", + "istanbul-lib-hook": "^1.0.0-alpha", + "istanbul-lib-instrument": "^1.0.0-alpha", + "istanbul-lib-report": "^1.0.0-alpha", + "istanbul-lib-source-maps": "^1.0.0-alpha", + "istanbul-reports": "^1.0.0-alpha", + "js-yaml": "3.x", + "mkdirp": "0.5.x", + "once": "1.x" + } + }, + "istanbul-lib-coverage": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "istanbul-lib-hook": { + "version": "1.0.0-alpha.4", + "bundled": true, + "dev": true, + "requires": { + "append-transform": "^0.3.0" + } + }, + "istanbul-lib-instrument": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "requires": { + "babel-generator": "^6.11.3", + "babel-template": "^6.9.0", + "babel-traverse": "^6.9.0", + "babel-types": "^6.10.2", + "babylon": "^6.8.1", + "istanbul-lib-coverage": "^1.0.0" + } + }, + "istanbul-lib-report": { + "version": "1.0.0-alpha.3", + "bundled": true, + "dev": true, + "requires": { + "async": "^1.4.2", + "istanbul-lib-coverage": "^1.0.0-alpha", + "mkdirp": "^0.5.1", + "path-parse": "^1.0.5", + "rimraf": "^2.4.3", + "supports-color": "^3.1.2" + } + }, + "istanbul-lib-source-maps": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "istanbul-lib-coverage": "^1.0.0-alpha.0", + "mkdirp": "^0.5.1", + "rimraf": "^2.4.4", + "source-map": "^0.5.3" + } + }, + "istanbul-reports": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "handlebars": "^4.0.3" + } + }, + "jasmine-check": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "testcheck": "^0.1.0" + } + }, + "jest": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-cli": "^16.0.2" + }, + "dependencies": { + "callsites": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "cliui": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "jest-cli": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "ansi-escapes": "^1.4.0", + "callsites": "^2.0.0", + "chalk": "^1.1.1", + "graceful-fs": "^4.1.6", + "is-ci": "^1.0.9", + "istanbul-api": "^1.0.0-aplha.10", + "istanbul-lib-coverage": "^1.0.0", + "istanbul-lib-instrument": "^1.1.1", + "jest-changed-files": "^16.0.0", + "jest-config": "^16.0.2", + "jest-environment-jsdom": "^16.0.2", + "jest-file-exists": "^15.0.0", + "jest-haste-map": "^16.0.2", + "jest-jasmine2": "^16.0.2", + "jest-mock": "^16.0.2", + "jest-resolve": "^16.0.2", + "jest-resolve-dependencies": "^16.0.2", + "jest-runtime": "^16.0.2", + "jest-snapshot": "^16.0.2", + "jest-util": "^16.0.2", + "json-stable-stringify": "^1.0.0", + "node-notifier": "^4.6.1", + "sane": "~1.4.1", + "strip-ansi": "^3.0.1", + "throat": "^3.0.0", + "which": "^1.1.1", + "worker-farm": "^1.3.1", + "yargs": "^5.0.0" + } + }, + "window-size": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "yargs": { + "version": "5.0.0", + "bundled": true, + "dev": true, + "requires": { + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "lodash.assign": "^4.2.0", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "window-size": "^0.2.0", + "y18n": "^3.2.1", + "yargs-parser": "^3.2.0" + } + } + } + }, + "jest-changed-files": { + "version": "16.0.0", + "bundled": true, + "dev": true + }, + "jest-config": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.1", + "istanbul": "^0.4.5", + "jest-environment-jsdom": "^16.0.2", + "jest-environment-node": "^16.0.2", + "jest-jasmine2": "^16.0.2", + "jest-mock": "^16.0.2", + "jest-resolve": "^16.0.2", + "jest-util": "^16.0.2", + "json-stable-stringify": "^1.0.0" + } + }, + "jest-diff": { + "version": "16.0.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3", + "diff": "^3.0.0", + "jest-matcher-utils": "^16.0.0", + "pretty-format": "~4.2.1" + } + }, + "jest-environment-jsdom": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-mock": "^16.0.2", + "jest-util": "^16.0.2", + "jsdom": "^9.8.0" + } + }, + "jest-environment-node": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-mock": "^16.0.2", + "jest-util": "^16.0.2" + } + }, + "jest-file-exists": { + "version": "15.0.0", + "bundled": true, + "dev": true + }, + "jest-haste-map": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "fb-watchman": "^1.9.0", + "graceful-fs": "^4.1.6", + "multimatch": "^2.1.0", + "worker-farm": "^1.3.1" + } + }, + "jest-jasmine2": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "jasmine-check": "^0.1.4", + "jest-matchers": "^16.0.2", + "jest-snapshot": "^16.0.2", + "jest-util": "^16.0.2" + } + }, + "jest-matcher-utils": { + "version": "16.0.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3", + "pretty-format": "~4.2.1" + } + }, + "jest-matchers": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-diff": "^16.0.0", + "jest-matcher-utils": "^16.0.0", + "jest-util": "^16.0.2" + } + }, + "jest-mock": { + "version": "16.0.2", + "bundled": true, + "dev": true + }, + "jest-resolve": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "browser-resolve": "^1.11.2", + "jest-file-exists": "^15.0.0", + "jest-haste-map": "^16.0.2", + "resolve": "^1.1.6" + } + }, + "jest-resolve-dependencies": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-file-exists": "^15.0.0", + "jest-resolve": "^16.0.2" + } + }, + "jest-runtime": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "babel-core": "^6.11.4", + "babel-jest": "^16.0.0", + "babel-plugin-istanbul": "^2.0.0", + "chalk": "^1.1.3", + "graceful-fs": "^4.1.6", + "jest-config": "^16.0.2", + "jest-file-exists": "^15.0.0", + "jest-haste-map": "^16.0.2", + "jest-mock": "^16.0.2", + "jest-resolve": "^16.0.2", + "jest-snapshot": "^16.0.2", + "jest-util": "^16.0.2", + "json-stable-stringify": "^1.0.0", + "multimatch": "^2.1.0", + "yargs": "^5.0.0" + }, + "dependencies": { + "cliui": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "window-size": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "yargs": { + "version": "5.0.0", + "bundled": true, + "dev": true, + "requires": { + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "lodash.assign": "^4.2.0", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "window-size": "^0.2.0", + "y18n": "^3.2.1", + "yargs-parser": "^3.2.0" + } + } + } + }, + "jest-snapshot": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "jest-diff": "^16.0.0", + "jest-file-exists": "^15.0.0", + "jest-matcher-utils": "^16.0.0", + "jest-util": "^16.0.2", + "natural-compare": "^1.4.0", + "pretty-format": "~4.2.1" + } + }, + "jest-util": { + "version": "16.0.2", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.1", + "diff": "^3.0.0", + "graceful-fs": "^4.1.6", + "jest-file-exists": "^15.0.0", + "jest-mock": "^16.0.2", + "mkdirp": "^0.5.1" + } + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "js-base64": { + "version": "2.1.9", + "bundled": true, + "dev": true + }, + "js-tokens": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "js-yaml": { + "version": "3.6.1", + "bundled": true, + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^2.6.0" + } + }, + "jsbn": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsdom": { + "version": "9.8.0", + "bundled": true, + "dev": true, + "requires": { + "abab": "^1.0.0", + "acorn": "^2.4.0", + "acorn-globals": "^1.0.4", + "array-equal": "^1.0.0", + "content-type-parser": "^1.0.1", + "cssom": ">= 0.3.0 < 0.4.0", + "cssstyle": ">= 0.2.36 < 0.3.0", + "escodegen": "^1.6.1", + "html-encoding-sniffer": "^1.0.1", + "iconv-lite": "^0.4.13", + "nwmatcher": ">= 1.3.7 < 2.0.0", + "parse5": "^1.5.1", + "request": "^2.55.0", + "sax": "^1.1.4", + "symbol-tree": ">= 3.1.0 < 4.0.0", + "tough-cookie": "^2.3.1", + "webidl-conversions": "^3.0.1", + "whatwg-encoding": "^1.0.1", + "whatwg-url": "^3.0.0", + "xml-name-validator": ">= 2.0.1 < 3.0.0" + }, + "dependencies": { + "acorn": { + "version": "2.7.0", + "bundled": true, + "dev": true + } + } + }, + "jsesc": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "json-loader": { + "version": "0.5.4", + "bundled": true, + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "jsonify": "~0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true + }, + "json3": { + "version": "3.3.2", + "bundled": true, + "dev": true + }, + "json5": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "jsonfile": { + "version": "2.4.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "jsonify": { + "version": "0.0.0", + "bundled": true, + "dev": true + }, + "jsonpointer": { + "version": "4.0.0", + "bundled": true, + "dev": true + }, + "jsprim": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "extsprintf": "1.0.2", + "json-schema": "0.2.3", + "verror": "1.3.6" + } + }, + "jsx-ast-utils": { + "version": "1.3.2", + "bundled": true, + "dev": true, + "requires": { + "acorn-jsx": "^3.0.1", + "object-assign": "^4.1.0" + } + }, + "kind-of": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "^1.0.2" + } + }, + "klaw": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "lazy-cache": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "lcid": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "invert-kv": "^1.0.0" + } + }, + "levn": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "load-json-file": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "loader-utils": { + "version": "0.2.16", + "bundled": true, + "dev": true, + "requires": { + "big.js": "^3.1.3", + "emojis-list": "^2.0.0", + "json5": "^0.5.0", + "object-assign": "^4.0.1" + }, + "dependencies": { + "json5": { + "version": "0.5.0", + "bundled": true, + "dev": true + } + } + }, + "lodash": { + "version": "4.16.4", + "bundled": true, + "dev": true + }, + "lodash._arraycopy": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "lodash._arrayeach": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "lodash._baseassign": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._baseclone": { + "version": "3.3.0", + "bundled": true, + "dev": true, + "requires": { + "lodash._arraycopy": "^3.0.0", + "lodash._arrayeach": "^3.0.0", + "lodash._baseassign": "^3.0.0", + "lodash._basefor": "^3.0.0", + "lodash.isarray": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "lodash._basefor": { + "version": "3.0.3", + "bundled": true, + "dev": true + }, + "lodash._bindcallback": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "lodash._createcompounder": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "lodash.deburr": "^3.0.0", + "lodash.words": "^3.0.0" + } + }, + "lodash._getnative": { + "version": "3.9.1", + "bundled": true, + "dev": true + }, + "lodash._root": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "lodash.assign": { + "version": "4.2.0", + "bundled": true, + "dev": true + }, + "lodash.camelcase": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "lodash._createcompounder": "^3.0.0" + } + }, + "lodash.clonedeep": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "lodash._baseclone": "^3.0.0", + "lodash._bindcallback": "^3.0.0" + } + }, + "lodash.cond": { + "version": "4.5.2", + "bundled": true, + "dev": true + }, + "lodash.deburr": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "lodash._root": "^3.0.0" + } + }, + "lodash.indexof": { + "version": "4.0.5", + "bundled": true, + "dev": true + }, + "lodash.isarguments": { + "version": "3.1.0", + "bundled": true, + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "bundled": true, + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "bundled": true, + "dev": true, + "requires": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "lodash.pickby": { + "version": "4.6.0", + "bundled": true, + "dev": true + }, + "lodash.words": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "lodash._root": "^3.0.0" + } + }, + "longest": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "loose-envify": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "js-tokens": "^1.0.1" + }, + "dependencies": { + "js-tokens": { + "version": "1.0.3", + "bundled": true, + "dev": true + } + } + }, + "lower-case": { + "version": "1.1.3", + "bundled": true, + "dev": true + }, + "lower-case-first": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "lower-case": "^1.1.2" + } + }, + "lru-cache": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "requires": { + "pseudomap": "^1.0.1", + "yallist": "^2.0.0" + } + }, + "macaddress": { + "version": "0.2.8", + "bundled": true, + "dev": true + }, + "makeerror": { + "version": "1.0.11", + "bundled": true, + "dev": true, + "requires": { + "tmpl": "1.0.x" + } + }, + "marked": { + "version": "0.3.6", + "bundled": true, + "dev": true + }, + "marked-terminal": { + "version": "1.6.2", + "bundled": true, + "dev": true, + "requires": { + "cardinal": "^1.0.0", + "chalk": "^1.0.0", + "cli-table": "^0.3.1", + "lodash.assign": "^4.2.0", + "node-emoji": "^1.3.1" + } + }, + "math-expression-evaluator": { + "version": "1.2.14", + "bundled": true, + "dev": true, + "requires": { + "lodash.indexof": "^4.0.5" + } + }, + "media-typer": { + "version": "0.3.0", + "bundled": true, + "dev": true + }, + "memory-fs": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + }, + "merge": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "merge-descriptors": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "methods": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "micromatch": { + "version": "2.3.11", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + }, + "mime": { + "version": "1.2.11", + "bundled": true, + "dev": true + }, + "mime-db": { + "version": "1.24.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.12", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "~1.24.0" + } + }, + "minimatch": { + "version": "3.0.3", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.0.0" + } + }, + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + } + } + }, + "ms": { + "version": "0.7.1", + "bundled": true, + "dev": true + }, + "multimatch": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "array-differ": "^1.0.0", + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "minimatch": "^3.0.0" + } + }, + "mute-stream": { + "version": "0.0.5", + "bundled": true, + "dev": true + }, + "nan": { + "version": "2.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "natural-compare": { + "version": "1.4.0", + "bundled": true, + "dev": true + }, + "ncname": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "xml-char-classes": "^1.0.0" + } + }, + "negotiator": { + "version": "0.6.1", + "bundled": true, + "dev": true + }, + "no-case": { + "version": "2.3.0", + "bundled": true, + "dev": true, + "requires": { + "lower-case": "^1.1.1" + } + }, + "node-emoji": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "requires": { + "string.prototype.codepointat": "^0.2.0" + } + }, + "node-int64": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "node-libs-browser": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "requires": { + "assert": "^1.1.1", + "browserify-zlib": "~0.1.4", + "buffer": "^4.9.0", + "console-browserify": "^1.1.0", + "constants-browserify": "0.0.1", + "crypto-browserify": "~3.2.6", + "domain-browser": "^1.1.1", + "events": "^1.0.0", + "http-browserify": "^1.3.2", + "https-browserify": "0.0.0", + "os-browserify": "~0.1.2", + "path-browserify": "0.0.0", + "process": "^0.11.0", + "punycode": "^1.2.4", + "querystring-es3": "~0.2.0", + "readable-stream": "^1.1.13", + "stream-browserify": "^1.0.0", + "string_decoder": "~0.10.25", + "timers-browserify": "^1.0.1", + "tty-browserify": "0.0.0", + "url": "~0.10.1", + "util": "~0.10.3", + "vm-browserify": "0.0.4" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "bundled": true, + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + } + } + }, + "node-notifier": { + "version": "4.6.1", + "bundled": true, + "dev": true, + "requires": { + "cli-usage": "^0.1.1", + "growly": "^1.2.0", + "lodash.clonedeep": "^3.0.0", + "minimist": "^1.1.1", + "semver": "^5.1.0", + "shellwords": "^0.1.0", + "which": "^1.0.5" + } + }, + "node-uuid": { + "version": "1.4.7", + "bundled": true, + "dev": true + }, + "nopt": { + "version": "3.0.6", + "bundled": true, + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "normalize-package-data": { + "version": "2.3.5", + "bundled": true, + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "normalize-range": { + "version": "0.1.2", + "bundled": true, + "dev": true + }, + "normalize-url": { + "version": "1.7.0", + "bundled": true, + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "prepend-http": "^1.0.0", + "query-string": "^4.1.0", + "sort-keys": "^1.0.0" + } + }, + "nth-check": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "boolbase": "~1.0.0" + } + }, + "num2fraction": { + "version": "1.2.2", + "bundled": true, + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "nwmatcher": { + "version": "1.3.8", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.0", + "bundled": true, + "dev": true + }, + "object.omit": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "for-own": "^0.1.3", + "is-extendable": "^0.1.1" + } + }, + "on-finished": { + "version": "2.3.0", + "bundled": true, + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "open": { + "version": "0.0.5", + "bundled": true, + "dev": true + }, + "optimist": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" + }, + "dependencies": { + "minimist": { + "version": "0.0.10", + "bundled": true, + "dev": true + }, + "wordwrap": { + "version": "0.0.3", + "bundled": true, + "dev": true + } + } + }, + "optionator": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" + } + }, + "original": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "url-parse": "1.0.x" + }, + "dependencies": { + "url-parse": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "querystringify": "0.0.x", + "requires-port": "1.0.x" + } + } + } + }, + "os-browserify": { + "version": "0.1.2", + "bundled": true, + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "os-locale": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "lcid": "^1.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "pako": { + "version": "0.2.9", + "bundled": true, + "dev": true + }, + "param-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "parse-glob": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" + } + }, + "parse-json": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "parse5": { + "version": "1.5.1", + "bundled": true, + "dev": true + }, + "parseurl": { + "version": "1.3.1", + "bundled": true, + "dev": true + }, + "pascal-case": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "camel-case": "^3.0.0", + "upper-case-first": "^1.1.0" + } + }, + "path-browserify": { + "version": "0.0.0", + "bundled": true, + "dev": true + }, + "path-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "path-exists": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "bundled": true, + "dev": true + }, + "path-type": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pbkdf2-compat": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "pify": { + "version": "2.3.0", + "bundled": true, + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pkg-dir": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "find-up": "^1.0.0" + } + }, + "pkg-up": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "find-up": "^1.0.0" + } + }, + "pluralize": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, + "postcss": { + "version": "5.2.5", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3", + "js-base64": "^2.1.9", + "source-map": "^0.5.6", + "supports-color": "^3.1.2" + } + }, + "postcss-calc": { + "version": "5.3.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.2", + "postcss-message-helpers": "^2.0.0", + "reduce-css-calc": "^1.2.6" + } + }, + "postcss-colormin": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "colormin": "^1.0.5", + "postcss": "^5.0.13", + "postcss-value-parser": "^3.2.3" + } + }, + "postcss-convert-values": { + "version": "2.4.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.11", + "postcss-value-parser": "^3.1.2" + } + }, + "postcss-discard-comments": { + "version": "2.0.4", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.14" + } + }, + "postcss-discard-duplicates": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-discard-empty": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.14" + } + }, + "postcss-discard-overridden": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.16" + } + }, + "postcss-discard-unused": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.14", + "uniqs": "^2.0.0" + } + }, + "postcss-filter-plugins": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4", + "uniqid": "^4.0.0" + } + }, + "postcss-load-config": { + "version": "1.0.0-rc", + "bundled": true, + "dev": true, + "requires": { + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0", + "postcss-load-options": "^1.0.2", + "postcss-load-plugins": "^2.0.0-rc" + } + }, + "postcss-load-options": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0" + } + }, + "postcss-load-plugins": { + "version": "2.0.0-rc", + "bundled": true, + "dev": true, + "requires": { + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0" + } + }, + "postcss-loader": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "loader-utils": "^0.2.16", + "object-assign": "^4.1.0", + "postcss": "^5.2.4", + "postcss-load-config": "^1.0.0-rc" + } + }, + "postcss-merge-idents": { + "version": "2.1.7", + "bundled": true, + "dev": true, + "requires": { + "has": "^1.0.1", + "postcss": "^5.0.10", + "postcss-value-parser": "^3.1.1" + } + }, + "postcss-merge-longhand": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-merge-rules": { + "version": "2.0.10", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4", + "vendors": "^1.0.0" + } + }, + "postcss-message-helpers": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "postcss-minify-font-values": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.2" + } + }, + "postcss-minify-gradients": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.12", + "postcss-value-parser": "^3.3.0" + } + }, + "postcss-minify-params": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "alphanum-sort": "^1.0.1", + "postcss": "^5.0.2", + "postcss-value-parser": "^3.0.2", + "uniqs": "^2.0.0" + } + }, + "postcss-minify-selectors": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "requires": { + "alphanum-sort": "^1.0.2", + "postcss": "^5.0.14", + "postcss-selector-parser": "^2.0.0" + } + }, + "postcss-modules-extract-imports": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-modules-local-by-default": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "requires": { + "css-selector-tokenizer": "^0.6.0", + "postcss": "^5.0.4" + } + }, + "postcss-modules-scope": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "css-selector-tokenizer": "^0.6.0", + "postcss": "^5.0.4" + } + }, + "postcss-modules-values": { + "version": "1.2.2", + "bundled": true, + "dev": true, + "requires": { + "icss-replace-symbols": "^1.0.2", + "postcss": "^5.0.14" + } + }, + "postcss-normalize-charset": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.5" + } + }, + "postcss-normalize-url": { + "version": "3.0.7", + "bundled": true, + "dev": true, + "requires": { + "is-absolute-url": "^2.0.0", + "normalize-url": "^1.4.0", + "postcss": "^5.0.14", + "postcss-value-parser": "^3.2.3" + } + }, + "postcss-ordered-values": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.1" + } + }, + "postcss-reduce-idents": { + "version": "2.3.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.2" + } + }, + "postcss-reduce-initial": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-reduce-transforms": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.8", + "postcss-value-parser": "^3.0.1" + } + }, + "postcss-selector-parser": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "postcss-svgo": { + "version": "2.1.5", + "bundled": true, + "dev": true, + "requires": { + "is-svg": "^2.0.0", + "postcss": "^5.0.14", + "postcss-value-parser": "^3.2.3", + "svgo": "^0.7.0" + } + }, + "postcss-unique-selectors": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "alphanum-sort": "^1.0.1", + "postcss": "^5.0.4", + "uniqs": "^2.0.0" + } + }, + "postcss-value-parser": { + "version": "3.3.0", + "bundled": true, + "dev": true + }, + "postcss-zindex": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "postcss": "^5.0.4", + "uniqs": "^2.0.0" + } + }, + "prelude-ls": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "preserve": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "pretty-error": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "renderkid": "~2.0.0", + "utila": "~0.4" + } + }, + "pretty-format": { + "version": "4.2.1", + "bundled": true, + "dev": true + }, + "private": { + "version": "0.1.6", + "bundled": true, + "dev": true + }, + "process": { + "version": "0.11.9", + "bundled": true, + "dev": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "progress": { + "version": "1.1.8", + "bundled": true, + "dev": true + }, + "promise": { + "version": "7.1.1", + "bundled": true, + "dev": true, + "requires": { + "asap": "~2.0.3" + } + }, + "proxy-addr": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "forwarded": "~0.1.0", + "ipaddr.js": "1.1.1" + } + }, + "prr": { + "version": "0.0.0", + "bundled": true, + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true + }, + "q": { + "version": "1.4.1", + "bundled": true, + "dev": true + }, + "qs": { + "version": "6.2.1", + "bundled": true, + "dev": true + }, + "query-string": { + "version": "4.2.3", + "bundled": true, + "dev": true, + "requires": { + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, + "querystring": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "querystringify": { + "version": "0.0.4", + "bundled": true, + "dev": true + }, + "randomatic": { + "version": "1.1.5", + "bundled": true, + "dev": true, + "requires": { + "is-number": "^2.0.2", + "kind-of": "^3.0.2" + } + }, + "range-parser": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "react-dev-utils": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-html": "0.0.5", + "chalk": "1.1.3", + "escape-string-regexp": "1.0.5", + "html-entities": "1.2.0", + "opn": "4.0.2", + "sockjs-client": "1.0.3", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "ansi-html": { + "version": "0.0.5", + "bundled": true, + "dev": true + }, + "ansi-regex": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "debug": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "ms": "0.7.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "eventsource": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "original": ">=0.0.5" + } + }, + "faye-websocket": { + "version": "0.7.3", + "bundled": true, + "dev": true, + "requires": { + "websocket-driver": ">=0.3.6" + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "html-entities": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "json3": { + "version": "3.3.2", + "bundled": true, + "dev": true + }, + "ms": { + "version": "0.7.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.0", + "bundled": true, + "dev": true + }, + "opn": { + "version": "4.0.2", + "bundled": true, + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "pinkie-promise": "^2.0.0" + } + }, + "original": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "url-parse": "1.0.x" + }, + "dependencies": { + "url-parse": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "querystringify": "0.0.x", + "requires-port": "1.0.x" + } + } + } + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "querystringify": { + "version": "0.0.4", + "bundled": true, + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "sockjs-client": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "requires": { + "debug": "^2.1.0", + "eventsource": "^0.1.3", + "faye-websocket": "~0.7.3", + "inherits": "^2.0.1", + "json3": "^3.3.2", + "url-parse": "^1.0.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "url-parse": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "requires": { + "querystringify": "0.0.x", + "requires-port": "1.0.x" + } + }, + "websocket-driver": { + "version": "0.6.5", + "bundled": true, + "dev": true, + "requires": { + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.1", + "bundled": true, + "dev": true + } + } + }, + "read-pkg": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "readable-stream": { + "version": "2.0.6", + "bundled": true, + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "minimatch": "^3.0.2", + "readable-stream": "^2.0.2", + "set-immediate-shim": "^1.0.1" + } + }, + "readline2": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "mute-stream": "0.0.5" + } + }, + "recursive-readdir": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "minimatch": "3.0.2" + }, + "dependencies": { + "minimatch": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.0.0" + } + } + } + }, + "redeyed": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "esprima": "~2.7.0" + } + }, + "reduce-css-calc": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^0.4.2", + "math-expression-evaluator": "^1.2.14", + "reduce-function-call": "^1.0.1" + } + }, + "reduce-function-call": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "~0.1.0" + }, + "dependencies": { + "balanced-match": { + "version": "0.1.0", + "bundled": true, + "dev": true + } + } + }, + "regenerate": { + "version": "1.3.1", + "bundled": true, + "dev": true + }, + "regenerator-runtime": { + "version": "0.9.5", + "bundled": true, + "dev": true + }, + "regex-cache": { + "version": "0.4.3", + "bundled": true, + "dev": true, + "requires": { + "is-equal-shallow": "^0.1.3", + "is-primitive": "^2.0.0" + } + }, + "regexpu-core": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" + } + }, + "regjsgen": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "bundled": true, + "dev": true + } + } + }, + "relateurl": { + "version": "0.2.7", + "bundled": true, + "dev": true + }, + "renderkid": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "css-select": "^1.1.0", + "dom-converter": "~0.1", + "htmlparser2": "~3.3.0", + "strip-ansi": "^3.0.0", + "utila": "~0.3" + }, + "dependencies": { + "utila": { + "version": "0.3.3", + "bundled": true, + "dev": true + } + } + }, + "repeat-element": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "repeat-string": { + "version": "1.5.4", + "bundled": true, + "dev": true + }, + "repeating": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "request": { + "version": "2.75.0", + "bundled": true, + "dev": true, + "requires": { + "aws-sign2": "~0.6.0", + "aws4": "^1.2.1", + "bl": "~1.1.2", + "caseless": "~0.11.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.0", + "forever-agent": "~0.6.1", + "form-data": "~2.0.0", + "har-validator": "~2.0.6", + "hawk": "~3.1.3", + "http-signature": "~1.1.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.7", + "node-uuid": "~1.4.7", + "oauth-sign": "~0.8.1", + "qs": "~6.2.0", + "stringstream": "~0.0.4", + "tough-cookie": "~2.3.0", + "tunnel-agent": "~0.4.1" + } + }, + "require-directory": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "require-from-string": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "require-uncached": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "caller-path": "^0.1.0", + "resolve-from": "^1.0.0" + } + }, + "requires-port": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "resolve": { + "version": "1.1.7", + "bundled": true, + "dev": true + }, + "resolve-from": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" + } + }, + "right-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "requires": { + "align-text": "^0.1.1" + } + }, + "rimraf": { + "version": "2.5.4", + "bundled": true, + "dev": true, + "requires": { + "glob": "^7.0.5" + } + }, + "ripemd160": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "run-async": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "requires": { + "once": "^1.3.0" + } + }, + "rx-lite": { + "version": "3.1.2", + "bundled": true, + "dev": true + }, + "sane": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "requires": { + "exec-sh": "^0.2.0", + "fb-watchman": "^1.8.0", + "minimatch": "^3.0.2", + "minimist": "^1.1.1", + "walker": "~1.0.5", + "watch": "~0.10.0" + } + }, + "sax": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "dev": true + }, + "send": { + "version": "0.14.1", + "bundled": true, + "dev": true, + "requires": { + "debug": "~2.2.0", + "depd": "~1.1.0", + "destroy": "~1.0.4", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "etag": "~1.7.0", + "fresh": "0.3.0", + "http-errors": "~1.5.0", + "mime": "1.3.4", + "ms": "0.7.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.0", + "statuses": "~1.3.0" + }, + "dependencies": { + "mime": { + "version": "1.3.4", + "bundled": true, + "dev": true + } + } + }, + "sentence-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case-first": "^1.1.2" + } + }, + "serve-index": { + "version": "1.8.0", + "bundled": true, + "dev": true, + "requires": { + "accepts": "~1.3.3", + "batch": "0.5.3", + "debug": "~2.2.0", + "escape-html": "~1.0.3", + "http-errors": "~1.5.0", + "mime-types": "~2.1.11", + "parseurl": "~1.3.1" + } + }, + "serve-static": { + "version": "1.11.1", + "bundled": true, + "dev": true, + "requires": { + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "parseurl": "~1.3.1", + "send": "0.14.1" + } + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "setprototypeof": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "sha.js": { + "version": "2.2.6", + "bundled": true, + "dev": true + }, + "shebang-regex": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "shelljs": { + "version": "0.6.1", + "bundled": true, + "dev": true + }, + "shellwords": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "slash": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "slice-ansi": { + "version": "0.0.4", + "bundled": true, + "dev": true + }, + "snake-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.x.x" + } + }, + "sockjs": { + "version": "0.3.18", + "bundled": true, + "dev": true, + "requires": { + "faye-websocket": "^0.10.0", + "uuid": "^2.0.2" + } + }, + "sockjs-client": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "requires": { + "debug": "^2.2.0", + "eventsource": "~0.1.6", + "faye-websocket": "~0.11.0", + "inherits": "^2.0.1", + "json3": "^3.3.2", + "url-parse": "^1.1.1" + }, + "dependencies": { + "faye-websocket": { + "version": "0.11.0", + "bundled": true, + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + } + } + }, + "sort-keys": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + }, + "source-list-map": { + "version": "0.1.6", + "bundled": true, + "dev": true + }, + "source-map": { + "version": "0.5.6", + "bundled": true, + "dev": true + }, + "source-map-support": { + "version": "0.4.5", + "bundled": true, + "dev": true, + "requires": { + "source-map": "^0.5.3" + } + }, + "spdx-correct": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "spdx-license-ids": "^1.0.2" + } + }, + "spdx-expression-parse": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "spdx-license-ids": { + "version": "1.2.2", + "bundled": true, + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "sshpk": { + "version": "1.10.1", + "bundled": true, + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jodid25519": "^1.0.0", + "jsbn": "~0.1.0", + "tweetnacl": "~0.14.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true + } + } + }, + "statuses": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "stream-browserify": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^1.0.27-1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "bundled": true, + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + } + } + }, + "stream-cache": { + "version": "0.0.2", + "bundled": true, + "dev": true + }, + "strict-uri-encode": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string.prototype.codepointat": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "string_decoder": { + "version": "0.10.31", + "bundled": true, + "dev": true + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "strip-json-comments": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "style-loader": { + "version": "0.13.1", + "bundled": true, + "dev": true, + "requires": { + "loader-utils": "^0.2.7" + } + }, + "supports-color": { + "version": "3.1.2", + "bundled": true, + "dev": true, + "requires": { + "has-flag": "^1.0.0" + } + }, + "svgo": { + "version": "0.7.1", + "bundled": true, + "dev": true, + "requires": { + "coa": "~1.0.1", + "colors": "~1.1.2", + "csso": "~2.2.1", + "js-yaml": "~3.6.1", + "mkdirp": "~0.5.1", + "sax": "~1.2.1", + "whet.extend": "~0.9.9" + } + }, + "swap-case": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "lower-case": "^1.1.1", + "upper-case": "^1.1.1" + } + }, + "symbol-tree": { + "version": "3.1.4", + "bundled": true, + "dev": true + }, + "table": { + "version": "3.8.3", + "bundled": true, + "dev": true, + "requires": { + "ajv": "^4.7.0", + "ajv-keywords": "^1.0.0", + "chalk": "^1.1.1", + "lodash": "^4.0.0", + "slice-ansi": "0.0.4", + "string-width": "^2.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "string-width": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^3.0.0" + } + } + } + }, + "tapable": { + "version": "0.1.10", + "bundled": true, + "dev": true + }, + "test-exclude": { + "version": "2.1.3", + "bundled": true, + "dev": true, + "requires": { + "arrify": "^1.0.1", + "micromatch": "^2.3.11", + "object-assign": "^4.1.0", + "read-pkg-up": "^1.0.1", + "require-main-filename": "^1.0.1" + } + }, + "testcheck": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "text-table": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "throat": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "through": { + "version": "2.3.8", + "bundled": true, + "dev": true + }, + "timers-browserify": { + "version": "1.4.2", + "bundled": true, + "dev": true, + "requires": { + "process": "~0.11.0" + } + }, + "title-case": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.0.3" + } + }, + "tmpl": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "to-fast-properties": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "toposort": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "tough-cookie": { + "version": "2.3.1", + "bundled": true, + "dev": true + }, + "tr46": { + "version": "0.0.3", + "bundled": true, + "dev": true + }, + "tryit": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "tty-browserify": { + "version": "0.0.0", + "bundled": true, + "dev": true + }, + "tunnel-agent": { + "version": "0.4.3", + "bundled": true, + "dev": true + }, + "tweetnacl": { + "version": "0.14.3", + "bundled": true, + "dev": true, + "optional": true + }, + "type-check": { + "version": "0.3.2", + "bundled": true, + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-is": { + "version": "1.6.13", + "bundled": true, + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.11" + } + }, + "typedarray": { + "version": "0.0.6", + "bundled": true, + "dev": true + }, + "uglify-js": { + "version": "2.7.3", + "bundled": true, + "dev": true, + "requires": { + "async": "~0.2.6", + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + }, + "dependencies": { + "async": { + "version": "0.2.10", + "bundled": true, + "dev": true + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "uniq": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "uniqid": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "requires": { + "macaddress": "^0.2.8" + } + }, + "uniqs": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "upper-case": { + "version": "1.1.3", + "bundled": true, + "dev": true + }, + "upper-case-first": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "upper-case": "^1.1.1" + } + }, + "url": { + "version": "0.10.3", + "bundled": true, + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "bundled": true, + "dev": true + } + } + }, + "url-loader": { + "version": "0.5.7", + "bundled": true, + "dev": true, + "requires": { + "loader-utils": "0.2.x", + "mime": "1.2.x" + } + }, + "url-parse": { + "version": "1.1.6", + "bundled": true, + "dev": true, + "requires": { + "querystringify": "0.0.x", + "requires-port": "1.0.x" + } + }, + "user-home": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "util": { + "version": "0.10.3", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "bundled": true, + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "utila": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "utils-merge": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "uuid": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "spdx-correct": "~1.0.0", + "spdx-expression-parse": "~1.0.0" + } + }, + "vary": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "vendors": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "vm-browserify": { + "version": "0.0.4", + "bundled": true, + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "walker": { + "version": "1.0.7", + "bundled": true, + "dev": true, + "requires": { + "makeerror": "1.0.x" + } + }, + "watch": { + "version": "0.10.0", + "bundled": true, + "dev": true + }, + "watchpack": { + "version": "0.2.9", + "bundled": true, + "dev": true, + "requires": { + "async": "^0.9.0", + "chokidar": "^1.0.0", + "graceful-fs": "^4.1.2" + }, + "dependencies": { + "async": { + "version": "0.9.2", + "bundled": true, + "dev": true + } + } + }, + "webidl-conversions": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "webpack": { + "version": "1.13.2", + "bundled": true, + "dev": true, + "requires": { + "acorn": "^3.0.0", + "async": "^1.3.0", + "clone": "^1.0.2", + "enhanced-resolve": "~0.9.0", + "interpret": "^0.6.4", + "loader-utils": "^0.2.11", + "memory-fs": "~0.3.0", + "mkdirp": "~0.5.0", + "node-libs-browser": "^0.6.0", + "optimist": "~0.6.0", + "supports-color": "^3.1.0", + "tapable": "~0.1.8", + "uglify-js": "~2.6.0", + "watchpack": "^0.2.1", + "webpack-core": "~0.6.0" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "bundled": true, + "dev": true + }, + "uglify-js": { + "version": "2.6.4", + "bundled": true, + "dev": true, + "requires": { + "async": "~0.2.6", + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + }, + "dependencies": { + "async": { + "version": "0.2.10", + "bundled": true, + "dev": true + } + } + } + } + }, + "webpack-core": { + "version": "0.6.8", + "bundled": true, + "dev": true, + "requires": { + "source-list-map": "~0.1.0", + "source-map": "~0.4.1" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "webpack-dev-middleware": { + "version": "1.8.4", + "bundled": true, + "dev": true, + "requires": { + "memory-fs": "~0.3.0", + "mime": "^1.3.4", + "path-is-absolute": "^1.0.0", + "range-parser": "^1.0.3" + }, + "dependencies": { + "mime": { + "version": "1.3.4", + "bundled": true, + "dev": true + } + } + }, + "webpack-dev-server": { + "version": "1.16.2", + "bundled": true, + "dev": true, + "requires": { + "compression": "^1.5.2", + "connect-history-api-fallback": "^1.3.0", + "express": "^4.13.3", + "http-proxy-middleware": "~0.17.1", + "open": "0.0.5", + "optimist": "~0.6.1", + "serve-index": "^1.7.2", + "sockjs": "^0.3.15", + "sockjs-client": "^1.0.3", + "stream-cache": "~0.0.1", + "strip-ansi": "^3.0.0", + "supports-color": "^3.1.1", + "webpack-dev-middleware": "^1.4.0" + } + }, + "webpack-manifest-plugin": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "fs-extra": "^0.30.0", + "lodash": ">=3.5 <5" + } + }, + "webpack-sources": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "requires": { + "source-list-map": "~0.1.0", + "source-map": "~0.5.3" + } + }, + "websocket-driver": { + "version": "0.6.5", + "bundled": true, + "dev": true, + "requires": { + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "iconv-lite": "0.4.13" + } + }, + "whatwg-fetch": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "whatwg-url": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "whet.extend": { + "version": "0.9.9", + "bundled": true, + "dev": true + }, + "which": { + "version": "1.2.11", + "bundled": true, + "dev": true, + "requires": { + "isexe": "^1.1.1" + } + }, + "which-module": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "window-size": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "wordwrap": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "worker-farm": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "errno": ">=0.1.1 <0.2.0-0", + "xtend": ">=4.0.0 <4.1.0-0" + } + }, + "wrap-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "^1.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "write": { + "version": "0.2.1", + "bundled": true, + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "xml-char-classes": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "xml-name-validator": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "xtend": { + "version": "4.0.1", + "bundled": true, + "dev": true + }, + "y18n": { + "version": "3.2.1", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "yargs": { + "version": "3.10.0", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", + "window-size": "0.1.0" + } + }, + "yargs-parser": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "^3.0.0", + "lodash.assign": "^4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "3.0.0", + "bundled": true, + "dev": true + } + } + } + } + }, + "regenerator-runtime": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz", + "integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" + }, + "tether": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/tether/-/tether-1.4.6.tgz", + "integrity": "sha512-TyWPw9O0ExqH9/ZBnQ0P1/mNI6LX16YPx5XvixC/ZvAqMkhGeXmKTTsMbSBn3ViOrPuQi/Uef11bVp3sd5UcQQ==" + }, + "ua-parser-js": { + "version": "0.7.19", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.19.tgz", + "integrity": "sha512-T3PVJ6uz8i0HzPxOF9SWzWAlfN/DavlpQqepn22xgve/5QecC+XMCAtmUNnY7C9StehaV6exjUCI801lOI7QlQ==" + }, + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "requires": { + "loose-envify": "^1.0.0" + } + }, + "whatwg-fetch": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", + "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" + } + } +} diff --git a/caseStudy/ui/package.json b/caseStudy/ui/package.json index 27e3099..edebf16 100644 --- a/caseStudy/ui/package.json +++ b/caseStudy/ui/package.json @@ -6,7 +6,9 @@ "react-scripts": "0.7.0" }, "dependencies": { + "axios": "^0.18.0", "highcharts": "5.0.11", + "jquery": "^3.4.1", "moment": "^2.18.1", "react": "^15.3.2", "react-bootstrap-typeahead": "^1.3.0", diff --git a/caseStudy/ui/src/App.js b/caseStudy/ui/src/App.js index 1ca07f7..1ee1cc9 100644 --- a/caseStudy/ui/src/App.js +++ b/caseStudy/ui/src/App.js @@ -16,14 +16,12 @@ import React from 'react'; import './style/App.css'; - -/** - * TODO: - * Import your components - */ +import Charts from './components/Charts.js'; +import Date from './components/Date.js'; +import StockTicker from './components/StockTicker.js'; -class App extends React.Component{ +export default class App extends React.Component{ constructor(props) { super(props); this.state = { @@ -32,18 +30,22 @@ class App extends React.Component{ * Add state objects for the user inputs and anything else you may need to render the highchart. */ }; - + this.handleChange = this.handleChange.bind(this); } - - - + handleChange(event) { + const value = event.target.value; + this.props.onChange(value); + } render () { return (
+

Stock Visualization App

- {/** + { + + /** * TODO * Render the StockTicker and Date components. You can use the date component twice * for both the start and end dates. @@ -52,9 +54,11 @@ class App extends React.Component{ * highchart should be displayed by changing the state of that boolean. * Don't forget to bind these methods! */} -
- + +

Start Date

+ +

End Date

@@ -72,5 +76,3 @@ class App extends React.Component{ ); } } - -export default App; diff --git a/caseStudy/ui/src/components/Charts.js b/caseStudy/ui/src/components/Charts.js index b062c24..e7352da 100644 --- a/caseStudy/ui/src/components/Charts.js +++ b/caseStudy/ui/src/components/Charts.js @@ -17,7 +17,7 @@ import React from 'react'; import LineChart from './charts/LineChart'; -class Charts extends React.Component { +export default class Charts extends React.Component { constructor(props) { super(props); this.state = { @@ -74,14 +74,15 @@ class Charts extends React.Component { * * Don't forget to bind the helper method in the constructor! * */ -} + } render() { /** * TODO * Render your LineChart component and pass the data for the chart to display via props */ + return( + + ); } -} - -// Don't forget to export your component! +} \ No newline at end of file diff --git a/caseStudy/ui/src/components/Date.js b/caseStudy/ui/src/components/Date.js index 3034872..e97574f 100644 --- a/caseStudy/ui/src/components/Date.js +++ b/caseStudy/ui/src/components/Date.js @@ -14,9 +14,6 @@ * under the License. */ - - - /* Display a date picker component for the start date of the range for your line chart. * * Take a look at the react-datepicker for a DatePicker component @@ -24,21 +21,22 @@ * another package for this component if you'd like. * https://www.npmjs.com/package/react-datepicker * https://hacker0x01.github.io/react-datepicker/ - */ +*/ import React from 'react'; -//import DatePicker from 'react-datepicker'; UNCOMMENT this line if you are using the DatePicker component import moment from 'moment'; +import DatePicker from 'react-datepicker'; +// UNCOMMENT this line if you are using the DatePicker component +import 'react-datepicker/dist/react-datepicker.css'; +// UNCOMMENT this line if you are using the DatePicker component -//import 'react-datepicker/dist/react-datepicker.css'; UNCOMMENT this line if you are using the DatePicker component - -class Date extends React.Component { +export default class Date extends React.Component { constructor (props) { super(props) this.state = { date: moment() }; - + this.handleChange = this.handleChange.bind(this); } componentDidMount() { @@ -46,6 +44,7 @@ class Date extends React.Component { } handleChange(date) { + this.props.onChange(date); /** * TODO * Set the state. Call this.props.onChange with the date argument @@ -56,8 +55,7 @@ class Date extends React.Component { render() { return ( -
- { +
className="date" /** * TODO * Render the date picker component with a date format of "MM/DD/YYYY". @@ -65,16 +63,14 @@ class Date extends React.Component { * This method should set the state to the date argument passed in the parameter. * */ - } +

{this.props.text}

-
- -
+
); } - - } - -// Don't forget to export your component! diff --git a/caseStudy/ui/src/components/StockTicker.js b/caseStudy/ui/src/components/StockTicker.js index c018a3e..ea5865c 100644 --- a/caseStudy/ui/src/components/StockTicker.js +++ b/caseStudy/ui/src/components/StockTicker.js @@ -55,7 +55,7 @@ import React from 'react'; * https://github.com/ericgio/react-bootstrap-typeahead/blob/master/example/examples/AsyncExample.react.js */ -class StockTicker extends React.Component { +export default class StockTicker extends React.Component { /** * TODO @@ -159,5 +159,3 @@ class StockTicker extends React.Component { } } - -//Don't forget to export your component! diff --git a/caseStudy/ui/src/components/charts/LineChart.js b/caseStudy/ui/src/components/charts/LineChart.js index 739533d..80468a2 100644 --- a/caseStudy/ui/src/components/charts/LineChart.js +++ b/caseStudy/ui/src/components/charts/LineChart.js @@ -17,12 +17,67 @@ import React from 'react'; import Highcharts from 'highcharts'; -class LineChart extends React.Component { +export default class LineChart extends React.Component { constructor(props) { super(props); } componentDidMount() { + Highcharts.chart('chart', { + chart: { + zoomType: 'x' + }, + title: { + text: 'USD to EUR exchange rate over time' + }, + subtitle: { + text: document.ontouchstart === undefined ? + 'Click and drag in the plot area to zoom in' : 'Pinch the chart to zoom in' + }, + xAxis: { + type: 'datetime' + }, + yAxis: { + title: { + text: 'Exchange rate' + } + }, + legend: { + enabled: false + }, + plotOptions: { + area: { + fillColor: { + linearGradient: { + x1: 0, + y1: 0, + x2: 0, + y2: 1 + }, + stops: [ + [0, Highcharts.getOptions().colors[0]], + [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')] + ] + }, + marker: { + radius: 2 + }, + lineWidth: 1, + states: { + hover: { + lineWidth: 1 + } + }, + threshold: null + } + }, + + series: [{ + //type: '', + name: 'Prices', + data: this.props.data + }] + }); /* Highcharts.chart('chart', { TODO @@ -34,11 +89,12 @@ class LineChart extends React.Component { }] }); */ + } componentWillReceiveProps(props) { console.log("New data received to redraw chart."); - + /** * TODO * Parse the data received from props, a Javascript object, to map to a Javascript array @@ -64,5 +120,3 @@ class LineChart extends React.Component { ) } } - -// Don't forget to export your component! diff --git a/techCurriculum/services/EngineeringEssentialsServices/data/allParticipatingCountries.json b/techCurriculum/services/EngineeringEssentialsServices/data/allParticipatingCountries.json deleted file mode 100644 index 2c71498..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/data/allParticipatingCountries.json +++ /dev/null @@ -1,109 +0,0 @@ -[ { - "date" : "2018-03-12", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Japan" -}, { - "date" : "2018-03-06", - "winningCountry" : "Australia", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-25", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-03-17", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-03-12", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-03-19", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-03-16", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-03-13", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-17", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-03-19", - "winningCountry" : "England", - "losingCountry" : "China", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "England" -}, { - "date" : "2018-03-19", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-25", - "winningCountry" : "China", - "losingCountry" : "England", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "China" -} ] \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/data/events.json b/techCurriculum/services/EngineeringEssentialsServices/data/events.json deleted file mode 100644 index 8d72933..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/data/events.json +++ /dev/null @@ -1,901 +0,0 @@ -[ { - "date" : "2018-02-09", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "India" -}, { - "date" : "2018-02-20", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-16", - "winningCountry" : "Portugal", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-14", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-02-15", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-11", - "winningCountry" : "UnitedStates", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-04", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-02", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 15, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-19", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-23", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "India" -}, { - "date" : "2018-02-13", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 11, - "losingScore" : 5, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-07", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 15, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "China", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-19", - "winningCountry" : "Portugal", - "losingCountry" : "China", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-10", - "winningCountry" : "UnitedStates", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-08", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-05", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-08", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-14", - "winningCountry" : "China", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "China" -}, { - "date" : "2018-02-07", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-27", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-10", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-20", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-24", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-13", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "England" -}, { - "date" : "2018-02-25", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "China" -}, { - "date" : "2018-02-12", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-05", - "winningCountry" : "Brazil", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "India" -}, { - "date" : "2018-02-06", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-15", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-08", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-24", - "winningCountry" : "England", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "England" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 11, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-05", - "winningCountry" : "India", - "losingCountry" : "Australia", - "winningScore" : 14, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-13", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "UnitedStates", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-26", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-19", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 3, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "England" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-17", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-27", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "India" -}, { - "date" : "2018-02-07", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-13", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 2, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-03", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-11", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-25", - "winningCountry" : "Portugal", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-04", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-27", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-24", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-14", - "winningCountry" : "Australia", - "losingCountry" : "China", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-20", - "winningCountry" : "Japan", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-05", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-17", - "winningCountry" : "UnitedStates", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-08", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-01", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-03", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-06", - "winningCountry" : "Australia", - "losingCountry" : "Japan", - "winningScore" : 10, - "losingScore" : 7, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-23", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-10", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 13, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-21", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 15, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-27", - "winningCountry" : "Brazil", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-09", - "winningCountry" : "England", - "losingCountry" : "Japan", - "winningScore" : 15, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "England" -}, { - "date" : "2018-02-21", - "winningCountry" : "Portugal", - "losingCountry" : "China", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-12", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 11, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-02", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-24", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-07", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 2, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-25", - "winningCountry" : "England", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "England" -}, { - "date" : "2018-02-20", - "winningCountry" : "Australia", - "losingCountry" : "China", - "winningScore" : 13, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-02-26", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-13", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-08", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-06", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 1, - "eventType" : "Curling", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-19", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-17", - "winningCountry" : "Portugal", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "England" -}, { - "date" : "2018-02-18", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 1, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-05", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-21", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-20", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-20", - "winningCountry" : "UnitedStates", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-18", - "winningCountry" : "Portugal", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-18", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "India" -}, { - "date" : "2018-02-11", - "winningCountry" : "India", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-04", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 1, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-10", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "England" -}, { - "date" : "2018-02-26", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-04", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-12", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-10", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-21", - "winningCountry" : "India", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-17", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-19", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-12", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 7, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-16", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "England" -} ] \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/data/single-event.json b/techCurriculum/services/EngineeringEssentialsServices/data/single-event.json deleted file mode 100644 index fc7c0e0..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/data/single-event.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "eventType":"WaterPolo", - "homeCountry": "Portugal", - "awayCountry": "Australia", - "date": "2018-02-27", - "winningCountry": "Portugal", - "losingCountry": "Australia", - "winningScore": 22, - "losingScore": 4 -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/pom.xml b/techCurriculum/services/EngineeringEssentialsServices/pom.xml deleted file mode 100644 index 3337f70..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - engineering-essentials - EngineeringEssentials - 1.0-SNAPSHOT - - 4.0.0 - - engineering-essentials-services - - - EngineeringEssentials - engineering-essentials-Examples - 1.0-SNAPSHOT - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example10Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example10Resource.java deleted file mode 100644 index 4f9558b..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example10Resource.java +++ /dev/null @@ -1,58 +0,0 @@ -package examples; - - -import model.Team; -import utility.FileHelper; - -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example10Resource { - - /** - * Example 10 Instructions: - * - * Modify the updateTeam method below to save the "team" that is passed in into a file with the pattern - * -team.json - * - * Use the appropriate method from FileHelper to write to the file. Then check to make sure it was successful with the GET - * method provided below - * - * URL: http://localhost:8080/events/team/{teamName} - */ - @PUT - @Path("team") - @Consumes(MediaType.APPLICATION_JSON) - public Response updateTeam(Team team) { - - return Response.ok().build(); - } - - @GET - @Path("team/{teamName}") - @Produces(MediaType.APPLICATION_JSON) - public Team getTeam(@PathParam("teamName") String teamName) throws IOException { - - return FileHelper.readTeamFromFile(teamName.toLowerCase().concat("-team.json")); - } - - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example11Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example11Resource.java deleted file mode 100644 index 8ddeebe..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example11Resource.java +++ /dev/null @@ -1,54 +0,0 @@ -package examples; - -import com.fasterxml.jackson.databind.ObjectMapper; - -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example11Resource { - - /** - * Example 11 Instructions: - * - * Create a DELETE method called cancelEvent() that will update the events to cancel all events with a given - * eventType, home country, and away country. - * - * The Event Cancelled was a Baseball game where China is the Home Country and Australia is the Away Country - * - * Save the remaining events in remaining-events.json - * Return either a 200 OK or a 500 Internal Server error if it fails to delete an event - * Return the list of cancelled events in the entity. - * - * Compare the remaining-events.json file to events.json file to check that the proper events were deleted - * - */ - @DELETE - @Path("cancel/{eventType}/home/{homeCountry}/away/{awayCountry}") - @Consumes(MediaType.APPLICATION_JSON) - public Response cancelEvent() throws IOException{ - final String filename = "remaining-events.json"; - - return null; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example12Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example12Resource.java deleted file mode 100644 index 993659a..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example12Resource.java +++ /dev/null @@ -1,54 +0,0 @@ -package examples; - - -import model.Event; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import java.text.ParseException; -import java.util.Date; -import java.util.List; - -import static utility.FileHelper.DATEFORMAT; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example12Resource { - - /** - * Example 12 Instructions: - * - * Fill in the function below to return a list of events that occur inbetween the start and end dates (inclusive) - * - * Hint: Read in the dates as Strings - * - * URL: http://localhost:8080/events/startDate/2018-03-07/endDate/2018-03-14 - */ - @GET - @Path("") - @Produces(MediaType.APPLICATION_JSON) - public List getEventsInRange() throws ParseException { - - Date startDate = DATEFORMAT.parse(""); - Date endDate = DATEFORMAT.parse(""); - - return null; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example1Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example1Resource.java deleted file mode 100644 index 2110d37..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example1Resource.java +++ /dev/null @@ -1,43 +0,0 @@ -package examples; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("hello") -public class Example1Resource { - - - /** - * Example 1 Instructions: - * - * - * Run your StartApp with program Arguments: server - * Go to http://localhost:8080/hello/ok and verify your server is running. - */ - - @GET - @Path("/ok") - @Produces(MediaType.APPLICATION_JSON) - public Response getResponse() throws IOException { - return Response.status(Response.Status.OK).entity("Congratulations! You have Successfully started your Rest Server!").build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example2Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example2Resource.java deleted file mode 100644 index daf304e..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example2Resource.java +++ /dev/null @@ -1,38 +0,0 @@ -package examples; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example2Resource { - - /** - * Example 2 Instructions: - * Modify the method below to return the String "Welcome to Engineering Essentials Services Training!" - * - * Restart the Server and visit http://localhost:8080/events/test - */ - @GET - @Path("test") - @Produces(MediaType.APPLICATION_JSON) - public String helloWorld() { - return "Hello, world!"; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example3Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example3Resource.java deleted file mode 100644 index 7abb6ab..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example3Resource.java +++ /dev/null @@ -1,48 +0,0 @@ -package examples; - - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("hello") -public class Example3Resource { - - /** - * Example 3 Instructions: - * - * Modify the method below so that when you restart the Server and visit the URL, - * you see "This site is now fixed." - * - * 1) You will have to change the @Path - * 2) You will have to change the string returned - * 3) Your will have to change the status returned to Response.Status.OK - * - * URL: http://localhost:8080/response/test/fixed - */ - @GET - @Path("/broken") - @Produces(MediaType.APPLICATION_JSON) - public Response getResponse() throws IOException { - String properResponse = "This site is now fixed."; - return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity("Broken").build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example4Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example4Resource.java deleted file mode 100644 index dcd0c5f..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example4Resource.java +++ /dev/null @@ -1,48 +0,0 @@ -package examples; - - -import model.Event; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example4Resource { - - - /** - * Example 4 Instructions: - * - * Use the appropriate method from FileHelper.java (utility folder) to read in a single event from the file - * "single-event.json" and return this event - * - * Hint: the method below is missing an annotation - * - * URL: http://localhost:8080/events/sample - */ - @Path("sample") - @Produces(MediaType.APPLICATION_JSON) - public Response getSampleEvent() { - - Event event = null; - return Response.ok().entity(event).build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example5Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example5Resource.java deleted file mode 100644 index 1626ed4..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example5Resource.java +++ /dev/null @@ -1,50 +0,0 @@ -package examples; - - -import model.Event; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example5Resource { - - - /** - * Example 5 Instructions: - * - * Add the proper @Produces Annotation to the method below - * and then use the appropriate method from FileHelper to read and return - * the list of all of the events in the events.json file - * - * URL: http://localhost:8080/events/all - */ - @GET - @Path("all") - public Response getAllEvents() throws IOException { - - List events = null; - return Response.ok().entity(events).build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example6Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example6Resource.java deleted file mode 100644 index 7463dd5..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example6Resource.java +++ /dev/null @@ -1,46 +0,0 @@ -package examples; - - -import model.Country; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example6Resource { - - /** - * Example 6 Instructions: - * Add the functionality to return a list of Countries that participated in at least 1 event - * - * URL: http://localhost:8080/events/allParticipatingCountries - * - */ - @GET - @Path("replace") - @Produces(MediaType.APPLICATION_JSON) - public Response getAllParticipatingCountries() { - - List participatingCountries = null; - return null; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example7Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example7Resource.java deleted file mode 100644 index 916be88..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example7Resource.java +++ /dev/null @@ -1,52 +0,0 @@ -package examples; - - -import model.Event; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example7Resource { - - /** - * Example 7 Instructions: - * - * Modify the method below to return the list of all of the events that a country participated in - * - * Note: The country name should be case insensitive ("UnitedStates" returns the same results as "UnitedStates") - * If no events are found for a country, return a message stating the country was not found - * - * URL: http://localhost:8080/events/country/{countryName} - */ - @GET - @Path("country/{countryName}") - @Produces(MediaType.APPLICATION_JSON) - public Response getEventsForCountry(@PathParam("countryName") String countryName) throws IOException { - - return null; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example8Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example8Resource.java deleted file mode 100644 index 976a7a6..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example8Resource.java +++ /dev/null @@ -1,41 +0,0 @@ -package examples; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example8Resource { - - /** - * Example 8 Instructions: - * Fill in the method below so that for a given country, this endpoint returns the number of wins that country has - * - * Hint: Don't forget the @PathParam annotation - * - * URL: http://localhost:8080/events/UnitedStates/wins - * URL: http://localhost:8080/events/China/wins - * - */ - @GET - @Path("replace this") - public int getWins(String country) { - return 0; - } -} - diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example9Resource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example9Resource.java deleted file mode 100644 index 75b33da..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/examples/Example9Resource.java +++ /dev/null @@ -1,50 +0,0 @@ -package examples; - -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Event; - -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example9Resource { - - - /** - * Example 9 Instructions: - * - * Part 1: - * Create a Sample Event and save it to the test-create-event.json file using the POST method createEvent - * Return a response with Status.OK after creating the event - * - * Part 2: Add a getNewEvent method that would reads the file test-create-event.json and returns the created event - * - * URL (after part 2): http://localhost:8080/events/newEvent - */ - @Path("") - @Consumes(MediaType.APPLICATION_JSON) - public Response createEvent(Event newEvent) throws IOException{ - final String filename = "test-create-event.json"; - return null; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Country.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Country.java deleted file mode 100644 index 3f78e5d..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Country.java +++ /dev/null @@ -1,28 +0,0 @@ -package model; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public enum Country { - - UnitedStates, - England, - India, - Brazil, - Australia, - Japan, - China, - Portugal -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Event.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Event.java deleted file mode 100644 index 369b1ad..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Event.java +++ /dev/null @@ -1,137 +0,0 @@ -package model; - -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Date; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class Event { - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="GMT-5") - private Date date; - @JsonProperty - private Country winningCountry; - @JsonProperty - private Country losingCountry; - @JsonProperty - private int winningScore; - @JsonProperty - private int losingScore; - @JsonProperty - private EventType eventType; - @JsonProperty - private Country homeCountry; - @JsonProperty - private Country awayCountry; - - - public EventType getEventType() { - return eventType; - } - - public void setEventType(EventType eventType) { - this.eventType = eventType; - } - - public Country getHomeCountry() { - return homeCountry; - } - - public void setHomeCountry(Country homeCountry) { - this.homeCountry = homeCountry; - } - - public Country getAwayCountry() { - return awayCountry; - } - - public void setAwayCountry(Country awayCountry) { - this.awayCountry = awayCountry; - } - - public Date getDate() { - return date; - } - - public void setDate(Date date) { - this.date = date; - } - - public Country getLosingCountry() { - return losingCountry; - } - - public void setLosingCountry(Country losingCountry) { - this.losingCountry = losingCountry; - } - - public Country getWinningCountry() { - return winningCountry; - } - - public void setWinningCountry(Country winningCountry) { - this.winningCountry = winningCountry; - } - - public int getWinningScore() { - return winningScore; - } - - public void setWinningScore(int winningScore) { - this.winningScore = winningScore; - } - - public int getLosingScore() { - return losingScore; - } - - public void setLosingScore(int losingScore) { - this.losingScore = losingScore; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof Event)) return false; - - Event event = (Event) o; - - if (getWinningScore() != event.getWinningScore()) return false; - if (getLosingScore() != event.getLosingScore()) return false; - if (!getDate().equals(event.getDate())) return false; - if (getWinningCountry() != event.getWinningCountry()) return false; - if (getLosingCountry() != event.getLosingCountry()) return false; - if (getEventType() != event.getEventType()) return false; - if (getHomeCountry() != event.getHomeCountry()) return false; - return getAwayCountry() == event.getAwayCountry(); - - } - - @Override - public int hashCode() { - int result = getDate().hashCode(); - result = 31 * result + getWinningCountry().hashCode(); - result = 31 * result + getLosingCountry().hashCode(); - result = 31 * result + getWinningScore(); - result = 31 * result + getLosingScore(); - result = 31 * result + getEventType().hashCode(); - result = 31 * result + getHomeCountry().hashCode(); - result = 31 * result + getAwayCountry().hashCode(); - return result; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/EventType.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/EventType.java deleted file mode 100644 index 0de8c85..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/EventType.java +++ /dev/null @@ -1,22 +0,0 @@ -package model; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public enum EventType { - WaterPolo, - Baseball, - Curling -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Player.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Player.java deleted file mode 100644 index 6e22d1a..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Player.java +++ /dev/null @@ -1,70 +0,0 @@ -package model; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class Player { - - @JsonProperty - private String name; - - @JsonProperty - private Country country; - - public Player() { - } - - public Player(String name, Country country) { - this.name = name; - this.country = country; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Country getCountry() { - return country; - } - - public void setCountry(Country country) { - this.country = country; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof Player)) return false; - - Player player = (Player) o; - - if (!getName().equals(player.getName())) return false; - return getCountry() == player.getCountry(); - - } - - @Override - public int hashCode() { - int result = getName().hashCode(); - result = 31 * result + getCountry().hashCode(); - return result; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Team.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Team.java deleted file mode 100644 index 67379ef..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/model/Team.java +++ /dev/null @@ -1,64 +0,0 @@ -package model; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Set; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class Team { - - @JsonProperty - private String name; - - @JsonProperty - private Set players; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Set getPlayers() { - return players; - } - - public void setPlayers(Set players) { - this.players = players; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof Team)) return false; - - Team team = (Team) o; - - if (!getName().equals(team.getName())) return false; - return getPlayers().equals(team.getPlayers()); - - } - - @Override - public int hashCode() { - int result = getName().hashCode(); - result = 31 * result + getPlayers().hashCode(); - return result; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/server/StarterApp.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/server/StarterApp.java deleted file mode 100644 index 8da1636..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/server/StarterApp.java +++ /dev/null @@ -1,103 +0,0 @@ -package server; - -import examples.*; -import io.dropwizard.Application; -import io.dropwizard.Configuration; -import io.dropwizard.setup.Bootstrap; -import io.dropwizard.setup.Environment; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import solutions.Example10SolutionResource; -import solutions.Example11SolutionResource; -import solutions.Example2SolutionResource; -import solutions.Example3SolutionResource; -import solutions.Example4SolutionResource; -import solutions.Example5SolutionResource; -import solutions.Example6SolutionResource; -import solutions.Example7SolutionResource; -import solutions.Example8SolutionResource; -import solutions.Example9SolutionResource; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class StarterApp extends Application { - - /** - * - * General Instructions: - * - * This is a rough guide of how each exercise will go: - * 1) Read the prompt - * 2) Go to ResourcesTest.java and run the example test case, make sure that it fails - * - In some cases the test may not already be filled in for you, then you will have to write the test, - * - and see it fail - * 3) Implement the solution in Example<#>Resource.java - * 4) Go to ResourcesTest.java and run the test, make sure it passes - * 5) Uncomment the example resource in the 'run' method below - * 5) Restart the Server (if you get a "address-in-use bind" error, then you did not properly stop the server - * 6) Visit the URL to confirm it is working (for GET requests) - * 7) Check appropriate JSON file in "data" folder to make sure data was updated properly (for POST, PUT, DELETE) - * - * - */ - - private static final Logger LOGGER = LoggerFactory.getLogger(StarterApp.class); - - private static Example11SolutionResource restService = new Example11SolutionResource(); - - public StarterApp() { - } - - @Override - public void initialize(Bootstrap b) { - - } - - @Override - public void run(Configuration c, Environment e) throws Exception { - LOGGER.info("Registering REST resources"); - e.jersey().register(new Example1Resource()); -// e.jersey().register(new Example2Resource()); -// e.jersey().register(new Example3Resource()); -// e.jersey().register(new Example4Resource()); -// e.jersey().register(new Example5Resource()); -// e.jersey().register(new Example6Resource()); -// e.jersey().register(new Example7Resource()); -// e.jersey().register(new Example8Resource()); -// e.jersey().register(new Example9Resource()); -// e.jersey().register(new Example10Resource()); -// e.jersey().register(new Example11Resource()); -// e.jersey().register(new Example12Resource()); - LOGGER.info("Successfully started REST Service."); - } - - /** - * - * StarterApp Intellij Run Configuration: - * - * Program args: 'server' - * Working Directory: path to EngineeringEssentialsTraining - * - '...\EngineeringEssentials\EngineeringEssentialsTraining" - */ - public static void main(String[] args) throws Exception { - - StarterApp restServer = new StarterApp(); - restServer.run(args); - - System.out.println("Go to localhost:8080/hello/ok in your browser."); - } - -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example10SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example10SolutionResource.java deleted file mode 100644 index 2a433f2..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example10SolutionResource.java +++ /dev/null @@ -1,47 +0,0 @@ -package solutions; - -import model.Team; -import utility.FileHelper; - -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example10SolutionResource { - - @PUT - @Path("team") - @Consumes(MediaType.APPLICATION_JSON) - @Produces(MediaType.APPLICATION_JSON) - public Response setTeam(Team newTeam) throws IOException { - - FileHelper.writeTeamToFile(newTeam.getName().toLowerCase().concat("-team.json"), newTeam); - - return Response.ok().build(); - } - - @GET - @Path("team/{teamName}") - @Produces(MediaType.APPLICATION_JSON) - public Team getTeam(@PathParam("teamName") String teamName) throws IOException { - - return FileHelper.readTeamFromFile(teamName.toLowerCase().concat("-team.json")); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example11SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example11SolutionResource.java deleted file mode 100644 index 3892c5d..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example11SolutionResource.java +++ /dev/null @@ -1,73 +0,0 @@ -package solutions; - - -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example11SolutionResource { - private ObjectMapper mapper = new ObjectMapper(); - - - /** - * Example 11 Instructions: - *

- * Create a DELETE method called cancelEvent() that will update the events to remove a cancelled event based on the eventType, home country, and away country. - * The Event Cancelled was a Baseball game where China is the Home Country and Australia is the Away Country - * Save your changes in the test-delete-event.json - * Return either a 200 OK or a 500 Internal Server error if it fails to delete an event - * Return the list of cancelled events in the entity. - */ - - - @DELETE - @Path("cancel/{eventType}/home/{homeCountry}/away/{awayCountry}") - @Consumes(MediaType.APPLICATION_JSON) - @Produces(MediaType.APPLICATION_JSON) - public Response cancelEvent(@PathParam("eventType") String eventType, @PathParam("homeCountry") String home, @PathParam("awayCountry") String away) throws IOException { - final String filename = "remaining-events.json"; - List scheduledEvents = FileHelper.readAllEvents("events.json"); - List cancelled = new ArrayList<>(); - Response.ResponseBuilder response = Response.status(Response.Status.INTERNAL_SERVER_ERROR); - try { - for (Event event : scheduledEvents) { - if (event.getHomeCountry().name().equalsIgnoreCase(home) && - event.getAwayCountry().name().equalsIgnoreCase(away) && - event.getEventType().name().equalsIgnoreCase(eventType)) { - cancelled.add(event); - } - } - scheduledEvents.removeAll(cancelled); - FileHelper.writeEventsToFile(filename, scheduledEvents); - return Response.ok().entity(cancelled).build(); - - } catch (Exception e) { - System.out.println("Failed to cancel an event. " + e.getLocalizedMessage()); - } - return response.build(); - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example12SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example12SolutionResource.java deleted file mode 100644 index ef32ba6..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example12SolutionResource.java +++ /dev/null @@ -1,60 +0,0 @@ -package solutions; - -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -import static utility.FileHelper.DATEFORMAT; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example12SolutionResource { - - - - @GET - @Path("startDate/{startDate}/endDate/{endDate}") - @Produces(MediaType.APPLICATION_JSON) - public List getEventsInRange(@PathParam("startDate") String startDateStr, @PathParam("endDate") String endDateStr) throws IOException, ParseException { - - Date startDate = DATEFORMAT.parse(startDateStr); - Date endDate = DATEFORMAT.parse(endDateStr); - - List events = FileHelper.readAllEvents("events.json"); - - List eventsInRange = new ArrayList<>(); - for (Event event: events) { - if ((event.getDate().before(endDate) || event.getDate().equals(endDate)) - && (event.getDate().after(startDate) || event.getDate().equals(startDate))) { - eventsInRange.add(event); - } - } - return eventsInRange; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example2SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example2SolutionResource.java deleted file mode 100644 index b7ae697..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example2SolutionResource.java +++ /dev/null @@ -1,36 +0,0 @@ -package solutions; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example2SolutionResource { - - /** - * Example 2 Instructions: - * Modify the method below to return the String "Welcome to Engineering Essentials Services Training!" - */ - @GET - @Path("test") - @Produces(MediaType.APPLICATION_JSON) - public String helloWorld() { - return "Welcome to Engineering Essentials Services Training!"; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example3SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example3SolutionResource.java deleted file mode 100644 index d99ef3d..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example3SolutionResource.java +++ /dev/null @@ -1,44 +0,0 @@ -package solutions; - - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("response") -public class Example3SolutionResource { - - /** - * Example 3 Instructions: - * - * - */ - @GET - @Path("test/fixed") - @Produces(MediaType.APPLICATION_JSON) - public Response getResponse() throws IOException { - //TODO: Modify the Path "response" and uri of the getResponse() method to be "/response/test/fixed" - //TODO: Fix the response so that it returns a 200 OK instead of an internal server error. - // TODO:Return the Response with the String entity - String entity = "This site is now fixed."; - return Response.status(Response.Status.OK).entity(entity).build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example4SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example4SolutionResource.java deleted file mode 100644 index dcd8dc0..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example4SolutionResource.java +++ /dev/null @@ -1,39 +0,0 @@ -package solutions; - -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example4SolutionResource { - - @GET - @Path("sample") - @Produces(MediaType.APPLICATION_JSON) - public Response getSampleEvent() throws IOException { - - Event event = FileHelper.readSingleEvent("single-event.json"); - return Response.ok().entity(event).build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example5SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example5SolutionResource.java deleted file mode 100644 index d604564..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example5SolutionResource.java +++ /dev/null @@ -1,44 +0,0 @@ -package solutions; - - -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example5SolutionResource { - private ObjectMapper mapper = new ObjectMapper(); - - @GET - @Path("all") - @Produces(MediaType.APPLICATION_JSON) - public Response getAllEvents() throws IOException { - //TODO: Return the list of all of the events in the events.json file - List events = FileHelper.readAllEvents("events.json"); - return Response.ok(events).build(); - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example6SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example6SolutionResource.java deleted file mode 100644 index 657c95d..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example6SolutionResource.java +++ /dev/null @@ -1,50 +0,0 @@ -package solutions; - -import model.Country; -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import java.io.IOException; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example6SolutionResource { - - @GET - @Path("allParticipatingCountries") - @Produces(MediaType.APPLICATION_JSON) - public Set getAllParticipatingCountries() throws IOException { - - List events = FileHelper.readAllEvents("allParticipatingCountries.json"); - Set countries = new HashSet<>(); - - for (Event event: events) { - - countries.add(event.getAwayCountry()); - countries.add(event.getHomeCountry()); - } - - return countries; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example7SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example7SolutionResource.java deleted file mode 100644 index cb5239b..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example7SolutionResource.java +++ /dev/null @@ -1,96 +0,0 @@ -package solutions; - - -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example7SolutionResource { - - /** - * Example 7 Instructions: - *

- * Copy over solutions from Examples 5 and 6 into this resource to help you with this example - * Return the Events for the country in the Response, must be a 200 OK response if available, include the teams in the response - * If no teams were found, return a 404 Response.Status.NOT_FOUND, and a message stating the country was not found - * If not available or exception is thrown should return a 500 Response.Status.INTERNAL_SERVER_ERROR with an explanation of what went wrong - */ - -/* - @GET - @Path("all") - @Produces(MediaType.APPLICATION_JSON) - public List getAllEvents() throws IOException { - List events = FileHelper.readAllEvents("events.json"); - return events; - } - - - @GET - @Path("allParticipatingCountries") - @Produces(MediaType.APPLICATION_JSON) - public Set getAllParticipatingCountries() throws IOException { - - events = getAllEvents(); - Set countries = new HashSet<>(); - - for (Event event: events) { - - countries.add(event.getAwayCountry()); - countries.add(event.getHomeCountry()); - } - - return countries; - } - -*/ - @GET - @Path("country/{countryName}") - @Produces(MediaType.APPLICATION_JSON) - public Response getEventsForCountry(@PathParam("countryName") String countryName) throws IOException { - List eventsForCountry = new ArrayList<>(); - List events = FileHelper.readAllEvents("events.json"); - - for (Event event : events) { - if (event.getAwayCountry().name().equalsIgnoreCase(countryName) || event.getHomeCountry().name().equalsIgnoreCase(countryName)) { - eventsForCountry.add(event); - } - } - Response.ResponseBuilder response; - try { - if (eventsForCountry.size() > 0) { - return Response.ok(eventsForCountry).build(); - } else { - return Response.ok().entity("No matches found for Country with name " + countryName).build(); - } - } catch (Exception e) { - response = Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e); - } - return response.build(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example8SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example8SolutionResource.java deleted file mode 100644 index ac1edd8..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example8SolutionResource.java +++ /dev/null @@ -1,45 +0,0 @@ -package solutions; - -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import java.io.IOException; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example8SolutionResource { - - @GET - @Path("{country}/wins") - public int getWins(@PathParam("country") String country) throws IOException { - - List events = FileHelper.readAllEvents("events.json"); - - int numWins = 0; - for (Event event: events) { - if (event.getWinningCountry().name().equalsIgnoreCase(country)) { - ++numWins; - } - - } - return numWins; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example9SolutionResource.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example9SolutionResource.java deleted file mode 100644 index 18a408e..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/solutions/Example9SolutionResource.java +++ /dev/null @@ -1,83 +0,0 @@ -package solutions; - - -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Event; -import utility.FileHelper; - -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Path("events") -public class Example9SolutionResource { - - - - /** - * Example 9 Instructions: - * - * Part 1: Create a Sample Event and save it to the test-create-event.json file using the POST method createEvent - * Return either a 200 OK or a 500 Internal Server error if it fails to create the event - * URL to Visit: /events/createEvent - *

- * Part 2: Create a getNewEvent method that would read the file test-create-event.json and return the created event - * If the event is not found, return a 404 NOT_FOUND along with an explanation - * URL to Visit: /events/new - */ - - @POST - @Path("createEvent") - @Consumes(MediaType.APPLICATION_JSON) - public Response createEvent(Event newEvent) throws IOException { - String filename = "test-create-event.json"; - - List events; - try { - events = FileHelper.readAllEvents(filename); - events.add(newEvent); - } catch (IOException e) { - // File not found - events = new ArrayList<>(); - events.add(newEvent); - } - - try { - FileHelper.writeEventsToFile(filename, events); - return Response.ok().build(); - } catch (Exception e) { - System.out.println("Failed to create a new Event"); - return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e).build(); - } - } - - - @GET - @Path("new") - @Produces(MediaType.APPLICATION_JSON) - public Response getNewEvent() throws IOException { - //TODO: Make this method return an Event - String filename = "test-create-event.json"; - List allCreatedEvents = FileHelper.readAllEvents(filename); - return Response.ok(allCreatedEvents).build(); - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CreateEvents.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CreateEvents.java deleted file mode 100644 index cdf7525..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CreateEvents.java +++ /dev/null @@ -1,91 +0,0 @@ -package utility; - -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Country; -import model.Event; -import model.EventType; -import org.joda.time.LocalDate; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.List; -import java.util.concurrent.ThreadLocalRandom; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -//DO NOT MODIFY THIS CLASS -public class CreateEvents { - - private static final ObjectMapper mapper = new ObjectMapper(); - - public static void main(String args[]) throws IOException { - - List events = new ArrayList<>(); - for (int i = 0; i < 100; i++) { - - int eventIndex = ThreadLocalRandom.current().nextInt(0, EventType.values().length); - int homeCountryIndex = 0; - int awayCountryIndex = 0; - while (homeCountryIndex == awayCountryIndex) { - homeCountryIndex = ThreadLocalRandom.current().nextInt(0, Country.values().length); - awayCountryIndex = ThreadLocalRandom.current().nextInt(0, Country.values().length); - } - events.add(createEvent(EventType.values()[eventIndex], - Country.values()[homeCountryIndex], - Country.values()[awayCountryIndex])); - } - //DO NOT MODIFY FILENAME -// String filePath = CreateEvents.class.getClassLoader().getResources("resources").getPath(); - - mapper.writerWithDefaultPrettyPrinter() - .writeValue(new File("EngineeringEssentialsServices/src/main/resources/events.json"), events); - - } - - private static Event createEvent(EventType eventType, Country homeCountry, Country awayCountry) { - Event event = new Event(); - event.setAwayCountry(awayCountry); - event.setHomeCountry(homeCountry); - event.setEventType(eventType); - - int dayOfMonth = ThreadLocalRandom.current().nextInt(1, 28); - int month = 1; - int winner = ThreadLocalRandom.current().nextInt(0, 2); - int winningScore = ThreadLocalRandom.current().nextInt(10, 16); - int losingScore = ThreadLocalRandom.current().nextInt(0, 10); - event.setWinningScore(winningScore); - event.setLosingScore(losingScore); - - if (winner == 0) { - event.setWinningCountry(awayCountry); - event.setLosingCountry(homeCountry); - } else { - event.setWinningCountry(homeCountry); - event.setLosingCountry(awayCountry); - } - - - Date date = new GregorianCalendar(2018, month, dayOfMonth).getTime(); - event.setDate(date); - - return event; - } - -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CustomJsonMapper.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CustomJsonMapper.java deleted file mode 100644 index c919964..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/CustomJsonMapper.java +++ /dev/null @@ -1,47 +0,0 @@ -package utility; - -import com.fasterxml.jackson.annotation.JsonAutoDetect; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.PropertyAccessor; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; - -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -@Provider -@Produces(MediaType.APPLICATION_JSON) -public class CustomJsonMapper extends JacksonJaxbJsonProvider { - - private static ObjectMapper mapper = new ObjectMapper(); - - static { - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.setSerializationInclusion(JsonInclude.Include.ALWAYS); - mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); - mapper.enable(SerializationFeature.INDENT_OUTPUT); - } - - public CustomJsonMapper() { - super(); - setMapper(mapper); - } -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/FileHelper.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/FileHelper.java deleted file mode 100644 index 7c2323e..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/FileHelper.java +++ /dev/null @@ -1,87 +0,0 @@ -package utility; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import model.Event; -import model.Team; - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.text.SimpleDateFormat; -import java.util.List; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class FileHelper { - - public static final SimpleDateFormat DATEFORMAT = new SimpleDateFormat("yyyy-MM-dd"); - private static final ObjectMapper mapper = new ObjectMapper(); - - public static Event readSingleEvent(String fileName) throws IOException { - - InputStream inputStream = new FileInputStream(("data" + File.separatorChar + fileName)); -// InputStream resourceAsStream = FileHelper.class.getClassLoader().getResourceAsStream(fileName); - return mapper.readValue(inputStream, new TypeReference() {}); - } - - public static List readAllEvents(String fileName) throws IOException { - - InputStream inputStream = new FileInputStream(("data" + File.separatorChar + fileName)); -// InputStream resourceAsStream = FileHelper.class.getClassLoader().getResourceAsStream(fileName); - return mapper.readValue(inputStream, new TypeReference>() { - }); - } - - public static List readTeamsFromFile(String fileName) throws IOException { - - InputStream inputStream = new FileInputStream(("data" + File.separatorChar + fileName)); -// InputStream resourceAsStream = FileHelper.class.getClassLoader().getResourceAsStream(fileName); - return mapper.readValue(inputStream, new TypeReference>() {}); - } - - public static Team readTeamFromFile(String fileName) throws IOException { - - InputStream inputStream = new FileInputStream(("data" + File.separatorChar + fileName)); -// InputStream resourceAsStream = FileHelper.class.getClassLoader().getResourceAsStream(fileName); - return mapper.readValue(inputStream, new TypeReference() {}); - } - - public static void writeTeamsToFile(String fileName, List teams) throws IOException { - - mapper.writerWithDefaultPrettyPrinter() - .writeValue(new File("data", fileName), teams); - } - - public static void writeTeamToFile(String fileName, Team team) throws IOException { - mapper.writerWithDefaultPrettyPrinter() - .writeValue(new File("data", fileName), team); - } - - - public static void writeEventToFile(String fileName, Event event) throws IOException { - mapper.writerWithDefaultPrettyPrinter() - .writeValue(new File("data", fileName), event); - } - - public static void writeEventsToFile(String fileName, List scheduledEvents) throws IOException { - mapper.writerWithDefaultPrettyPrinter() - .writeValue(new File("data", fileName), scheduledEvents); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateDeserializer.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateDeserializer.java deleted file mode 100644 index c13002d..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateDeserializer.java +++ /dev/null @@ -1,45 +0,0 @@ -package utility; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.ObjectCodec; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonDeserializer; -import com.fasterxml.jackson.databind.JsonNode; -import org.joda.time.format.DateTimeFormat; -import org.joda.time.format.DateTimeFormatter; - -import java.io.IOException; -import java.time.LocalDate; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class LocalDateDeserializer extends JsonDeserializer { - @Override - public LocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { - - ObjectCodec objectCodec = jsonParser.getCodec(); - JsonNode node = objectCodec.readTree(jsonParser); - - final String dateString = node.get("date").asText(); - DateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern("yyyy-MM-dd"); -// final LocalDate dt = dateTimeFormatter.parseLocalDate(dateString); - - - return null; - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateSerializer.java b/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateSerializer.java deleted file mode 100644 index 9365180..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/java/utility/LocalDateSerializer.java +++ /dev/null @@ -1,40 +0,0 @@ -package utility; - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.databind.JsonSerializer; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import org.apache.commons.lang3.StringUtils; -import org.joda.time.LocalDate; - -import java.io.IOException; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class LocalDateSerializer extends JsonSerializer { - - - @Override - public void serialize(LocalDate localDate, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { - -// jsonGenerator.writeStartObject(); - - jsonGenerator.writeString(String.join("-", String.valueOf(localDate.getYear()), String.valueOf(localDate.getMonthOfYear()), - String.valueOf(localDate.getDayOfMonth()))); -// jsonGenerator.writeEndObject(); - } -} diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/allParticipatingCountries.json b/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/allParticipatingCountries.json deleted file mode 100644 index 2c71498..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/allParticipatingCountries.json +++ /dev/null @@ -1,109 +0,0 @@ -[ { - "date" : "2018-03-12", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Japan" -}, { - "date" : "2018-03-06", - "winningCountry" : "Australia", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-25", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-03-17", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-03-12", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-03-19", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-03-16", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-03-13", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-17", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-03-19", - "winningCountry" : "England", - "losingCountry" : "China", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "England" -}, { - "date" : "2018-03-19", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-03-25", - "winningCountry" : "China", - "losingCountry" : "England", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "China" -} ] \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/events.json b/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/events.json deleted file mode 100644 index 8d72933..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/events.json +++ /dev/null @@ -1,901 +0,0 @@ -[ { - "date" : "2018-02-09", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "India" -}, { - "date" : "2018-02-20", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-16", - "winningCountry" : "Portugal", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-14", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-02-15", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-11", - "winningCountry" : "UnitedStates", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-04", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-02", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 15, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-19", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-23", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "India" -}, { - "date" : "2018-02-13", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 11, - "losingScore" : 5, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-07", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 15, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "China", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-19", - "winningCountry" : "Portugal", - "losingCountry" : "China", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-10", - "winningCountry" : "UnitedStates", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-08", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-05", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-08", - "winningCountry" : "China", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-14", - "winningCountry" : "China", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "China" -}, { - "date" : "2018-02-07", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-27", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "China", - "awayCountry" : "India" -}, { - "date" : "2018-02-10", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-20", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-24", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-13", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "England" -}, { - "date" : "2018-02-25", - "winningCountry" : "India", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "China" -}, { - "date" : "2018-02-12", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-05", - "winningCountry" : "Brazil", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "India" -}, { - "date" : "2018-02-06", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-15", - "winningCountry" : "Australia", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-08", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-24", - "winningCountry" : "England", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "England" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 11, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-05", - "winningCountry" : "India", - "losingCountry" : "Australia", - "winningScore" : 14, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "India" -}, { - "date" : "2018-02-13", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "UnitedStates", - "losingCountry" : "England", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-26", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-19", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 3, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "England" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-17", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-27", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 15, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "India" -}, { - "date" : "2018-02-07", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-13", - "winningCountry" : "Portugal", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 2, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-03", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-11", - "winningCountry" : "UnitedStates", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-25", - "winningCountry" : "Portugal", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-04", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-27", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 10, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-16", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-24", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-14", - "winningCountry" : "Australia", - "losingCountry" : "China", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-20", - "winningCountry" : "Japan", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-05", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-17", - "winningCountry" : "UnitedStates", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-08", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 8, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-01", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-03", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 14, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-06", - "winningCountry" : "Australia", - "losingCountry" : "Japan", - "winningScore" : 10, - "losingScore" : 7, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-23", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-10", - "winningCountry" : "Australia", - "losingCountry" : "Portugal", - "winningScore" : 13, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-21", - "winningCountry" : "England", - "losingCountry" : "UnitedStates", - "winningScore" : 15, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-27", - "winningCountry" : "Brazil", - "losingCountry" : "India", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "India", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-09", - "winningCountry" : "England", - "losingCountry" : "Japan", - "winningScore" : 15, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "England" -}, { - "date" : "2018-02-21", - "winningCountry" : "Portugal", - "losingCountry" : "China", - "winningScore" : 11, - "losingScore" : 3, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-12", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 11, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-02", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 13, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "China", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-24", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "Curling", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-07", - "winningCountry" : "Portugal", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 2, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-25", - "winningCountry" : "England", - "losingCountry" : "China", - "winningScore" : 15, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "China", - "awayCountry" : "England" -}, { - "date" : "2018-02-20", - "winningCountry" : "Australia", - "losingCountry" : "China", - "winningScore" : 13, - "losingScore" : 7, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "China" -}, { - "date" : "2018-02-26", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 14, - "losingScore" : 9, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-13", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-08", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 11, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-06", - "winningCountry" : "England", - "losingCountry" : "Portugal", - "winningScore" : 14, - "losingScore" : 1, - "eventType" : "Curling", - "homeCountry" : "England", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-19", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-04", - "winningCountry" : "China", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "China" -}, { - "date" : "2018-02-17", - "winningCountry" : "Portugal", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 4, - "eventType" : "Baseball", - "homeCountry" : "Portugal", - "awayCountry" : "England" -}, { - "date" : "2018-02-18", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 11, - "losingScore" : 1, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-05", - "winningCountry" : "Brazil", - "losingCountry" : "Australia", - "winningScore" : 13, - "losingScore" : 0, - "eventType" : "Baseball", - "homeCountry" : "Australia", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-21", - "winningCountry" : "Japan", - "losingCountry" : "Australia", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "Curling", - "homeCountry" : "Australia", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-20", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 13, - "losingScore" : 6, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-20", - "winningCountry" : "UnitedStates", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "Curling", - "homeCountry" : "UnitedStates", - "awayCountry" : "England" -}, { - "date" : "2018-02-18", - "winningCountry" : "Portugal", - "losingCountry" : "Brazil", - "winningScore" : 10, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Brazil", - "awayCountry" : "Portugal" -}, { - "date" : "2018-02-18", - "winningCountry" : "India", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "India" -}, { - "date" : "2018-02-11", - "winningCountry" : "India", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 3, - "eventType" : "WaterPolo", - "homeCountry" : "Portugal", - "awayCountry" : "India" -}, { - "date" : "2018-02-04", - "winningCountry" : "Brazil", - "losingCountry" : "Portugal", - "winningScore" : 15, - "losingScore" : 1, - "eventType" : "Curling", - "homeCountry" : "Portugal", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-22", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 1, - "eventType" : "Baseball", - "homeCountry" : "UnitedStates", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-10", - "winningCountry" : "England", - "losingCountry" : "Brazil", - "winningScore" : 12, - "losingScore" : 6, - "eventType" : "Curling", - "homeCountry" : "Brazil", - "awayCountry" : "England" -}, { - "date" : "2018-02-26", - "winningCountry" : "China", - "losingCountry" : "UnitedStates", - "winningScore" : 12, - "losingScore" : 5, - "eventType" : "WaterPolo", - "homeCountry" : "UnitedStates", - "awayCountry" : "China" -}, { - "date" : "2018-02-04", - "winningCountry" : "India", - "losingCountry" : "Japan", - "winningScore" : 13, - "losingScore" : 7, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "India" -}, { - "date" : "2018-02-12", - "winningCountry" : "Japan", - "losingCountry" : "India", - "winningScore" : 10, - "losingScore" : 4, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Japan" -}, { - "date" : "2018-02-10", - "winningCountry" : "Australia", - "losingCountry" : "Brazil", - "winningScore" : 11, - "losingScore" : 6, - "eventType" : "Baseball", - "homeCountry" : "Brazil", - "awayCountry" : "Australia" -}, { - "date" : "2018-02-21", - "winningCountry" : "India", - "losingCountry" : "Brazil", - "winningScore" : 14, - "losingScore" : 2, - "eventType" : "WaterPolo", - "homeCountry" : "India", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-17", - "winningCountry" : "Australia", - "losingCountry" : "England", - "winningScore" : 12, - "losingScore" : 9, - "eventType" : "WaterPolo", - "homeCountry" : "Australia", - "awayCountry" : "England" -}, { - "date" : "2018-02-19", - "winningCountry" : "Brazil", - "losingCountry" : "Japan", - "winningScore" : 14, - "losingScore" : 8, - "eventType" : "WaterPolo", - "homeCountry" : "Japan", - "awayCountry" : "Brazil" -}, { - "date" : "2018-02-12", - "winningCountry" : "Japan", - "losingCountry" : "UnitedStates", - "winningScore" : 10, - "losingScore" : 7, - "eventType" : "Baseball", - "homeCountry" : "Japan", - "awayCountry" : "UnitedStates" -}, { - "date" : "2018-02-16", - "winningCountry" : "England", - "losingCountry" : "India", - "winningScore" : 13, - "losingScore" : 2, - "eventType" : "Baseball", - "homeCountry" : "India", - "awayCountry" : "England" -} ] \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/single-event.json b/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/single-event.json deleted file mode 100644 index fc7c0e0..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/main/resources/backup/single-event.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "eventType":"WaterPolo", - "homeCountry": "Portugal", - "awayCountry": "Australia", - "date": "2018-02-27", - "winningCountry": "Portugal", - "losingCountry": "Australia", - "winningScore": 22, - "losingScore": 4 -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTest.java b/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTest.java deleted file mode 100644 index c55c864..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTest.java +++ /dev/null @@ -1,216 +0,0 @@ -package resources; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import examples.*; -import model.*; -import org.glassfish.jersey.server.ResourceConfig; -import org.glassfish.jersey.test.JerseyTest; -import org.junit.Assert; -import org.junit.Test; -import utility.FileHelper; - -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.text.ParseException; -import java.util.*; - -import static model.Country.UnitedStates; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static utility.FileHelper.DATEFORMAT; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class ResourcesTest extends JerseyTest { - private static ObjectMapper mapper = new ObjectMapper(); - - - @Override - protected Application configure() { - return new ResourceConfig( - Example2Resource.class, - Example3Resource.class, - Example4Resource.class, - Example5Resource.class, - Example6Resource.class, - Example7Resource.class, - Example8Resource.class, - Example9Resource.class, - Example10Resource.class, - Example11Resource.class, - Example12Resource.class - ); - } - - @Test - public void testExample2() { - String response = target().path("events/test").request().get(String.class); - assertEquals("Welcome to Engineering Essentials Services Training!", response); - } - - @Test - public void testExample3() { - String entity = "This site is now fixed."; - Response expected = Response.ok().entity(entity).build(); - - Response response = target().path("response/test/fixed").request().get(); - String stringResponse = target().path("response/test/fixed").request().get(String.class); - assertEquals(expected.getStatus(), response.getStatus()); - assertEquals(expected.getEntity(), stringResponse); - } - - @Test - public void testExample4() throws ParseException { - Event event = new Event(); - - /** - * Use the setter methods to create an identical event to single-event.json - * and assert that they are equal - * - */ - - Date date = DATEFORMAT.parse("2018-02-27"); - event.setDate(date); - - Event response = target().path("events/sample").request().get(Event.class); - -// assertEquals(); - Assert.fail("Remove this line once you write the test"); - - } - - @Test - public void testExample5() throws IOException { - List events = FileHelper.readAllEvents("events.json"); - - Response response = target().path("events/all").request().get(); - List responseEvents = mapper.convertValue(response.readEntity(List.class), new TypeReference>() { - }); - - assertEquals(events.size(), responseEvents.size()); - assertEquals(events, responseEvents); - } - - @Test - public void testExample6() { - - // Add a test to make sure that all the participating countries are returned correctly - // The only country not participating is Portugal - Set checkParticipatingCountries = EnumSet.complementOf(EnumSet.of(Country.Portugal)); - - - Assert.fail("Remove this line once you write the test"); - } - - @Test - public void testExample7() { - - List china = target().path("/events/country/China").request().get(List.class); - List brazil = target().path("events/country/brazil").request().get(List.class); - List brazilUppercase = target().path("events/country/BraZil").request().get(List.class); - List us = target().path("events/country/UnitedStates").request().get(List.class); - String response = target().path("events/country/Canada").request().get(String.class); - - assertEquals(23, china.size()); - assertEquals(28, brazil.size()); - assertEquals(28, brazilUppercase.size()); - assertEquals(25, us.size()); - assertEquals(response, "No matches found for Country with name Canada"); - } - - @Test - public void testExample8() { - - int expNumWinsEngland = 15; - int expNumWinsUnitedStates = 8; - int expNumWinsChina = 15; - - // Fill in the Jersey get requests - int actualNumWinsEngland = 0; - int actualNumWinsUnitedStates = 0; - int actualNumWinsChina = 0; - - assertEquals(expNumWinsEngland, actualNumWinsEngland); - assertEquals(expNumWinsUnitedStates, actualNumWinsUnitedStates); - assertEquals(expNumWinsChina, actualNumWinsChina); - } - - @Test - public void testExample9() throws ParseException, IOException { - - Event event = new Event(); - event.setAwayCountry(Country.Japan); - event.setHomeCountry(UnitedStates); - event.setWinningCountry(UnitedStates); - event.setLosingCountry(Country.Japan); - event.setWinningScore(10); - event.setLosingScore(4); - event.setEventType(EventType.Baseball); - - Date date = DATEFORMAT.parse("2018-02-22"); - event.setDate(date); - - Response postEvent = target().path("events/createEvent").request().post(Entity.json(event)); - List getNewEvents = target().path("events/new").request().get(List.class); - - // To make sure that the event was created - assertEquals(1, getNewEvents.size()); - - target().path("events/createEvent").request().post(Entity.json(event)); - List getNewEvents2 = target().path("events/new").request().get(List.class); - - // To make sure that a new event was added, rather than overwriting the existing one, test not idempotent - assertTrue(getNewEvents2.size() >= 2); - assertEquals(postEvent.getStatus(), 200); - } - - @Test - public void testExample10() { - - // Add some players - Set players = new HashSet<>(); - - // Add players to the team and set a team name - Team team = new Team(); - - // Make sure to test doing the PUT operation twice, and make sure the result is the same both times - - Assert.fail("Remove this line once you write the test"); - } - - @Test - public void testExample11() throws ParseException, IOException { - - List allEvents = FileHelper.readAllEvents("events.json"); - - List cancelledEvents = target().path("events/cancel/Baseball/home/China/away/Australia").request().delete(List.class); - - assertTrue(cancelledEvents.size() < allEvents.size()); - assertEquals(1, cancelledEvents.size()); - } - - @Test - public void testExample12() { - - // Check that the number of events between Feb 09 2018 and Feb 12 2018 (inclusive) is 14 - - List eventsInRange = target().path("/events/startDate/2018-02-09/endDate/2018-02-12").request().get(List.class); - assertEquals(14, eventsInRange.size()); - } -} \ No newline at end of file diff --git a/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTestSolutions.java b/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTestSolutions.java deleted file mode 100644 index 549ebc8..0000000 --- a/techCurriculum/services/EngineeringEssentialsServices/src/test/java/resources/ResourcesTestSolutions.java +++ /dev/null @@ -1,222 +0,0 @@ -package resources; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import model.*; -import org.glassfish.jersey.server.ResourceConfig; -import org.glassfish.jersey.test.JerseyTest; -import org.junit.Test; -import solutions.*; -import utility.FileHelper; - -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.text.ParseException; -import java.util.*; - -import static model.Country.*; -import static org.junit.Assert.*; -import static utility.FileHelper.DATEFORMAT; - -/** - * Copyright 2018 Goldman Sachs. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class ResourcesTestSolutions extends JerseyTest { - private static ObjectMapper mapper = new ObjectMapper(); - - - @Override - protected Application configure() { - return new ResourceConfig( - Example2SolutionResource.class, - Example3SolutionResource.class, - Example4SolutionResource.class, - Example5SolutionResource.class, - Example6SolutionResource.class, - Example7SolutionResource.class, - Example8SolutionResource.class, - Example9SolutionResource.class, - Example10SolutionResource.class, - Example11SolutionResource.class, - Example12SolutionResource.class - ); - } - - @Test - public void testExample2() { - String response = target().path("events/test").request().get(String.class); - assertEquals("Welcome to Engineering Essentials Services Training!", response); - } - - @Test - public void testExample3() { - String entity = "This site is now fixed."; - Response expected = Response.ok().entity(entity).build(); - - Response response = target().path("response/test/fixed").request().get(); - String stringResponse = target().path("response/test/fixed").request().get(String.class); - assertEquals(expected.getStatus(), response.getStatus()); - assertEquals(expected.getEntity(), stringResponse); - } - - @Test - public void testExample4() throws ParseException { - Event event = new Event(); - event.setAwayCountry(Country.Australia); - event.setHomeCountry(Portugal); - event.setWinningCountry(Portugal); - event.setLosingCountry(Country.Australia); - event.setWinningScore(22); - event.setLosingScore(4); - event.setEventType(EventType.WaterPolo); - - Date date = DATEFORMAT.parse("2018-02-27"); - event.setDate(date); - - Event response = target().path("events/sample").request().get(Event.class); - assertEquals(event, response); - } - - @Test - public void testExample5() throws IOException { - List events = FileHelper.readAllEvents("events.json"); - - Response response = target().path("events/all").request().get(); - List responseEvents = mapper.convertValue(response.readEntity(List.class), new TypeReference>() { - }); - - assertEquals(events.size(), responseEvents.size()); - assertEquals(events, responseEvents); - } - - @Test - public void testExample6() { - - Set checkParticipatingCountries = EnumSet.complementOf(EnumSet.of(Country.Portugal)); - Set getParticipatingCountries = target().path("events/allParticipatingCountries").request().get(Set.class); - - assertEquals(checkParticipatingCountries.size(), getParticipatingCountries.size()); - assertFalse(getParticipatingCountries.contains(Portugal)); - - } - - @Test - public void testExample7() { - - List china = target().path("/events/country/China").request().get(List.class); - List brazil = target().path("events/country/brazil").request().get(List.class); - List brazilUppercase = target().path("events/country/BraZil").request().get(List.class); - List us = target().path("events/country/UnitedStates").request().get(List.class); - String response = target().path("events/country/Canada").request().get(String.class); - - assertEquals(23, china.size()); - assertEquals(28, brazil.size()); - assertEquals(28, brazilUppercase.size()); - assertEquals(25, us.size()); - assertEquals(response, "No matches found for Country with name Canada"); - } - - @Test - public void testExample8() { - - int expNumWinsEngland = 15; - int expNumWinsUnitedStates = 8; - int expNumWinsChina = 15; - - int actualNumWinsEngland = target().path("events/England/wins").request().get(int.class); - int actualNumWinsUnitedStates = target().path("events/UnitedStates/wins").request().get(int.class); - int actualNumWinsChina = target().path("events/China/wins").request().get(int.class); - - assertEquals(expNumWinsEngland, actualNumWinsEngland); - assertEquals(expNumWinsUnitedStates, actualNumWinsUnitedStates); - assertEquals(expNumWinsChina, actualNumWinsChina); - } - - @Test - public void testExample9() throws ParseException, IOException { - - Event event = new Event(); - event.setAwayCountry(Country.Japan); - event.setHomeCountry(UnitedStates); - event.setWinningCountry(UnitedStates); - event.setLosingCountry(Country.Japan); - event.setWinningScore(10); - event.setLosingScore(4); - event.setEventType(EventType.Baseball); - - Date date = DATEFORMAT.parse("2018-02-22"); - event.setDate(date); - - Response postEvent = target().path("events/createEvent").request().post(Entity.json(event)); - List getNewEvents = target().path("events/new").request().get(List.class); - - // To make sure that the event was created - assertEquals(1, getNewEvents.size()); - - target().path("events/createEvent").request().post(Entity.json(event)); - List getNewEvents2 = target().path("events/new").request().get(List.class); - - // To make sure that a new event was added, rather than overwriting the existing one - assertEquals(2, getNewEvents2.size()); - assertEquals(postEvent.getStatus(), 200); - - } - - @Test - public void testExample10() { - - Set players = new HashSet<>(); - players.add(new Player("Anna Conda", India)); - players.add(new Player("Linda Book", India)); - - Team ballers = new Team(); - ballers.setName("Smallers"); - ballers.setPlayers(players); - - Response putTeam = target().path("events/team").request().put(Entity.json(ballers)); - assertEquals(200, putTeam.getStatus()); - - Team getBallers = target().path("events/team/Smallers").request().get(Team.class); - - target().path("events/team").request().put(Entity.json(ballers)); - Team getBallers2 = target().path("events/team/Smallers").request().get(Team.class); - - assertEquals(ballers, getBallers); - assertEquals(getBallers, getBallers2); - } - - @Test - public void testExample11() throws ParseException, IOException { - List allEvents = FileHelper.readAllEvents("events.json"); - - List cancelledEvents = target().path("events/cancel/Baseball/home/China/away/Australia").request().delete(List.class); - - assertTrue(cancelledEvents.size() < allEvents.size()); - assertEquals(1, cancelledEvents.size()); - - } - - @Test - public void testExample12() { - - // Check that the number of events between Feb 09 2018 and Feb 12 2018 (inclusive) is 14 - - List eventsInRange = target().path("/events/startDate/2018-02-09/endDate/2018-02-12").request().get(List.class); - assertEquals(14, eventsInRange.size()); - } - -} \ No newline at end of file diff --git a/techCurriculum/services/pom.xml b/techCurriculum/services/pom.xml deleted file mode 100644 index 92c0302..0000000 --- a/techCurriculum/services/pom.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - 4.0.0 - - EngineeringEssentials - engineering-essentials - pom - 1.0-SNAPSHOT - - EngineeringEssentialsServices - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - - - - - - - - io.dropwizard - dropwizard-core - 1.1.0 - - - - - com.fasterxml.jackson.core - jackson-databind - 2.8.7 - - - - - junit - junit - 4.11 - test - - - - - org.glassfish.jersey.test-framework - jersey-test-framework-core - 2.22.1 - - - - org.glassfish.jersey.core - jersey-server - 2.22.1 - - - - org.glassfish.jersey.containers - jersey-container-servlet - 2.22.1 - - - - org.glassfish.jersey.test-framework.providers - jersey-test-framework-provider-grizzly2 - 2.22.1 - - - - \ No newline at end of file diff --git a/techCurriculum/ui/LICENSE b/techCurriculum/ui/LICENSE deleted file mode 100644 index c0ee812..0000000 --- a/techCurriculum/ui/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/techCurriculum/ui/extension-work.txt b/techCurriculum/ui/extension-work.txt deleted file mode 100644 index d3b9789..0000000 --- a/techCurriculum/ui/extension-work.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright 2019 Goldman Sachs. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -Extra features you can add to the Cards project... -* "Favorite" Cards: Add a star icon on all cards that allows you to click the star to "favorite" the card -* "Reply-to" Cards: Add a reply icon on all cards that, when clicked, opens a different form for responding -* More libraries: Think up some features for the app and use open source third party libraries from GitHub to implement them - - -Further topics to research... -* Fetch, Axios, jQuery -- figure out how to use at least one of these to make AJAX HTTP requests! You'll need to do this for your case study. -* React router -- can use this to add several pages to your application -* React lifecycle -- learn more about React's under the hood "magic" and places where you can inject additional logic -* Redux -- popular central datastore architecture, more useful for larger projects -* Boilerplate -- alternatives to create-react-app that you'll probably consider if you ever make your own React app diff --git a/techCurriculum/ui/goals.txt b/techCurriculum/ui/goals.txt deleted file mode 100644 index ddc72f8..0000000 --- a/techCurriculum/ui/goals.txt +++ /dev/null @@ -1,37 +0,0 @@ -Copyright 2019 Goldman Sachs. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -1.1 Display the title "Cards" as an

and a sub-title "Share your ideas" as an

as a single React element by using JSX. -2.1 Move your title and sub-title into a new component named Title. -2.2 Compose your Title component in the App component. -2.3 Only render a single component App from index.js. -2.4 Create a new component named "User" to display a user icon and the name "John Smith" underneath. -2.5 Create a new component named "Message" to display the text "React is so cool!" -2.6 Create a new component named "Card" composed of the other components you previously created. -2.7 Render your Card component into the DOM. -3.1 Pass in "John Smith" into your User component as a prop. -3.2 Pass in "React is so cool!" into your Message component as a prop. -3.3 Create multiple "cards" using your single card component and pass in different data to each via props. -4.1 Refactor Cards to be stored in the state of App.js. -4.2 Add a form skeleton for inputting new Cards a new file called CardForm.js. -4.3 Add a submit button that performs an action on click. -4.4 Implement text input (with value setting, with state) in a new file called TextInput.js. -4.5 Compose CardForm with App as the parent. -4.6 Make text inputs editable (with onChange handler). -4.7 Allow text to be accessible in CardForm state so we can submit it. -4.8 Propogate form submissions to the App state. -5.1 Add a react-select in CardForm to allow selection of multiple tags with your card (without storing in state yet) -5.2 Store the selection in CardForm's state! -5.3 Show tags in your Card component when they've been submitted. -6.1 Add a react-datepicker in CardForm to allow datestamp. -6.2 Get it to show up in new submissions. -7.1 Create a line chart that displays average number of posts per month for both John and Jane using the provided JSON data. \ No newline at end of file diff --git a/techCurriculum/ui/setup.txt b/techCurriculum/ui/setup.txt deleted file mode 100644 index 6c6b760..0000000 --- a/techCurriculum/ui/setup.txt +++ /dev/null @@ -1,35 +0,0 @@ -Copyright 2019 Goldman Sachs. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - - -# Prerequisites - -- IDE e.g. Sublime Text, Visual Studio Code -- Node (v10.x and up should all be fine) -- npm (v6.x) -- git (v2.x) -- clone the goldmansachs/EngineeringEssentials GitHub repository - -# Environment Setup - -- We will assume you have the repository in the root of a drive, e.g. H:\ -- File structure will look like: H:\EngineeringEssentials\techCurriculum\ui\starter_code\cards-app\... -- Run the following command to get set up with the boiler plate code - - > H:\EngineeringEssentials\techCurriculum\ui\starter_code\cards-app>npm install - * Installs the initial dependencies for this project (mainly vanilla React libraries) - -# Test your setup - - > H:\EngineeringEssentials\techCurriculum\ui\starter_code\cards-app>npm start - - You should see a barebones page that says "Hello World" \ No newline at end of file diff --git a/techCurriculum/ui/solutions/1.1/1.1.PNG b/techCurriculum/ui/solutions/1.1/1.1.PNG deleted file mode 100644 index 518a558..0000000 Binary files a/techCurriculum/ui/solutions/1.1/1.1.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/1.1/src/App.js b/techCurriculum/ui/solutions/1.1/src/App.js deleted file mode 100644 index 6440e4b..0000000 --- a/techCurriculum/ui/solutions/1.1/src/App.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const App = () => { - return ( -
-

Hello World 2

-
- ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/1.1/src/index.js b/techCurriculum/ui/solutions/1.1/src/index.js deleted file mode 100644 index 35e9019..0000000 --- a/techCurriculum/ui/solutions/1.1/src/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import './stylesheet.css'; - -const title = ( -
-

Cards

-

Share your ideas

-
-); - -ReactDOM.render( - title, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.1/src/App.js b/techCurriculum/ui/solutions/2.1/src/App.js deleted file mode 100644 index 6440e4b..0000000 --- a/techCurriculum/ui/solutions/2.1/src/App.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const App = () => { - return ( -
-

Hello World 2

-
- ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.1/src/components/Title.js b/techCurriculum/ui/solutions/2.1/src/components/Title.js deleted file mode 100644 index c8ac8d5..0000000 --- a/techCurriculum/ui/solutions/2.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -Title = () => { - return ( -
-

Cards

-

Share your ideas

-
- ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.1/src/index.js b/techCurriculum/ui/solutions/2.1/src/index.js deleted file mode 100644 index 35e9019..0000000 --- a/techCurriculum/ui/solutions/2.1/src/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import './stylesheet.css'; - -const title = ( -
-

Cards

-

Share your ideas

-
-); - -ReactDOM.render( - title, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.2/src/App.js b/techCurriculum/ui/solutions/2.2/src/App.js deleted file mode 100644 index 82df92d..0000000 --- a/techCurriculum/ui/solutions/2.2/src/App.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; - -const App = () => { - return ( -
- - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.2/src/components/Title.js b/techCurriculum/ui/solutions/2.2/src/components/Title.js deleted file mode 100644 index c8ac8d5..0000000 --- a/techCurriculum/ui/solutions/2.2/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.2/src/index.js b/techCurriculum/ui/solutions/2.2/src/index.js deleted file mode 100644 index 35e9019..0000000 --- a/techCurriculum/ui/solutions/2.2/src/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import './stylesheet.css'; - -const title = ( - <div> - <h1>Cards</h1> - <h3>Share your ideas</h3> - </div> -); - -ReactDOM.render( - title, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.3/src/App.js b/techCurriculum/ui/solutions/2.3/src/App.js deleted file mode 100644 index 82df92d..0000000 --- a/techCurriculum/ui/solutions/2.3/src/App.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; - -const App = () => { - return ( - <div> - <Title /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.3/src/components/Title.js b/techCurriculum/ui/solutions/2.3/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/2.3/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.3/src/index.js b/techCurriculum/ui/solutions/2.3/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/2.3/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.4/src/App.js b/techCurriculum/ui/solutions/2.4/src/App.js deleted file mode 100644 index 82df92d..0000000 --- a/techCurriculum/ui/solutions/2.4/src/App.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; - -const App = () => { - return ( - <div> - <Title /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.4/src/components/Title.js b/techCurriculum/ui/solutions/2.4/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/2.4/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.4/src/components/User.js b/techCurriculum/ui/solutions/2.4/src/components/User.js deleted file mode 100644 index 14506ef..0000000 --- a/techCurriculum/ui/solutions/2.4/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = () => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>John Smith</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/2.4/src/index.js b/techCurriculum/ui/solutions/2.4/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/2.4/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.5/src/App.js b/techCurriculum/ui/solutions/2.5/src/App.js deleted file mode 100644 index 82df92d..0000000 --- a/techCurriculum/ui/solutions/2.5/src/App.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; - -const App = () => { - return ( - <div> - <Title /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.5/src/components/Message.js b/techCurriculum/ui/solutions/2.5/src/components/Message.js deleted file mode 100644 index 09d7c91..0000000 --- a/techCurriculum/ui/solutions/2.5/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = () => { - return ( - <div className='message-text'> - <p>React is so cool!</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/2.5/src/components/Title.js b/techCurriculum/ui/solutions/2.5/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/2.5/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.5/src/components/User.js b/techCurriculum/ui/solutions/2.5/src/components/User.js deleted file mode 100644 index 14506ef..0000000 --- a/techCurriculum/ui/solutions/2.5/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = () => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>John Smith</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/2.5/src/index.js b/techCurriculum/ui/solutions/2.5/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/2.5/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.6/src/App.js b/techCurriculum/ui/solutions/2.6/src/App.js deleted file mode 100644 index 82df92d..0000000 --- a/techCurriculum/ui/solutions/2.6/src/App.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; - -const App = () => { - return ( - <div> - <Title /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.6/src/components/Card.js b/techCurriculum/ui/solutions/2.6/src/components/Card.js deleted file mode 100644 index 6492916..0000000 --- a/techCurriculum/ui/solutions/2.6/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = () => { - return ( - <div className='card'> - <User /> - <div className='card-main'> - <Message /> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/2.6/src/components/Message.js b/techCurriculum/ui/solutions/2.6/src/components/Message.js deleted file mode 100644 index 09d7c91..0000000 --- a/techCurriculum/ui/solutions/2.6/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = () => { - return ( - <div className='message-text'> - <p>React is so cool!</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/2.6/src/components/Title.js b/techCurriculum/ui/solutions/2.6/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/2.6/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.6/src/components/User.js b/techCurriculum/ui/solutions/2.6/src/components/User.js deleted file mode 100644 index 14506ef..0000000 --- a/techCurriculum/ui/solutions/2.6/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = () => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>John Smith</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/2.6/src/index.js b/techCurriculum/ui/solutions/2.6/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/2.6/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/2.7/2.7.PNG b/techCurriculum/ui/solutions/2.7/2.7.PNG deleted file mode 100644 index b8526ca..0000000 Binary files a/techCurriculum/ui/solutions/2.7/2.7.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/2.7/src/App.js b/techCurriculum/ui/solutions/2.7/src/App.js deleted file mode 100644 index f9e1710..0000000 --- a/techCurriculum/ui/solutions/2.7/src/App.js +++ /dev/null @@ -1,30 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from './node_modules/react'; -import Title from './components/Title'; -import Card from './components/Card'; - -const App = () => { - return ( - <div> - <Title /> - <Card /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/2.7/src/components/Card.js b/techCurriculum/ui/solutions/2.7/src/components/Card.js deleted file mode 100644 index 2e53ef0..0000000 --- a/techCurriculum/ui/solutions/2.7/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from './node_modules/react'; -import User from './User'; -import Message from './Message'; - -const Card = () => { - return ( - <div className='card'> - <User /> - <div className='card-main'> - <Message /> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/2.7/src/components/Message.js b/techCurriculum/ui/solutions/2.7/src/components/Message.js deleted file mode 100644 index 1ba8049..0000000 --- a/techCurriculum/ui/solutions/2.7/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from './node_modules/react'; - -const Message = () => { - return ( - <div className='message-text'> - <p>React is so cool!</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/2.7/src/components/Title.js b/techCurriculum/ui/solutions/2.7/src/components/Title.js deleted file mode 100644 index 0a14124..0000000 --- a/techCurriculum/ui/solutions/2.7/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from './node_modules/react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/2.7/src/components/User.js b/techCurriculum/ui/solutions/2.7/src/components/User.js deleted file mode 100644 index b9bb5ad..0000000 --- a/techCurriculum/ui/solutions/2.7/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from './node_modules/react'; - -const User = () => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>John Smith</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/2.7/src/index.js b/techCurriculum/ui/solutions/2.7/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/2.7/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/3.1/src/App.js b/techCurriculum/ui/solutions/3.1/src/App.js deleted file mode 100644 index c78f290..0000000 --- a/techCurriculum/ui/solutions/3.1/src/App.js +++ /dev/null @@ -1,30 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -const App = () => { - return ( - <div> - <Title /> - <Card /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/3.1/src/components/Card.js b/techCurriculum/ui/solutions/3.1/src/components/Card.js deleted file mode 100644 index 6544124..0000000 --- a/techCurriculum/ui/solutions/3.1/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = () => { - return ( - <div className='card'> - <User name='John Smith'/> - <div className='card-main'> - <Message /> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/3.1/src/components/Message.js b/techCurriculum/ui/solutions/3.1/src/components/Message.js deleted file mode 100644 index 09d7c91..0000000 --- a/techCurriculum/ui/solutions/3.1/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = () => { - return ( - <div className='message-text'> - <p>React is so cool!</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/3.1/src/components/Title.js b/techCurriculum/ui/solutions/3.1/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/3.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/3.1/src/components/User.js b/techCurriculum/ui/solutions/3.1/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/3.1/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/3.1/src/index.js b/techCurriculum/ui/solutions/3.1/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/3.1/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/3.2/src/App.js b/techCurriculum/ui/solutions/3.2/src/App.js deleted file mode 100644 index c78f290..0000000 --- a/techCurriculum/ui/solutions/3.2/src/App.js +++ /dev/null @@ -1,30 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -const App = () => { - return ( - <div> - <Title /> - <Card /> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/3.2/src/components/Card.js b/techCurriculum/ui/solutions/3.2/src/components/Card.js deleted file mode 100644 index 581e019..0000000 --- a/techCurriculum/ui/solutions/3.2/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = () => { - return ( - <div className='card'> - <User name='John Smith'/> - <div className='card-main'> - <Message text='React is so cool!'/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/3.2/src/components/Message.js b/techCurriculum/ui/solutions/3.2/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/3.2/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/3.2/src/components/Title.js b/techCurriculum/ui/solutions/3.2/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/3.2/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/3.2/src/components/User.js b/techCurriculum/ui/solutions/3.2/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/3.2/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/3.2/src/index.js b/techCurriculum/ui/solutions/3.2/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/3.2/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/3.3/3.3.PNG b/techCurriculum/ui/solutions/3.3/3.3.PNG deleted file mode 100644 index 3ffc783..0000000 Binary files a/techCurriculum/ui/solutions/3.3/3.3.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/3.3/src/App.js b/techCurriculum/ui/solutions/3.3/src/App.js deleted file mode 100644 index 638b592..0000000 --- a/techCurriculum/ui/solutions/3.3/src/App.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -const App = () => { - return ( - <div> - <Title /> - <Card author='John Smith' text='React is so cool!'/> - <Card author='Jane Doe' text='I use React for all my projects!'/> - </div> - ); -} - -export default App; diff --git a/techCurriculum/ui/solutions/3.3/src/components/Card.js b/techCurriculum/ui/solutions/3.3/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/3.3/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/3.3/src/components/Message.js b/techCurriculum/ui/solutions/3.3/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/3.3/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/3.3/src/components/Title.js b/techCurriculum/ui/solutions/3.3/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/3.3/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/3.3/src/components/User.js b/techCurriculum/ui/solutions/3.3/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/3.3/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/3.3/src/index.js b/techCurriculum/ui/solutions/3.3/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/3.3/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.1/src/App.js b/techCurriculum/ui/solutions/4.1/src/App.js deleted file mode 100644 index 5167c2a..0000000 --- a/techCurriculum/ui/solutions/4.1/src/App.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div> - <Title /> - { cards } - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.1/src/components/Card.js b/techCurriculum/ui/solutions/4.1/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.1/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.1/src/components/Message.js b/techCurriculum/ui/solutions/4.1/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.1/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.1/src/components/Title.js b/techCurriculum/ui/solutions/4.1/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.1/src/components/User.js b/techCurriculum/ui/solutions/4.1/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.1/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.1/src/index.js b/techCurriculum/ui/solutions/4.1/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.1/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.2/src/App.js b/techCurriculum/ui/solutions/4.2/src/App.js deleted file mode 100644 index 5167c2a..0000000 --- a/techCurriculum/ui/solutions/4.2/src/App.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div> - <Title /> - { cards } - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.2/src/components/Card.js b/techCurriculum/ui/solutions/4.2/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.2/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.2/src/components/CardForm.js b/techCurriculum/ui/solutions/4.2/src/components/CardForm.js deleted file mode 100644 index 8ab85c6..0000000 --- a/techCurriculum/ui/solutions/4.2/src/components/CardForm.js +++ /dev/null @@ -1,32 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username'/> - <TextInput name='message' label='Message'/> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.2/src/components/Message.js b/techCurriculum/ui/solutions/4.2/src/components/Message.js deleted file mode 100644 index 41e5ad3..0000000 --- a/techCurriculum/ui/solutions/4.2/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = () => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.2/src/components/Title.js b/techCurriculum/ui/solutions/4.2/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.2/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.2/src/components/User.js b/techCurriculum/ui/solutions/4.2/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.2/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.2/src/index.js b/techCurriculum/ui/solutions/4.2/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.2/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.3/src/App.js b/techCurriculum/ui/solutions/4.3/src/App.js deleted file mode 100644 index 5167c2a..0000000 --- a/techCurriculum/ui/solutions/4.3/src/App.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div> - <Title /> - { cards } - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.3/src/components/Card.js b/techCurriculum/ui/solutions/4.3/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.3/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.3/src/components/CardForm.js b/techCurriculum/ui/solutions/4.3/src/components/CardForm.js deleted file mode 100644 index 0bf1561..0000000 --- a/techCurriculum/ui/solutions/4.3/src/components/CardForm.js +++ /dev/null @@ -1,41 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - constructor(props) { - super(props); - } - - handleSubmit = (event) => { - - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' /> - <TextInput name='message' label='Message' /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.3/src/components/Message.js b/techCurriculum/ui/solutions/4.3/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.3/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.3/src/components/Title.js b/techCurriculum/ui/solutions/4.3/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.3/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.3/src/components/User.js b/techCurriculum/ui/solutions/4.3/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.3/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.3/src/index.js b/techCurriculum/ui/solutions/4.3/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.3/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.4/src/App.js b/techCurriculum/ui/solutions/4.4/src/App.js deleted file mode 100644 index 5167c2a..0000000 --- a/techCurriculum/ui/solutions/4.4/src/App.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div> - <Title /> - { cards } - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.4/src/components/Card.js b/techCurriculum/ui/solutions/4.4/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.4/src/components/CardForm.js b/techCurriculum/ui/solutions/4.4/src/components/CardForm.js deleted file mode 100644 index 0bf1561..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/CardForm.js +++ /dev/null @@ -1,41 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - constructor(props) { - super(props); - } - - handleSubmit = (event) => { - - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' /> - <TextInput name='message' label='Message' /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.4/src/components/Message.js b/techCurriculum/ui/solutions/4.4/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.4/src/components/TextInput.js b/techCurriculum/ui/solutions/4.4/src/components/TextInput.js deleted file mode 100644 index ca438f4..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/TextInput.js +++ /dev/null @@ -1,35 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - constructor(props) { - super(props); - this.state = { value: '' }; - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.state.value} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/4.4/src/components/Title.js b/techCurriculum/ui/solutions/4.4/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.4/src/components/User.js b/techCurriculum/ui/solutions/4.4/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.4/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.4/src/index.js b/techCurriculum/ui/solutions/4.4/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.4/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.5/4.5.PNG b/techCurriculum/ui/solutions/4.5/4.5.PNG deleted file mode 100644 index 558b6e8..0000000 Binary files a/techCurriculum/ui/solutions/4.5/4.5.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/4.5/src/App.js b/techCurriculum/ui/solutions/4.5/src/App.js deleted file mode 100644 index 25b11b8..0000000 --- a/techCurriculum/ui/solutions/4.5/src/App.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = () => { - - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.5/src/components/Card.js b/techCurriculum/ui/solutions/4.5/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.5/src/components/CardForm.js b/techCurriculum/ui/solutions/4.5/src/components/CardForm.js deleted file mode 100644 index ac1063c..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/CardForm.js +++ /dev/null @@ -1,38 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - - handleSubmit = (event) => { - - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' /> - <TextInput name='message' label='Message' /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.5/src/components/Message.js b/techCurriculum/ui/solutions/4.5/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.5/src/components/TextInput.js b/techCurriculum/ui/solutions/4.5/src/components/TextInput.js deleted file mode 100644 index ca438f4..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/TextInput.js +++ /dev/null @@ -1,35 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - constructor(props) { - super(props); - this.state = { value: '' }; - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.state.value} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/4.5/src/components/Title.js b/techCurriculum/ui/solutions/4.5/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.5/src/components/User.js b/techCurriculum/ui/solutions/4.5/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.5/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.5/src/index.js b/techCurriculum/ui/solutions/4.5/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.5/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.6/src/App.js b/techCurriculum/ui/solutions/4.6/src/App.js deleted file mode 100644 index 25b11b8..0000000 --- a/techCurriculum/ui/solutions/4.6/src/App.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = () => { - - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.6/src/components/Card.js b/techCurriculum/ui/solutions/4.6/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.6/src/components/CardForm.js b/techCurriculum/ui/solutions/4.6/src/components/CardForm.js deleted file mode 100644 index 0bf1561..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/CardForm.js +++ /dev/null @@ -1,41 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - constructor(props) { - super(props); - } - - handleSubmit = (event) => { - - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' /> - <TextInput name='message' label='Message' /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.6/src/components/Message.js b/techCurriculum/ui/solutions/4.6/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.6/src/components/TextInput.js b/techCurriculum/ui/solutions/4.6/src/components/TextInput.js deleted file mode 100644 index 8eec2d5..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/TextInput.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - constructor(props) { - super(props); - this.state = { value: '' }; - } - - handleChange = (event) => { - const value = event.target.value; - this.setState({value: value}); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.state.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/4.6/src/components/Title.js b/techCurriculum/ui/solutions/4.6/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.6/src/components/User.js b/techCurriculum/ui/solutions/4.6/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.6/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.6/src/index.js b/techCurriculum/ui/solutions/4.6/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.6/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.7/src/App.js b/techCurriculum/ui/solutions/4.7/src/App.js deleted file mode 100644 index 25b11b8..0000000 --- a/techCurriculum/ui/solutions/4.7/src/App.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = () => { - - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.7/src/components/Card.js b/techCurriculum/ui/solutions/4.7/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.7/src/components/CardForm.js b/techCurriculum/ui/solutions/4.7/src/components/CardForm.js deleted file mode 100644 index dc21fe5..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/CardForm.js +++ /dev/null @@ -1,50 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: ''}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.7/src/components/Message.js b/techCurriculum/ui/solutions/4.7/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.7/src/components/TextInput.js b/techCurriculum/ui/solutions/4.7/src/components/TextInput.js deleted file mode 100644 index 0a8e32d..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/TextInput.js +++ /dev/null @@ -1,39 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - constructor(props) { - super(props); - } - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/4.7/src/components/Title.js b/techCurriculum/ui/solutions/4.7/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.7/src/components/User.js b/techCurriculum/ui/solutions/4.7/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.7/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.7/src/index.js b/techCurriculum/ui/solutions/4.7/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.7/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/4.8/4.8.PNG b/techCurriculum/ui/solutions/4.8/4.8.PNG deleted file mode 100644 index 2b6d90e..0000000 Binary files a/techCurriculum/ui/solutions/4.8/4.8.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/4.8/src/App.js b/techCurriculum/ui/solutions/4.8/src/App.js deleted file mode 100644 index 823b3c3..0000000 --- a/techCurriculum/ui/solutions/4.8/src/App.js +++ /dev/null @@ -1,64 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = (author, message) => { - const newCard = {author: author, text: message}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/4.8/src/components/Card.js b/techCurriculum/ui/solutions/4.8/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/4.8/src/components/CardForm.js b/techCurriculum/ui/solutions/4.8/src/components/CardForm.js deleted file mode 100644 index d6498d7..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/CardForm.js +++ /dev/null @@ -1,51 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: ''}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message); - } - - render() { - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/4.8/src/components/Message.js b/techCurriculum/ui/solutions/4.8/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/4.8/src/components/TextInput.js b/techCurriculum/ui/solutions/4.8/src/components/TextInput.js deleted file mode 100644 index e779a1c..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/4.8/src/components/Title.js b/techCurriculum/ui/solutions/4.8/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/4.8/src/components/User.js b/techCurriculum/ui/solutions/4.8/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/4.8/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/4.8/src/index.js b/techCurriculum/ui/solutions/4.8/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/4.8/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/5.1/package.json b/techCurriculum/ui/solutions/5.1/package.json deleted file mode 100644 index 509892d..0000000 --- a/techCurriculum/ui/solutions/5.1/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.6.3", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-select": "^2.4.3" - }, - "devDependencies": { - "react-scripts": "3.0.1" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/5.1/src/App.js b/techCurriculum/ui/solutions/5.1/src/App.js deleted file mode 100644 index 823b3c3..0000000 --- a/techCurriculum/ui/solutions/5.1/src/App.js +++ /dev/null @@ -1,64 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = (author, message) => { - const newCard = {author: author, text: message}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/5.1/src/components/Card.js b/techCurriculum/ui/solutions/5.1/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/5.1/src/components/CardForm.js b/techCurriculum/ui/solutions/5.1/src/components/CardForm.js deleted file mode 100644 index a6cf5ee..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/CardForm.js +++ /dev/null @@ -1,57 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: ''}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti/> - <br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/5.1/src/components/Message.js b/techCurriculum/ui/solutions/5.1/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/5.1/src/components/TextInput.js b/techCurriculum/ui/solutions/5.1/src/components/TextInput.js deleted file mode 100644 index 3e08499..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/5.1/src/components/Title.js b/techCurriculum/ui/solutions/5.1/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/5.1/src/components/User.js b/techCurriculum/ui/solutions/5.1/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/5.1/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/5.1/src/index.js b/techCurriculum/ui/solutions/5.1/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/5.1/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/5.2/package.json b/techCurriculum/ui/solutions/5.2/package.json deleted file mode 100644 index 509892d..0000000 --- a/techCurriculum/ui/solutions/5.2/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.6.3", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-select": "^2.4.3" - }, - "devDependencies": { - "react-scripts": "3.0.1" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/5.2/src/App.js b/techCurriculum/ui/solutions/5.2/src/App.js deleted file mode 100644 index 823b3c3..0000000 --- a/techCurriculum/ui/solutions/5.2/src/App.js +++ /dev/null @@ -1,64 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!' - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!' - } - ] - }; - } - - handleSubmit = (author, message) => { - const newCard = {author: author, text: message}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/5.2/src/components/Card.js b/techCurriculum/ui/solutions/5.2/src/components/Card.js deleted file mode 100644 index 3f26af2..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/Card.js +++ /dev/null @@ -1,31 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - </div> - ); -} -export default Card; diff --git a/techCurriculum/ui/solutions/5.2/src/components/CardForm.js b/techCurriculum/ui/solutions/5.2/src/components/CardForm.js deleted file mode 100644 index 373f421..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/CardForm.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: '', tags: []}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message); - } - - handleTagsChange = (tagList) => { - this.setState({tags: tagList}); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti value={this.state.tags} onChange={this.handleTagsChange}/> - <br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/5.2/src/components/Message.js b/techCurriculum/ui/solutions/5.2/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/5.2/src/components/TextInput.js b/techCurriculum/ui/solutions/5.2/src/components/TextInput.js deleted file mode 100644 index 3e08499..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/5.2/src/components/Title.js b/techCurriculum/ui/solutions/5.2/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/5.2/src/components/User.js b/techCurriculum/ui/solutions/5.2/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/5.2/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/5.2/src/index.js b/techCurriculum/ui/solutions/5.2/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/5.2/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/5.3/5.3.PNG b/techCurriculum/ui/solutions/5.3/5.3.PNG deleted file mode 100644 index b8d7881..0000000 Binary files a/techCurriculum/ui/solutions/5.3/5.3.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/5.3/package.json b/techCurriculum/ui/solutions/5.3/package.json deleted file mode 100644 index 509892d..0000000 --- a/techCurriculum/ui/solutions/5.3/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.6.3", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-select": "^2.4.3" - }, - "devDependencies": { - "react-scripts": "3.0.1" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/5.3/src/App.js b/techCurriculum/ui/solutions/5.3/src/App.js deleted file mode 100644 index 7872923..0000000 --- a/techCurriculum/ui/solutions/5.3/src/App.js +++ /dev/null @@ -1,67 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!', - tags: [] - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!', - tags: [] - } - ] - }; - } - - handleSubmit = (author, message, tags) => { - const newCard = {author: author, text: message, tags: tags}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} - tags={card.tags} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/5.3/src/components/Card.js b/techCurriculum/ui/solutions/5.3/src/components/Card.js deleted file mode 100644 index 4f011e0..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/Card.js +++ /dev/null @@ -1,38 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - const tagElements = props.tags.map((tag, index) => - <div key={index} className='badge badge-pill' id='tag'> - {tag.value} - </div> - ) - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - {tagElements} - </div> - ); -} - -export default Card; diff --git a/techCurriculum/ui/solutions/5.3/src/components/CardForm.js b/techCurriculum/ui/solutions/5.3/src/components/CardForm.js deleted file mode 100644 index d037957..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/CardForm.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: '', tags: []}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message, this.state.tags); - } - - handleTagsChange = (tagList) => { - this.setState({tags: tagList}); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti value={this.state.tags} onChange={this.handleTagsChange}/> - <br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/5.3/src/components/Message.js b/techCurriculum/ui/solutions/5.3/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/5.3/src/components/TextInput.js b/techCurriculum/ui/solutions/5.3/src/components/TextInput.js deleted file mode 100644 index 3e08499..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/5.3/src/components/Title.js b/techCurriculum/ui/solutions/5.3/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/5.3/src/components/User.js b/techCurriculum/ui/solutions/5.3/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/5.3/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/5.3/src/index.js b/techCurriculum/ui/solutions/5.3/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/5.3/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/6.1/6.1.PNG b/techCurriculum/ui/solutions/6.1/6.1.PNG deleted file mode 100644 index 29742e8..0000000 Binary files a/techCurriculum/ui/solutions/6.1/6.1.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/6.1/package.json b/techCurriculum/ui/solutions/6.1/package.json deleted file mode 100644 index 6b5ad5c..0000000 --- a/techCurriculum/ui/solutions/6.1/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.5.3", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-select": "^2.4.3", - "react-datepicker": "^2.5.0" - }, - "devDependencies": { - "react-scripts": "0.9.5" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/6.1/src/App.js b/techCurriculum/ui/solutions/6.1/src/App.js deleted file mode 100644 index 7872923..0000000 --- a/techCurriculum/ui/solutions/6.1/src/App.js +++ /dev/null @@ -1,67 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!', - tags: [] - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!', - tags: [] - } - ] - }; - } - - handleSubmit = (author, message, tags) => { - const newCard = {author: author, text: message, tags: tags}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} - tags={card.tags} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/6.1/src/components/Card.js b/techCurriculum/ui/solutions/6.1/src/components/Card.js deleted file mode 100644 index 4f011e0..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/Card.js +++ /dev/null @@ -1,38 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - const tagElements = props.tags.map((tag, index) => - <div key={index} className='badge badge-pill' id='tag'> - {tag.value} - </div> - ) - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - {tagElements} - </div> - ); -} - -export default Card; diff --git a/techCurriculum/ui/solutions/6.1/src/components/CardForm.js b/techCurriculum/ui/solutions/6.1/src/components/CardForm.js deleted file mode 100644 index a1b26bc..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/CardForm.js +++ /dev/null @@ -1,70 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; -import DatePicker from 'react-datepicker'; -import 'react-datepicker/dist/react-datepicker.css'; - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: '', tags: [], dateStamp: undefined}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message, this.state.tags); - } - - handleTagsChange = (tagList) => { - this.setState({tags: tagList}); - } - - handleDateStampChange = (dateStamp) => { - this.setState({dateStamp: dateStamp}); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti value={this.state.tags} onChange={this.handleTagsChange}/> - <br /> - <DatePicker selected={this.state.dateStamp} onChange={this.handleDateStampChange} /> - <br /><br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/6.1/src/components/Message.js b/techCurriculum/ui/solutions/6.1/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/6.1/src/components/TextInput.js b/techCurriculum/ui/solutions/6.1/src/components/TextInput.js deleted file mode 100644 index 3e08499..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/6.1/src/components/Title.js b/techCurriculum/ui/solutions/6.1/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/6.1/src/components/User.js b/techCurriculum/ui/solutions/6.1/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/6.1/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/6.1/src/index.js b/techCurriculum/ui/solutions/6.1/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/6.1/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/6.2/6.2.PNG b/techCurriculum/ui/solutions/6.2/6.2.PNG deleted file mode 100644 index f598cad..0000000 Binary files a/techCurriculum/ui/solutions/6.2/6.2.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/6.2/package.json b/techCurriculum/ui/solutions/6.2/package.json deleted file mode 100644 index dcbc2ab..0000000 --- a/techCurriculum/ui/solutions/6.2/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.5.3", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-datepicker": "^2.5.0", - "react-select": "^2.4.3" - }, - "devDependencies": { - "react-scripts": "0.9.5" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/6.2/src/App.js b/techCurriculum/ui/solutions/6.2/src/App.js deleted file mode 100644 index e1c3ccf..0000000 --- a/techCurriculum/ui/solutions/6.2/src/App.js +++ /dev/null @@ -1,68 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!', - tags: [] - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!', - tags: [] - } - ] - }; - } - - handleSubmit = (author, message, tags, dateStamp) => { - const newCard = {author: author, text: message, tags: tags, dateStamp: dateStamp}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} - tags={card.tags} - dateStamp={card.dateStamp} /> - )); - - return ( - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/6.2/src/components/Card.js b/techCurriculum/ui/solutions/6.2/src/components/Card.js deleted file mode 100644 index 9d1daf0..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/Card.js +++ /dev/null @@ -1,39 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - const tagElements = props.tags.map((tag, index) => - <div key={index} className='badge badge-pill' id='tag'> - {tag.value} - </div> - ) - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - {tagElements} - {props.dateStamp ? props.dateStamp.toString() : null} - </div> - ); -} - -export default Card; diff --git a/techCurriculum/ui/solutions/6.2/src/components/CardForm.js b/techCurriculum/ui/solutions/6.2/src/components/CardForm.js deleted file mode 100644 index a3bfe00..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/CardForm.js +++ /dev/null @@ -1,70 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; -import DatePicker from 'react-datepicker'; -import 'react-datepicker/dist/react-datepicker.css'; - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: '', tags: [], dateStamp: undefined}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message, this.state.tags, this.state.dateStamp); - } - - handleTagsChange = (tagList) => { - this.setState({tags: tagList}); - } - - handleDateStampChange = (dateStamp) => { - this.setState({dateStamp: dateStamp}); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti value={this.state.tags} onChange={this.handleTagsChange}/> - <br /> - <DatePicker selected={this.state.dateStamp} onChange={this.handleDateStampChange} /> - <br /><br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/6.2/src/components/Message.js b/techCurriculum/ui/solutions/6.2/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/6.2/src/components/TextInput.js b/techCurriculum/ui/solutions/6.2/src/components/TextInput.js deleted file mode 100644 index 3e08499..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/6.2/src/components/Title.js b/techCurriculum/ui/solutions/6.2/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/6.2/src/components/User.js b/techCurriculum/ui/solutions/6.2/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/6.2/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/6.2/src/index.js b/techCurriculum/ui/solutions/6.2/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/6.2/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/7.1/7.1.PNG b/techCurriculum/ui/solutions/7.1/7.1.PNG deleted file mode 100644 index b4850c6..0000000 Binary files a/techCurriculum/ui/solutions/7.1/7.1.PNG and /dev/null differ diff --git a/techCurriculum/ui/solutions/7.1/package.json b/techCurriculum/ui/solutions/7.1/package.json deleted file mode 100644 index bc2077b..0000000 --- a/techCurriculum/ui/solutions/7.1/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "cards-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "create-react-class": "^15.5.3", - "highcharts": "5.0.11", - "moment": "^2.24.0", - "react": "^16.8.6", - "react-dom": "^16.8.6", - "react-datepicker": "^2.5.0", - "react-select": "^2.4.3" - }, - "devDependencies": { - "react-scripts": "0.9.5" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/techCurriculum/ui/solutions/7.1/src/App.js b/techCurriculum/ui/solutions/7.1/src/App.js deleted file mode 100644 index bfa1d67..0000000 --- a/techCurriculum/ui/solutions/7.1/src/App.js +++ /dev/null @@ -1,74 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Title from './components/Title'; -import Card from './components/Card'; -import CardForm from './components/CardForm'; -import LineChart from './components/LineChart'; -import JohnData from './data/john_posts.json'; -import JaneData from './data/jane_posts.json'; - -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - cards: [ - { - author: 'John Smith', - text: 'React is so cool!', - tags: [] - }, - { - author: 'Jane Doe', - text: 'I use React for all my projects!', - tags: [] - } - ] - }; - } - - handleSubmit = (author, message, tags, dateStamp) => { - const newCard = {author, text: message, tags, dateStamp}; - const cards = [...this.state.cards, newCard]; - this.setState({cards: cards}); - } - - render() { - const cards = this.state.cards.map((card, index) => ( - <Card author={card.author} - text={card.text} - key={index} - tags={card.tags} - dateStamp={card.dateStamp} /> - )); - - return ( - <div> - <div id='app-body'> - <div id='left-panel'> - <Title /> - { cards } - </div> - <CardForm onSubmit={this.handleSubmit} /> - </div> - <LineChart dataOne={JohnData.data} dataTwo={JaneData.data} /> - </div> - ); - } -} - -export default App; diff --git a/techCurriculum/ui/solutions/7.1/src/components/Card.js b/techCurriculum/ui/solutions/7.1/src/components/Card.js deleted file mode 100644 index 9d1daf0..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/Card.js +++ /dev/null @@ -1,39 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import User from './User'; -import Message from './Message'; - -const Card = (props) => { - const tagElements = props.tags.map((tag, index) => - <div key={index} className='badge badge-pill' id='tag'> - {tag.value} - </div> - ) - return ( - <div className='card'> - <User name={props.author}/> - <div className='card-main'> - <Message text={props.text}/> - </div> - {tagElements} - {props.dateStamp ? props.dateStamp.toString() : null} - </div> - ); -} - -export default Card; diff --git a/techCurriculum/ui/solutions/7.1/src/components/CardForm.js b/techCurriculum/ui/solutions/7.1/src/components/CardForm.js deleted file mode 100644 index a3bfe00..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/CardForm.js +++ /dev/null @@ -1,70 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import TextInput from './TextInput.js' -import Select from 'react-select'; -import DatePicker from 'react-datepicker'; -import 'react-datepicker/dist/react-datepicker.css'; - -class CardForm extends React.Component { - constructor(props) { - super(props); - this.state = {username: '', message: '', tags: [], dateStamp: undefined}; - } - - handleUsernameChange = (value) => { - this.setState({username: value}); - } - - handleMessageChange = (value) => { - this.setState({message: value}); - } - - handleSubmit = (event) => { - event.preventDefault(); - this.props.onSubmit(this.state.username, this.state.message, this.state.tags, this.state.dateStamp); - } - - handleTagsChange = (tagList) => { - this.setState({tags: tagList}); - } - - handleDateStampChange = (dateStamp) => { - this.setState({dateStamp: dateStamp}); - } - - render() { - const tagOptions = [ - { value: 'today', label: 'Today' }, - { value: 'red', label: 'Red' } - ]; - return ( - <form className='card-form'> - <h2>Add a Card</h2> - <TextInput name='username' label='Username' value={this.state.username} onChange={this.handleUsernameChange}/> - <TextInput name='message' label='Message' value={this.state.message} onChange={this.handleMessageChange}/> - <Select options={tagOptions} isMulti value={this.state.tags} onChange={this.handleTagsChange}/> - <br /> - <DatePicker selected={this.state.dateStamp} onChange={this.handleDateStampChange} /> - <br /><br /> - <button className='btn btn-primary' onClick={this.handleSubmit}>Submit</button> - </form> - ); - } -} - -export default CardForm; diff --git a/techCurriculum/ui/solutions/7.1/src/components/LineChart.js b/techCurriculum/ui/solutions/7.1/src/components/LineChart.js deleted file mode 100644 index e15cb43..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/LineChart.js +++ /dev/null @@ -1,62 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import Highcharts from 'highcharts'; - -class LineChart extends React.Component { - constructor(props) { - super(props); - this.highchartsOptions = { - title: { - text: 'Posts Per Month' - }, - xAxis: { - categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] - }, - yAxis: { - title: { - text: 'Number of Posts' - } - }, - series: [{ - name: 'John Smith', - marker: { - symbol: 'square' - }, - data: props.dataOne - - }, { - name: 'Jane Doe', - marker: { - symbol: 'diamond' - }, - data: props.dataTwo - }] - } - } - - componentDidMount() { - Highcharts.chart('chart', this.highchartsOptions); - } - - render() { - return <div id='chart'></div> - } -} - -export default LineChart; diff --git a/techCurriculum/ui/solutions/7.1/src/components/Message.js b/techCurriculum/ui/solutions/7.1/src/components/Message.js deleted file mode 100644 index 8f99be4..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/Message.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Message = (props) => { - return ( - <div className='message-text'> - <p>{props.text}</p> - </div> - ); -} - -export default Message; diff --git a/techCurriculum/ui/solutions/7.1/src/components/TextInput.js b/techCurriculum/ui/solutions/7.1/src/components/TextInput.js deleted file mode 100644 index e779a1c..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/TextInput.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -class TextInput extends React.Component { - - handleChange = (event) => { - const value = event.target.value; - this.props.onChange(value); - } - - render() { - return ( - <div className='form-group'> - <label className='control-label'>{this.props.label}</label> - <input type='text' className='form-control' name={this.props.name} value={this.props.value} onChange={this.handleChange} /> - </div> - ) - } -} - -export default TextInput; diff --git a/techCurriculum/ui/solutions/7.1/src/components/Title.js b/techCurriculum/ui/solutions/7.1/src/components/Title.js deleted file mode 100644 index ffe6fc2..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/Title.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const Title = () => { - return ( - <div> - <h1>Cards</h1> - <h2>Share your ideas</h2> - </div> - ); -} - -export default Title; diff --git a/techCurriculum/ui/solutions/7.1/src/components/User.js b/techCurriculum/ui/solutions/7.1/src/components/User.js deleted file mode 100644 index 22dbc4f..0000000 --- a/techCurriculum/ui/solutions/7.1/src/components/User.js +++ /dev/null @@ -1,28 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; - -const User = (props) => { - return ( - <div className='user'> - <i className='fa fa-user-o'/> - <p>{props.name}</p> - </div> - ); -} - -export default User; diff --git a/techCurriculum/ui/solutions/7.1/src/data/jane_posts.json b/techCurriculum/ui/solutions/7.1/src/data/jane_posts.json deleted file mode 100644 index 26145a4..0000000 --- a/techCurriculum/ui/solutions/7.1/src/data/jane_posts.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "data" : [3.9, 4.2, 5.7, 8.5, 27.9, 19.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8] -} \ No newline at end of file diff --git a/techCurriculum/ui/solutions/7.1/src/data/john_posts.json b/techCurriculum/ui/solutions/7.1/src/data/john_posts.json deleted file mode 100644 index d1ce9aa..0000000 --- a/techCurriculum/ui/solutions/7.1/src/data/john_posts.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "data" : [2.0, 4.9, 9.5, 14.5, 3.2, 21.5, 15.2, 8.5, 9.3, 18.3, 13.9, 9.6] -} \ No newline at end of file diff --git a/techCurriculum/ui/solutions/7.1/src/index.js b/techCurriculum/ui/solutions/7.1/src/index.js deleted file mode 100644 index b5b6b40..0000000 --- a/techCurriculum/ui/solutions/7.1/src/index.js +++ /dev/null @@ -1,25 +0,0 @@ -/** -* Copyright 2019 Goldman Sachs. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -**/ - -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import './stylesheet.css'; - -ReactDOM.render( - <App />, - document.getElementById('root') -); diff --git a/techCurriculum/ui/solutions/SOLUTION_DIFF_URLS.txt b/techCurriculum/ui/solutions/SOLUTION_DIFF_URLS.txt deleted file mode 100644 index 8f94099..0000000 --- a/techCurriculum/ui/solutions/SOLUTION_DIFF_URLS.txt +++ /dev/null @@ -1,37 +0,0 @@ -Copyright 2019 Goldman Sachs. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -1.1 https://github.com/tadas412/EngineeringEssentials/commit/4706f420480e3cc31ef1f64349a9dd6493f02ffa -2.1 https://github.com/tadas412/EngineeringEssentials/commit/7d19db8f14fd848bdd5b2d99202cfabeca0737ca -2.2 https://github.com/tadas412/EngineeringEssentials/commit/51cf3f4b0fa965e0c3a67ecc66d17d47697b0b1a -2.3 https://github.com/tadas412/EngineeringEssentials/commit/60e4d4df083bef1c6e45830c05eda502794cb508 -2.4 https://github.com/tadas412/EngineeringEssentials/commit/85ed3b3ae73805a914ecfddda08add7bbf45870d -2.5 https://github.com/tadas412/EngineeringEssentials/commit/41d5fdaa68bd7a785e21e79c866a8e1d521d8e93 -2.6 https://github.com/tadas412/EngineeringEssentials/commit/c2167536abd0a8fbc7e3e89c2b6c007503c43ec0 -2.7 https://github.com/tadas412/EngineeringEssentials/commit/b9a6b6b75ba9f25919b1bea08b98dd7091334980 -3.1 https://github.com/tadas412/EngineeringEssentials/commit/87a446515e5c39567f15842797f230c9586accd3 -3.2 https://github.com/tadas412/EngineeringEssentials/commit/f4924e5fbdbf402d50b6e26d6daa425db09e3aa6 -3.3 https://github.com/tadas412/EngineeringEssentials/commit/5fd2a8553beb4b520939c69fddd945b60ccc6ca8 -4.1 https://github.com/tadas412/EngineeringEssentials/commit/de081f2cda4c722877154b15e0a46c5e3b2dd6ae -4.2 https://github.com/tadas412/EngineeringEssentials/commit/f221a0991207ef29d678838d0a8e14886527a59d -4.3 https://github.com/tadas412/EngineeringEssentials/commit/c65b027bcab09cb59baa10d0e7eaf0144c4d289d -4.4 https://github.com/tadas412/EngineeringEssentials/commit/df422b48f8328229e2903de4e3e691e3ad517131 -4.5 https://github.com/tadas412/EngineeringEssentials/commit/72a3309275a2216de298217798174ab6b8f07d1c -4.6 https://github.com/tadas412/EngineeringEssentials/commit/4b191e999d8f330b6c5847a84a8fa61d379f0a38 -4.7 https://github.com/tadas412/EngineeringEssentials/commit/df2463e0adca910d3478b4ae6bd19429a9dc06cf -4.8 https://github.com/tadas412/EngineeringEssentials/commit/cb678fc9cd64cdf4607016f6ef545a25c843cca1 -5.1 https://github.com/tadas412/EngineeringEssentials/commit/7622883b90fb69691145c7a361cbada4cc8b5517 -5.2 https://github.com/tadas412/EngineeringEssentials/commit/c6b46e91240faf8640042c5e556c79a2ec877da7 -5.3 https://github.com/tadas412/EngineeringEssentials/commit/b405e63e1a4cf0a085e538e924894e034c7a5dae -6.1 https://github.com/tadas412/EngineeringEssentials/commit/9768c3e0aeb6c34fb0a956987cdb1d8925ea8815 -6.2 https://github.com/tadas412/EngineeringEssentials/commit/958c92599160e9f78e8139cfd6887f5a4cd4ffa3 -7.1 https://github.com/tadas412/EngineeringEssentials/commit/3e242fc8b58e450287c902718e60f3a1a5a40613 \ No newline at end of file diff --git a/techCurriculum/ui/starter_code/cards-app/.gitignore b/techCurriculum/ui/starter_code/cards-app/.gitignore deleted file mode 100644 index 1256c7f..0000000 --- a/techCurriculum/ui/starter_code/cards-app/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -/node_modules - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env -.vscode/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* - diff --git a/techCurriculum/ui/starter_code/cards-app/README.md b/techCurriculum/ui/starter_code/cards-app/README.md deleted file mode 100644 index 828f097..0000000 --- a/techCurriculum/ui/starter_code/cards-app/README.md +++ /dev/null @@ -1,1623 +0,0 @@ -This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app). - -Below you will find some information on how to perform common tasks.<br> -You can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md). - -## Table of Contents - -- [Updating to New Releases](#updating-to-new-releases) -- [Sending Feedback](#sending-feedback) -- [Folder Structure](#folder-structure) -- [Available Scripts](#available-scripts) - - [npm start](#npm-start) - - [npm test](#npm-test) - - [npm run build](#npm-run-build) - - [npm run eject](#npm-run-eject) -- [Supported Language Features and Polyfills](#supported-language-features-and-polyfills) -- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor) -- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor) -- [Debugging in the Editor](#debugging-in-the-editor) -- [Changing the Page `<title>`](#changing-the-page-title) -- [Installing a Dependency](#installing-a-dependency) -- [Importing a Component](#importing-a-component) -- [Adding a Stylesheet](#adding-a-stylesheet) -- [Post-Processing CSS](#post-processing-css) -- [Adding a CSS Preprocessor (Sass, Less etc.)](#adding-a-css-preprocessor-sass-less-etc) -- [Adding Images and Fonts](#adding-images-and-fonts) -- [Using the `public` Folder](#using-the-public-folder) - - [Changing the HTML](#changing-the-html) - - [Adding Assets Outside of the Module System](#adding-assets-outside-of-the-module-system) - - [When to Use the `public` Folder](#when-to-use-the-public-folder) -- [Using Global Variables](#using-global-variables) -- [Adding Bootstrap](#adding-bootstrap) - - [Using a Custom Theme](#using-a-custom-theme) -- [Adding Flow](#adding-flow) -- [Adding Custom Environment Variables](#adding-custom-environment-variables) - - [Referencing Environment Variables in the HTML](#referencing-environment-variables-in-the-html) - - [Adding Temporary Environment Variables In Your Shell](#adding-temporary-environment-variables-in-your-shell) - - [Adding Development Environment Variables In `.env`](#adding-development-environment-variables-in-env) -- [Can I Use Decorators?](#can-i-use-decorators) -- [Integrating with an API Backend](#integrating-with-an-api-backend) - - [Node](#node) - - [Ruby on Rails](#ruby-on-rails) -- [Proxying API Requests in Development](#proxying-api-requests-in-development) -- [Using HTTPS in Development](#using-https-in-development) -- [Generating Dynamic `<meta>` Tags on the Server](#generating-dynamic-meta-tags-on-the-server) -- [Pre-Rendering into Static HTML Files](#pre-rendering-into-static-html-files) -- [Injecting Data from the Server into the Page](#injecting-data-from-the-server-into-the-page) -- [Running Tests](#running-tests) - - [Filename Conventions](#filename-conventions) - - [Command Line Interface](#command-line-interface) - - [Version Control Integration](#version-control-integration) - - [Writing Tests](#writing-tests) - - [Testing Components](#testing-components) - - [Using Third Party Assertion Libraries](#using-third-party-assertion-libraries) - - [Initializing Test Environment](#initializing-test-environment) - - [Focusing and Excluding Tests](#focusing-and-excluding-tests) - - [Coverage Reporting](#coverage-reporting) - - [Continuous Integration](#continuous-integration) - - [Disabling jsdom](#disabling-jsdom) - - [Snapshot Testing](#snapshot-testing) - - [Editor Integration](#editor-integration) -- [Developing Components in Isolation](#developing-components-in-isolation) -- [Making a Progressive Web App](#making-a-progressive-web-app) -- [Deployment](#deployment) - - [Static Server](#static-server) - - [Other Solutions](#other-solutions) - - [Serving Apps with Client-Side Routing](#serving-apps-with-client-side-routing) - - [Building for Relative Paths](#building-for-relative-paths) - - [Azure](#azure) - - [Firebase](#firebase) - - [GitHub Pages](#github-pages) - - [Heroku](#heroku) - - [Modulus](#modulus) - - [Netlify](#netlify) - - [Now](#now) - - [S3 and CloudFront](#s3-and-cloudfront) - - [Surge](#surge) -- [Advanced Configuration](#advanced-configuration) -- [Troubleshooting](#troubleshooting) - - [`npm start` doesn’t detect changes](#npm-start-doesnt-detect-changes) - - [`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra) - - [`npm run build` silently fails](#npm-run-build-silently-fails) - - [`npm run build` fails on Heroku](#npm-run-build-fails-on-heroku) -- [Something Missing?](#something-missing) - -## Updating to New Releases - -Create React App is divided into two packages: - -* `create-react-app` is a global command-line utility that you use to create new projects. -* `react-scripts` is a development dependency in the generated projects (including this one). - -You almost never need to update `create-react-app` itself: it delegates all the setup to `react-scripts`. - -When you run `create-react-app`, it always creates the project with the latest version of `react-scripts` so you’ll get all the new features and improvements in newly created apps automatically. - -To update an existing project to a new version of `react-scripts`, [open the changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md), find the version you’re currently on (check `package.json` in this folder if you’re not sure), and apply the migration instructions for the newer versions. - -In most cases bumping the `react-scripts` version in `package.json` and running `npm install` in this folder should be enough, but it’s good to consult the [changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md) for potential breaking changes. - -We commit to keeping the breaking changes minimal so you can upgrade `react-scripts` painlessly. - -## Sending Feedback - -We are always open to [your feedback](https://github.com/facebookincubator/create-react-app/issues). - -## Folder Structure - -After creation, your project should look like this: - -``` -my-app/ - README.md - node_modules/ - package.json - public/ - index.html - favicon.ico - src/ - App.css - App.js - App.test.js - index.css - index.js - logo.svg -``` - -For the project to build, **these files must exist with exact filenames**: - -* `public/index.html` is the page template; -* `src/index.js` is the JavaScript entry point. - -You can delete or rename the other files. - -You may create subdirectories inside `src`. For faster rebuilds, only files inside `src` are processed by Webpack.<br> -You need to **put any JS and CSS files inside `src`**, or Webpack won’t see them. - -Only files inside `public` can be used from `public/index.html`.<br> -Read instructions below for using assets from JavaScript and HTML. - -You can, however, create more top-level directories.<br> -They will not be included in the production build so you can use them for things like documentation. - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.<br> -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.<br> -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.<br> -See the section about [running tests](#running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.<br> -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.<br> -Your app is ready to be deployed! - -See the section about [deployment](#deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Supported Language Features and Polyfills - -This project supports a superset of the latest JavaScript standard.<br> -In addition to [ES6](https://github.com/lukehoban/es6features) syntax features, it also supports: - -* [Exponentiation Operator](https://github.com/rwaldron/exponentiation-operator) (ES2016). -* [Async/await](https://github.com/tc39/ecmascript-asyncawait) (ES2018). -* [Object Rest/Spread Properties](https://github.com/sebmarkbage/ecmascript-rest-spread) (stage 3 proposal). -* [Class Fields and Static Properties](https://github.com/tc39/proposal-class-public-fields) (stage 2 proposal). -* [JSX](https://facebook.github.io/react/docs/introducing-jsx.html) and [Flow](https://flowtype.org/) syntax. - -Learn more about [different proposal stages](https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets-). - -While we recommend to use experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide [codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) if any of these proposals change in the future. - -Note that **the project only includes a few ES6 [polyfills](https://en.wikipedia.org/wiki/Polyfill)**: - -* [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) via [`object-assign`](https://github.com/sindresorhus/object-assign). -* [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) via [`promise`](https://github.com/then/promise). -* [`fetch()`](https://developer.mozilla.org/en/docs/Web/API/Fetch_API) via [`whatwg-fetch`](https://github.com/github/fetch). - -If you use any other ES6+ features that need **runtime support** (such as `Array.from()` or `Symbol`), make sure you are including the appropriate polyfills manually, or that the browsers you are targeting already support them. - -## Syntax Highlighting in the Editor - -To configure the syntax highlighting in your favorite text editor, head to the [relevant Babel documentation page](https://babeljs.io/docs/editors) and follow the instructions. Some of the most popular editors are covered. - -## Displaying Lint Output in the Editor - ->Note: this feature is available with `react-scripts@0.2.0` and higher. - -Some editors, including Sublime Text, Atom, and Visual Studio Code, provide plugins for ESLint. - -They are not required for linting. You should see the linter output right in your terminal as well as the browser console. However, if you prefer the lint results to appear right in your editor, there are some extra steps you can do. - -You would need to install an ESLint plugin for your editor first. - ->**A note for Atom `linter-eslint` users** - ->If you are using the Atom `linter-eslint` plugin, make sure that **Use global ESLint installation** option is checked: - -><img src="http://i.imgur.com/yVNNHJM.png" width="300"> - - ->**For Visual Studio Code users** - ->VS Code ESLint plugin automatically detects Create React App's configuration file. So you do not need to create `eslintrc.json` at the root directory, except when you want to add your own rules. In that case, you should include CRA's config by adding this line: - ->```js -{ - // ... - "extends": "react-app" -} -``` - -Then add this block to the `package.json` file of your project: - -```js -{ - // ... - "eslintConfig": { - "extends": "react-app" - } -} -``` - -Finally, you will need to install some packages *globally*: - -```sh -npm install -g eslint-config-react-app@0.3.0 eslint@3.8.1 babel-eslint@7.0.0 eslint-plugin-react@6.4.1 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@4.0.0 eslint-plugin-flowtype@2.21.0 -``` - -We recognize that this is suboptimal, but it is currently required due to the way we hide the ESLint dependency. The ESLint team is already [working on a solution to this](https://github.com/eslint/eslint/issues/3458) so this may become unnecessary in a couple of months. - -## Debugging in the Editor - -**This feature is currently only supported by [Visual Studio Code](https://code.visualstudio.com) editor.** - -Visual Studio Code supports live-editing and debugging out of the box with Create React App. This enables you as a developer to write and debug your React code without leaving the editor, and most importantly it enables you to have a continuous development workflow, where context switching is minimal, as you don’t have to switch between tools. - -You would need to have the latest version of [VS Code](https://code.visualstudio.com) and VS Code [Chrome Debugger Extension](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) installed. - -Then add the block below to your `launch.json` file and put it inside the `.vscode` folder in your app’s root directory. - -```json -{ - "version": "0.2.0", - "configurations": [{ - "name": "Chrome", - "type": "chrome", - "request": "launch", - "url": "http://localhost:3000", - "webRoot": "${workspaceRoot}/src", - "userDataDir": "${workspaceRoot}/.vscode/chrome", - "sourceMapPathOverrides": { - "webpack:///src/*": "${webRoot}/*" - } - }] -} -``` - -Start your app by running `npm start`, and start debugging in VS Code by pressing `F5` or by clicking the green debug icon. You can now write code, set breakpoints, make changes to the code, and debug your newly modified code—all from your editor. - -## Changing the Page `<title>` - -You can find the source HTML file in the `public` folder of the generated project. You may edit the `<title>` tag in it to change the title from “React App” to anything else. - -Note that normally you wouldn’t edit files in the `public` folder very often. For example, [adding a stylesheet](#adding-a-stylesheet) is done without touching the HTML. - -If you need to dynamically update the page title based on the content, you can use the browser [`document.title`](https://developer.mozilla.org/en-US/docs/Web/API/Document/title) API. For more complex scenarios when you want to change the title from React components, you can use [React Helmet](https://github.com/nfl/react-helmet), a third party library. - -If you use a custom server for your app in production and want to modify the title before it gets sent to the browser, you can follow advice in [this section](#generating-dynamic-meta-tags-on-the-server). Alternatively, you can pre-build each page as a static HTML file which then loads the JavaScript bundle, which is covered [here](#pre-rendering-into-static-html-files). - -## Installing a Dependency - -The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`: - -``` -npm install --save <library-name> -``` - -## Importing a Component - -This project setup supports ES6 modules thanks to Babel.<br> -While you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead. - -For example: - -### `Button.js` - -```js -import React, { Component } from 'react'; - -class Button extends Component { - render() { - // ... - } -} - -export default Button; // Don’t forget to use export default! -``` - -### `DangerButton.js` - - -```js -import React, { Component } from 'react'; -import Button from './Button'; // Import a component from another file - -class DangerButton extends Component { - render() { - return <Button color="red" />; - } -} - -export default DangerButton; -``` - -Be aware of the [difference between default and named exports](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281). It is a common source of mistakes. - -We suggest that you stick to using default imports and exports when a module only exports a single thing (for example, a component). That’s what you get when you use `export default Button` and `import Button from './Button'`. - -Named exports are useful for utility modules that export several functions. A module may have at most one default export and as many named exports as you like. - -Learn more about ES6 modules: - -* [When to use the curly braces?](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281) -* [Exploring ES6: Modules](http://exploringjs.com/es6/ch_modules.html) -* [Understanding ES6: Modules](https://leanpub.com/understandinges6/read#leanpub-auto-encapsulating-code-with-modules) - -## Adding a Stylesheet - -This project setup uses [Webpack](https://webpack.github.io/) for handling all assets. Webpack offers a custom way of “extending” the concept of `import` beyond JavaScript. To express that a JavaScript file depends on a CSS file, you need to **import the CSS from the JavaScript file**: - -### `Button.css` - -```css -.Button { - padding: 20px; -} -``` - -### `Button.js` - -```js -import React, { Component } from 'react'; -import './Button.css'; // Tell Webpack that Button.js uses these styles - -class Button extends Component { - render() { - // You can use them as regular CSS styles - return <div className="Button" />; - } -} -``` - -**This is not required for React** but many people find this feature convenient. You can read about the benefits of this approach [here](https://medium.com/seek-ui-engineering/block-element-modifying-your-javascript-components-d7f99fcab52b). However you should be aware that this makes your code less portable to other build tools and environments than Webpack. - -In development, expressing dependencies this way allows your styles to be reloaded on the fly as you edit them. In production, all CSS files will be concatenated into a single minified `.css` file in the build output. - -If you are concerned about using Webpack-specific semantics, you can put all your CSS right into `src/index.css`. It would still be imported from `src/index.js`, but you could always remove that import if you later migrate to a different build tool. - -## Post-Processing CSS - -This project setup minifies your CSS and adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it. - -For example, this: - -```css -.App { - display: flex; - flex-direction: row; - align-items: center; -} -``` - -becomes this: - -```css -.App { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} -``` - -If you need to disable autoprefixing for some reason, [follow this section](https://github.com/postcss/autoprefixer#disabling). - -## Adding a CSS Preprocessor (Sass, Less etc.) - -Generally, we recommend that you don’t reuse the same CSS classes across different components. For example, instead of using a `.Button` CSS class in `<AcceptButton>` and `<RejectButton>` components, we recommend creating a `<Button>` component with its own `.Button` styles, that both `<AcceptButton>` and `<RejectButton>` can render (but [not inherit](https://facebook.github.io/react/docs/composition-vs-inheritance.html)). - -Following this rule often makes CSS preprocessors less useful, as features like mixins and nesting are replaced by component composition. You can, however, integrate a CSS preprocessor if you find it valuable. In this walkthrough, we will be using Sass, but you can also use Less, or another alternative. - -First, let’s install the command-line interface for Sass: - -``` -npm install node-sass --save-dev -``` - -Then in `package.json`, add the following lines to `scripts`: - -```diff - "scripts": { -+ "build-css": "node-sass src/ -o src/", -+ "watch-css": "npm run build-css && node-sass src/ -o src/ --watch --recursive", - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", -``` - ->Note: To use a different preprocessor, replace `build-css` and `watch-css` commands according to your preprocessor’s documentation. - -Now you can rename `src/App.css` to `src/App.scss` and run `npm run watch-css`. The watcher will find every Sass file in `src` subdirectories, and create a corresponding CSS file next to it, in our case overwriting `src/App.css`. Since `src/App.js` still imports `src/App.css`, the styles become a part of your application. You can now edit `src/App.scss`, and `src/App.css` will be regenerated. - -To share variables between Sass files, you can use Sass imports. For example, `src/App.scss` and other component style files could include `@import "./shared.scss";` with variable definitions. - -At this point you might want to remove all CSS files from the source control, and add `src/**/*.css` to your `.gitignore` file. It is generally a good practice to keep the build products outside of the source control. - -As a final step, you may find it convenient to run `watch-css` automatically with `npm start`, and run `build-css` as a part of `npm run build`. You can use the `&&` operator to execute two scripts sequentially. However, there is no cross-platform way to run two scripts in parallel, so we will install a package for this: - -``` -npm install --save-dev npm-run-all -``` - -Then we can change `start` and `build` scripts to include the CSS preprocessor commands: - -```diff - "scripts": { - "build-css": "node-sass src/ -o src/", - "watch-css": "npm run build-css && node-sass src/ -o src/ --watch --recursive", -- "start": "react-scripts start", -- "build": "react-scripts build", -+ "start-js": "react-scripts start", -+ "start": "npm-run-all -p watch-css start-js", -+ "build": "npm run build-css && react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" - } -``` - -Now running `npm start` and `npm run build` also builds Sass files. Note that `node-sass` seems to have an [issue recognizing newly created files on some systems](https://github.com/sass/node-sass/issues/1891) so you might need to restart the watcher when you create a file until it’s resolved. - -## Adding Images and Fonts - -With Webpack, using static assets like images and fonts works similarly to CSS. - -You can **`import` an image right in a JavaScript module**. This tells Webpack to include that image in the bundle. Unlike CSS imports, importing an image or a font gives you a string value. This value is the final image path you can reference in your code. - -Here is an example: - -```js -import React from 'react'; -import logo from './logo.png'; // Tell Webpack this JS file uses this image - -console.log(logo); // /logo.84287d09.png - -function Header() { - // Import result is the URL of your image - return <img src={logo} alt="Logo" />; -} - -export default Header; -``` - -This ensures that when the project is built, Webpack will correctly move the images into the build folder, and provide us with correct paths. - -This works in CSS too: - -```css -.Logo { - background-image: url(./logo.png); -} -``` - -Webpack finds all relative module references in CSS (they start with `./`) and replaces them with the final paths from the compiled bundle. If you make a typo or accidentally delete an important file, you will see a compilation error, just like when you import a non-existent JavaScript module. The final filenames in the compiled bundle are generated by Webpack from content hashes. If the file content changes in the future, Webpack will give it a different name in production so you don’t need to worry about long-term caching of assets. - -Please be advised that this is also a custom feature of Webpack. - -**It is not required for React** but many people enjoy it (and React Native uses a similar mechanism for images).<br> -An alternative way of handling static assets is described in the next section. - -## Using the `public` Folder - ->Note: this feature is available with `react-scripts@0.5.0` and higher. - -### Changing the HTML - -The `public` folder contains the HTML file so you can tweak it, for example, to [set the page title](#changing-the-page-title). -The `<script>` tag with the compiled code will be added to it automatically during the build process. - -### Adding Assets Outside of the Module System - -You can also add other assets to the `public` folder. - -Note that we normally encourage you to `import` assets in JavaScript files instead. -For example, see the sections on [adding a stylesheet](#adding-a-stylesheet) and [adding images and fonts](#adding-images-and-fonts). -This mechanism provides a number of benefits: - -* Scripts and stylesheets get minified and bundled together to avoid extra network requests. -* Missing files cause compilation errors instead of 404 errors for your users. -* Result filenames include content hashes so you don’t need to worry about browsers caching their old versions. - -However there is an **escape hatch** that you can use to add an asset outside of the module system. - -If you put a file into the `public` folder, it will **not** be processed by Webpack. Instead it will be copied into the build folder untouched. To reference assets in the `public` folder, you need to use a special variable called `PUBLIC_URL`. - -Inside `index.html`, you can use it like this: - -```html -<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> -``` - -Only files inside the `public` folder will be accessible by `%PUBLIC_URL%` prefix. If you need to use a file from `src` or `node_modules`, you’ll have to copy it there to explicitly specify your intention to make this file a part of the build. - -When you run `npm run build`, Create React App will substitute `%PUBLIC_URL%` with a correct absolute path so your project works even if you use client-side routing or host it at a non-root URL. - -In JavaScript code, you can use `process.env.PUBLIC_URL` for similar purposes: - -```js -render() { - // Note: this is an escape hatch and should be used sparingly! - // Normally we recommend using `import` for getting asset URLs - // as described in “Adding Images and Fonts” above this section. - return <img src={process.env.PUBLIC_URL + '/img/logo.png'} />; -} -``` - -Keep in mind the downsides of this approach: - -* None of the files in `public` folder get post-processed or minified. -* Missing files will not be called at compilation time, and will cause 404 errors for your users. -* Result filenames won’t include content hashes so you’ll need to add query arguments or rename them every time they change. - -### When to Use the `public` Folder - -Normally we recommend importing [stylesheets](#adding-a-stylesheet), [images, and fonts](#adding-images-and-fonts) from JavaScript. -The `public` folder is useful as a workaround for a number of less common cases: - -* You need a file with a specific name in the build output, such as [`manifest.webmanifest`](https://developer.mozilla.org/en-US/docs/Web/Manifest). -* You have thousands of images and need to dynamically reference their paths. -* You want to include a small script like [`pace.js`](http://github.hubspot.com/pace/docs/welcome/) outside of the bundled code. -* Some library may be incompatible with Webpack and you have no other option but to include it as a `<script>` tag. - -Note that if you add a `<script>` that declares global variables, you also need to read the next section on using them. - -## Using Global Variables - -When you include a script in the HTML file that defines global variables and try to use one of these variables in the code, the linter will complain because it cannot see the definition of the variable. - -You can avoid this by reading the global variable explicitly from the `window` object, for example: - -```js -const $ = window.$; -``` - -This makes it obvious you are using a global variable intentionally rather than because of a typo. - -Alternatively, you can force the linter to ignore any line by adding `// eslint-disable-line` after it. - -## Adding Bootstrap - -You don’t have to use [React Bootstrap](https://react-bootstrap.github.io) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps: - -Install React Bootstrap and Bootstrap from npm. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well: - -``` -npm install react-bootstrap --save -npm install bootstrap@3 --save -``` - -Import Bootstrap CSS and optionally Bootstrap theme CSS in the beginning of your ```src/index.js``` file: - -```js -import 'bootstrap/dist/css/bootstrap.css'; -import 'bootstrap/dist/css/bootstrap-theme.css'; -// Put any other imports below so that CSS from your -// components takes precedence over default styles. -``` - -Import required React Bootstrap components within ```src/App.js``` file or your custom component files: - -```js -import { Navbar, Jumbotron, Button } from 'react-bootstrap'; -``` - -Now you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://gist.githubusercontent.com/gaearon/85d8c067f6af1e56277c82d19fd4da7b/raw/6158dd991b67284e9fc8d70b9d973efe87659d72/App.js) redone using React Bootstrap. - -### Using a Custom Theme - -Sometimes you might need to tweak the visual styles of Bootstrap (or equivalent package).<br> -We suggest the following approach: - -* Create a new package that depends on the package you wish to customize, e.g. Bootstrap. -* Add the necessary build steps to tweak the theme, and publish your package on npm. -* Install your own theme npm package as a dependency of your app. - -Here is an example of adding a [customized Bootstrap](https://medium.com/@tacomanator/customizing-create-react-app-aa9ffb88165) that follows these steps. - -## Adding Flow - -Flow is a static type checker that helps you write code with fewer bugs. Check out this [introduction to using static types in JavaScript](https://medium.com/@preethikasireddy/why-use-static-types-in-javascript-part-1-8382da1e0adb) if you are new to this concept. - -Recent versions of [Flow](http://flowtype.org/) work with Create React App projects out of the box. - -To add Flow to a Create React App project, follow these steps: - -1. Run `npm install --save-dev flow-bin` (or `yarn add --dev flow-bin`). -2. Add `"flow": "flow"` to the `scripts` section of your `package.json`. -3. Run `npm run flow -- init` (or `yarn flow -- init`) to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory. -4. Add `// @flow` to any files you want to type check (for example, to `src/App.js`). - -Now you can run `npm run flow` (or `yarn flow`) to check the files for type errors. -You can optionally use an IDE like [Nuclide](https://nuclide.io/docs/languages/flow/) for a better integrated experience. -In the future we plan to integrate it into Create React App even more closely. - -To learn more about Flow, check out [its documentation](https://flowtype.org/). - -## Adding Custom Environment Variables - ->Note: this feature is available with `react-scripts@0.2.3` and higher. - -Your project can consume variables declared in your environment as if they were declared locally in your JS files. By -default you will have `NODE_ENV` defined for you, and any other environment variables starting with -`REACT_APP_`. - -**The environment variables are embedded during the build time**. Since Create React App produces a static HTML/CSS/JS bundle, it can’t possibly read them at runtime. To read them at runtime, you would need to load HTML into memory on the server and replace placeholders in runtime, just like [described here](#injecting-data-from-the-server-into-the-page). Alternatively you can rebuild the app on the server anytime you change them. - ->Note: You must create custom environment variables beginning with `REACT_APP_`. Any other variables except `NODE_ENV` will be ignored to avoid accidentally [exposing a private key on the machine that could have the same name](https://github.com/facebookincubator/create-react-app/issues/865#issuecomment-252199527). Changing any environment variables will require you to restart the development server if it is running. - -These environment variables will be defined for you on `process.env`. For example, having an environment -variable named `REACT_APP_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_SECRET_CODE`. - -There is also a special built-in environment variable called `NODE_ENV`. You can read it from `process.env.NODE_ENV`. When you run `npm start`, it is always equal to `'development'`, when you run `npm test` it is always equal to `'test'`, and when you run `npm run build` to make a production bundle, it is always equal to `'production'`. **You cannot override `NODE_ENV` manually.** This prevents developers from accidentally deploying a slow development build to production. - -These environment variables can be useful for displaying information conditionally based on where the project is -deployed or consuming sensitive data that lives outside of version control. - -First, you need to have environment variables defined. For example, let’s say you wanted to consume a secret defined -in the environment inside a `<form>`: - -```jsx -render() { - return ( - <div> - <small>You are running this application in <b>{process.env.NODE_ENV}</b> mode.</small> - <form> - <input type="hidden" defaultValue={process.env.REACT_APP_SECRET_CODE} /> - </form> - </div> - ); -} -``` - -During the build, `process.env.REACT_APP_SECRET_CODE` will be replaced with the current value of the `REACT_APP_SECRET_CODE` environment variable. Remember that the `NODE_ENV` variable will be set for you automatically. - -When you load the app in the browser and inspect the `<input>`, you will see its value set to `abcdef`, and the bold text will show the environment provided when using `npm start`: - -```html -<div> - <small>You are running this application in <b>development</b> mode.</small> - <form> - <input type="hidden" value="abcdef" /> - </form> -</div> -``` - -The above form is looking for a variable called `REACT_APP_SECRET_CODE` from the environment. In order to consume this -value, we need to have it defined in the environment. This can be done using two ways: either in your shell or in -a `.env` file. Both of these ways are described in the next few sections. - -Having access to the `NODE_ENV` is also useful for performing actions conditionally: - -```js -if (process.env.NODE_ENV !== 'production') { - analytics.disable(); -} -``` - -When you compile the app with `npm run build`, the minification step will strip out this condition, and the resulting bundle will be smaller. - -### Referencing Environment Variables in the HTML - ->Note: this feature is available with `react-scripts@0.9.0` and higher. - -You can also access the environment variables starting with `REACT_APP_` in the `public/index.html`. For example: - -```html -<title>%REACT_APP_WEBSITE_NAME% -``` - -Note that the caveats from the above section apply: - -* Apart from a few built-in variables (`NODE_ENV` and `PUBLIC_URL`), variable names must start with `REACT_APP_` to work. -* The environment variables are injected at build time. If you need to inject them at runtime, [follow this approach instead](#generating-dynamic-meta-tags-on-the-server). - -### Adding Temporary Environment Variables In Your Shell - -Defining environment variables can vary between OSes. It’s also important to know that this manner is temporary for the -life of the shell session. - -#### Windows (cmd.exe) - -```cmd -set REACT_APP_SECRET_CODE=abcdef&&npm start -``` - -(Note: the lack of whitespace is intentional.) - -#### Linux, macOS (Bash) - -```bash -REACT_APP_SECRET_CODE=abcdef npm start -``` - -### Adding Development Environment Variables In `.env` - ->Note: this feature is available with `react-scripts@0.5.0` and higher. - -To define permanent environment variables, create a file called `.env` in the root of your project: - -``` -REACT_APP_SECRET_CODE=abcdef -``` - -These variables will act as the defaults if the machine does not explicitly set them.
-Please refer to the [dotenv documentation](https://github.com/motdotla/dotenv) for more details. - ->Note: If you are defining environment variables for development, your CI and/or hosting platform will most likely need -these defined as well. Consult their documentation how to do this. For example, see the documentation for [Travis CI](https://docs.travis-ci.com/user/environment-variables/) or [Heroku](https://devcenter.heroku.com/articles/config-vars). - -## Can I Use Decorators? - -Many popular libraries use [decorators](https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841) in their documentation.
-Create React App doesn’t support decorator syntax at the moment because: - -* It is an experimental proposal and is subject to change. -* The current specification version is not officially supported by Babel. -* If the specification changes, we won’t be able to write a codemod because we don’t use them internally at Facebook. - -However in many cases you can rewrite decorator-based code without decorators just as fine.
-Please refer to these two threads for reference: - -* [#214](https://github.com/facebookincubator/create-react-app/issues/214) -* [#411](https://github.com/facebookincubator/create-react-app/issues/411) - -Create React App will add decorator support when the specification advances to a stable stage. - -## Integrating with an API Backend - -These tutorials will help you to integrate your app with an API backend running on another port, -using `fetch()` to access it. - -### Node -Check out [this tutorial](https://www.fullstackreact.com/articles/using-create-react-app-with-a-server/). -You can find the companion GitHub repository [here](https://github.com/fullstackreact/food-lookup-demo). - -### Ruby on Rails - -Check out [this tutorial](https://www.fullstackreact.com/articles/how-to-get-create-react-app-to-work-with-your-rails-api/). -You can find the companion GitHub repository [here](https://github.com/fullstackreact/food-lookup-demo-rails). - -## Proxying API Requests in Development - ->Note: this feature is available with `react-scripts@0.2.3` and higher. - -People often serve the front-end React app from the same host and port as their backend implementation.
-For example, a production setup might look like this after the app is deployed: - -``` -/ - static server returns index.html with React app -/todos - static server returns index.html with React app -/api/todos - server handles any /api/* requests using the backend implementation -``` - -Such setup is **not** required. However, if you **do** have a setup like this, it is convenient to write requests like `fetch('/api/todos')` without worrying about redirecting them to another host or port during development. - -To tell the development server to proxy any unknown requests to your API server in development, add a `proxy` field to your `package.json`, for example: - -```js - "proxy": "http://localhost:4000", -``` - -This way, when you `fetch('/api/todos')` in development, the development server will recognize that it’s not a static asset, and will proxy your request to `http://localhost:4000/api/todos` as a fallback. The development server will only attempt to send requests without a `text/html` accept header to the proxy. - -Conveniently, this avoids [CORS issues](http://stackoverflow.com/questions/21854516/understanding-ajax-cors-and-security-considerations) and error messages like this in development: - -``` -Fetch API cannot load http://localhost:4000/api/todos. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. -``` - -Keep in mind that `proxy` only has effect in development (with `npm start`), and it is up to you to ensure that URLs like `/api/todos` point to the right thing in production. You don’t have to use the `/api` prefix. Any unrecognized request without a `text/html` accept header will be redirected to the specified `proxy`. - -The `proxy` option supports HTTP, HTTPS and WebSocket connections.
-If the `proxy` option is **not** flexible enough for you, alternatively you can: - -* Enable CORS on your server ([here’s how to do it for Express](http://enable-cors.org/server_expressjs.html)). -* Use [environment variables](#adding-custom-environment-variables) to inject the right server host and port into your app. - -## Using HTTPS in Development - ->Note: this feature is available with `react-scripts@0.4.0` and higher. - -You may require the dev server to serve pages over HTTPS. One particular case where this could be useful is when using [the "proxy" feature](#proxying-api-requests-in-development) to proxy requests to an API server when that API server is itself serving HTTPS. - -To do this, set the `HTTPS` environment variable to `true`, then start the dev server as usual with `npm start`: - -#### Windows (cmd.exe) - -```cmd -set HTTPS=true&&npm start -``` - -(Note: the lack of whitespace is intentional.) - -#### Linux, macOS (Bash) - -```bash -HTTPS=true npm start -``` - -Note that the server will use a self-signed certificate, so your web browser will almost definitely display a warning upon accessing the page. - -## Generating Dynamic `` Tags on the Server - -Since Create React App doesn’t support server rendering, you might be wondering how to make `` tags dynamic and reflect the current URL. To solve this, we recommend to add placeholders into the HTML, like this: - -```html - - - - - -``` - -Then, on the server, regardless of the backend you use, you can read `index.html` into memory and replace `__OG_TITLE__`, `__OG_DESCRIPTION__`, and any other placeholders with values depending on the current URL. Just make sure to sanitize and escape the interpolated values so that they are safe to embed into HTML! - -If you use a Node server, you can even share the route matching logic between the client and the server. However duplicating it also works fine in simple cases. - -## Pre-Rendering into Static HTML Files - -If you’re hosting your `build` with a static hosting provider you can use [react-snapshot](https://www.npmjs.com/package/react-snapshot) to generate HTML pages for each route, or relative link, in your application. These pages will then seamlessly become active, or “hydrated”, when the JavaScript bundle has loaded. - -There are also opportunities to use this outside of static hosting, to take the pressure off the server when generating and caching routes. - -The primary benefit of pre-rendering is that you get the core content of each page _with_ the HTML payload—regardless of whether or not your JavaScript bundle successfully downloads. It also increases the likelihood that each route of your application will be picked up by search engines. - -You can read more about [zero-configuration pre-rendering (also called snapshotting) here](https://medium.com/superhighfives/an-almost-static-stack-6df0a2791319). - -## Injecting Data from the Server into the Page - -Similarly to the previous section, you can leave some placeholders in the HTML that inject global variables, for example: - -```js - - - - -``` - -Then, on the server, you can replace `__SERVER_DATA__` with a JSON of real data right before sending the response. The client code can then read `window.SERVER_DATA` to use it. **Make sure to [sanitize the JSON before sending it to the client](https://medium.com/node-security/the-most-common-xss-vulnerability-in-react-js-applications-2bdffbcc1fa0) as it makes your app vulnerable to XSS attacks.** - -## Running Tests - ->Note: this feature is available with `react-scripts@0.3.0` and higher.
->[Read the migration guide to learn how to enable it in older projects!](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#migrating-from-023-to-030) - -Create React App uses [Jest](https://facebook.github.io/jest/) as its test runner. To prepare for this integration, we did a [major revamp](https://facebook.github.io/jest/blog/2016/09/01/jest-15.html) of Jest so if you heard bad things about it years ago, give it another try. - -Jest is a Node-based runner. This means that the tests always run in a Node environment and not in a real browser. This lets us enable fast iteration speed and prevent flakiness. - -While Jest provides browser globals such as `window` thanks to [jsdom](https://github.com/tmpvar/jsdom), they are only approximations of the real browser behavior. Jest is intended to be used for unit tests of your logic and your components rather than the DOM quirks. - -We recommend that you use a separate tool for browser end-to-end tests if you need them. They are beyond the scope of Create React App. - -### Filename Conventions - -Jest will look for test files with any of the following popular naming conventions: - -* Files with `.js` suffix in `__tests__` folders. -* Files with `.test.js` suffix. -* Files with `.spec.js` suffix. - -The `.test.js` / `.spec.js` files (or the `__tests__` folders) can be located at any depth under the `src` top level folder. - -We recommend to put the test files (or `__tests__` folders) next to the code they are testing so that relative imports appear shorter. For example, if `App.test.js` and `App.js` are in the same folder, the test just needs to `import App from './App'` instead of a long relative path. Colocation also helps find tests more quickly in larger projects. - -### Command Line Interface - -When you run `npm test`, Jest will launch in the watch mode. Every time you save a file, it will re-run the tests, just like `npm start` recompiles the code. - -The watcher includes an interactive command-line interface with the ability to run all tests, or focus on a search pattern. It is designed this way so that you can keep it open and enjoy fast re-runs. You can learn the commands from the “Watch Usage” note that the watcher prints after every run: - -![Jest watch mode](http://facebook.github.io/jest/img/blog/15-watch.gif) - -### Version Control Integration - -By default, when you run `npm test`, Jest will only run the tests related to files changed since the last commit. This is an optimization designed to make your tests runs fast regardless of how many tests you have. However it assumes that you don’t often commit the code that doesn’t pass the tests. - -Jest will always explicitly mention that it only ran tests related to the files changed since the last commit. You can also press `a` in the watch mode to force Jest to run all tests. - -Jest will always run all tests on a [continuous integration](#continuous-integration) server or if the project is not inside a Git or Mercurial repository. - -### Writing Tests - -To create tests, add `it()` (or `test()`) blocks with the name of the test and its code. You may optionally wrap them in `describe()` blocks for logical grouping but this is neither required nor recommended. - -Jest provides a built-in `expect()` global function for making assertions. A basic test could look like this: - -```js -import sum from './sum'; - -it('sums numbers', () => { - expect(sum(1, 2)).toEqual(3); - expect(sum(2, 2)).toEqual(4); -}); -``` - -All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).
-You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](http://facebook.github.io/jest/docs/expect.html#tohavebeencalled) to create “spies” or mock functions. - -### Testing Components - -There is a broad spectrum of component testing techniques. They range from a “smoke test” verifying that a component renders without throwing, to shallow rendering and testing some of the output, to full rendering and testing component lifecycle and state changes. - -Different projects choose different testing tradeoffs based on how often components change, and how much logic they contain. If you haven’t decided on a testing strategy yet, we recommend that you start with creating simple smoke tests for your components: - -```js -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; - -it('renders without crashing', () => { - const div = document.createElement('div'); - ReactDOM.render(, div); -}); -``` - -This test mounts a component and makes sure that it didn’t throw during rendering. Tests like this provide a lot value with very little effort so they are great as a starting point, and this is the test you will find in `src/App.test.js`. - -When you encounter bugs caused by changing components, you will gain a deeper insight into which parts of them are worth testing in your application. This might be a good time to introduce more specific tests asserting specific expected output or behavior. - -If you’d like to test components in isolation from the child components they render, we recommend using [`shallow()` rendering API](http://airbnb.io/enzyme/docs/api/shallow.html) from [Enzyme](http://airbnb.io/enzyme/). You can write a smoke test with it too: - -```sh -npm install --save-dev enzyme react-addons-test-utils -``` - -```js -import React from 'react'; -import { shallow } from 'enzyme'; -import App from './App'; - -it('renders without crashing', () => { - shallow(); -}); -``` - -Unlike the previous smoke test using `ReactDOM.render()`, this test only renders `` and doesn’t go deeper. For example, even if `` itself renders a `