Renaud Chaput
7b5a274836
Enforce import order with ESLint ( #25096 )
2 years ago
Yamagishi Kazutoshi
9315d51940
Disable media cache on service worker ( #19471 )
2 years ago
Eugen Rochko
f1c016e7b6
Fix PWA manifest using `/web` paths ( #19421 )
2 years ago
Yamagishi Kazutoshi
f922858b78
Replace to `workbox-webpack-plugin` from `offline-plugin` ( #18409 )
2 years ago
Eugen Rochko
2f111b7fbb
Disable service worker media cache and IndexedDB storage ( #7932 )
...
Fix #7893
Fix #7615
6 years ago
Hinaloe
d037ae26e2
Return collect response when fail put cache to storage ( #7863 )
...
* return collect response when fail put cache to storage
* cleanup callback
7 years ago
Yamagishi Kazutoshi
fe98e276e1
Update ESLint for Code Climate ( #7696 )
...
* Update babel-eslint to version 8.2.3
* Update eslint to version 4.19.1
* Update eslint-plugin-promise to version 3.8.0
* Update eslint-plugin-react to version 7.8.2
* Upgrade eslint-plugin-jsx-a11y to version 6.0.3
* yarn test:lint --fix
7 years ago
Akihiko Odaki
0cb1524dc1
Cache attachments on external host with service worker ( #7493 )
7 years ago
Akihiko Odaki
9e5edeaf3a
Cache media only when storage can be freed ( #7547 )
7 years ago
Akihiko Odaki
7dd6224ca1
Let navigator follow redirect instead that handling redirect in fetch ( #7500 )
...
* Let navigator follow redirect instead that handling redirect in fetch
* Do not use cache when fetched resource is to redirect
7 years ago
Akihiko Odaki
4e09854ccb
Consider only-if-cached in FetchEvent valid on non-Mozilla-Firefox browser ( #7506 )
7 years ago
Akihiko Odaki
82582dac2b
Ignore only-if-cached cache mode on Mozilla Firefox prior to version 60 ( #7503 )
7 years ago
Akihiko Odaki
156fc9ab20
Clone response before using when caching web page ( #7498 )
7 years ago
Akihiko Odaki
060fa11ee2
Disallow async function in service worker ( #7482 )
...
offline-plugin depends on webpack.optimize.UglifyJsPlugin, which is an
alias of uglifyjs-webpack-plugin v0.4.6. uglifyjs-webpack-plugin v0.4.6
uses uglify-js 2.8.29, which is not compatible with async function.
7 years ago
Akihiko Odaki
fb8768a469
Free stroage if it is exceeding disk quota ( #7061 )
7 years ago
unarist
cfd1fe74c9
Clone response before put it to the cache ( #6932 )
...
`Response.prototype.clone()` must be called before the response used.
This fixes an error from ServiceWorker and failing to load image when the
image is not cached.
7 years ago
Akihiko Odaki
e829c21cc6
Cache media ( #6902 )
7 years ago
Akihiko Odaki
cabb197337
Synchronize HTML page cache with sessions ( #6815 )
7 years ago
Akihiko Odaki
8b645b5bca
Cache HTML page with Service Worker ( #6802 )
...
This is the first step to make Mastodon work offline. It is also required
by Chromium to trigger Web Manifest automated install prompt.
7 years ago
Sorin Davidoi
49389c3809
feat(push-notifications): Open link in current tab if possible ( #4228 )
...
* fix(push-notification): Open link in current tab if possible
* feat(sw): Skip waiting and claim clients
7 years ago
Sorin Davidoi
ecab38fd66
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