1
0
Commit Graph

46 Commits

Author SHA1 Message Date
Renaud Chaput
01b6c83c36
Add a new @/ alias for the root frontend directory and use it where possible () 2024-01-16 10:27:26 +00:00
Claire
6bbcd9348e
Switch from 48px weight 600 material symbol icons to 24px weight 400 icons () 2024-01-12 20:16:48 +00:00
Renaud Chaput
608f66f978
Change icon SVG imports to use a default import () 2024-01-12 10:31:24 +00:00
Eugen Rochko
134de736dc
Change icons in web UI ()
Co-authored-by: Renaud Chaput <renchap@gmail.com>
2023-10-24 17:45:08 +00:00
Renaud Chaput
1b70d7ed7c
Upgrade to react-router v5 ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-10-19 19:44:55 +02:00
Renaud Chaput
4534498a8e
Convert <DismissableBanner> to Typescript () 2023-07-08 11:12:20 +02:00
Eugen Rochko
00ec43914a
Add onboarding prompt when home feed too slow in web UI () 2023-06-22 23:48:40 +02:00
Renaud Chaput
d27216dc46
Enforce import order with ESLint () 2023-05-23 17:15:17 +02:00
Renaud Chaput
8f66126b10
Use the new JSX transform () 2023-05-23 10:52:27 +02:00
Yamagishi Kazutoshi
d1b057a0ac
Remove legacy decorators syntax () 2023-03-24 03:17:53 +01:00
Renaud Chaput
44a7d87cb1
Rename JSX files with proper .jsx extension () 2023-02-20 03:20:59 +01:00
Nick Schonning
c49213f0ea
Upgrade ESlint to v8 () 2023-01-30 01:45:35 +01:00
Eugen Rochko
839f893168
Change public accounts pages to mount the web UI ()
* Change public accounts pages to mount the web UI

* Fix handling of remote usernames in routes

- When logged in, serve web app
- When logged out, redirect to permalink
- Fix `app-body` class not being set sometimes due to name conflict

* Fix missing `multiColumn` prop

* Fix failing test

* Use `discoverable` attribute to control indexing directives

* Fix `<ColumnLoading />` not using `multiColumn`

* Add `noindex` to accounts in REST API

* Change noindex directive to not be rendered by default before a route is mounted

* Add loading indicator for detailed status in web UI

* Fix missing indicator appearing while account is loading in web UI
2022-10-20 14:35:29 +02:00
Eugen Rochko
f41ec9af05
Add dismissable hints to various timelines in web UI ()
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2022-10-09 06:08:37 +02:00
Yamagishi Kazutoshi
a5112b51fd
Add title to pages with missing title in Web UI () 2022-10-09 03:55:09 +02:00
Eugen Rochko
d4b0aa7450
Fix trying to connect to streaming API when logged out in web UI () 2022-10-08 07:15:50 +02:00
Eugen Rochko
43b5d5e38d
Add logged-out access to the web UI () 2022-09-29 04:39:33 +02:00
Claire
d3791cca0c
Improve modal flow and back button handling ()
* Refactor shouldUpdateScroll passing

So far, shouldUpdateScroll has been manually passed down from the very top of
the React component hierarchy even though it is a static function common to
all ScrollContainer instances, so replaced that with a custom class extending
ScrollContainer.

* Generalize “press back to close modal” to any modal and to public pages

* Fix boost confirmation modal closing media modal
2021-07-13 15:45:17 +02:00
ThibG
0d6da8892a Fix unread toot indicator not honoring onlyMedia in public and community timelines ()
* Fix unread toot indicator not honoring onlyMedia in public and community timelines

* Fixup: `unread` already accounts for new content in pending items
2019-11-11 00:05:02 +02:00
Yamagishi Kazutoshi
0627252b30 Check existence of timeline state in community timeline () 2019-09-18 04:02:21 +02:00
ThibG
f109867578 Fix “slow mode” issues ()
* Fix weird scroll-jumping behavior with pending items

* Treat pending items as unread items

* Fix scroll position being altered because of the “X new items” button
2019-09-16 15:45:06 +02:00
Eugen Rochko
2dee293c4c
Fix scroll to top in single column UI () 2019-08-01 19:17:17 +02:00
Eugen Rochko
aa22b38fdb
Change single-column mode to scroll the whole page ()
Fix 
2019-07-19 09:25:22 +02:00
Eugen Rochko
9b1d3e4acb
Add option to disable real-time updates in web UI ()
Fix 
Fix 
2019-07-16 06:30:47 +02:00
Yamagishi Kazutoshi
0ddbccf7e6 Upgrade Babel to version 7.0.0 () 2018-09-14 17:59:48 +02:00
Eugen Rochko
66dbb59aa1
Add aria-label to column regions ()
Fix 
2018-08-23 17:26:21 +02:00
Yamagishi Kazutoshi
06c83527f5 Do not scroll up when modal is opened () 2018-07-29 16:52:06 +02:00
Eugen Rochko
cdb101340a
Keyword/phrase filtering ()
* Add keyword filtering

    GET|POST       /api/v1/filters
    GET|PUT|DELETE /api/v1/filters/:id

- Irreversible filters can drop toots from home or notifications
- Other filters can hide toots through the client app
- Filters use a phrase valid in particular contexts, expiration

* Make sure expired filters don't get applied client-side

* Add missing API methods

* Remove "regex filter" from column settings

* Add tests

* Add test for FeedManager

* Add CustomFilter test

* Add UI for managing filters

* Add streaming API event to allow syncing filters

* Fix tests
2018-06-29 15:34:36 +02:00
chr v1.x
4f42238c29 Put "Media Only" option in column settings instead of content area headline ()
* Action/reducer for changing column settings takes a path and a value
instead of a javascript object

* Settings menu version and column headline version working simultaneously

* remove column headline entirely

* remove css for headlines that aren't possible now

* Remove commented out code from unfruitful attempt at this feature

* Give direct timeline its own column settings bc it doesn't have a media only option

* Fix typo in public timeline code that was preventing per-column settings from working properly

* Fix codeclimate issues

* Missing semicolons

* Use redux state to set onlyMedia, let that do the update instead of a callback. Consequently, unpinned setting works without history modification

* Unused import
2018-06-15 11:15:15 +02:00
Eugen Rochko
90b64c0069
Always display tab navigation on local/federated timeline even when empty ()
Fix 
2018-05-29 02:01:04 +02:00
Yamagishi Kazutoshi
8182b61518 Enable media timeline () 2018-05-25 18:36:46 +02:00
Yamagishi Kazutoshi
4eeda67727 Hide section headline for timelines in production ()
* Hide section headline for timelines in production

* comment out
2018-05-22 14:44:32 +02:00
Yamagishi Kazutoshi
06252ec71e Change column params on pinned timeline () 2018-05-22 13:26:06 +02:00
Eugen Rochko
5ea643b279
Save onlyMedia prop when pinning column () 2018-05-21 17:49:10 +02:00
Yamagishi Kazutoshi
7403e5d306 Add media timeline () 2018-05-21 12:43:38 +02:00
Akihiko Odaki
9a1a55ce52 Allow clients to fetch statuses made while they were offline () 2018-03-24 15:25:15 +01:00
abcang
ea958cae7f Refactoring streaming connections () 2017-08-21 15:04:34 +02:00
Yamagishi Kazutoshi
c1a8e3d1eb Use Class and Property Decorators ()
ref https://tc39.github.io/proposal-decorators/
2017-06-23 19:36:54 +02:00
Yamagishi Kazutoshi
eff9416469 Remove unused variables () 2017-06-23 16:05:04 +02:00
Eugen Rochko
47bf7a8047 Fix - Refactor timelines reducer ()
* 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
2017-06-11 17:07:35 +02:00
ふぁぼ原
7623766241 Add regex filters on the community timeline and the public timeline. ()
* 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
unarist
c26cea262b Prevent pinned columns from scroll to top on URL changing () 2017-06-05 15:20:46 +02:00
Eugen Rochko
8ee2eb5d2e Allow mounting arbitrary columns ()
* 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
Yamagishi Kazutoshi
2e112e2406 Improve eslint rules ()
* 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
Yamagishi Kazutoshi
2991a7cfe6 Use ES Class Fields & Static Properties ()
Use ES Class Fields & Static Properties (currently stage 2) for improve class outlook.

Added babel-plugin-transform-class-properties as a Babel plugin.
2017-05-12 14:44:10 +02:00
Eugen Rochko
f5bf5ebb82 Replace sprockets/browserify with Webpack ()
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
2017-05-03 02:04:16 +02:00