References
assets/helpSvgr
summary | ||
public |
F LionCuriousHelpSvgr(props: Object): Object SVGR component depicting a lion that looks curious. |
|
public |
F LionDoubtWarningSvgr(props: Object): Object SVGR component depicting a lion that looks in doubt, with a warning sign on its overalls. |
|
public |
F LionHappyHelpSvgr(props: Object): Object SVGR component depicting a happy lion with a question mark on its overall. |
|
public |
F LionRestingSvgr(props: Object): Object SVGR component depicting a lion resting and in laying position. |
|
public |
F LionSatisfiedHelpSvgr(props: Object): Object SVGR component depicting a satisfied lion with a question mark on its overall. |
|
public |
F LionSittingHelpSvgr(props: Object): Object SVGR component depicting a lion with a question mark on its overall, in sitting posture. |
|
public |
F LionThumbUpHelpSvgr(props: Object): Object SVGR component depicting a lion with a thumb up, and a question mark on its overall. |
|
public |
F LionThumbUpSvgr(props: Object): Object SVGR component depicting a lion with a thumb up. |
assets/iconsSvgr
summary | ||
public |
F CloseIconSvgr(props: Object): Object SVGR component representing a round "close" icon. |
|
public |
F DetailsIconSvgr(props: Object) SVGR component representing a round "see details" icon. |
|
public |
F EraserIconSvgr(props: Object): Object SVGR component depicting an eraser. |
|
public |
F FontColorIconSvgr(props: Object): Object SVGR component representing the "font color" symbol. |
|
public |
F HomeIconSvgr(props: Object): Object SVGR component depicting the round "home" icon. |
|
public |
F LeftArrowSvgr(props: Object): Object SVGR component representing an arrow pointing to the left. |
|
public |
F LockIconSvgr(props: Object): Object SVGR component representing a lock. |
|
public |
F NextIconSvgr(props: Object): Object SVGR component representing the "next" round icon |
|
public |
F OkIconSvgr(props: Object): Object SVGR component representing the "ok" round icon. |
|
public |
F PaperColorIconSvgr(props: Object): Object SVGR component representing the "paper color" symbol. |
|
public |
F PenIconSvgr(props: Object): Object SVGR component representing the "pen" symbol. |
|
public |
F PreviousIconSvgr(props: Object): Object SVGR component representing the "previous" round icon |
|
public |
F RedCrossIconSvgr(props: Object): Object SVGR component representing a red cross symbol. |
|
public |
F SaveIconWhiteSvgr(props: Object): Object SVGR component representing the "save" symbol. |
|
public |
F ToStartIconSvgr(props: Object): Object SVGR component representing the "back to start" round icon. |
|
public |
F TrashIconSvgr(props: Object): Object SVGR component depicting a trash can symbol. |
|
public |
F UndoIconSvgr(props: Object): Object SVGR component representing the "undo" symbol. |
assets/itemsSvgr
summary | ||
public |
F PhotoCornerBottomLeft(props: Object): Object SVGR component depicting the bottom left photo corner. |
|
public |
F PhotoCornerBottomRight(props: Object): Object SVGR component depicting a bottom right photo corner. |
|
public |
F PhotoCornerTopLeft(props: Object): Object SVGR component depicting the top left photo corner. |
|
public |
F PhotoCornerTopRight(props: Object): Object SVGR component depicting the top right photo corner. |
assets/stickersSvgr
summary | ||
public |
F BookShelfStickerSvgr(props: Object): Object SVGR component depicting a bookshelf sticker. |
|
public |
F TeddyBearSticker(props: Object): Object SVGR component depicting a teaddy bear sticker. |
components/avatar
components/buttons
summary | ||
public |
F BackSquareButton(props: Object): Object Component displaying a square "back" button. |
|
public |
F BaseRoundButtonShadow(props: Object): Object Component representing the base for a round button with shadow. |
|
public |
F BaseSquareButton(props: Object): Object Component representing the base for a square button with shadow. |
|
public |
F BaseSquareButtonLeftIcon(props: Object): Object Component representing the base for a square button with shadow. |
|
public |
F CloseRoundButton(props: Object): Object Close button, round button with shadow |
|
public |
F DeleteSquareButton(props: Object): Object Component displaying a square "delete" button. |
|
public |
F DetailsRoundButton(props: Object): Object Details button, round button with shadow |
|
public |
F HomeRoundButton(props: Object): Object Home round button with shadow |
|
public |
F JournalButton(props: Object, label: string, style: Object): Object Component displaying a square button for the journal module, with the specified label. |
|
public |
F LoginSquareButton(props: Object): Object Component displayin a square login button |
|
public |
F NextRoundButton(props: Object): Object Next button, round with shadow |
|
public |
F OkRoundButton(props: Object): Object Ok button, round button with shadow |
|
public |
F PreviousRoundButton(props: Object): Object "Previous" round button with shadow |
|
public |
F SaveSquareButton(props: Object): Object Component displaying a Square save button. |
|
public |
F ToDiaryButton(props: Object): Object Component representing the button to navigate to diary. |
|
public |
F ToJournalButton(props: Object): Object Component representing the button to navigate to journal. |
|
public |
F ToStartRoundButton(props: Object): Object "Go to start" button, round button with shadow |
components/dialogBoxes
summary | ||
public |
F ConfirmationBoxOverlay(props: Object): Object Component displaying an overlay on a view with a confirmation box. |
|
public |
F InfoBoxOverlay(props: Object): Object Component displaying an overlay on a view with an information box and a single close button |
|
public |
F JournalAlertBoxOverlay(props: Object): Object Component displaying an overlay view with alert box for login to journal. |
|
public |
F SaveAlertBoxOverlay(props: Object): Object Component displaying an overlay on a view with an alert box. |
components/helper
summary | ||
public |
F HelperAvatar(props: Object): Object Returns the avatar of the lion with the given expression. |
components/stickers
summary | ||
public |
F AvatarHappySticker(props: Object): Object Round sticker with happy user avatar |
|
public |
F BaseRoundSticker(props: Object): Object An ImageWrapper component containing a sticker |
components/wrappers
summary | ||
public |
F ImageWrapper(props: Object): Object Wrapper for image. |
|
public |
F SafeAreaWrapper(props: Object): Object SafeArea Wrapper |
database
summary | ||
public |
F getActivity(activityId: number): Object Returns activity with given id |
|
public |
F getAllActivites(): Object[] Return all activites |
|
public |
Returns the activity name |
|
public |
F getPicture(activityId: number): Object Returns the activity picture |
|
public |
F getQuestion(activityId: number, questionId: number): Object Returns question with given questoinIdd from activity with given activityId |
|
public |
F getAllQuestions(id: number): string[] Returns all questions |
|
public |
F getFilename(id: number): string Gets the filename of activity picture |
|
public |
Returns the name of the activity type |
|
public |
F getPicture(id: number): Object Returns the picture of the activity type |
|
public |
F getQuestion(id: number, questionId: number): Object Returns the question with the given activity type id and question id |
|
public |
F numberOfQuestions(id: number): number Returns the number of questions |
|
public |
F getIdFromUsername(username: string): number Looks for the given username in the database and returns the id if found. |
|
public |
F getTherapistImageFromId(id: number): Object Gets the image from the therapist object with given id |
|
public |
F getTherapistNameFromId(id: number): string Gets the name of a therapist with given id |
|
public |
F isValidPassword(therapistId: number, password: string): boolean Checks if the given password is the correct password for the given therapist id. |
|
public |
F addAssessment() If the activity is already defined, update it If the activity is not assessed, add assessment |
|
public |
F getAssessment(assessmentID: number): Object Gets the assessment with given assessmentID |
|
public |
F getAssessments(): Object[] Gets all of the assessments in the user object |
|
public |
Gets the user object |
|
public |
Returns the number of assessmetns |
|
public |
V activities: Object[] Activity sessions |
|
public |
V activityTypes: Object[] Type of activities |
|
public |
V therapists: Object[] Therapists |
|
public |
The user that is using the application |
objects
summary | ||
public |
F clearAssessment() Resets the assessment |
|
public |
Returns the activity create date |
|
public |
F getActivityId(): number Returns the activity id |
|
public |
F getActivityType(): Object Returns the activity type |
|
public |
F getAssessment(): Object Returns the assessment object |
|
public |
F getAssessmentId(): number Returns the assessment id |
|
public |
F getComment(): Object Returns the comment object |
|
public |
F getDrawing(): string Returns the drawing path |
|
public |
F getGrading(): Object Returns the grading object |
|
public |
F setActivityCreateDate(date: Date) Sets the activityCreateDate |
|
public |
F setActivityId(activityId: number) Sets the id of the Activity |
|
public |
F setActivityType(activityType: Object) Sets the activity type |
|
public |
F setAssessment(a: Object) Overwrite assessment. |
|
public |
F setAssessmentId(id: number) Sets the id of the assessment |
|
public |
F setComment(content: string, textColor: string, paperColor: string) Sets the comment which consists of content, and colors. |
|
public |
F setCreateDate(date: Date) Sets the createDate |
|
public |
F setDrawing(drawing: string) Sets the drawing |
|
public |
F setGrading(grading: Object) Sets the grading for a question. |
|
public |
Return properties of the help object with the given id |
|
public |
F getPropertiesWithHelp(help: Object): Object[] Returns properties of the lion corresponding to the given help-object. |
styles
summary | ||
public |
Font and font size from iOS UI kit |
|
public |
Font and font size from iOS UI kit, xLarge |
|
public |
iOS xxxLarge: diary details on free text, buttons |
|
public |
V typography: Object Non standard-iOS typography |
|
public |
General styles which can be used by all components |
svgr-components
summary | ||
public |
F SvgAnsiktIkkeLyst(props: Object): Object Not happy face |
|
public |
F SvgAnsiktLittLyst(props: Object): Object Medium happy face |
|
public |
F SvgAnsiktVeldigLyst(props: Object): Object Happy face |
|
public |
F SvgAvatarIkkeLyst(props: Object): Object Not happy avatar |
|
public |
F SvgAvatarLittLyst(props: Object): Object Medium happy avatar |
|
public |
F SvgAvatarVeldigLyst(props: Object): Object Very happy avatar |
|
public |
F SvgAvatarVetIkke(props: Object): Object Unsure avatar |
utils
summary | ||
public |
F handleLogin(username: String, setUsername: function, password: String, setPassword: function, therapistId: number, setTherapistId: function, setIsValidConnection: function, setShowErrorMsg: function, setGoToJournal: function): function Process the login and set the variables to the correct value. |
|
public |
F handleLogout(setIsLoggedOut: function, setIsValidConnection: function, setGoToJournal: function): Object Set values to the given states to process log out. |
|
public |
Check if the given id is valid |
|
public |
Function to convert CSS colors (first letter capitalized) to React colors (all lowercase) |
|
public |
F convertDate(dateString: string): string[] Convert a date in ISO format to an array of strings containing weekDay, day, month and year. |
|
public |
F formatTitleAndName(name: string): string Return the title of the diary with the specified name as part of the title. |
|
public |
F setBorderStyle(paperColor: string, styles: Object): Object[] Set the color of the border and add it to the specified style |
|
public |
F getEmojiImage(grading: number): Object Get the source of the image of the emoji corresponding to the specified grading. |
|
public |
Get the legend of the corresponding grading. |
|
public |
Get the speech sound for the specified grading |
|
public |
F iosPlaySound(filename: string) Preferred way of playing sound on ios |
|
public |
Plays the .wav soundfile corresponding to the filename. |
|
public |
F stopSound() Stops the currently playing sound. |
|
public |
F smileyometerAnimationDelay(grading: boolean, comment: boolean, drawing: boolean): number[] Receives parts of assessment, and returns timer delay values based on true or false |
|
public |
F timedEvent(func: function, time: number, id: number) A timed event. |
|
public |
V CharacterExpression: * Enum defining the expression and function of the avatar of the helper. |
|
public |
V CharacterPosture: * Enum defining the posture of the character |
|
public |
Colors used in the color selector for drawing and free text |
|
public |
V ColorPalette: * Complete color palette used in the user interface |
|
public |
V JournalColors: * UI colors used in journal |
|
public |
V UIColors: * The default colors used for the UI elements |
|
public |
Holds the activity object of the activity the user is assesseing |
|
public |
Create a context for the diary module, to keep track of the page the user is on. |
|
public |
Creates a context for the journal module, to keep track of login information. |
|
public |
Defines a new context for mood with no startvalue. |
|
public |
Creates a context that controls whether helper is muted or not |
|
public |
Enum defining the length of a button (journal button) |
|
public |
Enum defining the color lightness of a component of a button |
|
public |
Enum defining the position of components |
|
public |
Enum defining the dimensions of round buttons in journal module. |
|
public |
Enum defining the dimensions of round buttons (journal button) |
|
public |
Enum defining the size of round button |
|
public |
Enum defining the dimensions of square buttons |
|
public |
V compliments: string[] Different compliments the user recieve in scoreboard component. |
|
public |
Enum to differentiate between FreeTextView and DrawingView |
|
public |
Enum definingn different moods. |
|
public |
Defines constants describing the type of notification. |
views/assessment
views/assessment/components
summary | ||
public |
F ColorSelectorHorizontal(props: Object): Object The menu used to select a color, with horizontal scroll. |
|
public |
F ConfirmationMenu(props: Object): Object Menu shown when user is exiting, prompting user to save the drawing |
|
public |
The left side menu of FreeTextView and DrawingView. |
views/assessment/components/buttons
summary | ||
public |
F BaseDrawingButton(props: Object): Object The base button used in the drawing and free text menu. |
|
public |
F ClearAllButton(props: Object): Object The button clicked when clearing the drawing. |
|
public |
F DrawButton(props: Object): Object The button clicked when activating the pen. |
|
public |
F EraserButton(props: Object): Object The button to activate the eraser. |
|
public |
F FontColorButton(props: Object): Object The button to change the color of the font. |
|
public |
F PaperColorButton(props: Object): Object The button to change the color of the paper. |
|
public |
F UndoButton(props: Object): Object The button to undo a drawing action. |
views/assessment/drawing
summary | ||
public |
F DrawingView(setShowDrawingView: boolean): Object The view where the user can draw. |
views/assessment/drawing/components
summary | ||
public |
F StrokeWidthIndicator(props: Object): Object Component displaying the size of the drawing stroke. |
|
public |
F StrokeWidthSlider(props: Object): Object Component with slider controlling the width of the pen stroke, and an indicator displaying the stroke size. |
views/assessment/freetext
summary | ||
public |
F FreeTextView(setShowFreeText: function): Object The view where the user can write free text. |
views/assessment/grading/components
views/assessment/menu
views/assessment/menu/components
views/diary
summary | ||
public |
View showing the diary |
|
public |
Common styles used in the diary. |
views/diary/components
summary | ||
public |
F DateCalendar(props: Object): Object Component that display the date with year, month, day and weekday like on single page single day calendars |
|
public |
F DiaryCover(): Object Front cover of the diary |
|
public |
Component displaying the right page of the diary with all the answers to assessment for an activity session. |
|
public |
Component displaying the drawing made by the user, on a diary page. |
|
public |
F DrawingDetails(props: Object): Object Detailed view of drawing |
|
public |
Component displaying the free text element on the diary page. |
|
public |
F FreeTextDetails(props: Object): Object Detailed view of free text |
|
public |
F GradingCardBack(props: Object): Object Component displaying the backside of a grading card in the diary. |
|
public |
F GradingCard(props: Object): Object Component displaying the front size of a grading card. |
|
public |
F GradingsOverview(props: Object): Object Component displaying an overview of all answers to questions related to an activity. |
|
public |
Header of the diary. |
|
public |
F NavNextPage(props: Object): Object Diary menu bar to navigate to next page. |
|
public |
F NavPreviousPage(props: Object): Object Diary menu bar to navigate to previous page. |
|
public |
F NavToStart(props: Object): Object Component displaying the menu to navigate to the cover page. |
|
public |
Component displaying the title of a diary page. |
|
public |
F PictureActivity(props: Object): Object Component displaying the picture of the activity with photo corners. |
views/journal
summary | ||
public |
F JournalAssessmentScreen(props: Object): Object View displaying an assessment on an activity session in the journal. |
|
public |
F JournalLoginView(props: Object): Object Component displaying the login page of the journal. |
|
public |
F JournalView(props: Object): Object Component displaying the landing view of the journal module, after successfull login. |
|
public |
Styles used in journal |
views/journal/components
summary | ||
public |
Component displaying the header of the journal, with info on the user currently logged in and logout button. |
|
public |
F LabelTextInput(props: Object): Object Component displaying the label of a text input. |
|
public |
F NotificationText(props: Object): Object Component displaying a notification message. |
|
public |
Component representing a cell in a table. |
|
public |
F TableTitle(props: Object): Object Component displaying the title cell of a table. |
views/startview/components
summary | ||
public |
F ActivityList(setGoToActivity: function): Object Component for making the activity list in main menu |