Skip to content

Commit

Permalink
Merge branch 'master' into featured-posts
Browse files Browse the repository at this point in the history
  • Loading branch information
roadscape committed May 17, 2019
2 parents 4e5ced2 + 4dc930c commit 572edfe
Show file tree
Hide file tree
Showing 11 changed files with 296 additions and 7 deletions.
201 changes: 201 additions & 0 deletions src/app/assets/ads.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# Freestar.io ads.txt File
# Last updated 05-15-19

# PLEASE DO NOT REMOVE ANYTHING FROM THIS FILE
# ADD ALL PUBLISHER SPECIFIC ADS.TXT INFO AT THE BOTTOM OF THIS FILE
# WHERE YOU WILL SEE A COMMENT INDICATING YOU CAN PLACE BELOW THAT COMMENT

# ads.txt to be placed in the root level of the domain
# example: yourdomain.com/ads.txt

# Freestar
freestar.io, 4807391653, DIRECT

# GoogleAdX
google.com, pub-3605257360853185, RESELLER, f08c47fec0942fa0

# AppNexus
appnexus.com, 7125, RESELLER

# IndexExchange
indexexchange.com, 184310, RESELLER
indexexchange.com, 186431, RESELLER

# OpenX
openx.com, 537138408, RESELLER, 6a698e2ec38604c6
openx.com, 539181723, RESELLER, 6a698e2ec38604c6
openx.com, 539618221, RESELLER, 6a698e2ec38604c6
openx.com, 539900106, DIRECT, 6a698e2ec38604c6

# RhythmOne
rhythmone.com,1058760868,RESELLER,a670c89d4a324e47
Rhythmone.com,2696396483,DIRECT,a670c89d4a324e47
1rx.io,1058760868,RESELLER,a670c89d4a324e47

# DistrictM
districtm.io, 100387, DIRECT
appnexus.com, 1908, RESELLER
districtm.io, 100393, DIRECT
appnexus.com, 7944, RESELLER

# RubiconProject
rubiconproject.com, 16924, RESELLER, 0bfd66d529a55807
rubiconproject.com, 17486, RESELLER, 0bfd66d529a55807

# Sovrn
sovrn.com, 239429, DIRECT, fafdf38b16bf6b2b
lijit.com, 239429, DIRECT, fafdf38b16bf6b2b
gumgum.com, 11645, RESELLER, ffdef49475d318a9
openx.com, 537120960, RESELLER
openx.com, 83499, RESELLER
openx.com, 538959099, RESELLER
pubmatic.com, 137711, RESELLER
pubmatic.com, 156212, RESELLER
pubmatic.com, 62483, RESELLER
contextweb.com, 558511, RESELLER

# Conversant
conversantmedia.com, 40794, DIRECT, 03113cd04947736d
appnexus.com, 4052, RESELLER
openx.com, 540031703, RESELLER, 6a698e2ec38604c6

# Amazon
aps.amazon.com, 0ab198dd-b265-462a-ae36-74e163ad6159, DIRECT #display
openx.com, 540191398, RESELLER, 6a698e2ec38604c6 #display
pubmatic.com, 157150, RESELLER, 5d62403b186f2ace #display
districtm.io, 100962, RESELLER #display
appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 #display
rubiconproject.com, 18020, RESELLER, 0bfd66d529a55807
rhythmone.com, 1654642120, RESELLER, a670c89d4a324e47
adtech.com, 12068, RESELLER

# Sharethrough
sharethrough.com, c3cac6b7, DIRECT, d53b998a7bd4ecd2
indexexchange.com, 186046, RESELLER
pubmatic.com, 156557, RESELLER
spotxchange.com, 212457, RESELLER
spotx.tv, 212457, RESELLER
rubiconproject.com, 18694, RESELLER, 0bfd66d529a55807

# EMX
EMXDGT.com, 152, RESELLER, 1e1d41537f7cad7f
Appnexus.com, 1356, RESELLER, f5ab79cb980f11d1

# SublimeSkinz
smartadserver.com, 1827, RESELLER
improvedigital.com, 335, RESELLER
appnexus.com, 3538, RESELLER
appnexus.com, 3539, RESELLER
appnexus.com, 3540, RESELLER

# JustPremium
adform.com, 183, RESELLER
appnexus.com, 7118, RESELLER
freewheel.tv, 33081, RESELLER
freewheel.tv, 33601, RESELLER
google.com, pub-8172268348509349, RESELLER, f08c47fec0942fa0
improvedigital.com, 185, RESELLER
openx.com, 539526431, RESELLER, 6a698e2ec38604c6
spotx.tv, 108933, RESELLER, 7842df1d2fe2db34
spotxchange.com, 108933, RESELLER, 7842df1d2fe2db34

# LKQD
lkqd.net, 446, RESELLER, 59c49fa9598a0117
lkqd.com, 446, RESELLER, 59c49fa9598a0117

# Telaria
tremorhub.com, 6smwu-uqq50, RESELLER, 1a4e959a1b50034a

# Pubmatic
pubmatic.com, 156696, RESELLER, 5d62403b186f2ace
pubmatic.com, 157235, RESELLER, 5d62403b186f2ace

# ROIMedia
rhythmone.com, 3246069104, RESELLER, a670c89d4a324e47
sovrn.com, 57813, RESELLER, fafdf38b16bf6b2b
lijit.com, 57813, RESELLER, fafdf38b16bf6b2b
rubiconproject.com, 17544, RESELLER, 0bfd66d529a55807
appnexus.com, 8438, RESELLER
openx.com, 540592957, RESELLER, 6a698e2ec38604c6
conversantmedia.com, 21347, RESELLER
33across.com, 0010b00001u6VjdAAE, RESELLER
adtech.com, 10048, RESELLER
contextweb.com, 558211, RESELLER, 89ff185a4c4e857c
openx.com, 540062960, RESELLER, 6a698e2ec38604c6
districtm.io, 101085, RESELLER
pubmatic.com, 157660, RESELLER, 5d62403b186f2ace
indexexchange.com, 187790, RESELLER
sonobi.com, 93215fc1c4, RESELLER, d1a215d9eb5aee9e
lockerdome.com, 11118976357066496, RESELLER
gumgum.com, 13593, RESELLER, ffdef49475d318a9
appnexus.com, 9847, RESELLER
google.com, pub-9505823743978337, RESELLER, f08c47fec0942fa0
spotxchange.com,138942,RESELLER,7842df1d2fe2db34
spotx.tv,138942,RESELLER,7842df1d2fe2db34
Advertising.com, 11299, RESELLER
openx.com, 539363661, RESELLER, 6a698e2ec38604c6
openx.com, 540021061, RESELLER, 6a698e2ec38604c6
indexexchange.com, 187621, RESELLER, 50b1c356f2c5c8fc
indexexchange.com, 187780, RESELLER, 50b1c356f2c5c8fc
rubiconproject.com, 18782, RESELLER, 0bfd66d529a55807
rubiconproject.com, 18784, RESELLER, 0bfd66d529a55807

# Beachfront
beachfront.com, 11158, DIRECT, e2541279e8e2ca4d

# Gumgum
gumgum.com, 12907, DIRECT, ffdef49475d318a9
appnexus.com, 1942, RESELLER, f5ab79cb980f11d1
rhythmone.com, 78519861, RESELLER
openx.com, 537149485, RESELLER, 6a698e2ec38604c6
pubmatic.com, 50758, RESELLER, 5d62403b186f2ace
contextweb.com, 558355, RESELLER
33across.com, 0013300001r0t9mAAA, RESELLER

# Triplelift
triplelift.com, 5579, DIRECT, 6c33edb13117fd86
spotxchange.com, 228454, RESELLER, 7842df1d2fe2db34
spotx.tv, 228454, RESELLER, 7842df1d2fe2db34
lkqd.net, 504, RESELLER, 59c49fa9598a0117

# Media.net
Media.net, 8CUFH1GPH, Direct

# Undertone
undertone.com, 3617, DIRECT
appnexus.com, 2234, RESELLER
openx.com, 537153564, RESELLER, 6a698e2ec38604c6

# 33Across
33across.com,0013300001cFpYHAA0,DIRECT,bbea06d9c4d2853c #display
gumgum.com, 13318, RESELLER, ffdef49475d318a9
adtech.com,12094,RESELLER

# Teads
teads.tv, 8917, DIRECT, 15a9c44f6d26cbe1

# E-Planning
e-planning.net,fdc759cc7eceba8b,DIRECT
rubiconproject.com,12186,RESELLER,0bfd66d529a55807
pubmatic.com,156631,RESELLER,5d62403b186f2ace

# ConnectAd
connectad.io, 1151, DIRECT
pubmatic.com, 156077, RESELLER, 5d62403b186f2ace
smartyads.com, 284, reseller
pubmatic.com, 55990, RESELLER, 5d62403b186f2ace
openx.com, 537145117, RESELLER, 6a698e2ec38604c6
google.com, pub-9467340974789471, RESELLER, f08c47fec0942fa0
adform.com, 768, RESELLER

#152 Media
appnexus.com, 3153, RESELLER, f5ab79cb980f11d1
adtech.com, 12069, RESELLER

#minutemedia
google.com, pub-1956856209985681, RESELLER, f08c47fec0942fa0

# PUBLISHER SPECIFIC ADS.TXT INFO BELOW THIS LINE

# Google Adsense
google.com, pub-9368037717385698, DIRECT
15 changes: 15 additions & 0 deletions src/app/assets/stylesheets/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,18 @@ a[rel="nofollow noopener"]:after {
// $color-text-gray
background-image: url('data:image/svg+xml; utf8, <svg height="1024" width="768" xmlns="http://www.w3.org/2000/svg"><path d="M640 768H128V257.90599999999995L256 256V128H0v768h768V576H640V768zM384 128l128 128L320 448l128 128 192-192 128 128V128H384z" fill="%23788187"/></svg>');
}

.affiliation {
font-weight: 400;
display: inline;
margin: 0 0.3rem;
padding: 0 0.4rem 0.1rem;
border-radius: 0.3rem;
text-shadow: none;
font-size: 0.75rem;
vertical-align: middle;
@include themify($themes) {
background-color: themed('colorAccent');
color: themed('buttonText');
}
}
1 change: 1 addition & 0 deletions src/app/components/cards/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ class CommentImpl extends React.Component {
<Author
author={comment.author}
authorRepLog10={authorRepLog10}
showAffiliation
/>
</span>
&nbsp; &middot; &nbsp;
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/cards/PostFull.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function TimeAuthorCategory({ content, authorRepLog10, showTags }) {
<Icon name="clock" className="space-right" />
<TimeAgoWrapper date={content.created} className="updated" />
{} {tt('g.by')}{' '}
<Author author={content.author} authorRepLog10={authorRepLog10} />
<Author
author={content.author}
authorRepLog10={authorRepLog10}
showAffiliation
/>
{showTags && (
<span>
{' '}
Expand All @@ -53,6 +57,7 @@ function TimeAuthorCategoryLarge({ content, authorRepLog10 }) {
<Author
author={content.author}
authorRepLog10={authorRepLog10}
showAffiliation
/>
<span>
{' '}
Expand Down
25 changes: 24 additions & 1 deletion src/app/components/elements/Author/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { authorNameAndRep } from 'app/utils/ComponentFormatters';
import AuthorDropdown from '../AuthorDropdown';
import Reputation from 'app/components/elements/Reputation';
import normalizeProfile from 'app/utils/NormalizeProfile';
import AffiliationMap from 'app/utils/AffiliationMap';
import tt from 'counterpart';
import Overlay from 'react-overlays/lib/Overlay';
import { findDOMNode } from 'react-dom';

Expand All @@ -29,10 +31,12 @@ class Author extends React.Component {
follow: bool,
mute: bool,
authorRepLog10: number,
showAffiliation: bool,
};
static defaultProps = {
follow: true,
mute: true,
showAffiliation: false,
};

constructor(...args) {
Expand Down Expand Up @@ -87,7 +91,13 @@ class Author extends React.Component {

shouldComponentUpdate = shouldComponentUpdate(this, 'Author');
render() {
const { author, follow, mute, authorRepLog10 } = this.props; // html
const {
author,
follow,
mute,
authorRepLog10,
showAffiliation,
} = this.props; // html
const { username } = this.props; // redux
const { name, about } = this.props.account
? normalizeProfile(this.props.account.toJS())
Expand All @@ -105,6 +115,11 @@ class Author extends React.Component {
<Link to={'/@' + author}>{author}</Link>
</strong>{' '}
<Reputation value={authorRepLog10} />
{showAffiliation && AffiliationMap[author] ? (
<span className="affiliation">
{tt('g.affiliation_' + AffiliationMap[author])}
</span>
) : null}
</span>
);
}
Expand All @@ -125,6 +140,14 @@ class Author extends React.Component {
to={'/@' + author}
>
{author} <Reputation value={authorRepLog10} />
{showAffiliation && AffiliationMap[author] ? (
<span className="affiliation">
{tt(
'g.affiliation_' +
AffiliationMap[author]
)}
</span>
) : null}
<Icon name="dropdown-arrow" />
</Link>
</strong>
Expand Down
10 changes: 9 additions & 1 deletion src/app/components/pages/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import Userpic from 'app/components/elements/Userpic';
import Callout from 'app/components/elements/Callout';
import normalizeProfile from 'app/utils/NormalizeProfile';
import userIllegalContent from 'app/utils/userIllegalContent';
import AffiliationMap from 'app/utils/AffiliationMap';
import proxifyImageUrl from 'app/utils/ProxifyUrl';
import ArticleLayoutSelector from 'app/components/modules/ArticleLayoutSelector';
import SanitizedLink from 'app/components/elements/SanitizedLink';
Expand Down Expand Up @@ -567,8 +568,15 @@ export default class UserProfile extends React.Component {
({rep})
</span>
</Tooltip>
{AffiliationMap[accountname] ? (
<span className="affiliation">
{tt(
'g.affiliation_' +
AffiliationMap[accountname]
)}
</span>
) : null}
</h1>

<div>
{about && (
<p className="UserProfile__bio">{about}</p>
Expand Down
2 changes: 2 additions & 0 deletions src/app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"email": "Email",
"external_link_message":
"This link will take you away from steemit.com",
"affiliation_steemit": "Steemit Team",
"affiliation_sm": "Steem Monsters Team",
"feed": "Feed",
"follow": "Follow",
"for": " for ",
Expand Down
23 changes: 23 additions & 0 deletions src/app/utils/AffiliationMap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const map = {
//steemit
ned: 'steemit',
justinw: 'steemit',
elipowell: 'steemit',
vandeberg: 'steemit',
birdinc: 'steemit',
gerbino: 'steemit',
andrarchy: 'steemit',
roadscape: 'steemit',
steemitblog: 'steemit',
steemitdev: 'steemit',

/*
//steem monsters
steemmonsters: 'sm',
'steem.monsters': 'sm',
aggroed: 'sm',
yabapmatt: 'sm',
*/
};

export default map;
2 changes: 1 addition & 1 deletion src/app/utils/SanitizeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default ({
// title is only set in the case of an external link warning
a: ['href', 'rel', 'title'],
},
allowedSchemes: ['http', 'https', 'steem'],
allowedSchemes: ['http', 'https', 'steem', 'esteem'],
transformTags: {
iframe: (tagName, attribs) => {
const srcAtty = attribs.src;
Expand Down
Loading

0 comments on commit 572edfe

Please sign in to comment.