-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #941 from rdmorganiser/interview
feat(interview): Rewrite interview using React and Redux [0]
- Loading branch information
Showing
117 changed files
with
5,527 additions
and
50 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
// take the baseurl from the <head> of the django template | ||
export default document.querySelector('html').getAttribute('lang') |
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 |
---|---|---|
|
@@ -222,7 +222,21 @@ | |
'PROJECT_TABLE_PAGE_SIZE' | ||
] | ||
|
||
TEMPLATES_API = [] | ||
TEMPLATES_API = [ | ||
'projects/project_interview_add_set_help.html', | ||
'projects/project_interview_add_value_help.html', | ||
'projects/project_interview_buttons_help.html', | ||
'projects/project_interview_done.html', | ||
'projects/project_interview_error.html', | ||
'projects/project_interview_multiple_values_warning.html', | ||
'projects/project_interview_navigation_help.html', | ||
'projects/project_interview_overview_help.html', | ||
'projects/project_interview_page_help.html', | ||
'projects/project_interview_page_tabs_help.html', | ||
'projects/project_interview_progress_help.html', | ||
'projects/project_interview_question_help.html', | ||
'projects/project_interview_questionset_help.html', | ||
] | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
DEFAULT_FROM_EMAIL = '[email protected]' | ||
|
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 was deleted.
Oops, something went wrong.
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
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,35 @@ | ||
import React from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import { Provider } from 'react-redux' | ||
|
||
import configureStore from './interview/store/configureStore' | ||
|
||
import { DndProvider } from 'react-dnd' | ||
import { HTML5Backend } from 'react-dnd-html5-backend' | ||
|
||
import Pending from '../../../core/assets/js/containers/Pending' | ||
|
||
import Main from './interview/containers/Main' | ||
import Sidebar from './interview/containers/Sidebar' | ||
|
||
const store = configureStore() | ||
|
||
createRoot(document.getElementById('main')).render( | ||
<DndProvider backend={HTML5Backend}> | ||
<Provider store={store}> | ||
<Main /> | ||
</Provider> | ||
</DndProvider> | ||
) | ||
|
||
createRoot(document.getElementById('sidebar')).render( | ||
<Provider store={store}> | ||
<Sidebar /> | ||
</Provider> | ||
) | ||
|
||
createRoot(document.getElementById('pending')).render( | ||
<Provider store={store}> | ||
<Pending /> | ||
</Provider> | ||
) |
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,52 @@ | ||
export const NOOP = 'NOOP' | ||
|
||
export const FETCH_OVERVIEW_INIT = 'FETCH_OVERVIEW_INIT' | ||
export const FETCH_OVERVIEW_ERROR = 'FETCH_OVERVIEW_ERROR' | ||
export const FETCH_OVERVIEW_SUCCESS = 'FETCH_OVERVIEW_SUCCESS' | ||
|
||
export const FETCH_PROGRESS_INIT = 'FETCH_PROGRESS_INIT' | ||
export const FETCH_PROGRESS_ERROR = 'FETCH_PROGRESS_ERROR' | ||
export const FETCH_PROGRESS_SUCCESS = 'FETCH_PROGRESS_SUCCESS' | ||
|
||
export const UPDATE_PROGRESS_INIT = 'UPDATE_PROGRESS_INIT' | ||
export const UPDATE_PROGRESS_SUCCESS = 'UPDATE_PROGRESS_SUCCESS' | ||
export const UPDATE_PROGRESS_ERROR = 'UPDATE_PROGRESS_ERROR' | ||
|
||
export const FETCH_PAGE_INIT = 'FETCH_PAGE_INIT' | ||
export const FETCH_PAGE_ERROR = 'FETCH_PAGE_ERROR' | ||
export const FETCH_PAGE_SUCCESS = 'FETCH_PAGE_SUCCESS' | ||
|
||
export const FETCH_NAVIGATION_INIT = 'FETCH_NAVIGATION_INIT' | ||
export const FETCH_NAVIGATION_ERROR = 'FETCH_NAVIGATION_ERROR' | ||
export const FETCH_NAVIGATION_SUCCESS = 'FETCH_NAVIGATION_SUCCESS' | ||
|
||
export const FETCH_OPTIONS_INIT = 'FETCH_OPTIONS_INIT' | ||
export const FETCH_OPTIONS_SUCCESS = 'FETCH_OPTIONS_SUCCESS' | ||
export const FETCH_OPTIONS_ERROR = 'FETCH_OPTIONS_ERROR' | ||
|
||
export const FETCH_VALUES_INIT = 'FETCH_VALUES_INIT' | ||
export const FETCH_VALUES_SUCCESS = 'FETCH_VALUES_SUCCESS' | ||
export const FETCH_VALUES_ERROR = 'FETCH_VALUES_ERROR' | ||
|
||
export const RESOLVE_CONDITION_INIT = 'RESOLVE_CONDITION_INIT' | ||
export const RESOLVE_CONDITION_SUCCESS = 'RESOLVE_CONDITION_SUCCESS' | ||
export const RESOLVE_CONDITION_ERROR = 'RESOLVE_CONDITION_ERROR' | ||
|
||
export const CREATE_VALUE = 'CREATE_VALUE' | ||
export const UPDATE_VALUE = 'UPDATE_VALUE' | ||
|
||
export const STORE_VALUE_INIT = 'STORE_VALUE_INIT' | ||
export const STORE_VALUE_SUCCESS = 'STORE_VALUE_SUCCESS' | ||
export const STORE_VALUE_ERROR = 'STORE_VALUE_ERROR' | ||
|
||
export const DELETE_VALUE_INIT = 'DELETE_VALUE_INIT' | ||
export const DELETE_VALUE_SUCCESS = 'DELETE_VALUE_SUCCESS' | ||
export const DELETE_VALUE_ERROR = 'DELETE_VALUE_ERROR' | ||
|
||
export const ACTIVATE_SET = 'ACTIVATE_SET' | ||
|
||
export const CREATE_SET = 'CREATE_SET' | ||
|
||
export const DELETE_SET_INIT = 'DELETE_SET_INIT' | ||
export const DELETE_SET_SUCCESS = 'DELETE_SET_SUCCESS' | ||
export const DELETE_SET_ERROR = 'DELETE_SET_ERROR' |
Oops, something went wrong.