src/components/ui/interface/achievement/AchievementContainer.tsx
Prop nameTypeDefaultDescription
intlanyRequired
onCloseanyRequired

Callback invoked when the close button is clicked

userUserRequired

Logged in user object

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).

Basic usage

src/components/ui/interface/achievement/AchievementItem.tsx
Prop nameTypeDefaultDescription
activebool
descriptionstring
hoststringconfig.host
intlobjectShape
itemsarray[]
onClickfunc
titlestring

AchievementItem

    • heading

  • src/components/ui/interface/achievement/AchievementList.tsx
    Prop nameTypeDefaultDescription
    achievementsItem[][]
    intlany{ messages: { achievements: {} } }
    userUser{}

    AchievementList

    src/components/ui/interface/background/Background.tsx
    Prop nameTypeDefaultDescription
    childrennode
    optionsobjectShape
    userobjectShape
    src/components/ui/interface/editor-manager/EditorManager.tsx
    Prop nameTypeDefaultDescription
    classNamestring
    codeobject
    editornumber1
    onErrorCodeobjectShape
    onValidCodeobject
    optionsobjectShape
    styleobjectShape

    EditorManager

    The EditorManager component is a wrapper to orchestrate the Editor component.

    Basic usage


    Rendering 2 editors



    src/components/ui/interface/editor/Editor.tsx
    Prop nameTypeDefaultDescription
    classNamestring

    The desired class to be toggle in the editor wrapper - this does not apply to the CodeMirror component

    codeChangedfuncFunction

    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.

    onFocusfuncFunction

    Callback executed when the editor is focused

    optionsobjectShape

    javascript object with codemirror options

    https://codemirror.net/3/doc/manual.html

    valuestring

    The text to be placed inside the editor

    Editor

    Basic usage

    Raw Editor component


    Default text inside the editor

    my text

    Fire callback when the editor text has changed


    src/components/ui/interface/guide/Guide.tsx
    Prop nameTypeDefaultDescription
    afkExpirationTimenumber30000
    currentHintnumber
    guideContentarray
    handleProgressfunc
    hoveredbool
    invalidCodebool
    onFinishedTypingfunc
    onHoverfunc
    showNextbool
    src/components/ui/interface/header/Header.tsx
    Prop nameTypeDefaultDescription
    onSidebarfunc
    updateUserfuncFunction
    userobjectShape
    src/components/ui/interface/intro/Intro.tsx
    src/components/ui/interface/language-selector/LanguageSelector.tsx
    Prop nameTypeDefaultDescription
    intlany{ messages: { options: { languages: {} }, global: {}, } }
    localestringpt-br
    onChangeany
    optionsany{}
    setLocaleany
    setUpdateOptionsany
    src/components/ui/interface/level/Level.tsx
    Prop nameTypeDefaultDescription
    intlobjectShape
    levelnumber

    A number representing the level: 0, 1, 20, 2400, 9999. There is no restrictions.

    progressnumber

    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.

    Level

    Basic usage

    Raw Level component

    1

    src/components/ui/interface/loading/Loading.tsx
    src/components/ui/interface/modal/Modal.tsx
    Prop nameTypeDefaultDescription
    childrennode
    onClosefunc
    titlenode
    src/components/ui/interface/profile/container/Profile.tsx
    Prop nameTypeDefaultDescription
    classNamestring
    intlobjectShape
    setUserfunc
    userobject

    Profile

    Basic usage

    Raw Profile component

    src/components/ui/interface/profile/options/Options.tsx
    Prop nameTypeDefaultDescription
    intlobjectShape
    optionsobjectShape
    setUpdateOptionsfunc
    src/components/ui/interface/ranking/Ranking.tsx
    Prop nameTypeDefaultDescription
    intlobjectShape
    onRankingfunc
    src/components/ui/interface/rocket/Rocket.tsx
    src/components/ui/interface/scene-manager/Scene.tsx
    Prop nameTypeDefaultDescription
    buttonstring
    classNamestring
    handleLastSceneany
    intlany{}
    lastSceneboolean
    nextany
    onCompletedany{}
    previousany
    releaseButtonnumber2000
    showAlienany
    showBuggyany{}
    showNextButtonnumber900
    stepnumber
    textTextItem[][]
    src/components/ui/interface/scene-manager/SceneContentManager.tsx
    src/components/ui/interface/scene-manager/SceneManager.tsx
    Prop nameTypeDefaultDescription
    contentanyRequired
    handleLastSceneRequired
    identifierstringRequired
    classNamestring
    src/components/ui/interface/sidebar/Sidebar.tsx
    Prop nameTypeDefaultDescription
    childrennode
    userobjectShape
    src/components/ui/interface/survey/index.tsx
    src/components/ui/interface/survey/Survey.tsx
    Prop nameTypeDefaultDescription
    classNamestring
    skipboolean
    surveyUrlstring
    userUser
    src/components/ui/interface/test-execution-animation/TestExecutionAnimation.tsx
    src/components/ui/interface/text-keyboard-animation/AnimatedText.tsx
    Prop nameTypeDefaultDescription
    textTextItem[]Required
    classNamestring
    onFinishedTypingany
    src/components/ui/interface/text-keyboard-animation/TypedText.tsx
    Prop nameTypeDefaultDescription
    onCompleteanyRequired
    stringsstring[][]
    src/components/ui/interface/title/Title.tsx
    Prop nameTypeDefaultDescription
    childrenReactNodeRequired

    Title

    Basic usage

    my title

    src/components/ui/interface/user-menu/UserMenu.tsx
    Prop nameTypeDefaultDescription
    intlobjectShape
    onNotificationfunc
    showUpSurveyboolconfig.showSurvey
    userobject
    src/components/ui/icons/Achievement.tsx
    src/components/ui/icons/Check.tsx
    src/components/ui/icons/Close.tsx
    src/components/ui/icons/Cup.tsx
    src/components/ui/icons/load/Load.tsx

    Load

    Basic usage

    src/components/ui/icons/Next.tsx
    src/components/ui/images/alien/AlienSvg.tsx

    AlienSvg

    Basic usage

    Raw AlienSvg component

    alien
    src/components/ui/images/buggy/Buggy.tsx
    src/components/ui/images/logo/Logo.tsx
    src/components/ui/images/profile/PlaceholderImage.tsx
    src/components/ui/buttons/debug/Debug.tsx
    Prop nameTypeDefaultDescription
    onClickMouseEventHandler<HTMLInputElement>Required
    valuestringRequired

    Debug

    Basic usage

    src/components/ui/buttons/primary/Primary.tsx
    Prop nameTypeDefaultDescription
    classNamestring

    Custom class to append in the ed of the button element class list.

    descriptionstring

    The text that goes inside the button.

    disabledbool

    Indicates whether the button should be disabled (true) or not (false)

    onClickfunc

    Calback to be executed when the button is clicked.

    Primary

    Basic usage

    Error: [React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.