You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,33 @@ To make the mentioned configuration on Ubuntu 16.04 you:
39
39
- dan_developer/dantopcoder123
40
40
- Create your own:
41
41
- You may register your own account at https://local.topcoder-dev.com/register
42
+
43
+
# Configuration
44
+
45
+
### Notifications in the Dashboard
46
+
47
+
There's a constant `VIDEO_DEFAULT_HEIGHT` has been added to /app/topcoder.constants.js, the value will be used as the default height when a banner expanded.
48
+
49
+
To add a new notification, append a new configuration object to /app/my-dashboard/notifications/news.json, the configuration object has following properties:
50
+
51
+
- customTag: allows to show a custom tag in the collapsed notification, similarly to the LIVE tag. If provided, it should be an object with three fields: `text` - the label on the tag, `color` - text color of the tag (defaults to white), `background` - background color of the tag (defaults to red, the same as for LIVE tag).
52
+
- header: header text displayed when collapsed.
53
+
- details: details text displayed when collapsed.
54
+
- headerExpand: header text displayed when expanded, use `header` if this property is falsy
55
+
- detailsExpand: details text displayed when expanded, use `details` if this property is falsy
56
+
- backgroundImage: background image used when expaneded, the path is relative to /assets/images/news
57
+
- redirectTo: the url will redirect to when user click the `Learn more` button, will hide the button if this property is falsy
58
+
- redirectText: the text will be displayed on the `Learn more` button, will hide the button if this property is falsy
59
+
- videoCode: the video resource code to embed when expanded
60
+
- live: show the live flag or not when collapsed
61
+
- liveExpand: show the live flag or not when expanded
62
+
- height: height of the expanded view, any non-falsy value of this property will override the default height, i.e. `VIDEO_DEFAULT_HEIGHT` in /app/topcoder.constants.js
63
+
64
+
### Banners in the Dashboard
65
+
66
+
You can edit `/app/my-dashboard/notifications/notifications.jade` to update the banners. Element with class `banner-row` represents a row of banners, anchor element with class `banner` represents a banner, you can place as many banners as you want in a row, just make sure it have a proper appearance, all banners in one row have same width.
42
67
43
-
##Recommended Developer Tools
68
+
# Recommended Developer Tools
44
69
45
70
Syntax highlighting for ES6 and React JSX
46
71
- Install [babel](https://packagecontrol.io/packages/Babel) via the package manager in Sublime Text
"details": "Visit the new TCO18 Website for all the details and rules for each track. Also be sure to frequently visit the Challenge Listings page for opportunity to earn TCO18 Points!",
5
+
"headerExpand": "TCO18 Has Begun!",
6
+
"detailsExpand": "Visit the new TCO18 Website for all the details and rules for each track. Also be sure to frequently visit the Challenge Listings page for opportunity to earn TCO18 Points!",
0 commit comments