2020-11-02 23:48:19 +00:00
import React from "react" ;
import moment from "moment" ;
import { Link } from "react-router-dom" ;
2019-08-24 05:04:51 +00:00
export const sourceLink = ( story ) => {
const url = story . url || story . link ;
const urlObj = new URL ( url ) ;
2020-11-02 23:48:19 +00:00
const host = urlObj . hostname . replace ( /^www\./ , "" ) ;
return (
< a className = "source" href = { url } >
{ host }
< / a >
) ;
2019-08-24 05:04:51 +00:00
} ;
2020-11-02 23:48:19 +00:00
export const infoLine = ( story ) => (
< div className = "info" >
2020-11-20 04:27:28 +00:00
{ story . score } points by { story . author _link ? < a href = { story . author _link } > { story . author } < / a > : s t o r y . a u t h o r _ l i n k }
2020-11-20 04:02:09 +00:00
& # 8203 ; { moment . unix ( story . date ) . fromNow ( ) }
2020-11-20 04:27:28 +00:00
& # 8203 ; on < a href = { story . link } > { story . source } < / a > | & # 8 2 0 3 ;
< Link
2020-11-02 23:48:19 +00:00
className = { story . num _comments > 99 ? "hot" : "" }
2020-11-20 04:02:09 +00:00
to = { "/" + story . id + "/c" } >
2020-11-02 23:48:19 +00:00
{ story . num _comments } comment { story . num _comments !== 1 && "s" }
2019-08-24 05:04:51 +00:00
< / L i n k >
< / d i v >
2020-11-02 23:48:19 +00:00
) ;
2019-08-25 01:25:28 +00:00
2020-11-19 20:47:56 +00:00
export const otherDiscussions = ( related ) => {
const stories = related . filter ( r => r . num _comments > 0 ) ;
if ( ! stories . length ) {
return null ;
}
return (
< div className = 'related indented info' >
< span > Other discussions : < / s p a n >
{ stories . map ( ( story , i ) =>
< span id = { story . id } >
{ i !== 0 ? < > & bull ; < /> : <></ > }
< Link className = { story . num _comments > 99 ? "hot" : "" } to = { "/" + story . id + "/c" } >
{ story . source } ( { story . num _comments } comment { story . num _comments !== 1 && "s" } )
< / L i n k >
< / s p a n >
) }
< / d i v >
) ;
}
2019-08-25 08:50:49 +00:00
export class ToggleDot extends React . Component {
render ( ) {
const id = this . props . id ;
const article = this . props . article ;
return (
2020-11-02 23:48:19 +00:00
< div className = "toggleDot" >
< div className = "button" >
< Link to = { "/" + id + ( article ? "" : "/c" ) } >
{ article ? "" : "" }
2019-08-25 08:50:49 +00:00
< / L i n k >
< / d i v >
< / d i v >
) ;
}
}
2019-12-02 23:54:02 +00:00
2020-01-03 03:45:56 +00:00
export class ForwardDot extends React . Component {
2020-01-04 23:36:24 +00:00
goForward ( ) {
2020-11-02 23:48:19 +00:00
localStorage . setItem ( "scrollLock" , "True" ) ;
2020-01-04 23:36:24 +00:00
window . history . forward ( ) ;
}
2020-01-03 03:45:56 +00:00
render ( ) {
2020-01-04 23:36:24 +00:00
const isMobile = /iPhone|iPad|iPod|Android/i . test ( navigator . userAgent ) ;
if ( ! isMobile ) return null ;
2020-01-03 03:45:56 +00:00
return (
2020-11-02 23:48:19 +00:00
< div className = "forwardDot" onClick = { this . goForward } >
< div className = "button" > < / d i v >
2020-01-03 03:45:56 +00:00
< / d i v >
) ;
}
}
2019-12-02 23:54:02 +00:00
export const logos = {
2020-11-02 23:48:19 +00:00
hackernews : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wgeBhwhciGZUAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAGCSURBVFjD7Za/S0JRFMc/+oSgLWjLH/2AIKEhC2opIp1amqw/INCo9lbHghCnKDdpN5OoIGhISSLwx2RCEYSjUWhWpO+9hicopCHh8w29Mx3u/XLv95z7Pedcg+y1VQEBbUw0ang5gGBEY9MJ6ARMbaH6HdBnBlmC+5PfsVYX9PTCSx4KyQ4RsI6DxwcYIGSFxF5znHkOtvZBECDoa4tAe0+QDMFDVvFd7ta4pU0QTAo2GeqwBqIHIEkwMAQzaz/3LfNgn1Qw0aAKIswdQzZVy8Jyk+g3lNTfpSEXUakKjgJQrYB5GKY9DRpZALsDxCqEAyqWYT4G6etaFlYaol8HowC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zDg8O8uTalAKBHNk+dzgxczldM6ERGnJ2fBewGIU2aHxsGKIYbPgBWmVdKvWQ1ZsQYnAko3ui9Ger7o1EgH40q41vL1QWZD9jR6JXZw8OVtVHneQuT9d3yDqcsqp1JSoPTcqD2freEz0OdmTit7zsTSA9U/gAEHbyMKB1Z+rnsFAL37/zB4BrYAW4DBAf4Dcy2YI/VeqRwAAAAASUVORK5CYII=" ,
manual : " data : image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAMm3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZhnkmO7coT / YxVaAlzBLAc2QjvQ8vUlyLHvPkVIoeYMmzw8hKk0lWh3 / us / r / sPflKw5rLVVnopnp / cc4 + DF81 / fj6 / g8 / v + f3E70e8 / + O6 + / l B 5 F L i d / q 8 L e d 7 / + C 6 / f p C z d / r 8 8 / r r q 7 v O O 0 7 0 P e D H w M m z a z Z 9 n e R 3 4 F S / F w P 3 / e u f 5 c 0 y m / b + f 6 / K 3 Z d s v n 5 6 O / 3 u V K M b Y y X o o s n h e T f c / z M l F h F 6 m n w H H j 2 i b m S r o / v c 0 j l X + v n f p b u H w r 4 8 9 V f 9 f P r e z 3 9 K s d n o B / b K n / V 6 X s 9 2 D / X 7 1 X p 9 x W F + H P m + P u K 0 v H T / / 7 z e / 3 u b v e e z + 5 G L o 5 y l e + m f m z l v e J G B s n p f a 3 w q P w 3 X t f 3 6 D y a H 3 6 B 2 m a r 0 z H n C j 1 E K n 5 D D j u M c M N 5 v 1 d Y L D H H E y u / Y 1 w x v W s t 1 d j j e q B k P c K N 1 Y H P T g 0 0 F s g l L s e f a w l v 3 q 7 5 m K w x 8 w 7 c G Q O D g f G f D / f 3 h f / r 4 4 + B 7 h X N Q / D t Z 6 1 Y V x S / W I a Q 0 z N 3 A U i 4 3 5 r a q 2 9 w n 1 / + 7 x 8 B m 0 D Q X p k b G x x + f o a Y F n 5 x K z 2 c k z f H r d l / 9 B L q / g 5 A i Z j b W A z s z s G X k C y U 4 G u M N Q T q 2 M B n s P K Y c p w g E M x Z 3 K w y 5 p Q K 4 L S o u f l O D e / e a P F z G X s B C E s l V a B B Q I C V s + W C 3 h o U G s 6 S Z T M r V q 1 Z t 1 F S y c V K K b X I p 0 Z N N V e r p d b a a q + j p Z a b t d J q a 6 2 3 0 W N P 2 J i 5 X n r t r f c + B p O O P B h r c P / g w o w z z T x t l l l n m 3 2 O B X 1 W X r b K q q u t v s a O O 2 0 s w O 2 y 6 2 6 7 7 3 H C g U o n H z v l 1 N N O P + P C t Z t u v n b L r b f d f s d P 1 L 6 o / o n a 3 8 j 9 z 6 i F L 2 r x A a X 7 6 i / U u F z r j y G C 7 M S E G Y j F H E C 8 C g E I H Y W Z b y H n K O S E m e 8 x u Z Q s s k o T O D s I M R D M J 0 S 7 4 S d 2 v 5 D 7 t 7 g 5 q v u / x S 3 + E 3 J O 0 P 1 / I O c E 3 W / I / S t u / 4 D a H s 9 u 0 w N I K q S m O G R C f n t o d j 9 m t x N S O s 2 4 t D Z z j R F y D D N 2 C / m y 1 J l S 0 A q Z t s L E S I 3 O s D b c t G G W B 9 + y 3 R a v 4 9 1 + b I o 4 q z Y / 8 D + b s 6 / J u r d N D V / r 5 J M + E x B N f 8 b Z O b n W 5 4 p A 2 7 m b H W 1 D U 3 l Q s 1 7 9 u I W 1 l X F 6 m S z 3 p j V a P Z c V S X e s d f C d Y J F B z R 1 A r Y O X E R g P a 2 g j w 4 a 4 e T s z b 0 y 7 n u n 0 n f u I a y e t a W 7 r N 3 f 6 X O U z 6 p A p d o I o 7 K 3 a q f y H K i O 1 q p H H X F s b 0 7 z a w + j L Q l u n V B g T r Q a z t O 3 G v g D K U d 4 + q Q z A D w y o n N I M k B Z b 4 i 5 c / x y I w A Y O X x w 7 T 9 n + 7 L u / y l K l M c q i v K 4 a A k g m 1 s U A U p V R I o A E a k a / a k C 9 W H w u I H Z K B M O 8 w 1 r 7 Q r c K k g 0 t t F G 3 4 6 W P Y u D O N 4 9 j I 3 R 4 z x u q A y C D Z Q T r m g V P N 1 B r A z g H o C 9 t L 4 q N J V t y c V q C 7 t 1 W 2 N o 7 D K g 5 + x V J Y G N c 6 8 H y m V r I a q c J G A g 7 4 A c 5 C M b G v q 2 x w e L a M d Q Y l 2 A 0 y X U F Z H n 6 1 e C j W 5 v g l g B / w 5 d Y 2 O 5 E y 8 g R I I S Q 3 2 V R u Y J n k 1 T m m 5 Y 6 x E 9 R y g 7 4 8 B p r D f D N Q 8 r H B w o c 4 E Y u + J G p h O k R Y x N g r o v Z f e I I e Q E z Q 4 I H L J q h n b H u Y N 5 T Y H m D F F A N J G G f 3 7 V e 2 x F m B g p b 0 8 S z N 9 y Z G V m p m j 3 f G A Z E l s h w g I r V d v G r 6 N K B I 9 B n t L 6 8 K g 0 h / I Y L d Y 3 q O i K D / S y 4 W J w 9 L T w H O 2 h U n g K l f G t i X 9 M b t Z 8 w g y E X g P b R z o z S T j p A Z L T s m Y R o j L O c i S P N s H 3 f q 2 C F T z p + Y U t g B M p o K h B T G I y m m d O Z K a r 2 T L R w S P m u h i x o E h j a S r K 4 p U 1 S 7 U M j x R 8 O Y + z A o r F E y l j Q G o I N R Z M P N E M B H S M s K a S i e 4 9 5 M t s S P 8 k 1 8 N D E J N S J G 6 U k / 0 R N g o 1 6 s e J u 6 I k B P B 8 6 P v N R J r G 4 k c Y w E k Y p t L g y E V M n F k n g m g I R R i q 7 a k l G D S t m h Z U b V Y 7 B U R P m M M x Y S 8 F E A J M O h I 1 j G y o F p W Z N s K t g K O u A 7 v M 2 9 J 1 L t y y y s K f M Q D S K 2 R I 2 x 6 8 w S G t 3 5 1 M X S k m i x m E + O Z L y Y o p b H o 8 m + A D x F F G e 7 b J c x 4 6 b l s r N M m G t k y J 2 F m I A T E W P / h m a A b M J u S e U 8 r J m 8 g z F Y E T q W I d C B A x c n g 0 + F l e K f 1 K n i k u l m v I B q z K I O i g M f M J 9 N V 0 / q 7 I t m y j A R n Y i V s / o u s r a d j S v 9 V P X 8 e R V o d 3 4 y Z b G p B i W x J r 2 u x H 9 G m 2 j p q e 1 A J r F u H A W S i h 5 J 1 F 2 W k x N 3 M C A b N 0 t W x F 3 c s K Q V H V E R L E n d + 3 R n J q y V 8 / h y k U a F B B S d 9 S d V K U 2 W C Y M L g X H m z F g X 9 g 5 i 1 q b R p j i E U A S m L u J a t H A L T e s C J O X I N r w t P S E b H e V i V V U i A O w F n K 7 k Q S i B v e 5 N B z M k v z N t a D e k w Z c g a A b f i H Y U s h A E M W u q i E e t Q J j g p o 8 4 G S G A v G t G 5 k p h F K 7 O x w Q e t S 3 a 0 F V O F J S J 6 J f Q p 4 N / w U 3 k i b + N P F c C 9 x I N 4 M q l a b 6 j F V r J o 0 w F G l p i o B W 6 W v Y k X 0 c W + P w n h y D W u h K F H m G K O d K m U W r 4 T R m 3 h k l u D D U 7 A x 9 D a w Q K v n T G p g y 6 m 6 4 W I A z o V Y U n A t y 1 C l c U W I G T j Y m q R c Z d 4 z u 4 F S G a N h t I I s 3 o I 4 q H + 2 a x P V C F D M S K Y y t w e E p m l C U u L R M B a h d q M x w 9 I z Z x y o i S 2 c h v s F n d b P + 4 k H D u 8 5 c S 8 I E v B 5 w b d o d a 1 V q G k K Z L M X c r g R B Z i 0 e e / Y B D x k k B i x I b C F X p a m U g 4 4 / d q d 0 M h n 7 P G O f u O v N E I W + N m m X S p F E G C p K v 6 I h I x d K A w 5 e E h v 9 i B 2 E P p L m p p A i f 0 P Y z P 5 I h C O 7 l U X 0 j R c V 9 W Q 5 8 R M C 1 s Q U y Y v Z x V N V 6 k 0 i B b 1 V I n E t q j Q 8 4 d N I s H L u J 2 u U L g b l j 9 8 g 1 6 n e 1 8 u S F W B O u G s c r c 1 N i 1 Y + L K 8 B c A o q H 2 6 o U t s l Z l / 9 c B d x C G / F C Q G + L L 6 O w b I Z O i 3 B e c d m B B y S a T h y N C z j J c w L B 2 u j m m 7 u u R l m X b x r l 0 t Q 3 m p z a r Z d i Q L P T q 8 x Y u i s 9 w d X 7 N W I 9 I C C p 7 T j 6 N z o T q 2 q s U A A h i a W F V G p 1 d K w 9 F V a 1 E 2 K q L R 9 A Z k 7 n C F r M w N u + U r q 0 A B V g 1 1 L v Y J 7 I b q C u a g z X j B g s U Z w K / K / p 0 a i H W c Q + j s F I G i q b Z f u / O 4 U 7 f V t + Q S R V v r t F 1 U T F Y Q j N j D j b l Q D Y s M / b l S H 2 m k l r G F d r J s a E v 0 q f g 0 N 9 z p E O k w C d u 6 n h i K I b u g n E / s n u b 9 e g J 2 w E X G 3 r A D f X 8 h e N w 6 0 9 v M e T 7 Y S T d P z a S M f C F A L i g O s T P F p v O M K X p 6 U B b 4 R s q u 5 s 6 L 3 R y G E r 6 9 i p T C 1 F V O d b 5 3 X X w 4 Y d A a 6 N + 5 T J 5 6 o O F 7 g N x e 0 C V g o d 3 A c d + g n B / 9 k r S C O C k n j a l g G v U B p 2 q e 9 c 2 S g s H A Z 6 y C p Y / 7 i A g I l v f K Z 4 j H c R O 4 w z g L 8 h x u Y D J d p K l S 1 q d f 5 V G i E j C D X I 3 + g f d o b W Z r G M N T Y 4 i S x J e V q D / u m 5 D H w W A / k R F C y M u t R G 2 4 D H r V z y p W 6 o 1 R z 8 a S J e D O F k p 6 c M g i y Z S p t m s 5 W X 6 o Y O r N w S F s 6 o h V G O g t 6 4 e K 8 s k W s Q Q N E 8 1 0 w F v o 4 n p 0 U L p V H O a l R d V K p L M 5 U q U S e k O f R 6 + x l D t y K U w Y k A T t 8 U 4 Z V I q p X B H J K o b J 7 0 0 G h 3 Z f z 1 Q h O W j p I 4 H G 7 o f o P 9 E g 7 0 + M w a x J x 1 t V N D z P 5 i W M I h D p 9 0 w s I p j P C O v T 0 r v a k k 4 5 6 F w H D e 4 K P 3 o 4 X V R c H W / + D I f D D D R p t 7 U F p R m d b S f 5 G w s l k s E M W / H z a J P g K b E Q y 0 1 / A V l I 2 M 5 S s M 1 D Z O K S O s 2 Q L 2 g 9 u W j s R D Y Z Y 0 M a D 5 9 x j a v b G F 6 v s L y g U d Z S X t e v Z / D i S s + F H J D k m 8 + w I p E T T 4 d W o s z K j 8 v X i M F C V n x k f F 8 N m k x Q u N C r H V n p 9 N A T k k O Q 5 5 G 8 6 X 8 N C t 8 + d Q z F 0 J q m R 5 R i K 7 + r c k t S N 6 E l 4 5 / w 0 R k y n e V b c o U 9 B t D o M e E r P g c i L a s i Y Z A t k 5 Y U B Q v x W L s H 9 i v 4 k g R f Y B l c O v l P m i f 2 z o + n o y S 9 u g H h M n E 7 j h 5 8 F v 0 w Y U V c R n g e y 5 I w V c w B G k E t p l H 6 R B i d z z 1 z m d M W L I i 1 y D C X K Y A f g 8 H Q 6 O c Y
2020-11-03 03:07:07 +00:00
substack : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB80lEQVR4Ae3BwUtTcQAH8O/vt98L3/YYYm2TDusUZCBURlTHSV3yTzA8iHcVaYID50HQIWM3BY8P/QdaIAV2a2HIKDGhukgjtqEi7+3trb3X79c7jijbRr2fBz8fAk8sGIiVn0bL8FG/Xu2v1H9UKCSjkIzB43DhFCpOAT5yuHBw4Twg8PT10L6XTy6/go8evzh+dNLgJwwehRJl6Aq7Ax8plCjwUEjG4BECosnRhI+EgMCF84DAE1ZoOPswnIWPpt8Y04bDDQaPqhB1/IY6Dh/NvTPnDAcGhWQUklFIRiEZhWQUklFIRiEZQ5fKdV6e3zXnCQhZuKstxFQaQxcYOlR3RT37wcpm3lsZs8lNeDa/2JvJW6Hk1GBoKshIEB1gaBMX4PpnW0/tGKmSxUtoYTa5mdoxU2v71trivfDi6HV1lBJQtIGhDdvfmtszBWOmeOQUcYaSxUtjr0/HcntWbuVBeCVx9VICf8Fwho+nzkHybe1Z/rCRRweKR05x+Pnx8Mi1npHl+1rmZq8ygD9g+I2qzavp3Vp6/aC+7nLhokv5w0Z+6+v3rYmB4ER6SEtHVRrFLxha2C7s3J6VWyrWlgyHG/gHXC7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qwSwHRVNnzTYNfaJt6Kzt4N7H4diBaDjyW03T9ns93pWc89xAKvkybhPFKMy27faGjw5PWbpsjRQMUYEIoG4ZVMoDOAcRqBwcVyyd3LNz1cD1q82xSP7vBtKpX/m93tWECJ5UOrPVtMxW3CaKMYTc7tf+9bf3NpcveWiO7PMHMYxKLoBzIKfTSHlVVby5QWKMqalMeptIxRLdNJrS2cxO3AGKMQR8vjWJ7u6NHU1H9099cPmTcBhlugGmmwBnIG4FyYvnStR4hy9+vWMVAK4beqNhGM24QwRjSGUybxREo3vS16/y660tB6hbgRjwwbRy6Gw5gk+2bIKR6kf1D5/2cM4ZPgcRY1BzuX2WbV8J+QM/7Wmsf7jn6CGAcyiRKPKnz8K9z74EOAIu1R+I43MSMYIsSXM9bs+jspS3IM+VN6V0YW2k+sl1ECgBkSUIoogh3LJgpjPob20pDvh8P8mq6m6HsSTugoBh4WBoUygQeAHD8nwB1G3ZCTkUBhiHYxjglo0hxOVC6loHDm94Cpw5YIz13ei6Oc+yrHbcIRHDTNM85TDWQwkJC4KA2WufoZRTwRpIgcgSqCwBiowhTk7HuT/ucDhzOABimMYnzHH6cBdEDMvm1L+qWm6fIsuLiu6pXqwa2iyxN16mBENhYpte9PdTx7ZNU8tlOluOXb3c9PF5wzTPaLp+0LKsdnzhC3fpPw5tZs2i2ozzAAAAAElFTkSuQmCC" ,
2019-12-02 23:54:02 +00:00
} ;
2020-11-10 02:22:27 +00:00
export const getLogoUrl = ( story ) => {
return logos [ story . source ] || logos [ story . source . split ( ' ' ) [ 0 ] ] || story . icon ;
}