-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f654d1
commit 33f438a
Showing
61 changed files
with
5,427 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "Chatbot", | ||
"name": "Graasp Chatbot", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export enum APP_ACTIONS_TYPES { | ||
RUN_CODE = 'run_code', | ||
SAVE_CODE = 'save_code', | ||
CLEAR_OUTPUT = 'clear_output', | ||
OPEN_FIGURE = 'open_figure', | ||
STOP_EXECUTION_DURING_PROMPT = 'stop_execution_during_prompt', | ||
STOP_EXECUTION = 'stop_execution', | ||
SUBMITTED_INPUT = 'submitted_input', | ||
CANCEL_PROMPT = 'cancel_prompt', | ||
INITIALIZE_EXECUTION = 'initialize_execution', | ||
NEW_FIGURE = 'new_figure', | ||
SEND_PROMPT = 'send_prompt', | ||
|
||
// Review actions | ||
CREATE_COMMENT = 'create_comment', | ||
EDIT_COMMENT = 'edit_comment', | ||
REPORT_COMMENT = 'report_comment', | ||
DELETE_COMMENT = 'delete_comment', | ||
RESPOND_COMMENT = 'respond_comment', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
enum APP_DATA_TYPES { | ||
COMMENT = 'comment', | ||
TEACHER_COMMENT = 'teacher_comment', | ||
BOT_COMMENT = 'bot_comment', | ||
CODE = 'code', | ||
FLAG = 'flag', | ||
} | ||
|
||
enum APP_DATA_VISIBILITY { | ||
MEMBER = 'member', | ||
ITEM = 'item', | ||
} | ||
|
||
export const COMMENT_APP_DATA_TYPES: string[] = [ | ||
APP_DATA_TYPES.COMMENT, | ||
APP_DATA_TYPES.TEACHER_COMMENT, | ||
APP_DATA_TYPES.BOT_COMMENT, | ||
]; | ||
|
||
export { APP_DATA_TYPES, APP_DATA_VISIBILITY }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export const GENERAL_SETTINGS_NAME = 'GENERAL_SETTINGS'; | ||
export const CODE_EXECUTION_SETTINGS_NAME = 'CODE_EXECUTION_SETTINGS'; | ||
export const CHATBOT_PROMPT_SETTINGS_NAME = 'CHATBOT_PROMPT_SETTINGS'; | ||
export const DIFF_VIEW_SETTINGS_NAME = 'DIFF_VIEW_SETTINGS'; | ||
export const APP_MODE_SETTINGS_NAME = 'APP_MODE_SETTINGS'; | ||
export const DATA_FILE_LIST_SETTINGS_NAME = 'DATA_FILE_LIST_SETTINGS'; | ||
export const INSTRUCTOR_CODE_VERSION_SETTINGS_NAME = 'INSTRUCTOR_CODE_VERSION'; | ||
export const DATA_FILE_SETTINGS_NAME = 'DATA_FILE_SETTING'; | ||
|
||
export enum CodeEditorSubmitTarget { | ||
Settings, | ||
Code, | ||
} | ||
|
||
export enum AppMode { | ||
Execute = 'Execute', | ||
Review = 'Review', | ||
Collaborate = 'Collaborate', | ||
Explain = 'Explain', | ||
} | ||
|
||
export type DataFile = { | ||
appSettingId: string; | ||
fileName: string; | ||
virtualPath: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export const GRAASP_LOGO_HEADER_HEIGHT = 40; | ||
export const BUTTON_LOADER_SIZE = 24; | ||
|
||
// Admin view constants | ||
export const NB_COL_TABLE_VIEW_TABLE = 4; | ||
|
||
// reset timeout in ms for settings dialog | ||
export const CLOSE_SETTINGS_TIMEOUT = 500; | ||
|
||
// commit message truncation length | ||
export const DEFAULT_TRUNCATION_COMMIT_MESSAGE_LENGTH = 15; | ||
|
||
export const MAX_INITIALS_AVATAR = 2; | ||
|
||
export const DEFAULT_REPL_INPUT_VALUE = ''; | ||
|
||
export const ANONYMOUS_USER = 'You'; | ||
export const INSTRUCTOR_CODE_NAME = 'Default'; | ||
|
||
export const INSTRUCTOR_CODE_ID = 'instructor'; | ||
|
||
export const JAVASCRIPT = 'javascript'; | ||
export const JAVA = 'java'; | ||
export const PYTHON = 'python'; | ||
export const MATLAB = 'matlab'; | ||
export const JSON_LANG = 'json'; | ||
|
||
export const REVIEW_MODE_INDIVIDUAL = 'individual'; | ||
export const REVIEW_MODE_COLLABORATIVE = 'collaborative'; | ||
|
||
export const VISIBILITY_MEMBER = 'member'; | ||
export const VISIBILITY_ITEM = 'item'; | ||
|
||
export const REVIEW_MODES = [ | ||
{ | ||
label: 'Individual - Each student works in isolation', | ||
value: REVIEW_MODE_INDIVIDUAL, | ||
}, | ||
{ | ||
label: 'Collaborative - Students see other students work', | ||
value: REVIEW_MODE_COLLABORATIVE, | ||
}, | ||
] as const; | ||
|
||
export const DEFAULT_BOT_USERNAME = 'Graasp Bot'; | ||
|
||
// maximum number of messages allowed in a chatbot thread | ||
export const MAX_CHATBOT_THREAD_LENGTH = 50; | ||
|
||
export const DEFAULT_CHATBOT_PROMPT_APP_DATA = { chatbotPromptSettingId: '' }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export enum AppView { | ||
LoadingView, | ||
CodeReview, | ||
CodeEditor, | ||
CodeExecution, | ||
DiffView, | ||
} | ||
|
||
export const SMALL_BORDER_RADIUS = '4px'; | ||
export const BIG_BORDER_RADIUS = '8px'; | ||
export const MAX_REPL_HEIGHT = '60vh'; |
Oops, something went wrong.