|
| 1 | +# App Component |
| 2 | + |
| 3 | +Generic App Component model. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +**Preview:** https://community-app.topcoder.com/examples/contentful/viewport/7szFFbYqzZLpWkZwqZlXSJ |
| 8 | + |
| 9 | +## Fields |
| 10 | + |
| 11 | +- **Name** | Name of the entry. |
| 12 | +- **Type** | Type of the App Component. Each type has different props. Please refer to [props](#props-json-object) field below. |
| 13 | +- **Theme** | Theme specific for `TCO-Leaderboard` type. |
| 14 | +- **Props** | Each type has its own props. Please refer to [props](#props-json-object) field below. |
| 15 | + |
| 16 | +## TCO-Leaderboard Themes |
| 17 | + |
| 18 | +### Default |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +### TCO20 |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +### TCO22 |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +## Props (JSON Object) |
| 31 | + |
| 32 | +### Type = `TCO-Leaderboard` |
| 33 | + |
| 34 | +Render top spots and list of competitors on specific TCO track. |
| 35 | + |
| 36 | +- **apiUrl** | **String.** Looks API URL | Default: "https://api.topcoder.com/v4/looks/1044/run/json". |
| 37 | +- **title** | **String.** Title of the leaderboard. | Default: "Leaderboard". |
| 38 | +- **podiumSpots** | **Number.** Number of displayed top spots. | Default: 3. |
| 39 | +- **isCopilot** | **Bool.** Display copilot specific fields. | Default: false |
| 40 | +- **hasChallengeHistory** | Bool. Display modal of competitor history. | Default: true |
| 41 | +- **tcoPointsApiUrl** | **String.** Looks API URL for competitior challenge history. | Default: null |
| 42 | +- **memberLimit** | **Number.** Limit the displayed number of rows. | Default: null |
| 43 | +- **isAlgo** | **Bool.** Display copilot specific fields. | Default: false |
| 44 | + |
| 45 | +### Type = `RecruitCRM-Jobs` |
| 46 | + |
| 47 | +A block that fetches and renders a job listing page driven by recruitCRM. |
| 48 | + |
| 49 | +### Type = `EmailSubscribeForm` |
| 50 | + |
| 51 | +Generic subscribe for MailChimp tags component. |
| 52 | + |
| 53 | +- **listId** | **String (Required).** |
| 54 | +- **interests** | **String (Required).** |
| 55 | +- **title** | **String.** |
| 56 | +- **btnText** | **String.** |
| 57 | +- **successTitle** | **String.** |
| 58 | +- **successText** | **String.** |
| 59 | +- **successLink** | **String.** |
| 60 | +- **successLinkText** | **String.** |
| 61 | + |
| 62 | +### Type = `GSheet` |
| 63 | + |
| 64 | +Render table that loads data from Google Sheet. |
| 65 | + |
| 66 | +- **id** | **String (Required).** Google sheet ID. |
| 67 | +- **index** | **Number.** The index of the sheet to render, starts by 0 and counting. |
| 68 | +- **config** | **Object of:** |
| 69 | + - **pick** | **Array of Strings.** Pick sheet header value as table header. |
| 70 | + - **containerStyle** | **CSS Object.** Inline styles object to override the container style. |
| 71 | + |
| 72 | +### Type = `JSON` |
| 73 | + |
| 74 | +JSON object needed by 3rd party API. |
| 75 | + |
| 76 | +### Type = `MemberPath` |
| 77 | + |
| 78 | +Render MemberPath component specifically for http://topcoder.com/start page. |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +- **data** | **Object of:** |
| 83 | + - **title** | **String.** Big top title. |
| 84 | + - **items** | **Array of Objects of:** |
| 85 | + - **title** | **String.** Box title. |
| 86 | + - **iconURL** | **String.** URL of the icon. |
| 87 | + - **activeIconURL** | **String.** URL of icon when box is active. |
| 88 | + - **contentText** | **String.** Displayed text at the bottom content. |
| 89 | + - **btnText** | **String.** Text of the button at the bottom content. |
| 90 | + - **btnURL** | **String.** Target link of the button at the bottom content. |
| 91 | + - **btnNewTab** | **Bool.** Boolean to control the button to open new tab or not. |
0 commit comments