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

13 Коммитов

Автор SHA1 Сообщение Дата
vladikoff cbe383ab8a refactor(lint): remove jscs, update eslint rules 2017-08-25 07:12:17 -04:00
Vlad Filippov a7a822e690 fix(config): make NODE_ENV consistent across servers (#227)
Related to https://github.com/mozilla/fxa/issues/57
2017-01-10 15:16:21 -05:00
Peter deHaan e88d81013a chore(build): Replace JSHint with ESLint 2015-06-17 00:27:17 -07:00
Sean McArthur 187b076648 feat(avatar): add support for multiple image sizes
When an avatar is uploaded, we will now generate multiple sizes of the
image, to better accommodate various environments that the avatar may
appear.

The sizes generated are based of current constants in the `lib/img/index.js`
module. The `SIZES` constant contains a map of `suffix` to `height/width`
values. The suffix `default` is special cased, and will actually mean no
suffix. Every other value will be appended on the end of the URL, with an
underscore.

The current `SIZES` are:

    {
      small: { h: 100, w: 100 },
      default: { h: 200, w: 200 },
      large: { h 600, w: 600 }
    }

which generate 3 images when an upload occurs:

- https://s3.url/<imageid>_small (100px x 100px)
- https://s3.url/<imageid> (200px x 200px)
- https://s3.url/<imageid>_large (600px x 600px)

Closes #68
Closes #89
2015-03-16 10:40:19 -07:00
Sean McArthur ec25152b43 feat(images): delete images from s3 when asked to 2015-02-12 12:15:22 -08:00
Ryan Kelly 41fad890db fix(logging): remove spaces from logging op name 2014-11-17 11:09:37 +11:00
Sean McArthur b27b48bf61 feat(logging): use mozlog with heka format
This uses mozlog to make sure all our logs match the Heka JSON Schema.

Closes #71
BREAKING CHANGE: Both the config and the output for logging has changed.
    Config can be removed, as the defaults are what should be used in
    production.
2014-10-30 16:24:49 -07:00
Sean McArthur 1826d518c7 remove logging of arguments to img.compute 2014-10-06 12:41:26 -07:00
John Morrison 0087e46ab1 store PNG images in S3 as content-type image/png 2014-09-08 14:05:53 -07:00
Sean McArthur fa0c969968 allow aws to load credentials from IAM 2014-08-29 15:56:55 -07:00
Sean McArthur e0078b52a1 review fixes, delete route, and more 2014-08-22 16:33:58 -07:00
Sean McArthur aa6300b593 logging tweaks 2014-08-18 14:56:55 -07:00
Sean McArthur f9c054a5ca avatars wip 2014-08-13 18:50:19 -07:00