openedx / frontend-platform

A framework for Open edX micro-frontend applications.
http://openedx.github.io/frontend-platform
GNU Affero General Public License v3.0
32 stars 63 forks source link

[DO NOT MERGE]: Added script loader #708

Closed PKulkoRaccoonGang closed 3 months ago

PKulkoRaccoonGang commented 3 months ago

Description:

Script for adding custom scripts via the Django Site configurations.

Example:

{
    "MFE_CONFIG_OVERRIDES": {
        "<MFE>": {
            "EXTERNAL_SCRIPTS": [
                {
                    "head": "",
                    "body": {
                        "top": "",
                        "bottom": "<script src=\"https://ai-rnd-gpu-1.itl-dev.com/widget/loader.js\"></script>"
                    }
                }
            ]
        }
    }
}
{
    "MFE_CONFIG": {
        "EXTERNAL_SCRIPTS": [
            {
                "head": "",
                "body": {
                    "top": "",
                    "bottom": "<script src=\"https://ai-rnd-gpu-1.itl-dev.com/widget/loader.js\"></script>"
                }
            }
        ]
    }
}
openedx-webhooks commented 3 months ago

Thanks for the pull request, @PKulkoRaccoonGang! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

This is currently a draft pull request. When it is ready for our review and all tests are green, click "Ready for Review", or remove "WIP" from the title, as appropriate.

openedx-webhooks commented 3 months ago

@PKulkoRaccoonGang Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.