forked from inspirehep/inspirehep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ref: cern-sis/issues-inspire#619
- Loading branch information
Showing
67 changed files
with
445 additions
and
198 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { Tooltip } from 'antd'; | ||
|
||
import Icon from '@ant-design/icons'; | ||
import UserAction from '../../common/components/UserAction'; | ||
import LinkWithTargetBlank from '../../common/components/LinkWithTargetBlank'; | ||
import EventTracker from '../../common/components/EventTracker'; | ||
import { ReactComponent as blueskyLogo } from '../../common/assets/bluesky.svg'; | ||
|
||
const AuthorBlueskyAction = ({ bluesky }: { bluesky: string }) => { | ||
const href = `//bsky.app/profile/${bluesky}`; | ||
return ( | ||
<UserAction> | ||
<EventTracker | ||
eventCategory="Author detail" | ||
eventAction="Link" | ||
eventId="Bluesky" | ||
> | ||
<LinkWithTargetBlank href={href}> | ||
<Tooltip title="Bluesky"> | ||
<Icon component={blueskyLogo} style={{ color: 'rgb(95,95,95)' }} /> | ||
</Tooltip> | ||
</LinkWithTargetBlank> | ||
</EventTracker> | ||
</UserAction> | ||
); | ||
}; | ||
|
||
export default AuthorBlueskyAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { Tooltip } from 'antd'; | ||
|
||
import Icon from '@ant-design/icons'; | ||
import UserAction from '../../common/components/UserAction'; | ||
import LinkWithTargetBlank from '../../common/components/LinkWithTargetBlank'; | ||
import EventTracker from '../../common/components/EventTracker'; | ||
import { ReactComponent as mastodonLogo } from '../../common/assets/mastodon.svg'; | ||
|
||
const AuthorMastodonAction = ({ mastodon }: { mastodon: string }) => { | ||
const [user, host] = mastodon ? mastodon.split('@') : []; | ||
const href = `//${host}/@${user}`; | ||
return ( | ||
<UserAction> | ||
<EventTracker | ||
eventCategory="Author detail" | ||
eventAction="Link" | ||
eventId="Mastodon" | ||
> | ||
<LinkWithTargetBlank href={href}> | ||
<Tooltip title="Mastodon"> | ||
<Icon component={mastodonLogo} /> | ||
</Tooltip> | ||
</LinkWithTargetBlank> | ||
</EventTracker> | ||
</UserAction> | ||
); | ||
}; | ||
|
||
export default AuthorMastodonAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.