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