unarist
eeb5923e89
Add object-fit polyfill for Edge ( #4182 )
7 years ago
Sorin Davidoi
0c7c188c45
Web Push Notifications ( #3243 )
...
* feat: Register push subscription
* feat: Notify when mentioned
* feat: Boost, favourite, reply, follow, follow request
* feat: Notification interaction
* feat: Handle change of public key
* feat: Unsubscribe if things go wrong
* feat: Do not send normal notifications if push is enabled
* feat: Focus client if open
* refactor: Move push logic to WebPushSubscription
* feat: Better title and body
* feat: Localize messages
* chore: Fix lint errors
* feat: Settings
* refactor: Lazy load
* fix: Check if push settings exist
* feat: Device-based preferences
* refactor: Simplify logic
* refactor: Pull request feedback
* refactor: Pull request feedback
* refactor: Create /api/web/push_subscriptions endpoint
* feat: Spec PushSubscriptionController
* refactor: WebPushSubscription => Web::PushSubscription
* feat: Spec Web::PushSubscription
* feat: Display first media attachment
* feat: Support direction
* fix: Stuff broken while rebasing
* refactor: Integration with session activations
* refactor: Cleanup
* refactor: Simplify implementation
* feat: Set VAPID keys via environment
* chore: Comments
* fix: Crash when no alerts
* fix: Set VAPID keys in testing environment
* fix: Follow link
* feat: Notification actions
* fix: Delete previous subscription
* chore: Temporary logs
* refactor: Move migration to a later date
* fix: Fetch the correct session activation and misc bugs
* refactor: Move migration to a later date
* fix: Remove follow request (no notifications)
* feat: Send administrator contact to push service
* feat: Set time-to-live
* fix: Do not show sensitive images
* fix: Reducer crash in error handling
* feat: Add badge
* chore: Fix lint error
* fix: Checkbox label overlap
* fix: Check for payload support
* fix: Rename action "type" (crash in latest Chrome)
* feat: Action to expand notification
* fix: Lint errors
* fix: Unescape notification body
* fix: Do not allow boosting if the status is hidden
* feat: Add VAPID keys to the production sample environment
* fix: Strip HTML tags from status
* refactor: Better error messages
* refactor: Handle browser not implementing the VAPID protocol (Samsung Internet)
* fix: Error when target_status is nil
* fix: Handle lack of image
* fix: Delete reference to invalid subscriptions
* feat: Better error handling
* fix: Unescape HTML characters after tags are striped
* refactor: Simpify code
* fix: Modify to work with #4091
* Sort strings alphabetically
* i18n: Updated Polish translation
it annoys me that it's not fully localized :P
* refactor: Use current_session in PushSubscriptionController
* fix: Rebase mistake
* fix: Set cacheName to mastodon
* refactor: Pull request feedback
* refactor: Remove logging statements
* chore(yarn): Fix conflicts with master
* chore(yarn): Copy latest from master
* chore(yarn): Readd offline-plugin
* refactor: Use save! and update!
* refactor: Send notifications async
* fix: Allow retry when push fails
* fix: Save track for failed pushes
* fix: Minify sw.js
* fix: Remove account_id from fabricator
7 years ago
Yamagishi Kazutoshi
c45a75ad34
Update dependencies for Node.js (2017-07-12) ( #4167 )
...
* Update @storybook/addon-actions to version 3.1.8
* Update @storybook/react to version 3.1.8
* Update autoprefixer to version 7.1.2
* Update babel-loader to version 7.1.1
* Update babel-preset-env to version 1.6.0
* Update chai to version 4.1.0
* Update js-yaml to version 3.9.0
* Update jsdom to version 11.1.0
* Update postcss-smart-import to version 0.7.5
* Update sinon to version 2.3.7
* Update substring-trie to version 1.0.1
* Update webpack to version 3.2.0
* Update webpack-manifest-plugin to version 1.1.2
* yarn upgrade
* Upgrade extract-text-webpack-plugin to version 3.0.0
* Upgrade intl-relativeformat to version 2.0.0
7 years ago
Nolan Lawson
5fa2dd6e65
Use babel-plugin-transform-react-inline-elements ( #4109 )
8 years ago
Sorin Davidoi
fc4c74660b
Swipeable views ( #4105 )
...
* feat: Replace react-swipeable with react-swipeable-views
* fix: iOS 9
8 years ago
Yamagishi Kazutoshi
91d548f7e6
Update webpack-dev-server to v2.5.1 ( #4094 )
8 years ago
Yamagishi Kazutoshi
cbe94b88e2
Change webpack-dev-server repository ( #4061 )
8 years ago
Yamagishi Kazutoshi
a9c326b200
Upgrade chai-enzyme, precss and uws ( #4010 )
...
* Update chai-enzyme to v0.8.0
* Upgrade precss to v2.0.0
* Upgrade uws to v8.14.0
8 years ago
Nolan Lawson
e282580101
Faster emojify() by avoiding str.replace() entirely ( #4049 )
8 years ago
Yamagishi Kazutoshi
5c7a4f0b32
Remove babel-cli ( #4011 )
8 years ago
Yamagishi Kazutoshi
ead14f5bf0
Upgrade jsdom to version 11.0.0 ( #3994 )
8 years ago
Yamagishi Kazutoshi
e2dd576a1b
Update dependencies for Node.js ( #3967 )
...
* Update @storybook/addon-actions to v3.1.6
* Update @storybook/react to v3.1.6
* Update babel-loader to v7.1.0
* Update babel-plugin-transform-react-remove-prop-types to v0.4.6
* Update enzyme to v2.9.1
* Update fsevents to v1.1.2
* Update intersection-observer to v0.3.2
* Update npmlog to v4.1.2
* Update pg to v6.4.0
* Update postcss-loader to v2.0.6
* Update rails-ujs to v5.1.2
* Update react to v15.6.1
* Update react-addons-shallow-compare to v15.6.0
* Update react-dom to v15.6.0
* Update react-notification to v6.7.1
* Update react-test-renderer to v15.6.1
* Update react-textarea-autosize to v5.0.7
* Update redux to v3.7.1
* Update resolve-url-loader to v2.1.0
* Update sass-loader to v6.0.6
* Update sinon to v2.3.5
* Update stringz to v0.2.2
* Update uuid to v3.1.0
* Update websocket.js to v0.1.12
* Update yargs to v8.0.2
* yarn upgrade
8 years ago
Yamagishi Kazutoshi
285038972b
Stop using Babel with streaming server ( #3950 )
8 years ago
unarist
3d4e21f1ec
Don't set ASSET_HOST on build:development ( #3936 )
...
Setting ASSET_HOST to `http://0.0.0.0:8080 ` makes urls in manifest.json to
be invalid, e.g. `http://0.0.0.0:8080/packs/application.js `.
Anyway, we don't need set this on build:development because assets would
be delivered from same origin in development (and w/o dev-server).
8 years ago
Eugen Rochko
676f577e7e
Fix webpack-dev-server until it's fixed upstream ( #3916 )
8 years ago
Yamagishi Kazutoshi
c1a8e3d1eb
Use Class and Property Decorators ( #3730 )
...
ref https://tc39.github.io/proposal-decorators/
8 years ago
Nolan Lawson
e078919f07
Upgrade to Webpack 3 with module concatenation ( #3912 )
8 years ago
Sorin Davidoi
3d403a013d
chore(yarn): Install react-swipeable
8 years ago
Sorin Davidoi
8f03fdce7f
Upgrade React Router ( #3677 )
...
* chore(yarn): Remove react-router
* chore(yarn): Remove react-router-scroll
* chore(yarn): Remove history
* chore(yarn): Add react-router-dom
* chore: Remove usages of react-router-scroll
* refactor: Upgrade to react-router-web
* refactor: Use fork of react-router-scroll
This reverts commit 2ddea9a6c8d39fc64b7d0b587f3fbda7a45a7fa2.
* fix: Issues mentions in the PR feedback
8 years ago
Yamagishi Kazutoshi
53e42bf91e
Upgrade Webpacker to version 2.0 ( #3729 )
8 years ago
unarist
2356580cee
Use cross-env for npm run on Windows ( #3789 )
8 years ago
Yamagishi Kazutoshi
c93d0978f2
Upgrade react-immutable-pure-component to version 1.0.0 ( #3786 )
8 years ago
Yamagishi Kazutoshi
a208e7d655
Update React to version v15.6 ( #3736 )
8 years ago
Yamagishi Kazutoshi
ddd3251912
Update dependencies for Node.js ( #3705 )
...
* Update @storybook/addon-actions to v3.1.2
* Update @storybook/react to v3.1.2
* Update babel-core to v6.25.0
* Update babel-preset-env to v1.5.2
* Update chai to version v4.0.2
* Update extract-text-webpack-plugin to v2.1.2
* Update file-loader to v0.11.2
* Update intersection-observer to v0.3.0
* Update pg to v6.2.4
* Update sinon to v2.3.4
* Update style-loader to v0.18.2
* Update websocket.js to v0.1.10
* Update react-redux-loading-bar to v2.9.2
* yarn upgrade
8 years ago
Yamagishi Kazutoshi
ad4a28f4f6
Refactor translationRunner.js ( #3604 )
...
- Use yargs instead of minimist
- Simplify validators
- Fix typo (RFC5626 -> RFC5646)
8 years ago
Yamagishi Kazutoshi
d81b706f12
Fix typo (storyboard -> storybook) ( #3603 )
8 years ago
Yamagishi Kazutoshi
ab914ce6d5
Add OnboadingModal story ( #3578 )
8 years ago
Yamagishi Kazutoshi
943775fd90
Update dependencies of Node.js ( #3561 )
...
* 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
8 years ago
Yamagishi Kazutoshi
b0fe58dc69
Upgrade storybook to v3 ( #3558 )
8 years ago
Yamagishi Kazutoshi
1162f61ca3
Remove unused loaders of webpack ( #3495 )
8 years ago
Yamagishi Kazutoshi
39ea5c0e2e
Improve tests for JavaScript ( #3496 )
...
- 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
8 years ago
Nolan Lawson
c00ead8a72
Remove react-imageloader ( #3423 )
...
* Remove react-imageloader
* add eslint-disable-line
* improve image loading experience
* remove unneeded import
* use PureComponent
* Use componentWillMount instead of constructor
8 years ago
Nolan Lawson
0e12a8dab9
Improve scheduling of requestIdleCallback tasks ( #3477 )
8 years ago
Yamagishi Kazutoshi
4c7fe48c40
Add "private: true" to package.json ( #3441 )
8 years ago
Yamagishi Kazutoshi
5ac4d677e9
Remove unused React Storybook addon ( #3434 )
8 years ago
Yamagishi Kazutoshi
e0ada97770
Update dependencies of Node.js ( #3067 )
...
* 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
8 years ago
Eugen Rochko
425d02287a
Improve streaming API cluster logging ( #3370 )
...
* 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
8 years ago
Eugen Rochko
c48772fd3f
Introduce react-textarea-autosize instead of using style.height side effects ( #3334 )
8 years ago
Nolan Lawson
2469fd1cdc
Add improved performance marks for development mode ( #3297 )
8 years ago
Yamagishi Kazutoshi
531c1bb245
Add localization of datetime in public page ( #3296 )
8 years ago
Yamagishi Kazutoshi
c52090dbfe
fix storybook ( #3292 )
8 years ago
Sorin Davidoi
8e4d1cba00
Lazy load toots using IntersectionObserver ( #3191 )
...
* 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
8 years ago
Nolan Lawson
1fd18a61bd
Use node instead of babel-node for streaming ( #3269 )
8 years ago
Yamagishi Kazutoshi
860ffc0560
Focus the submit button ( #3253 )
...
Focus the submit button when confirmation modal is opened.
Also, changed cancellation link to button.
This makes the meaning clearer.
8 years ago
Nolan Lawson
60e2b951de
Add webpack-bundle-analyzer for production builds ( #3170 )
8 years ago
Nolan Lawson
9d04de1c8d
Only load Intl data for current language ( #3130 )
...
* 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
8 years ago
Yamagishi Kazutoshi
2e112e2406
Improve eslint rules ( #3147 )
...
* Add semi to ESLint rules
* Add padded-blocks to ESLint rules
* Add comma-dangle to ESLint rules
* add config/webpack and storyboard
* add streaming/
* yarn test:lint -- --fix
8 years ago
Yamagishi Kazutoshi
4a3db71692
Remove react-autosuggest ( #3140 )
...
react-autosuggest is added from c49f6290eb
Dependence removed from b27066e154
8 years ago
Yamagishi Kazutoshi
dc559d6b7a
Downgrade eslint-plugin-jsx-a11y to v4.0.0 ( #3131 )
...
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
8 years ago
Sorin Davidoi
f18a6c2cf2
feat(babel): Strip prop types ( #3122 )
...
* feat(babel): Strip prop types
* chore(babel): Indent
* fix(babel): Move babel-plugin-transform-react-remove-prop-types to dependencies
8 years ago