feat: added beamer to edx-platform (#33701)

This commit is contained in:
Ahtisham Shahid
2023-11-16 14:56:08 +05:00
committed by GitHub
parent 1806b290b8
commit c6b36a8558
6 changed files with 22 additions and 0 deletions

View File

@@ -2859,3 +2859,4 @@ derived_collection_entry('EVENT_BUS_PRODUCER_CONFIG', 'org.openedx.content_autho
'course-authoring-xblock-lifecycle', 'enabled')
derived_collection_entry('EVENT_BUS_PRODUCER_CONFIG', 'org.openedx.content_authoring.xblock.deleted.v1',
'course-authoring-xblock-lifecycle', 'enabled')
BEAMER_PRODUCT_ID = ""

View File

@@ -678,3 +678,4 @@ INACTIVE_USER_URL = f'http{"s" if HTTPS == "on" else ""}://{CMS_BASE}'
############## Event bus producer ##############
EVENT_BUS_PRODUCER_CONFIG = merge_producer_configs(EVENT_BUS_PRODUCER_CONFIG,
ENV_TOKENS.get('EVENT_BUS_PRODUCER_CONFIG', {}))
BEAMER_PRODUCT_ID = ENV_TOKENS.get('BEAMER_PRODUCT_ID', BEAMER_PRODUCT_ID)

View File

@@ -188,4 +188,10 @@ from openedx.core.release import RELEASE_LINE
<%include file="widgets/segment-io-footer.html" />
<div class="modal-cover"></div>
</body>
<script>
var beamer_config = {
product_id : "${settings.BEAMER_PRODUCT_ID | n, js_escaped_string}"
};
</script>
<script type="text/javascript" src="https://app.getbeamer.com/js/beamer-embed.js" defer="defer"></script>
</html>