Yamagishi Kazutoshi
87bb16a236
Add unfollow modal (optional) ( #4246 )
...
* Add unfollow modal
* unfollowing someone
* remove unnecessary prop
7 years ago
Yamagishi Kazutoshi
af027b6b30
Exclude self toots from regular expression filter ( #4245 )
...
* Exclude self toots from regular expression filter
* refactor
7 years ago
unarist
55313a0102
Fix column swiping ( #4211 )
...
This fixes broken behavior and enable animation only on swiping.
7 years ago
Eugen Rochko
c0e596062b
Fix #3773 - Pin favourites column ( #4201 )
7 years ago
Sorin Davidoi
912ca0fa57
Improve swiping ( #4188 )
...
* feat(components/columns_area): Toggle animation settings
* fix(components/media_modal): Center non-visible views
* fix(components/media_modal): Check for null
* refactor(columns_area): Better logic
7 years ago
Sorin Davidoi
b047d5c747
fix(components/media_modal): Style issues ( #4187 )
7 years ago
unarist
c3ec4f2dac
Rerender modal on property changes ( #4175 )
...
Render function for BundleContainer must not be methods.
React doesn't know dependency of the method, so they won't rerender on property updates.
In this case, when you close modal and open another modal immediately,
old modal will be open instead of new one.
7 years ago
Naoki Kosaka
6e511ee673
Fix media modal prev button behavior. ( #4158 )
7 years ago
Sorin Davidoi
1a5ae3019d
refactor: Rewrite immutablejs import statements using destructuring ( #4147 )
7 years ago
Lynx Kotoura
5703923989
Fix duplication of tag in columns_area.js ( #4131 )
...
Deleted ">" just a typo.
7 years ago
Sorin Davidoi
f19f18f47e
fix(components/media_modal): Aspect ratio ( #4128 )
...
* fix(components/media_modal): Aspect ratio
* fix: Remove useless style
7 years ago
Sorin Davidoi
420c4d8dc8
Swipeable views ( #4105 )
...
* feat: Replace react-swipeable with react-swipeable-views
* fix: iOS 9
7 years ago
unarist
05833fc24a
Avoid async import if the component is previously loaded ( #4127 )
7 years ago
unarist
f66270fb73
Fix initial loading of pinned Notifications column ( #4126 )
7 years ago
Sorin Davidoi
4264c62111
refactor: Make all reducers sync ( #4125 )
7 years ago
Sorin Davidoi
c202889d8d
fix: Rerender Bundle on route change ( #4120 )
7 years ago
unarist
f1827d5070
Fix first loading of notifications when the column is pinned ( #4114 )
7 years ago
Yamagishi Kazutoshi
a45154d725
Don't use preview when image size is unknown ( #4113 )
7 years ago
Nolan Lawson
01ee91b725
Avoid using getBoundingClientRect to calculate height ( #4001 )
7 years ago
Sorin Davidoi
40b32ffb12
Lazy load components ( #3879 )
...
* feat: Lazy-load routes
* feat: Lazy-load modals
* feat: Lazy-load columns
* refactor: Simplify Bundle API
* feat: Optimize bundles
* feat: Prevent flashing the waiting state
* feat: Preload commonly used bundles
* feat: Lazy load Compose reducers
* feat: Lazy load Notifications reducer
* refactor: Move all dynamic imports into one file
* fix: Minor bugs
* fix: Manually hydrate the lazy-loaded reducers
* refactor: Move all dynamic imports to async-components
* fix: Loading modal style
* refactor: Avoid converting the raw state for each lazy hydration
* refactor: Remove unused component
* refactor: Maintain modal name
* fix: Add as=script to preload link
* chore: Fix lint error
* fix(components/bundle): Check if timestamp is set when computing elapsed
* fix: Load compose reducers for the onboarding modal
7 years ago
Damien Erambert
387de88e2f
Add a setting allowing the use of system's default font in Web UI ( #4033 )
...
* add a system_font_ui setting on the server
* Plug the system_font_ui on the front-end
* add EN/FR locales for the new setting
* put Roboto after all other fonts
* remove trailing whitespace so CodeClimate is happy
* fix user_spec.rb
* correctly write user_spect this time
* slightly better way of adding the classes
* add comments to the system-font stack for clarification
* use .system-font for the class instead
* don't use multiple lines for comments
* remove trailing whitespace
* use the classnames module for consistency
* use `mastodon-font-sans-serif` instead of Roboto directly
7 years ago
unarist
1e71b683bc
Unobserve status on unmount ( #4013 )
...
This fixes a warning on status unmounting (e.g. deletion).
This also resets IntersectionObserverWrapper on disconnect to avoid `unobserve()` calls
which has bug in Edge.
7 years ago
Sorin Davidoi
214090aa4d
fix(components/columns_area): Increase delta for swipe detection ( #4037 )
7 years ago
Eugen Rochko
0d316bcfd2
Turn report screen into a modal ( #3965 )
7 years ago
Yamagishi Kazutoshi
8a9408b7c3
Maintain aspect ratio for preview image ( #3966 )
7 years ago
Sorin Davidoi
8180d8bc35
feat(components/onboarding_modal): Swipe between pages ( #3934 )
7 years ago
Yamagishi Kazutoshi
e2027fbe42
Use Class and Property Decorators ( #3730 )
...
ref https://tc39.github.io/proposal-decorators/
7 years ago
Eugen Rochko
88458a1638
Merge branch 'swipe-gestures' of git://github.com/sorin-davidoi/mastodon into sorin-davidoi-swipe-gestures
7 years ago
Yamagishi Kazutoshi
539dbaa049
Remove unused variables ( #3906 )
7 years ago
Sorin Davidoi
501a3cf944
feat: Swipeable media
7 years ago
Sorin Davidoi
598bb06687
feat: Swipeable columns
7 years ago
Eugen Rochko
65b46159ec
Revert #3851 ( #3878 )
8 years ago
Sorin Davidoi
9bc32eb267
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
alpaca-tc
36049c0096
Unobserve status on unmount ( #3851 )
8 years ago
Nolan Lawson
f973d620ca
handle resize in a debounce() ( #3834 )
8 years ago
Yamagishi Kazutoshi
dd7fb41dbb
Add alt attribute to ImageLoader ( #3765 )
8 years ago
Eugen Rochko
2deea77f2e
Unread indicator was invisible behind column header, adjusted ( #3720 )
...
* Unread indicator was invisible behind column header, adjusted
* Unread indicator now a CSS pseudo-element
* Adjust flex
8 years ago
Eugen Rochko
1348d63517
Fix #3665 - Refactor timelines reducer ( #3686 )
...
* Move ancestors/descendants out of timelines reducer
* Refactor timelines reducer
All types of timelines now have a flat structure and use the same
reducer functions and actions
* Reintroduce some missing behaviours
* Fix wrong import in reports
* Fix includes typo
* Fix issue related to "next" pagination in timelines and notifications
* Fix bug with timeline's initial state, expandNotifications
8 years ago
Eugen Rochko
185bcf6fe1
Use preview image in <ImageLoader /> to provide immediate visual feedback ( #3595 )
...
before the full-size image is loaded
8 years ago
Yamagishi Kazutoshi
d063663125
Improve ESLint rules for JSX ( #3608 )
...
* Add react/no-string-refs ESLint rule
* Add react/jsx-boolean-value ESLint rule
* Add react/jsx-closing-bracket-location ESLint rule
* Add react/jsx-indent ESLint rule
* Add react/jsx-curly-spacing ESLint rule
* Add react/jsx-equals-spacing ESLint rule
* Add react/jsx-first-prop-new-line ESLint rule
* Add react/jsx-no-duplicate-props ESLint rule
* Add react/jsx-tag-spacing ESLint rule
8 years ago
Yamagishi Kazutoshi
615c580665
Add quotes ESLint rules ( #3602 )
...
* Add quotes ESLint rule
* Add jsx-quotes ESlint rule
* Sort ESLint rules
8 years ago
Yamagishi Kazutoshi
bba7df45e9
Add support key shortcut to Onboarding Modal ( #3517 )
...
* Add support key shortcut to Onboarding Modal
* this.state.pages -> this.pages
8 years ago
Eugen Rochko
cf8f820144
Allow mounting arbitrary columns ( #3207 )
...
* Allow mounting arbitrary columns
* Refactor column headers, allow pinning/unpinning and moving columns around
* Collapse animation
* Re-introduce scroll to top
* Save column settings properly, do not display pin options in
single-column view, do not display collapse icon if there is
nothing to collapse
* Fix one instance of public timeline being closed closing the stream
Fix back buttons inconsistently sending you back to / even if history exists
* Getting started displays links to columns that are not mounted
8 years ago
Yamagishi Kazutoshi
c7be992701
Add ESLint rule (object-curly-spacing) ( #3498 )
8 years ago
unarist
158d6c85da
Focus the submit button on the boost modal ( #3494 )
...
Focus the submit button when boost modal is opened.
8 years ago
Nolan Lawson
e7714433fd
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
6d0a980aa6
Improve scheduling of requestIdleCallback tasks ( #3477 )
8 years ago
Nolan Lawson
4ee3796db7
Add IntersectionObserverWrapper to cut down on re-renders ( #3406 )
8 years ago
Yamagishi Kazutoshi
3d3441dddd
Change anchor to button element ( #3321 )
...
Fix warning for ESLint (jsx-a11y/href-no-hash).
8 years ago
Nolan Lawson
98b39c2cbc
Replace onWheel listener with onScroll ( #3324 )
...
* Replace onWheel listener with onScroll
* Update column.js
8 years ago