~cytrogen/masto-fe

54a10523e2c452a0d356d70507729c67b3436e0d — Eugen Rochko 2 years ago 383c008
Change labels of live feeds tabs in web UI (#25683)

M app/javascript/mastodon/features/firehose/index.jsx => app/javascript/mastodon/features/firehose/index.jsx +13 -12
@@ 135,12 135,13 @@ const Firehose = ({ feedType, multiColumn }) => {
      />
    </DismissableBanner>
  ) : (
   <DismissableBanner id='public_timeline'>
     <FormattedMessage
       id='dismissable_banner.public_timeline'
       defaultMessage='These are the most recent public posts from people on this and other servers of the decentralized network that this server knows about.'
     />
   </DismissableBanner>
    <DismissableBanner id='public_timeline'>
      <FormattedMessage
        id='dismissable_banner.public_timeline'
        defaultMessage='These are the most recent public posts from people on the social web that people on {domain} follow.'
        values={{ domain }}
      />
    </DismissableBanner>
  );

  const emptyMessage = feedType === 'community' ? (


@@ 149,10 150,10 @@ const Firehose = ({ feedType, multiColumn }) => {
      defaultMessage='The local timeline is empty. Write something publicly to get the ball rolling!'
    />
  ) : (
   <FormattedMessage
     id='empty_column.public'
     defaultMessage='There is nothing here! Write something publicly, or manually follow users from other servers to fill it up'
   />
    <FormattedMessage
      id='empty_column.public'
      defaultMessage='There is nothing here! Write something publicly, or manually follow users from other servers to fill it up'
    />
  );

  return (


@@ 171,11 172,11 @@ const Firehose = ({ feedType, multiColumn }) => {
      <div className='scrollable scrollable--flex'>
        <div className='account__section-headline'>
          <NavLink exact to='/public/local'>
            <FormattedMessage tagName='div' id='firehose.local' defaultMessage='Local' />
            <FormattedMessage tagName='div' id='firehose.local' defaultMessage='This server' />
          </NavLink>

          <NavLink exact to='/public/remote'>
            <FormattedMessage tagName='div' id='firehose.remote' defaultMessage='Remote' />
            <FormattedMessage tagName='div' id='firehose.remote' defaultMessage='Other servers' />
          </NavLink>

          <NavLink exact to='/public'>

M app/javascript/mastodon/features/public_timeline/index.jsx => app/javascript/mastodon/features/public_timeline/index.jsx +2 -1
@@ 8,6 8,7 @@ import { Helmet } from 'react-helmet';
import { connect } from 'react-redux';

import DismissableBanner from 'mastodon/components/dismissable_banner';
import { domain } from 'mastodon/initial_state';

import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
import { connectPublicStream } from '../../actions/streaming';


@@ 143,7 144,7 @@ class PublicTimeline extends PureComponent {
        </ColumnHeader>

        <StatusListContainer
          prepend={<DismissableBanner id='public_timeline'><FormattedMessage id='dismissable_banner.public_timeline' defaultMessage='These are the most recent public posts from people on this and other servers of the decentralized network that this server knows about.' /></DismissableBanner>}
          prepend={<DismissableBanner id='public_timeline'><FormattedMessage id='dismissable_banner.public_timeline' defaultMessage='These are the most recent public posts from people on the social web that people on {domain} follow.' values={{ domain }} /></DismissableBanner>}
          timelineId={`public${onlyRemote ? ':remote' : ''}${onlyMedia ? ':media' : ''}`}
          onLoadMore={this.handleLoadMore}
          trackScroll={!pinned}

M app/javascript/mastodon/locales/en.json => app/javascript/mastodon/locales/en.json +3 -3
@@ 202,7 202,7 @@
  "dismissable_banner.explore_links": "These are news stories being shared the most on the social web today. Newer news stories posted by more different people are ranked higher.",
  "dismissable_banner.explore_statuses": "These are posts from across the social web that are gaining traction today. Newer posts with more boosts and favourites are ranked higher.",
  "dismissable_banner.explore_tags": "These are hashtags that are gaining traction on the social web today. Hashtags that are used by more different people are ranked higher.",
  "dismissable_banner.public_timeline": "These are the most recent public posts from people on this and other servers of the decentralized network that this server knows about.",
  "dismissable_banner.public_timeline": "These are the most recent public posts from people on the social web that people on {domain} follow.",
  "embed.instructions": "Embed this post on your website by copying the code below.",
  "embed.preview": "Here is what it will look like:",
  "emoji_button.activity": "Activity",


@@ 269,8 269,8 @@
  "filter_modal.select_filter.title": "Filter this post",
  "filter_modal.title.status": "Filter a post",
  "firehose.all": "All",
  "firehose.local": "Local",
  "firehose.remote": "Remote",
  "firehose.local": "This server",
  "firehose.remote": "Other servers",
  "follow_request.authorize": "Authorize",
  "follow_request.reject": "Reject",
  "follow_requests.unlocked_explanation": "Even though your account is not locked, the {domain} staff thought you might want to review follow requests from these accounts manually.",

M config/routes.rb => config/routes.rb +1 -0
@@ 12,6 12,7 @@ Rails.application.routes.draw do
    /home
    /public
    /public/local
    /public/remote
    /conversations
    /lists/(*any)
    /notifications