Permalink
Browse files

work in progress

  • Loading branch information...
germanattanasio committed Oct 20, 2016
1 parent 3da13cc commit d881a29088cab3daaadb52ef05fd231b13500f83
Showing with 982 additions and 54,250 deletions.
  1. +2 −1 .cfignore
  2. +1 −1 .editorconfig
  3. +3 −0 .env.example
  4. +2 −0 .eslintignore
  5. +28 −230 .eslintrc
  6. +2 −2 .gitignore
  7. +9 −5 .travis.yml
  8. +1 −0 CONTRIBUTING.md
  9. +1 −26 LICENSE
  10. +1 −0 Procfile
  11. +154 −103 README.md
  12. +35 −32 app.js
  13. +36 −0 config/error-handler.js
  14. +32 −8 config/express.js
  15. +50 −18 config/security.js
  16. +5 −5 manifest.yml
  17. +52 −40 package.json
  18. +16 −66 public/css/style.css
  19. +0 −5,729 public/css/watson-bootstrap-style.css
  20. BIN public/fonts/glyphicons-halflings-regular.eot
  21. +0 −229 public/fonts/glyphicons-halflings-regular.svg
  22. BIN public/fonts/glyphicons-halflings-regular.ttf
  23. BIN public/fonts/glyphicons-halflings-regular.woff
  24. BIN public/fonts/helvneueboldforibm.eot
  25. +0 −4,283 public/fonts/helvneueboldforibm.svg
  26. BIN public/fonts/helvneueboldforibm.ttf
  27. BIN public/fonts/helvneueboldforibm.woff
  28. BIN public/fonts/helvneuebolditalicforibm.eot
  29. +0 −4,267 public/fonts/helvneuebolditalicforibm.svg
  30. BIN public/fonts/helvneuebolditalicforibm.ttf
  31. BIN public/fonts/helvneuebolditalicforibm.woff
  32. BIN public/fonts/helvneuecondforibm.eot
  33. +0 −3,000 public/fonts/helvneuecondforibm.svg
  34. BIN public/fonts/helvneuecondforibm.ttf
  35. BIN public/fonts/helvneuecondforibm.woff
  36. BIN public/fonts/helvneuelightcondforibm.eot
  37. +0 −2,899 public/fonts/helvneuelightcondforibm.svg
  38. BIN public/fonts/helvneuelightcondforibm.ttf
  39. BIN public/fonts/helvneuelightcondforibm.woff
  40. BIN public/fonts/helvneuelightforibm.eot
  41. +0 −3,903 public/fonts/helvneuelightforibm.svg
  42. BIN public/fonts/helvneuelightforibm.ttf
  43. BIN public/fonts/helvneuelightforibm.woff
  44. BIN public/fonts/helvneuelightitalicforibm.eot
  45. +0 −4,378 public/fonts/helvneuelightitalicforibm.svg
  46. BIN public/fonts/helvneuelightitalicforibm.ttf
  47. BIN public/fonts/helvneuelightitalicforibm.woff
  48. BIN public/fonts/helvneuemediumforibm.eot
  49. +0 −4,179 public/fonts/helvneuemediumforibm.svg
  50. BIN public/fonts/helvneuemediumforibm.ttf
  51. BIN public/fonts/helvneuemediumforibm.woff
  52. BIN public/fonts/helvneuemediumitalicforibm.eot
  53. +0 −4,421 public/fonts/helvneuemediumitalicforibm.svg
  54. BIN public/fonts/helvneuemediumitalicforibm.ttf
  55. BIN public/fonts/helvneuemediumitalicforibm.woff
  56. BIN public/fonts/helvneueromanforibm.eot
  57. +0 −4,175 public/fonts/helvneueromanforibm.svg
  58. BIN public/fonts/helvneueromanforibm.ttf
  59. BIN public/fonts/helvneueromanforibm.woff
  60. BIN public/fonts/helvneueromanitalicforibm.eot
  61. +0 −4,429 public/fonts/helvneueromanitalicforibm.svg
  62. BIN public/fonts/helvneueromanitalicforibm.ttf
  63. BIN public/fonts/helvneueromanitalicforibm.woff
  64. BIN public/fonts/menlo.eot
  65. +0 −6,747 public/fonts/menlo.svg
  66. BIN public/fonts/menlo.ttf
  67. BIN public/fonts/menlo.woff
  68. BIN public/images/android-icon-192x192.png
  69. BIN public/images/apple-icon-180x180.png
  70. +0 −7 public/images/drop-down-arrow-white.svg
  71. +0 −7 public/images/drop-down-arrow.svg
  72. +0 −7 public/images/drop-up-arrow.svg
  73. BIN public/images/favicon-32x32.png
  74. BIN public/images/favicon-96x96.png
  75. BIN public/images/favicon.ico
  76. +0 −17 public/images/fork-icon.svg
  77. +0 −13 public/images/information-teal.svg
  78. +0 −13 public/images/information.svg
  79. +0 −14 public/images/link.svg
  80. +0 −9 public/images/search.svg
  81. 0 public/images/{text-to-speech.svg → service-icon.svg}
  82. +0 −193 public/index.html
  83. +0 −29 public/js/.eslintrc
  84. +0 −153 public/js/TextToSpeech.jsx
  85. +0 −97 public/js/browser-detect.js
  86. +5 −0 public/js/bundle.jsx
  87. +0 −145 public/js/constants.js
  88. +0 −370 public/js/demo.js
  89. +8 −0 public/js/ga.js
  90. +14 −0 server.js
  91. +32 −0 test/test.express.js
  92. +29 −0 test/test.react.js
  93. +164 −0 views/demo.jsx
  94. +9 −0 views/index.jsx
  95. +52 −0 views/layout.jsx
  96. +239 −0 voices.js
View
@@ -1 +1,2 @@
node_modules
node_modules
coverage
View
2 .editorconfig 100644 → 100755
@@ -7,4 +7,4 @@ root = true
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
insert_final_newline = true
View
@@ -0,0 +1,3 @@
# see http://www.ibm.com/watson/developercloud/doc/getting_started/gs-credentials.shtml
TEXT_TO_SPEECH_USERNAME=<username>
TEXT_TO_SPEECH_PASSWORD=<password>
View
@@ -0,0 +1,2 @@
coverage
public/js/ga.js
View
258 .eslintrc 100644 → 100755
@@ -1,232 +1,30 @@
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"stroustrup"
],
"callback-return": "error",
"camelcase": "off",
"comma-spacing": "off",
"comma-style": [
"error",
"last"
],
"complexity": "error",
"computed-property-spacing": [
"error",
"never"
],
"consistent-return": "error",
"consistent-this": "error",
"curly": "off",
"default-case": "off",
"dot-location": [
"error",
"property"
],
"dot-notation": [
"error",
{
"allowKeywords": true
}
],
"eol-last": "off",
"eqeqeq": "off",
"func-names": "off",
"func-style": [
"error",
"declaration"
],
"generator-star-spacing": "error",
"global-require": "off",
"guard-for-in": "error",
"handle-callback-err": "off",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"indent": "off",
"init-declarations": "error",
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": "off",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": "off",
"max-depth": "error",
"max-len": "off",
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "error",
"new-cap": "error",
"new-parens": "error",
"newline-after-var": "off",
"newline-before-return": "off",
"newline-per-chained-call": "off",
"no-alert": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-catch-shadow": "error",
"no-confusing-arrow": "error",
"no-console": "off",
"no-continue": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-parens": "error",
"no-floating-decimal": "error",
"no-implicit-globals": "off",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-inner-declarations": [
"error",
"functions"
],
"no-invalid-this": "off",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-requires": "off",
"no-multi-spaces": "off",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-native-reassign": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-path-concat": "off",
"no-plusplus": "error",
"no-process-env": "off",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-syntax": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "off",
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-sync": "error",
"no-ternary": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "off",
"no-useless-rename": "error",
"no-var": "off",
"no-void": "error",
"no-warning-comments": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-spacing": "off",
"object-property-newline": [
"error",
{
"allowMultiplePropertiesPerLine": true
}
],
"object-shorthand": "off",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": [
"error",
"always"
],
"operator-linebreak": "error",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-const": "error",
"prefer-reflect": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "error",
"require-jsdoc": "off",
"require-yield": "error",
"semi": "off",
"semi-spacing": "error",
"sort-imports": "error",
"sort-vars": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": "off",
"space-unary-ops": "error",
"spaced-comment": "off",
"strict": "off",
"template-curly-spacing": "error",
"unicode-bom": [
"error",
"never"
],
"valid-jsdoc": "off",
"vars-on-top": "off",
"wrap-iife": [
"error",
"any"
],
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": [
"error",
"never"
]
}
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "babel-eslint",
"rules": {
"react/require-extension": "off", // deprecated and prints a warning unless explicitly disabled
"react/jsx-filename-extension": ["warn", {
"extensions": [".js", ".jsx"]
}],
"react/prefer-es6-class": "off",
"import/newline-after-import": "off",
"import/no-extraneous-dependencies": ["warn", {
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true
}],
"max-len": ["warn", 160],
"consistent-return": "off",
"func-names": "off",
"global-require": "off",
},
"env": {
"node": true,
"browser": true,
"mocha": true
}
}
View
@@ -1,5 +1,5 @@
.DS_Store
node_modules
coverage
.env
*.log
.idea
.DS_Store
View
14 .travis.yml 100644 → 100755
@@ -1,18 +1,22 @@
language: node_js
node_js:
- 4
sudo: true
node_js: stable
script:
- npm test
env:
global:
- CF_APP=text-to-speech-demo
- CF_API=https://api.ng.bluemix.net
- CF_USERNAME=nfriedly@us.ibm.com
- CF_ORGANIZATION=WatsonPlatformServices
- CF_SPACE=demos
- secure: "PrNPVUKGF5IqSDFZ4W4EApiad6mK5Au85O3ovRzs9dkK1ZsEUEgVVsxr8SdC5oWOKnQu1cDTlNNtp6iKZq9PTWmuLuJpIqkMqIkbJlkR1AOcEqwUb/nkxqgw41E7Hi5JLsM/2RE0xqSKfKtS6zKcs0Nx0cSLStseSzSX4pjLywE="
before_deploy: npm install -g cf-blue-green
deploy:
provider: script
script: cf-blue-green-travis
script:
- cf-blue-green-travis
on:
branch: master
repo: watson-developer-cloud/text-to-speech-nodejs
skip_cleanup: true
notifications:
email: false
View
@@ -12,5 +12,6 @@ If you want to contribute to the repository, here's a quick guide:
1. Fork the repo.
1. develop your code changes: `npm install -d`
1. Test your changes: `npm test`
1. Commit your changes
1. Push to your fork and submit a pull request
View
27 LICENSE
@@ -174,29 +174,4 @@
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.
END OF TERMS AND CONDITIONS
View
@@ -0,0 +1 @@
web: npm start
Oops, something went wrong.

0 comments on commit d881a29

Please sign in to comment.