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
Ondřej Hruška
d10be2c825
Fixed js type error in advanced_options_dropdown.js
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
kibigo!
3cd65539da
Statuses redux!
...
- Better unified reblogs, statuses, and notifications
- Polished up collapsed toots greatly
- Apologies to bea if this makes everything more difficult
7 years ago
unarist
90865f242a
Show LoadMore button on Notifications even if all items are filtered ( #4077 )
7 years ago
Surinna Curtis
f20d85a14f
a real default for advanced options long description
7 years ago
Surinna Curtis
c076162192
satisfy eslint
7 years ago
Surinna Curtis
025c01b8a3
some adjustments to open/active for advanced options dropdown
7 years ago
Surinna Curtis
bcccb7ed90
highlight … button if any options enabled
7 years ago
Surinna Curtis
24fde0bd4a
toggles for advanced options
7 years ago
Surinna Curtis
3f7c0b66f4
Local-only option and dropdown all working
7 years ago
Surinna Curtis
8d9bc86979
Further improvements to dropdown html
7 years ago
Surinna Curtis
440c008da7
The beginnings of an advanced options dropdown
7 years ago
Surinna Curtis
3df7a1b6f4
Move layout override into app settings modal
...
Squashed commit of the following:
commit 3842f879865818a3299f8283f8ed1b43c5566500
Author: Surinna Curtis <ekiru.0@gmail.com>
Date: Mon Jul 3 19:57:39 2017 -0500
Fix some style issues
commit 08628a0234392ecac90e869a1272f429de0b6db2
Author: Surinna Curtis <ekiru.0@gmail.com>
Date: Mon Jul 3 19:35:22 2017 -0500
Improved styling and layout of select app settings
commit 1787a7c20f2bf7101c6d6830450564178314a737
Author: Surinna Curtis <ekiru.0@gmail.com>
Date: Mon Jul 3 17:13:53 2017 -0500
remove the layout selector ui from the drawer
commit 7d93b180b1e615e2c36210ad6f119fe80a2778d8
Author: Surinna Curtis <ekiru.0@gmail.com>
Date: Mon Jul 3 17:01:51 2017 -0500
Add layout setting to app settings modal
7 years ago
Sorin Davidoi
214090aa4d
fix(components/columns_area): Increase delta for swipe detection ( #4037 )
7 years ago
kibigo!
b31310e08f
createBio function added
7 years ago
kibigo!
6b3a6744c9
Media display improvements
...
- built in fullwidth styling
- letterbox settings toggle
- media no longer counts towards height when making toot-collapsing
measurements
7 years ago
kibigo!
73033e860d
Images behind CWs in detailed statuses too
7 years ago
kibigo!
7de01e789a
Added App Setttings Modal
7 years ago
beatrix-bitrot
cdcb74ffb6
Merge remote-tracking branch 'upstream/master'
7 years ago
Eugen Rochko
0d316bcfd2
Turn report screen into a modal ( #3965 )
7 years ago
kibigo!
317de1efa8
Profile metadata improvements
7 years ago
Yamagishi Kazutoshi
8a9408b7c3
Maintain aspect ratio for preview image ( #3966 )
7 years ago
kibigo!
04bbba479a
Notifications collapsed by default
7 years ago
Surinna Curtis
8f15cca3e2
Bio length on client side mostly doesn't count metadata
7 years ago
kibigo!
a988d0065a
Patching rebase errors
7 years ago
Sorin Davidoi
2b1ab274fe
fix(features/compose): Handle external changes to the textarea ( #3632 )
7 years ago
Shel Raphen
97f99bca98
Glitchsocification
7 years ago
kibigo!
cf1a103ee7
OKAY THIS WORKS THIS WORKS
7 years ago
kibigo!
10ca00107d
Better settings handling with localSettings (new!)
7 years ago
kibigo!
b4b03c99f1
Use Redux store to keep track of layout
7 years ago
Sorin Davidoi
8180d8bc35
feat(components/onboarding_modal): Swipe between pages ( #3934 )
7 years ago
Surinna Curtis
b01b111ca1
Pass in correct "singleColumn" prop value when auto-columns is not used.
7 years ago
Surinna Curtis
e5b6c21f32
Support overriding media queries for deciding between single-column/multi-column layouts with a class
7 years ago
Yamagishi Kazutoshi
6779ba5f18
Fix #3924 (regression from #3906 ) ( #3925 )
7 years ago
beatrix-bitrot
5be13a0557
clean up old avatar class
7 years ago
Matthew Walsh
2fb8475418
Unified avatar styling
...
Avatars now have consistent styling across all pages; border radius can be adjusted with a SASS variable ($ui-avatar-border-size)
7 years ago
kibigo!
cd07fb5b27
ESLint improvements for Profile Metadata
7 years ago
unarist
45058b5fde
Use debounce for dispatch scrollTopNotification and expandNotifications ( #3700 )
7 years ago
kibigo!
a36c6a3e54
✨ Profile Metadata HACK 😈
7 years ago
Charlotte Fields
a7a7613e71
cybre cleanup
7 years ago
Chronister
2edadd7fe7
All cybrespace changes through 5/28
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
Yamagishi Kazutoshi
bc21ffd237
Add prefix to setting toggle ID ( #3907 )
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 )
7 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
7 years ago
Yamagishi Kazutoshi
47dceaded6
Replace TextIconButton for SensitiveButton to IconButton ( #3759 )
...
* Replace TextIconButton for SensitiveButton to IconButton
* line-height
7 years ago
Gô Shoemake
2d31077bdf
Fix character/grapheme count stuff ( #3839 )
...
* Bring Toot button in line with counter
Both should use stringz I guess
* Use grapheme_length for character count
7 years ago
alpaca-tc
36049c0096
Unobserve status on unmount ( #3851 )
7 years ago
alpaca-tc
fa14f245f8
Fixes streaming callbacks of HashtagTimeline ( #3849 )
7 years ago
Eugen Rochko
4845069692
Debounce autosuggestions ( #3836 )
...
* Debounce autosuggestions
* Remove duplicate import
7 years ago
Nolan Lawson
f973d620ca
handle resize in a debounce() ( #3834 )
7 years ago
Yamagishi Kazutoshi
dd7fb41dbb
Add alt attribute to ImageLoader ( #3765 )
7 years ago
Eugen Rochko
9ba171309b
Simplify getting started links localization. Link "powered by Mastodon" to joinmastodon.org ( #3725 )
7 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
7 years ago
Yamagishi Kazutoshi
5f19b8e900
Re-add clear notifications button ( #3708 )
...
* Re-add clear notifications button
* remove connect() in column_settings
* one line
* remove unused props
7 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
7 years ago
Yamagishi Kazutoshi
eb34081815
Remove comments for eslint-disable ( #3691 )
7 years ago
Eugen Rochko
185bcf6fe1
Use preview image in <ImageLoader /> to provide immediate visual feedback ( #3595 )
...
before the full-size image is loaded
7 years ago
ふぁぼ原
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
7 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
7 years ago
Yamagishi Kazutoshi
379120da91
Add missing key attribute to .search-results__hashtag ( #3607 )
7 years ago
Yamagishi Kazutoshi
615c580665
Add quotes ESLint rules ( #3602 )
...
* Add quotes ESLint rule
* Add jsx-quotes ESlint rule
* Sort ESLint rules
7 years ago
Yamagishi Kazutoshi
253c0ad358
Disable ESLint rule jsx/anchor-has-content ( #3601 )
7 years ago
Naoki Kosaka
779aab71d6
Fix LoadMore in Notifications. ( #3590 )
7 years ago
Naoki Kosaka
b68f13ae37
Fix (PR #3585 ) Add hasMore to propTypes and cover handleScroll. ( #3589 )
7 years ago
unarist
80c8cd6cad
Add back button to hashtag timeline again ( #3587 )
7 years ago
unarist
11211fe1c0
Prevent pinned columns from scroll to top on URL changing ( #3586 )
7 years ago
Naoki Kosaka
93168f56d9
Fix LoadMore in following and followers. ( #3585 )
7 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
7 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
7 years ago
masarakki
dfbc77fa3b
refocus-after-toot ( #3537 )
7 years ago
Yamagishi Kazutoshi
cab0f47a61
Change toggle state when click label ( #3530 )
7 years ago
Yamagishi Kazutoshi
c7be992701
Add ESLint rule (object-curly-spacing) ( #3498 )
7 years ago
unarist
158d6c85da
Focus the submit button on the boost modal ( #3494 )
...
Focus the submit button when boost modal is opened.
7 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
7 years ago
Nolan Lawson
6d0a980aa6
Improve scheduling of requestIdleCallback tasks ( #3477 )
7 years ago
Nolan Lawson
4ee3796db7
Add IntersectionObserverWrapper to cut down on re-renders ( #3406 )
7 years ago
Atsushi Yamamoto
4547e3585a
Add preference setting for delete toot modal ( #3368 )
...
* Set delete_modal preference to true by default
* Does not show confirmation modal if delete_modal is false
* Add ja translation for preference setting page
7 years ago
Nolan Lawson
fbd7406c93
Use immutable list in UploadButton to avoid wasteful re-render ( #3394 )
7 years ago
Eugen Rochko
e600e0d0c5
Introduce react-textarea-autosize instead of using style.height side effects ( #3334 )
7 years ago
Yamagishi Kazutoshi
3d3441dddd
Change anchor to button element ( #3321 )
...
Fix warning for ESLint (jsx-a11y/href-no-hash).
7 years ago
Nolan Lawson
98b39c2cbc
Replace onWheel listener with onScroll ( #3324 )
...
* Replace onWheel listener with onScroll
* Update column.js
7 years ago
unarist
b4692f1513
Fix load more feature on the Account media gallery ( #3293 )
...
* Add load more button for large screens
* Fix `next` state value on the first loading
* Don't load if `isLoading || !hasMore`
* Start load on near the bottom
7 years ago
Nolan Lawson
576afed755
Name the Webpack chunks ( #3291 )
7 years ago
Yamagishi Kazutoshi
ccd864c41a
Remove unnecessary constructors ( #3280 )
7 years ago
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.
7 years ago
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
7 years ago
Sorin Davidoi
fcf794aebe
Performance improvements ( #3168 )
...
* refactor(components/status_list): Avoid quering scrollTop if not necessary
* refactor(components/dropdown_menu): Do not render items if not expanded
* refactor: Cherry-pick react-motion imports
* refactor(compose/privacy_dropdown): Do not render options if not open
* refactor(components/column_collapsable): Do not render children if collapsed
7 years ago
Eugen Rochko
94b26e90fa
Add account media gallery view to web UI ( #3120 )
...
* Add account media gallery view to web UI
* Link media view from account dropdown
* Adjust link
7 years ago
Sorin Davidoi
eeb78b394c
feat: Use CSS contain to avoid computations ( #3158 )
7 years ago
Eugen Rochko
5695449335
Add buttons to block and unblock domain ( #3127 )
...
* Add buttons to block and unblock domain
* Relationship API now returns "domain_blocking" status for accounts,
rename "block entire domain" to "hide entire domain", fix unblocking domain,
do not block notifications from domain-blocked-but-followed people, do
not send Salmons to domain blocked users
* Add test
* Personal domain blocks shouldn't affect Salmon after all, since in this
direction of communication the control is very thin when it comes to
public stuff. Best stay consistent and not affect federation in this way
* Ignore followers and follow request from domain blocked folks,
ensure account domain blocks are not created for empty domain,
and avoid duplicates in validation
* Purge followers when blocking domain (without soft-blocks, since they
are useless here)
* Add tests, fix local timeline being empty when having any domain blocks
7 years ago
Sorin Davidoi
83058002f6
Avoid useless renders ( #3141 )
...
* feat(eslint): Set react/jsx-no-bind: error
* refactor(notifications/setting_toggle): Do not use bind
* refactor(components/dropdown_menu): Do not use bind
* refactor(components/autosuggest_textarea): Do not use bind
* refactor(compose/privacy_dropdown): Do not use bind
* refactor(compose/upload_form): Do not use bind
* refactor(components/status): Do not use bind
* refactor(components/onboarding_modal): Do not use bind
* refactor: PR feedback
* chore(notifications/setting_toggle): Lint
* refactor: PR feedback
7 years ago
Yamagishi Kazutoshi
9ab33ded34
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
7 years ago