AchievementContainer
The AchievementContainer component renders a list of achievements based on the achievements state. Currently the achievement list is based on a json file (achievements-content.json).
Prop name | Type | Default | Description |
---|---|---|---|
intl | any | Required | |
onClose | any | Required | Callback invoked when the close button is clicked |
user | User | Required | Logged in user object |
The AchievementContainer component renders a list of achievements based on the achievements state. Currently the achievement list is based on a json file (achievements-content.json).
Prop name | Type | Default | Description |
---|---|---|---|
active | bool | ||
description | string | ||
host | string | config.host | |
intl | object | Shape | |
items | array | [] | |
onClick | func | ||
title | string |
Prop name | Type | Default | Description |
---|---|---|---|
achievements | Item[] | [] | |
intl | any | {
messages: {
achievements: {}
}
} | |
user | User | {} |
Prop name | Type | Default | Description |
---|---|---|---|
children | node | ||
options | object | Shape | |
user | object | Shape |
Prop name | Type | Default | Description |
---|---|---|---|
className | string | ||
code | object | ||
editor | number | 1 | |
onErrorCode | object | Shape | |
onValidCode | object | ||
options | object | Shape | |
style | object | Shape |
The EditorManager component is a wrapper to orchestrate the Editor component.
Prop name | Type | Default | Description |
---|---|---|---|
className | string | The desired class to be toggle in the editor wrapper - this does not apply to the CodeMirror component | |
codeChanged | func | Function | Callback executed when the editor code has changed. Important to note that this event is fired when the editor is about to change the code. This event is fired before the code takes place inside the editor. |
onFocus | func | Function | Callback executed when the editor is focused |
options | object | Shape | javascript object with codemirror options |
value | string | The text to be placed inside the editor |
Raw Editor component
Default text inside the editor
Fire callback when the editor text has changed
Prop name | Type | Default | Description |
---|---|---|---|
afkExpirationTime | number | 30000 | |
currentHint | number | ||
guideContent | array | ||
handleProgress | func | ||
hovered | bool | ||
invalidCode | bool | ||
onFinishedTyping | func | ||
onHover | func | ||
showNext | bool |
Prop name | Type | Default | Description |
---|---|---|---|
onSidebar | func | ||
updateUser | func | Function | |
user | object | Shape |
Prop name | Type | Default | Description |
---|---|---|---|
intl | any | {
messages: {
options: {
languages: {}
},
global: {},
}
} | |
locale | string | pt-br | |
onChange | any | ||
options | any | {} | |
setLocale | any | ||
setUpdateOptions | any |
Prop name | Type | Default | Description |
---|---|---|---|
intl | object | Shape | |
level | number | A number representing the level: 0, 1, 20, 2400, 9999. There is no restrictions. | |
progress | number | A percentage representing the progress from 0 to 100. The progress is used as percentage, the minimum is 0 (zero) and the maximum is 100. Any number greater than 100, is going to be displayed as if it were 100. |
Raw Level component
Prop name | Type | Default | Description |
---|---|---|---|
children | node | ||
onClose | func | ||
title | node |
Prop name | Type | Default | Description |
---|---|---|---|
className | string | ||
intl | object | Shape | |
setUser | func | ||
user | object |
Raw Profile component
Prop name | Type | Default | Description |
---|---|---|---|
intl | object | Shape | |
options | object | Shape | |
setUpdateOptions | func |
Prop name | Type | Default | Description |
---|---|---|---|
intl | object | Shape | |
onRanking | func |
Prop name | Type | Default | Description |
---|---|---|---|
button | string | ||
className | string | ||
handleLastScene | any | ||
intl | any | {} | |
lastScene | boolean | ||
next | any | ||
onCompleted | any | {} | |
previous | any | ||
releaseButton | number | 2000 | |
showAlien | any | ||
showBuggy | any | {} | |
showNextButton | number | 900 | |
step | number | ||
text | TextItem[] | [] |
Prop name | Type | Default | Description |
---|---|---|---|
content | any | Required | |
handleLastScene | function | Required | |
identifier | string | Required | |
className | string |
|
Prop name | Type | Default | Description |
---|---|---|---|
children | node | ||
user | object | Shape |
Prop name | Type | Default | Description |
---|---|---|---|
className | string | ||
skip | boolean | ||
surveyUrl | string | ||
user | User |
Prop name | Type | Default | Description |
---|---|---|---|
text | TextItem[] | Required | |
className | string | ||
onFinishedTyping | any |
Prop name | Type | Default | Description |
---|---|---|---|
onComplete | any | Required | |
strings | string[] | [] |
Prop name | Type | Default | Description |
---|---|---|---|
children | ReactNode | Required |
Prop name | Type | Default | Description |
---|---|---|---|
intl | object | Shape | |
onNotification | func | ||
showUpSurvey | bool | config.showSurvey | |
user | object |
Raw AlienSvg component
Prop name | Type | Default | Description |
---|---|---|---|
onClick | MouseEventHandler<HTMLInputElement> | Required | |
value | string | Required |
Prop name | Type | Default | Description |
---|---|---|---|
className | string | Custom class to append in the ed of the button element class list. | |
description | string | The text that goes inside the button. | |
disabled | bool | Indicates whether the button should be disabled (true) or not (false) | |
onClick | func | Calback to be executed when the button is clicked. |