mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 07:52:19 +00:00
Removing targets
This commit is contained in:
parent
ad1a350eed
commit
0922aec2f4
|
@ -41,7 +41,6 @@ export class CommunityLink extends Component<CommunityLinkProps, any> {
|
||||||
title={apubName}
|
title={apubName}
|
||||||
className={`${this.props.muted ? 'text-muted' : ''}`}
|
className={`${this.props.muted ? 'text-muted' : ''}`}
|
||||||
to={link}
|
to={link}
|
||||||
target={this.props.realLink ? '_blank' : ''}
|
|
||||||
>
|
>
|
||||||
{!this.props.hideAvatar && community.icon && showAvatars() && (
|
{!this.props.hideAvatar && community.icon && showAvatars() && (
|
||||||
<PictrsImage src={community.icon} icon />
|
<PictrsImage src={community.icon} icon />
|
||||||
|
|
|
@ -341,7 +341,6 @@ export class Community extends Component<any, State> {
|
||||||
this.state.communityRes.community_view.community.actor_id,
|
this.state.communityRes.community_view.community.actor_id,
|
||||||
this.state.sort
|
this.state.sort
|
||||||
)}
|
)}
|
||||||
target="_blank"
|
|
||||||
title="RSS"
|
title="RSS"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -36,19 +36,13 @@ export class IFramelyCard extends Component<
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{post.name !== post.embed_title && [
|
{post.name !== post.embed_title && [
|
||||||
<h5 class="card-title d-inline">
|
<h5 class="card-title d-inline">
|
||||||
<a
|
<a class="text-body" href={post.url} rel="noopener">
|
||||||
class="text-body"
|
|
||||||
target="_blank"
|
|
||||||
href={post.url}
|
|
||||||
rel="noopener"
|
|
||||||
>
|
|
||||||
{post.embed_title}
|
{post.embed_title}
|
||||||
</a>
|
</a>
|
||||||
</h5>,
|
</h5>,
|
||||||
<span class="d-inline-block ml-2 mb-2 small text-muted">
|
<span class="d-inline-block ml-2 mb-2 small text-muted">
|
||||||
<a
|
<a
|
||||||
class="text-muted font-italic"
|
class="text-muted font-italic"
|
||||||
target="_blank"
|
|
||||||
href={post.url}
|
href={post.url}
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -152,7 +152,6 @@ export class Inbox extends Component<any, InboxState> {
|
||||||
<small>
|
<small>
|
||||||
<a
|
<a
|
||||||
href={`/feeds/inbox/${UserService.Instance.auth}.xml`}
|
href={`/feeds/inbox/${UserService.Instance.auth}.xml`}
|
||||||
target="_blank"
|
|
||||||
title="RSS"
|
title="RSS"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -60,7 +60,7 @@ export class Instances extends Component<any, InstancesState> {
|
||||||
<ul>
|
<ul>
|
||||||
{items.map(i => (
|
{items.map(i => (
|
||||||
<li>
|
<li>
|
||||||
<a href={`https://${i}`} target="_blank" rel="noopener">
|
<a href={`https://${i}`} rel="noopener">
|
||||||
{i}
|
{i}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -594,7 +594,6 @@ export class Main extends Component<any, MainState> {
|
||||||
{this.state.listingType == ListingType.All && (
|
{this.state.listingType == ListingType.All && (
|
||||||
<a
|
<a
|
||||||
href={`/feeds/all.xml?sort=${this.state.sort}`}
|
href={`/feeds/all.xml?sort=${this.state.sort}`}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title="RSS"
|
title="RSS"
|
||||||
>
|
>
|
||||||
|
@ -604,7 +603,6 @@ export class Main extends Component<any, MainState> {
|
||||||
{this.state.listingType == ListingType.Local && (
|
{this.state.listingType == ListingType.Local && (
|
||||||
<a
|
<a
|
||||||
href={`/feeds/local.xml?sort=${this.state.sort}`}
|
href={`/feeds/local.xml?sort=${this.state.sort}`}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title="RSS"
|
title="RSS"
|
||||||
>
|
>
|
||||||
|
@ -615,7 +613,6 @@ export class Main extends Component<any, MainState> {
|
||||||
this.state.listingType == ListingType.Subscribed && (
|
this.state.listingType == ListingType.Subscribed && (
|
||||||
<a
|
<a
|
||||||
href={`/feeds/front/${UserService.Instance.auth}.xml?sort=${this.state.sort}`}
|
href={`/feeds/front/${UserService.Instance.auth}.xml?sort=${this.state.sort}`}
|
||||||
target="_blank"
|
|
||||||
title="RSS"
|
title="RSS"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -291,7 +291,6 @@ export class MarkdownTextArea extends Component<
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
href={markdownHelpUrl}
|
href={markdownHelpUrl}
|
||||||
target="_blank"
|
|
||||||
class="btn btn-sm text-muted font-weight-bold"
|
class="btn btn-sm text-muted font-weight-bold"
|
||||||
title={i18n.t('formatting_help')}
|
title={i18n.t('formatting_help')}
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
|
|
@ -212,7 +212,6 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
href={`${archiveUrl}/?run=1&url=${encodeURIComponent(
|
href={`${archiveUrl}/?run=1&url=${encodeURIComponent(
|
||||||
this.state.postForm.url
|
this.state.postForm.url
|
||||||
)}`}
|
)}`}
|
||||||
target="_blank"
|
|
||||||
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
|
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -214,7 +214,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<a
|
<a
|
||||||
class="float-right text-body d-inline-block position-relative mb-2"
|
class="float-right text-body d-inline-block position-relative mb-2"
|
||||||
href={post.url}
|
href={post.url}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title={post.url}
|
title={post.url}
|
||||||
>
|
>
|
||||||
|
@ -242,7 +241,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<a
|
<a
|
||||||
className="text-body"
|
className="text-body"
|
||||||
href={post.url}
|
href={post.url}
|
||||||
target="_blank"
|
|
||||||
title={post.url}
|
title={post.url}
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
@ -298,7 +296,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<a
|
<a
|
||||||
className="text-muted font-italic"
|
className="text-muted font-italic"
|
||||||
href={post_view.post.url}
|
href={post_view.post.url}
|
||||||
target="_blank"
|
|
||||||
title={post_view.post.url}
|
title={post_view.post.url}
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
@ -380,7 +377,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<a
|
<a
|
||||||
className={!post.stickied ? 'text-body' : 'text-primary'}
|
className={!post.stickied ? 'text-body' : 'text-primary'}
|
||||||
href={post.url}
|
href={post.url}
|
||||||
target="_blank"
|
|
||||||
title={post.url}
|
title={post.url}
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
|
|
|
@ -141,7 +141,6 @@ export class PrivateMessageForm extends Component<
|
||||||
#
|
#
|
||||||
<a
|
<a
|
||||||
class="alert-link"
|
class="alert-link"
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
href="https://element.io/get-started"
|
href="https://element.io/get-started"
|
||||||
>
|
>
|
||||||
|
|
|
@ -68,7 +68,6 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
|
||||||
<a
|
<a
|
||||||
className="text-muted"
|
className="text-muted"
|
||||||
href={sortingHelpUrl}
|
href={sortingHelpUrl}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title={i18n.t('sorting_help')}
|
title={i18n.t('sorting_help')}
|
||||||
>
|
>
|
||||||
|
|
|
@ -48,7 +48,6 @@ export class UserListing extends Component<UserListingProps, any> {
|
||||||
title={apubName}
|
title={apubName}
|
||||||
className={this.props.muted ? 'text-muted' : 'text-info'}
|
className={this.props.muted ? 'text-muted' : 'text-info'}
|
||||||
to={link}
|
to={link}
|
||||||
target={this.props.realLink ? '_blank' : ''}
|
|
||||||
>
|
>
|
||||||
{!this.props.hideAvatar && user.avatar && showAvatars() && (
|
{!this.props.hideAvatar && user.avatar && showAvatars() && (
|
||||||
<PictrsImage src={user.avatar} icon />
|
<PictrsImage src={user.avatar} icon />
|
||||||
|
|
|
@ -388,7 +388,6 @@ export class User extends Component<any, UserState> {
|
||||||
/>
|
/>
|
||||||
<a
|
<a
|
||||||
href={`/feeds/u/${this.state.userName}.xml?sort=${this.state.sort}`}
|
href={`/feeds/u/${this.state.userName}.xml?sort=${this.state.sort}`}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title="RSS"
|
title="RSS"
|
||||||
>
|
>
|
||||||
|
@ -442,7 +441,6 @@ export class User extends Component<any, UserState> {
|
||||||
className={`d-flex align-self-start btn btn-secondary mr-2 ${
|
className={`d-flex align-self-start btn btn-secondary mr-2 ${
|
||||||
!uv.user.matrix_user_id && 'invisible'
|
!uv.user.matrix_user_id && 'invisible'
|
||||||
}`}
|
}`}
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
href={`https://matrix.to/#/${uv.user.matrix_user_id}`}
|
href={`https://matrix.to/#/${uv.user.matrix_user_id}`}
|
||||||
>
|
>
|
||||||
|
@ -641,7 +639,7 @@ export class User extends Component<any, UserState> {
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-lg-5 col-form-label" htmlFor="matrix-user-id">
|
<label class="col-lg-5 col-form-label" htmlFor="matrix-user-id">
|
||||||
<a href={elementUrl} target="_blank" rel="noopener">
|
<a href={elementUrl} rel="noopener">
|
||||||
{i18n.t('matrix_user_id')}
|
{i18n.t('matrix_user_id')}
|
||||||
</a>
|
</a>
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in a new issue