kibigo!
f48f42598f
Merge upstream ( #81 )
2017-07-15 14:33:15 -07:00
Sorin Davidoi
20111dd4d5
Small style fixes ( #4206 )
...
* fix(components/media_modal): Center horizontally in Firefox
* fix(components/status_list): Do not remove load more button
2017-07-14 22:31:25 +02:00
Sorin Davidoi
b047d5c747
fix(components/media_modal): Style issues ( #4187 )
2017-07-13 22:18:18 +02:00
kibigo!
1b225a979a
Moved glitch containers and commented unused files
2017-07-13 02:40:16 -07:00
kibigo!
bcc30c8697
Merge upstream!! #64 <3 <3
2017-07-12 02:03:17 -07:00
kibigo!
0549ccc458
Importing vanillin from upstream ;) ;)
2017-07-12 01:10:17 -07:00
kibigo!
0e08cb1b36
Moved glitch files to their own location ;)
2017-07-12 01:02:51 -07:00
Ondřej Hruška
29cb8849d2
Fixed #66 disabling collapse collapses all toots
2017-07-11 20:48:31 +02:00
Eugen Rochko
49026e27e8
Redesign the landing page, mount public timeline on it ( #4122 )
...
* Redesign the landing page, mount public timeline on it
* Adjust the standalone mounted component to the lacking of router
* Adjust auth layout pages to new design
* Fix tests
* Standalone public timeline polling every 5 seconds
* Remove now obsolete translations
* Add responsive design for new landing page
* Address reviews
* Add floating clouds behind frontpage form
* Use access token from public page when available
* Fix mentions and hashtags links, cursor on status content in standalone mode
* Add footer link to source code
* Fix errors on pages that don't embed the component, use classnames
* Fix tests
* Change anonymous autoPlayGif default to false
* When gif autoplay is disabled, hover to play
* Add option to hide the timeline preview
* Slightly improve alt layout
* Add elephant friend to new frontpage
* Display "back to mastodon" in place of "login" when logged in on frontpage
* Change polling time to 3s
2017-07-11 15:27:59 +02:00
Sorin Davidoi
420c4d8dc8
Swipeable views ( #4105 )
...
* feat: Replace react-swipeable with react-swipeable-views
* fix: iOS 9
2017-07-09 15:02:26 +02:00
Ondřej Hruška
0b15430dbe
Fix fullwidth media CSS bugs with NSFW video, and bad spoiler margin on static pages ( #60 )
...
* Fix fullwidth style not applied to NSFW video correctly
* Fix botched video .media-spoiler margin on static pages
2017-07-09 09:07:14 +02:00
Yamagishi Kazutoshi
aaa7f3ff41
Use srcSet only when know width ( #4112 )
2017-07-08 17:20:53 +02:00
Ondřej Hruška
319e8e3041
Added a toggle for full-width media previews
2017-07-08 06:46:12 -04:00
Ondřej Hruška
49bae78c88
New design for visibility icons
2017-07-07 23:07:16 -04:00
Nolan Lawson
01ee91b725
Avoid using getBoundingClientRect to calculate height ( #4001 )
2017-07-08 01:57:22 +02:00
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
2017-07-08 00:06:02 +02:00
Ondřej Hruška
3785bfc9fc
Added toot visibility icons and removed Boost btn changing icon
2017-07-07 06:31:11 -04:00
Ondřej Hruška
0be888ca96
Fix back button to never go to a different website using history len check
2017-07-07 05:59:15 -04:00
STJrInuyasha
b03812ef19
Parse links in status content on update as well as mount ( #4042 )
...
* Update links in status content on update as well as mount
Fixes occasional bugs with mentions and hashtags not being set to open in a new column like they should, and instead opening in a new page
* use classList instead of raw className
2017-07-06 21:30:37 +02:00
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.
2017-07-06 21:26:21 +02:00
kibigo!
3cd65539da
Statuses redux!
...
- Better unified reblogs, statuses, and notifications
- Polished up collapsed toots greatly
- Apologies to bea if this makes everything more difficult
2017-07-05 18:51:23 -07:00
kibigo!
6b3a6744c9
Media display improvements
...
- built in fullwidth styling
- letterbox settings toggle
- media no longer counts towards height when making toot-collapsing
measurements
2017-06-30 02:18:25 -07:00
kibigo!
a07244026e
Fixing an aspect of #32 which had previously escaped my attention
2017-06-29 23:39:57 -07:00
kibigo!
eaa3990136
Improvements to image icon appearance on SHOW MORE
2017-06-29 01:43:15 -07:00
kibigo!
cc5584c805
Tiny Status improvements
...
- Media toots are no longer auto-collapsed if the media is behind a CW
- Display names no longer appear clickable when a toot is collapsed
- Fixed #36 by adding reduplicating the media icon inside the SHOW
MORE/LESS
2017-06-28 23:23:05 -07:00
kibigo!
d78f6efc32
Fixes #32 bug with revealing sensitive media
2017-06-28 22:57:30 -07:00
kibigo!
7de01e789a
Added App Setttings Modal
2017-06-28 22:00:54 -07:00
kibigo!
b2beab2cd6
Moved reblog wrapper outside of <Status>
2017-06-27 18:34:30 -07:00
beatrix-bitrot
cdcb74ffb6
Merge remote-tracking branch 'upstream/master'
2017-06-27 20:46:13 +00:00
Sorin Davidoi
eea5c01a41
fix(components/status): Up & down jump due to content being added to the DOM ( #3972 )
2017-06-27 18:43:53 +02:00
Eugen Rochko
0d316bcfd2
Turn report screen into a modal ( #3965 )
2017-06-27 18:07:21 +02:00
Sorin Davidoi
d6006ecb4b
Responsive images in media gallery ( #3963 )
...
* feat(components/media_gallery): Responsive images
* fix(components/media_gallery): Link to image URL
2017-06-27 13:46:37 +02:00
kibigo!
1ccb8a2d09
Disable account linking on collapsed toots too
2017-06-26 15:41:09 -07:00
kibigo!
ebd299413c
Disable links on collapsed toots
2017-06-26 15:22:03 -07:00
kibigo!
04bbba479a
Notifications collapsed by default
2017-06-26 14:28:43 -07:00
kibigo!
734d681fe8
Expand toot by clicking on body [fixed!]
2017-06-25 19:19:45 -07:00
kibigo!
d9cb3941d8
Stick images inside of CWs
2017-06-25 19:15:03 -07:00
kibigo!
92c404d703
Clicking on a collapsed toot just uncollapses it.
2017-06-25 16:09:32 -07:00
kibigo!
ab0e92d337
Auto-uncollapse when expanding CW
2017-06-25 15:52:55 -07:00
kibigo!
be33f28968
Disables CW [Show More/Less] links in collapsed toots
2017-06-25 15:25:19 -07:00
kibigo!
f5a90db7ef
Adds media icons to toots
2017-06-25 14:22:11 -07:00
kibigo!
d5cf3e5570
Media previews for collapsed toots
2017-06-25 13:57:52 -07:00
PFM
f4d0f6954e
Fix "undefined" in className ( #3939 )
2017-06-25 16:02:56 +02:00
unarist
fdd982a562
Clean column collapsible ( #3931 )
...
* Remove unused column_collapsable.js
* Remove old styles
* Extract `> div` style to independent class
2017-06-24 23:18:11 +02:00
Gô Shoemake
26254fc5c4
Reblog support for collapsed toots
2017-06-23 18:23:26 -07:00
beatrix-bitrot
5c3d671a72
missing punctuation
2017-06-23 22:01:04 +00:00
kibigo!
32574a7e3c
Updates height upon collapsing
2017-06-23 21:50:45 +00:00
kibigo!
58cdc55bd5
Minor collapsing button improvements~
2017-06-23 21:50:45 +00:00
kibigo!
744917179b
Collapsable toots [1/??] ☕ ️
2017-06-23 21:50:45 +00:00
Charlotte Fields
a7a7613e71
cybre cleanup
2017-06-23 21:45:14 +00:00
Chronister
2edadd7fe7
All cybrespace changes through 5/28
2017-06-23 21:45:14 +00:00
Daniel Hunsaker
0c8f23b69f
Fix a typo and give CW'd statuses the right cursor ( #3918 )
2017-06-23 23:13:27 +02:00
Yamagishi Kazutoshi
e2027fbe42
Use Class and Property Decorators ( #3730 )
...
ref https://tc39.github.io/proposal-decorators/
2017-06-23 19:36:54 +02:00
Yamagishi Kazutoshi
539dbaa049
Remove unused variables ( #3906 )
2017-06-23 16:05:04 +02:00
unarist
66e14b3d3a
Don't attach IntersectionObserver for wrapped statuses ( #3883 )
...
(This patch has been merged as bugfix and reverted, but still valuable as
improvement)
Previously, we've attached IntersectionObserver twice for boosted statuses:
wrapper Status and wrapped Status. but wrapped Status don't need to manage
intersection and visibility by itself, because it's a part of wrapper Status.
2017-06-21 06:47:36 +02:00
Eugen Rochko
65b46159ec
Revert #3851 ( #3878 )
2017-06-21 01:37:15 +02:00
Eugen Rochko
cbc0fea992
Revert "Don't attach IntersectionObserver for wrapped statuses" ( #3877 )
...
* Revert "Bump version to 1.4.4"
This reverts commit bd6bee29de
.
* Revert "Fix conversations (fixes #3869 ) (#3870 )"
This reverts commit ee7952c349
.
* Revert "Fix streaming server. Redis connection subscribe for each channel. (#3828 )"
This reverts commit 8f202bc639
.
* Revert "Filter direct statuses in Status.as_home_timeline (#3842 )"
This reverts commit 77dcf442e7
.
* Revert "Fix RemoteFollow behavior (#3868 )"
This reverts commit 1d2eba7a84
.
* Revert "Update fabricator for MediaAttachment to attach a file according to type (#3862 )"
This reverts commit baa248a801
.
* Revert "Upgrade React Router (#3677 )"
This reverts commit 9bc32eb267
.
* Revert "Do not call setState from unmounted component (#3853 )"
This reverts commit 59849b392d
.
* Revert "Replace TextIconButton for SensitiveButton to IconButton (#3759 )"
This reverts commit 47dceaded6
.
* Revert "Fix RTL detection on Ruby side (#3867 )"
This reverts commit 55376105f5
.
* Revert "i18n: Fixed typo in Polish translation (#3864 )"
This reverts commit 3c355ed26b
.
* Revert "Don't attach IntersectionObserver for wrapped statuses (#3863 )"
This reverts commit 79c04b0a2c
.
2017-06-21 01:33:14 +02:00
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
2017-06-20 20:40:03 +02:00
alpaca-tc
59849b392d
Do not call setState from unmounted component ( #3853 )
...
Stop an executing task if the component already unmounted.
2017-06-20 20:37:09 +02:00
unarist
79c04b0a2c
Don't attach IntersectionObserver for wrapped statuses ( #3863 )
...
This fixes a bug that sometimes boosted statuses being hidden on scrolling.
Previously, we've attached IntersectionObserver twice for boosted statuses:
wrapper Status and wrapped Status. This will call intersection handler twice,
so this may results race condition...probably.
2017-06-20 04:12:51 +02:00
unarist
9e5c733a66
Clicking on the CW text should expand the status ( #3855 )
2017-06-20 01:34:10 +02:00
unarist
8db07d1187
Set cursor:pointer only when necessary ( #3857 )
2017-06-19 18:27:07 +02:00
alpaca-tc
36049c0096
Unobserve status on unmount ( #3851 )
2017-06-19 11:29:57 +02:00
Nolan Lawson
424cf0a590
Fix jittery scrolling for Chromium browsers ( #3776 ) ( #3832 )
2017-06-18 02:59:29 +02:00
Sorin Davidoi
cf69bdc097
fix(status): Content jump due to height changes ( #3734 )
2017-06-13 20:46:21 +02:00
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
2017-06-12 20:02:17 +02:00
Eugen Rochko
b8bc26d60f
Improve RTL detection ( #3682 )
...
- Use plaintext
- Strip out URLs
- Strip out mentions
- Strip out hashtags
- Strip out whitespace from "overall" count
- Consistent between JS and Ruby
2017-06-10 15:06:50 +02:00
Sorin Davidoi
7300a41678
fix(components/autosuggest_textarea): Race condition regarding onBlur ( #3631 )
2017-06-07 20:05:53 +02:00
ふぁぼ原
f6fddd95d4
Add regex filters on the community timeline and the public timeline. ( #3564 )
...
* Add regex filter on the community timeline and the public timeline
* correcting
* Adjust the height of header buttons
* Remove trailing spaces
* Remove trailing spaces
* Solve some code duplication
* reset the state of the locale files in app/javascript/mastodon/locales
* adjust to upstream
* adjust to upstream
* change keys of locale settings
2017-06-06 16:56:10 +02:00
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
2017-06-06 13:20:07 +02:00
Yamagishi Kazutoshi
615c580665
Add quotes ESLint rules ( #3602 )
...
* Add quotes ESLint rule
* Add jsx-quotes ESlint rule
* Sort ESLint rules
2017-06-06 03:56:36 +02:00
Yamagishi Kazutoshi
253c0ad358
Disable ESLint rule jsx/anchor-has-content ( #3601 )
2017-06-06 03:55:56 +02:00
unarist
80c8cd6cad
Add back button to hashtag timeline again ( #3587 )
2017-06-05 17:10:40 +02:00
unarist
11211fe1c0
Prevent pinned columns from scroll to top on URL changing ( #3586 )
2017-06-05 15:20:46 +02:00
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
2017-06-04 01:39:38 +02:00
Nolan Lawson
294bc9a78d
Fix isIntersecting in Chrome ( #3525 )
2017-06-03 14:43:10 +02:00
Yamagishi Kazutoshi
c7be992701
Add ESLint rule (object-curly-spacing) ( #3498 )
2017-06-01 17:25:10 +02:00
Nolan Lawson
6d0a980aa6
Improve scheduling of requestIdleCallback tasks ( #3477 )
2017-05-31 15:11:33 +02:00
Yamagishi Kazutoshi
52ef65bdc6
Change PureComponent to ImmutablePureComponent ( #3460 )
...
* Change PureComponent to ImmutablePureComponent
Change PureComponent to ImmutablePureComponent in AttachmentList.
* rm React.
2017-05-31 02:14:26 +02:00
Nolan Lawson
4ee3796db7
Add IntersectionObserverWrapper to cut down on re-renders ( #3406 )
2017-05-29 18:17:51 +02:00
Nolan Lawson
147a048e20
Prevent wasted render in load_more.js ( #3402 )
2017-05-29 17:52:45 +02:00
Nolan Lawson
2810bd3f3d
Fix IntersectionObserver isIntersecting in Edge ( #3365 )
2017-05-28 16:45:42 +02:00
Nolan Lawson
f506c4b342
Simplify isIntersecting in status_list.js ( #3371 )
2017-05-28 16:26:35 +02:00
Eugen Rochko
e600e0d0c5
Introduce react-textarea-autosize instead of using style.height side effects ( #3334 )
2017-05-26 18:22:23 +02:00
Yamagishi Kazutoshi
3d3441dddd
Change anchor to button element ( #3321 )
...
Fix warning for ESLint (jsx-a11y/href-no-hash).
2017-05-26 14:10:37 +02:00
unarist
c9325ad703
Fix "Cannot read property" on missing status ( #3322 )
...
I've found this issue when I clicked replies to muted user on the timeline.
Properties I've removed in here were added with lazy loading using
IntersectionObserver (5efcea69
), but those statuses are not need to be
tracked anyway because it will be rendered as only empty div.
2017-05-26 14:07:48 +02:00
Nolan Lawson
98d10851ca
Improve shouldComponentUpdate for status and status_action_bar ( #3323 )
2017-05-26 14:05:52 +02:00
Nolan Lawson
f179a99a7e
implement shouldComponentUpdate for relative_timestamp ( #3320 )
2017-05-26 03:25:41 +02:00
unarist
d85be9315a
Fix an error on dragging into status_content component ( #3308 )
2017-05-25 16:27:44 +02:00
Nolan Lawson
534b223c29
Remove unnecessary action bar wrapper divs ( #3299 )
2017-05-25 14:15:12 +02:00
Yamagishi Kazutoshi
1a1c5a0271
Fix hovering default value for avatar component ( #3290 )
2017-05-25 03:08:05 +02:00
unarist
dc0e45eda2
Prevent contents of the status placeholder from overflowing ( #3287 )
...
Since long lines may overflow and cause the status-list horizontally scrollable,
I added `overflow: hidden` to placeholder contents to prevent it.
2017-05-25 02:23:54 +02:00
Yamagishi Kazutoshi
ccd864c41a
Remove unnecessary constructors ( #3280 )
2017-05-24 17:55:16 +02:00
Sorin Davidoi
5efcea69d2
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
2017-05-24 17:55:00 +02:00
Yamagishi Kazutoshi
5bb10252fa
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.
2017-05-23 13:10:41 +02:00
Yamagishi Kazutoshi
0b3fa49001
Refactoring. Removed useless import. ( #3254 )
...
original: https://github.com/tootsuite/mastodon/pull/2618
2017-05-23 13:08:01 +02:00
unarist
21d9bb041e
Keep children of the column-collapsable until the transition is completed ( #3218 )
2017-05-22 15:01:27 +02:00
unarist
0581edb572
Fix "Edit profile" on the account action bar ( #3222 )
2017-05-22 14:57:50 +02:00
Yamagishi Kazutoshi
e4ed0b155c
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
2017-05-20 17:31:47 +02:00
Nolan Lawson
fb220aefc9
Remove unnecessary status__info-time div ( #3172 )
2017-05-20 16:48:49 +02:00