Граф коммитов

111 Коммитов

Автор SHA1 Сообщение Дата
Luke Crouch 8a8f87e810 consolidate on express-handlebars for web + email
Web templates were using express-hbs while email templates used
express-handlebars. Change both to use express-handlebars, which also
lets us share helpers between email + web templates.
2018-09-05 13:22:51 -05:00
Luke Crouch 3927fb6109 ignore js files generated by loadtests (local envs) 2018-08-30 15:03:53 -05:00
Luke Crouch b7a52d5511 fix #305: replace nsp with npm audit 2018-08-30 14:58:31 -05:00
Luke Crouch 5deb41a54e fix #251: verify signatures of SNS messages 2018-08-27 15:44:38 -05:00
Luke Crouch 6b5ebcdcdc add tests for email-utils
Also consolidates email settings into a single SMTP_URL
2018-08-22 13:50:34 -05:00
Luke Crouch efa4dc72c6 asyncMiddleware to improve error-handling
test for checking for valid email addresses
2018-08-18 16:37:20 -05:00
Luke Crouch 69d9028bc1 add resetDB and --runInBand for consistent test DB 2018-08-18 09:44:30 -05:00
Luke Crouch 044eda393c for #254: convert testing scripts to jest 2018-08-17 14:11:02 -05:00
Luke Crouch d182459c56 for #254: start switching to jest 2018-08-17 10:37:43 -05:00
Luke Crouch 14797d48df use http basic auth to verify POSTs from AWS 2018-08-15 14:47:20 -05:00
Luke Crouch 6194f9050c ignore client-side public/ js for test coverage 2018-08-14 09:33:53 -05:00
Luke Crouch c2b9953463 for #251: remove subscribers on bounce or complaint 2018-08-14 09:19:38 -05:00
Luke Crouch e85d886c43 remove un-necessary dependencies 2018-08-08 19:59:28 -05:00
Luke Crouch abba968f1e tweak nyc coverage reporting 2018-08-08 15:54:47 -05:00
Luke Crouch 4be9673dfe use test-blurts db with fixture data for db tests
cover "public" DB methods with tests
2018-08-08 15:43:47 -05:00
Luke Crouch f806dd12ee start tests 2018-08-06 16:08:38 -05:00
luke crouch 629e80c441
Merge pull request #250 from mozilla/update-README-249
fix #249: update README to match smaller DB
2018-08-06 13:50:30 -05:00
groovecoder 15123b5f76 fix #249: update README to match smaller DB
and drop other things we don't need like AWS creds
2018-08-06 11:20:41 -05:00
groovecoder 43375bb0fb fix #247: refactor db/utils to db/db and just knex 2018-08-02 14:25:02 -05:00
lesleyjanenorton 72a2e7a933 Circle Appeasement
So basically, Docker has no Git (ENOGIT === Ain'tNoGit). The options are to imbue Docker with Git (which has its own set of potential issues) or to move dnt-helper.js into a vendor folder and be done with it (for now). Less elegant, but less grief for the time-being.
2018-06-19 00:01:29 -05:00
Lesley Norton 03deec7ced added "/" to end of postinstall script
because dnt-helper.js was getting copied to the js file as "vendor" and not as "vendor/dnt-helper.js"
2018-06-15 09:19:31 -05:00
Lesley Norton be421e8826 github link in footer + tweaks
minified github svg in footer with link to this repository + nits
2018-06-14 16:31:23 -05:00
Peter deHaan 890a71dd80
Add DNT vendor script from npm 2018-06-14 10:07:51 -07:00
Peter deHaan d021778224
Add LICENSE file and update package.json license 2018-06-07 14:49:16 -07:00
Joseph Choi b97569c181 add stylelint autofix option 2018-06-01 07:56:07 -07:00
Joseph Choi 579494b814 Add css lint support 2018-06-01 07:56:03 -07:00
groovecoder c50e4b11f7 fix #113: use dompurify on HIBP description 2018-05-31 16:34:43 -05:00
groovecoder 46ccb86b93 fix #23: start using helmet 2018-05-31 16:34:43 -05:00
luke crouch b02a4209d0
Merge pull request #122 from mozilla/add-Dockerfile
for #55: add Dockerfile
2018-05-31 11:30:21 -05:00
groovecoder 88007b203b for #55: add Dockerfile for dockerflow 2018-05-31 09:55:32 -05:00
groovecoder f7c92e8011 add uuid to package.json 2018-05-30 07:38:49 -05:00
groovecoder 583bacfbec fix #21: serve Dockerflow responses 2018-05-29 13:34:33 -05:00
groovecoder f1873c89ff fix #42: use got everywhere 2018-05-22 16:28:06 -05:00
Nihanth Subramanya 2a29fc86d1 Update packages for new vulnerabilities 2018-05-17 17:17:37 +02:00
groovecoder 2e4cc228cb update make-breach-with-emails to match 2018-05-15 15:15:06 -05:00
groovecoder 29c99b04df for #101: HIBP module to scan with hibp api 2018-05-09 09:23:34 -05:00
groovecoder 86b06692a2 for #79: use nodemailer-express-handlebars for emails 2018-05-02 10:35:22 -05:00
Nihanth Subramanya 81d0e1713f Remove sequelize-cli from package.json 2018-04-18 16:59:57 +02:00
Nihanth Subramanya bd3261e7e1 Replace Sequelize with Objection+Knex, update make-breach-with-emails.js 2018-04-18 16:08:07 +02:00
Nihanth Subramanya d78180c3e3 Re-create Subscriber model with sequelize-cli to generate migration file, fix eslint errors, disable htmllint for now 2018-03-27 19:42:04 +02:00
groovecoder 3c649f7ecb wip: start scan results page 2018-03-14 15:45:06 -05:00
groovecoder 0115eec7e9 Use sequelize for hashset script 2018-03-12 15:08:12 -05:00
Peter deHaan 23082d261b Add HTMLLint 2018-03-12 15:08:11 -05:00
Nihanth Subramanya 2775588a42 Assert database setup success within test scope in order to get proper logging output in case of failure. 2018-03-06 16:04:29 +05:30
Nihanth Subramanya 683eff6837
Start database interface (#48)
* Implement database interface for storing subscribers up to parity with previous Set implementation

* Get rid of AppConstants.init() and just inline the init code

* Properly test current Subscribers code

* Create .env for Travis

* Use async/await iun /oauth/redirect

* Add basic exception handling in user.js;
Get rid of /user/list and /user/reset.

* server.js: Get port from listener when printing it instead of just recycling the variable.
2018-03-05 19:23:53 +05:30
groovecoder f895b35420 for #31: start html templates with hbs & foundation 2018-02-26 13:42:00 -06:00
groovecoder 6c92ef1a93 start code to load hashsets into aws 2018-02-20 14:37:00 -06:00
Peter deHaan 00f23946b1
Add nsp to check for possibly sketchy dependencies 2018-02-16 14:45:42 -08:00
Peter deHaan 7057f4e73d
Re-enable prefer-const and a few minor tweaks 2018-02-13 10:07:27 -08:00
groovecoder fcf85adaaf start get_hashsets.js 2018-02-12 16:17:43 -06:00
groovecoder 5e008cdd8d fix #24: add Travis and Coveralls 2018-02-09 07:37:47 -06:00
Peter deHaan 36b4597345
Add more ESLint rules 2018-02-09 00:17:29 -08:00
Peter deHaan b04cf5bd83
Rebasing and Relinting 2018-02-07 15:31:22 -08:00
Nihanth Subramanya 9a5a731e75
Merge pull request #26 from pdehaan/moz-repo
Update repo references to mozilla/blurts-server
2018-02-02 07:45:18 +05:30
Peter deHaan 829f097dff
Update repo references to mozilla/blurts-server 2018-02-01 12:50:21 -08:00
Nihanth Subramanya 7bc3956e5a Use dotenv to load environment variables from .env file 2018-02-01 07:25:25 +05:30
Nihanth Subramanya f4f79d232f Add popsicle as dependency in package.json 2018-02-01 04:23:01 +05:30
Nihanth Subramanya 9a3e106f91 Implement session state and verify when receiving oauth token 2018-01-24 13:42:26 +05:30
Nihanth Subramanya c331d543bb Attempt to use ClientOAuth2 library for FxA OAuth 2018-01-21 03:37:04 +05:30
Nihanth Subramanya 2456a9cb47 Ran npm init to generate package.json 2018-01-15 16:34:48 +05:30
Nihanth Subramanya 06d418e8b3 Add back server files (I am clumsy) 2018-01-15 16:26:08 +05:30