File tree 5 files changed +22
-6
lines changed
5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -290,14 +290,14 @@ workflows:
290
290
filters :
291
291
branches :
292
292
only :
293
- - free
293
+ - bug-bash
294
294
# This is beta env for production soft releases
295
295
- " build-prod-beta " :
296
296
context : org-global
297
297
filters :
298
298
branches :
299
299
only :
300
- - develop
300
+ - bug-bash
301
301
# This is stage env for production QA releases
302
302
- " build-prod-staging " :
303
303
context : org-global
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ module.exports = {
140
140
HOWTOCOMPETEINMARATHON : 'https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match' ,
141
141
USABLECODEDEV : 'https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges' ,
142
142
EXTENSIONVSCODE : 'https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview' ,
143
+ TEMPLATES_REPO : 'https://github.com/topcoder-platform-templates' ,
143
144
} ,
144
145
145
146
IOS : 'https://ios.topcoder-dev.com' ,
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export default class Preferences extends React.Component {
88
88
case 'e-mail' :
89
89
return < NewsletterPreferencesContainer email = { email } /> ;
90
90
case 'forum' :
91
- return ( window . location . href = `${ config . URL . FORUMS } /?module=Settings ` ) && < LoadingIndicator /> ;
91
+ return ( window . location . href = `${ config . URL . FORUMS_VANILLA } /profile/preferences ` ) && < LoadingIndicator /> ;
92
92
case 'payment' :
93
93
return ( window . location . href = `${ config . URL . COMMUNITY } /tc?module=EditPaymentPreferences` ) && < LoadingIndicator /> ;
94
94
default :
Original file line number Diff line number Diff line change @@ -432,6 +432,16 @@ export default function SideBar({
432
432
</ div >
433
433
</ Tooltip >
434
434
</ span >
435
+ < span styleName = "link-like-paragraph tooltip-container" >
436
+ < a
437
+ href = { config . URL . INFO . TEMPLATES_REPO }
438
+ title = "Topcoder Templates repository"
439
+ target = "_blank"
440
+ rel = "noreferrer"
441
+ >
442
+ Topcoder Templates < br /> repository
443
+ </ a >
444
+ </ span >
435
445
</ div >
436
446
{ shareable && (
437
447
< div >
Original file line number Diff line number Diff line change 1
1
import { Avatar } from 'topcoder-react-ui-kit' ;
2
2
import PT from 'prop-types' ;
3
- import React from 'react' ;
3
+ import React , { useEffect , useState } from 'react' ;
4
4
import _ from 'lodash' ;
5
5
import { config } from 'topcoder-react-utils' ;
6
6
@@ -20,6 +20,11 @@ export default function Winner({
20
20
viewable,
21
21
winner,
22
22
} ) {
23
+ const [ windowOrigin , setWindowOrigin ] = useState ( ) ;
24
+ useEffect ( ( ) => {
25
+ setWindowOrigin ( window . origin ) ;
26
+ } , [ ] ) ;
27
+
23
28
const submissionId = viewable && getId ( submissions , winner . placement ) ;
24
29
25
30
let placeStyle = winner . placement < 4 ? `place-${ winner . placement } ` : '' ;
@@ -69,9 +74,9 @@ export default function Winner({
69
74
/>
70
75
< div >
71
76
< a
72
- href = { `${ window . origin } /members/${ winner . handle } ` }
77
+ href = { `${ windowOrigin } /members/${ winner . handle } ` }
73
78
styleName = "handle"
74
- target = { `${ _ . includes ( window . origin , 'www' ) ? '_self' : '_blank' } ` }
79
+ target = { `${ _ . includes ( windowOrigin , 'www' ) ? '_self' : '_blank' } ` }
75
80
>
76
81
{ winner . handle }
77
82
</ a >
You can’t perform that action at this time.
0 commit comments