Commit Graph

78 Commits (f596a413efac95d51b2f47c4fa4ca5bddadb2c1b)

Author SHA1 Message Date
Yamagishi Kazutoshi ad4a28f4f6 Refactor translationRunner.js ()
- Use yargs instead of minimist
- Simplify validators
- Fix typo (RFC5626 -> RFC5646)
Yamagishi Kazutoshi 943775fd90 Update dependencies of Node.js ()
* Update axios to version 0.16.2

* Update css-loader to version 0.28.4

* Update postcss-smart-import to version 0.7.4

* Update react-immutable-pure-component to version 0.0.5

* Update stringz to version 0.2.1

* Update style-loader to version 0.18.1

* Update websocket.js to version 0.1.9

* yarn upgrade
Yamagishi Kazutoshi b0fe58dc69 Upgrade storybook to v3 ()
Yamagishi Kazutoshi 1162f61ca3 Remove unused loaders of webpack ()
Yamagishi Kazutoshi 39ea5c0e2e Improve tests for JavaScript ()
- Upgrade dependencies
    - chai (3.5.0 -> 4.0.1)
    - chai-enzyme (0.6.1 -> 0.7.1)
    - sinon (2.2.0 -> 2.3.2)
- Change extensions from .jsx to .js
- Don't assign `React` to `global`
- Check code format using ESLint
Nolan Lawson c00ead8a72 Remove react-imageloader ()
* Remove react-imageloader

* add eslint-disable-line

* improve image loading experience

* remove unneeded import

* use PureComponent

* Use componentWillMount instead of constructor
Nolan Lawson 0e12a8dab9 Improve scheduling of requestIdleCallback tasks ()
Yamagishi Kazutoshi 5ac4d677e9 Remove unused React Storybook addon ()
Yamagishi Kazutoshi e0ada97770 Update dependencies of Node.js ()
* Update autoprefixer to version 7.1.0

* Update axios to version 0.16.1

* Update babel-cli to version 6.24.1

* Update babel-eslint to version 7.2.3

* Update babel-preset-react to version 6.24.1

* Update coffee-script to version 1.12.6

* Update css-loader to version 0.28.1

* Update express to version 4.15.2

* Update js-yaml to version 3.8.4

* Update mocha to version 3.4.1

* Update jsdom to version 10.1.0

* Update npmlog to version 4.1.0

* Update postcss-smart-import to version 0.7.0

* Update postcss-loader to version 2.0.5

* Update pg to version 6.1.5

* Update prop-types to version 15.5.10

* Update rails-ujs to version 5.1.1

* Update redis to version 2.7.1

* Update sass-loader to version 6.0.5

* Update stringz to version 0.2.0

* Update webpack to version 2.5.1

* Update style-loader to version 0.17.0

* Update sinon to version 2.2.0

* Update react-motion to version 0.5.0

* Update react-notification to version 6.7.0

* Update react-redux-loading-bar to version 2.9.0

* Update react-intl to version 2.3.0

* Update redux-immutable to version 4.0.0

* Update reselect to version 3.0.1

* Update react-toggle to version 3.0.1

* Update react-simple-dropdown to version 3.0.0

* Update react-router to version 3.0.5

* Update react-router-scroll to version 0.4.2

* Update react-toggle to version 4.0.1

* yarn upgrade
Eugen Rochko 425d02287a Improve streaming API cluster logging ()
* Improve streaming API cluster logging

* Less verbose error middleware logging (stack trace useless there)

* Fix error logging

* Prevent potential issue

* Add missing "done()" in catch of Promise.all, websocket heartbeat re-implemented like in example

* I actually forgot a done(), the absolute madman
Eugen Rochko c48772fd3f Introduce react-textarea-autosize instead of using style.height side effects ()
Nolan Lawson 2469fd1cdc Add improved performance marks for development mode ()
Yamagishi Kazutoshi 531c1bb245 Add localization of datetime in public page ()
Sorin Davidoi 8e4d1cba00 Lazy load toots using IntersectionObserver ()
* refactor(components/status_list): Lazy load using IntersectionObserver

* refactor(components/status_list): Avoid setState bottleneck

* refactor(components/status_list): Update state correctly

* fix(components/status): Render if isIntersecting is undefined

* refactor(components/status): Recycle timeout

* refactor(components/status): Reduce animation duration

* refactor(components/status): Use requestIdleCallback

* chore: Split polyfill bundles

* refactor(components/status_list): Increase rootMargin to 300%

* fix(components/status): Check if onRef is not defined

* chore: Add note about polyfill bundle splitting

* fix(components/status): Reduce animation duration to 0.3 seconds
Yamagishi Kazutoshi 860ffc0560 Focus the submit button ()
Focus the submit button when confirmation modal is opened.

Also, changed cancellation link to button.
This makes the meaning clearer.
Eugen Rochko 48e7a22e34 Fix locale regression from ()
Nolan Lawson 60e2b951de Add webpack-bundle-analyzer for production builds ()
Nolan Lawson 9d04de1c8d Only load Intl data for current language ()
* Only load Intl data for current language

* Extract common chunk only from application.js and public.js

* Generate locale packs, avoid caching on window object
Yamagishi Kazutoshi 4a3db71692 Remove react-autosuggest ()
react-autosuggest is added from c49f6290eb

Dependence removed from b27066e154
Yamagishi Kazutoshi dc559d6b7a Downgrade eslint-plugin-jsx-a11y to v4.0.0 ()
In Code Climate, eslint-plugin-jsx-a11y v4.0.0 is used.
Therefore, it seems that a warning is displayed.

ref https://github.com/codeclimate/codeclimate-eslint/pull/273
Sorin Davidoi f18a6c2cf2 feat(babel): Strip prop types ()
* feat(babel): Strip prop types

* chore(babel): Indent

* fix(babel): Move babel-plugin-transform-react-remove-prop-types to dependencies
Nolan Lawson 4cc8ddabe5 Add transform-runtime for smaller Babel helpers ()
Yamagishi Kazutoshi 72c8562cc9 Use babel-preset-env on Streaming Server ()
* Use babel-preset-env on Streaming Server

Change the streaming server to use babel-preset-env as well as asset compilation.
This shortens the load time at first boot.

* remove babel-plugin-lodash
Yamagishi Kazutoshi 882e4f5322 Remove Babel plugin for ES Modules ()
* Remove Babel plugin for ES Modules

Processing of ES Modules is executed by Webpack.
Don't have to do it on Babel side.

* Add plugin for test
Yamagishi Kazutoshi 2991a7cfe6 Use ES Class Fields & Static Properties ()
Use ES Class Fields & Static Properties (currently stage 2) for improve class outlook.

Added babel-plugin-transform-class-properties as a Babel plugin.
Yamagishi Kazutoshi 654f4f62ed Remove dependencies that are no longer needed now ()
There are some dependencies that are no longer needed anymore.
As a result, it took more time to install the package than necessary.

I want to delete them and shorten the installation time.
Nolan Lawson 0ec77c5b3e Add dynamic polyfills for older browsers ()
Fixes 
Yamagishi Kazutoshi 42eb841dc2 Remove jquery-ujs ()
* Remove jquery-ujs

* fix for eslint
Yamagishi Kazutoshi f000673599 Remove local_time gem, and add similar ()
Nolan Lawson 5b6c2a1e72 upgrade emojione-picker ()
Koala Yeung 6f71cfeff9 Eslintrc fix ()
* eslintrc: adapt changes in eslint-plugin-jsx-a11y

* Replace 'jsx-a11y/img-has-alt' with 'jsx-a11y/alt-text'.
  Reference: evcohen/eslint-plugin-jsx-a11y@24b6193

* Replace 'jsx-a11y/onclick-has-focus' with 'jsx-a11y/interactive-supports-focus'
  Reference: evcohen/eslint-plugin-jsx-a11y@cbdfeb8

* Replace 'jsx-a11y/onclick-has-role' with 'jsx-a11y/no-noninteractive-element-interactions'
  Reference: evcohen/eslint-plugin-jsx-a11y@18c9b71

* Update eslint-plugin-jsx-a11y to 5.0.0

Follow the change in Code Climate. Make sure the same eslintrc
can be executed locally and in Code Climate.

* Convert .eslintrc.json to equivlant .eslintrc.yml

* Less quotes and commas, more readability, allow comment.
Eshin Kunishima 67b7d3d3b6 Replace ws with uws ()
* Replace ws with uws

* fix indent

* Adjust indentation

* remove trailing space
Nolan Lawson 553e13144f remove legacy decorators, use lodash.debounce ()
Nolan Lawson 37caf0b36e separate .babelrc for prod/dev, add babel-plugin-lodash ()
Yamagishi Kazutoshi e95983f5df Decode IDNA in PreviewCard ()
Eugen Rochko f5bf5ebb82 Replace sprockets/browserify with Webpack ()
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
Ash Furrow 48652cb41e Fixes string length issue for multibyte characters. ()
Keiji, Yoshimi 2bf7e81ed5 update emojione-picker for fixed warnings. ()
Yamagishi Kazutoshi 1948f9e767 Remove deprecated features at React v15.5 ()
* Remove deprecated features at React v15.5

- [x] React.PropTypes
- [x] react-addons-pure-render-mixin
- [x] react-addons-test-utils

* Uncommented out & Add browserify_rails options

* re-add react-addons-shallow

* Fix syntax error from resolve conflicts

* follow up 59a77923b3
Christoph Witzany 556f68ab15 Make Docker image buildable on ARM ()
* after yarn upgrade

* after manually removing node-gyp as top level dependency
Zac Anger f4045ba3d9 Add eslint-plugin-jsx-a11y ()
* Add eslint-plugin-jsx-a11y.

* Fix npm script.

* Adjust npm scripts so test also runs lint.

* Fix existing lint errors.

* Don't break on a11y issues.

* Add role and tabIndex.

* Add vim and Mac files to .gitignore and .dockerignore.

* Handle htmlFor (partially), a that's actually a button.

* Fix missing tabIndex.

* Add cursor:pointer to load-more

* Revert change to load_more.

* Fixes based on review.

* Update yarn.lock.

* Don't try to install fsevents on Linux (hides warning noise).
Eugen b22b2cbfac Fix - Fix broken notifications, broken Link header parsing for exclude_types ()
Gavin Mogan 3672a799d4 Dev Tooling fixes (eslint/editorconfig) ()
* Add eslint to dev dependancies so it gets installed for the repo

yarn add --dev eslint babel-eslint eslint-plugin-reac

project specific version of eslint, you can globally install eslint-cli
if you want the global runtime, or add .bin to your path

* fix eslint errors about inconsitent returns

* eslint ignore the same as git ignore. allows for eslint .

* Add editorconfig file so everyones editor will be setup to follow the same standards
Eugen Rochko 333e44c3fc Improve emojis - use SVGs where possible
Eugen Rochko 952bce3023 Replace howler.js with simple <audio />, will hopefully resolve
some weird mobile browser behaviours
Eugen Rochko 89fc2d7f48 Fix - Emoji picker
Eugen Rochko b44dd38360 Fix broken dependency on inner react utility function
Eugen Rochko 2c50687279 Improve compose form performance, upgrade JS dependencies. LightingBox
now allows to cycle through multiple images
Eugen Rochko 4d2be9f432 Add unique request IDs to streaming API to improve logs
Eugen Rochko b5bf807a34 Remove react-dnd as it was interfering with text selection. Move content
warning mentions preview into area where actual content would be