forked from openedx/frontend-app-authoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Course unit - Rendering xblocks in iframes (#201)
* feat: added xblock render engine * feat: connected iframe template * feat: CSS and JS transfering * feat: show video xblock * feat: added multiply xblocks * feat: rendering advanced components * fix: add solution for request from within the iframe * feat: iframe height * refactor: code refactoring * fix: fixed platform ajax prefix * refactor: global refactoring * refactor: show LTI xblock * refactor: removed old xblock-content * refactor: code refactoring * refactor: some refactoring * refactor: refactoring * refactor: code refactoring * refactor: refactoring after review --------- Co-authored-by: monteri <lansevermore>
- Loading branch information
1 parent
ad17c45
commit 7dacbd5
Showing
52 changed files
with
1,090 additions
and
633 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
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 |
---|---|---|
|
@@ -44,3 +44,4 @@ HOTJAR_DEBUG=true | |
INVITE_STUDENTS_EMAIL_TO="[email protected]" | ||
AI_TRANSLATIONS_BASE_URL='http://localhost:18760' | ||
ENABLE_CHECKLIST_QUALITY=true | ||
SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL=/xblock-bootstrap.html |
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 |
---|---|---|
|
@@ -36,3 +36,4 @@ ENABLE_TAGGING_TAXONOMY_PAGES=true | |
BBB_LEARN_MORE_URL='' | ||
INVITE_STUDENTS_EMAIL_TO="[email protected]" | ||
ENABLE_CHECKLIST_QUALITY=true | ||
SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL=/xblock-bootstrap.html |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,14 +1,29 @@ | ||
export const MESSAGE_TYPES = { | ||
modal: 'plugin.modal', | ||
resize: 'plugin.resize', | ||
videoFullScreen: 'plugin.videoFullScreen', | ||
}; | ||
import PropTypes from 'prop-types'; | ||
|
||
export const IFRAME_FEATURE_POLICY = ( | ||
'microphone *; camera *; midi *; geolocation *; encrypted-media *, clipboard-write *' | ||
'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture;' | ||
); | ||
|
||
export const MESSAGE_ERROR_TYPES = { | ||
error: 'error', | ||
warning: 'warning', | ||
}; | ||
|
||
export const IFRAME_LOADING_STATUS = { | ||
STANDBY: 'standby', // Structure has been created but is not yet loading. | ||
LOADING: 'loading', | ||
LOADED: 'loaded', | ||
FAILED: 'failed', | ||
}; | ||
|
||
export const statusShape = PropTypes.oneOf(Object.values(IFRAME_LOADING_STATUS)); | ||
|
||
export const fetchable = (valueShape) => PropTypes.shape({ | ||
status: statusShape, | ||
value: valueShape, | ||
}); | ||
|
||
export const blockViewShape = PropTypes.shape({ | ||
content: PropTypes.string.isRequired, | ||
resources: PropTypes.arrayOf(PropTypes.shape({})).isRequired, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/course-unit/course-xblock/hooks/useEventListener.test.jsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.