@openedx/frontend-base 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +112 -0
- package/config/babel/babel.config.js +28 -0
- package/config/config-helpers/createConfig.js +13 -0
- package/config/config-helpers/createLintConfig.js +16 -0
- package/config/config-helpers/getBaseConfig.js +12 -0
- package/config/defaultConfigPaths.js +35 -0
- package/config/eslint/base.eslint.config.js +113 -0
- package/config/index.js +12 -0
- package/config/jest/jest.config.js +30 -0
- package/config/tsconfig.json +32 -0
- package/config/types.js +25 -0
- package/config/webpack/common-config/all/getCodeRules.js +52 -0
- package/config/webpack/common-config/all/getFileLoaderRules.js +26 -0
- package/config/webpack/common-config/all/getIgnoreWarnings.js +14 -0
- package/config/webpack/common-config/all/getImageMinimizer.js +25 -0
- package/config/webpack/common-config/all/getStylesheetRule.js +112 -0
- package/config/webpack/common-config/dev/getDevServer.js +38 -0
- package/config/webpack/common-config/index.js +18 -0
- package/config/webpack/common-config/site/getHtmlWebpackPlugin.js +16 -0
- package/config/webpack/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.js +91 -0
- package/config/webpack/plugins/html-webpack-new-relic-plugin/index.js +7 -0
- package/config/webpack/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +3 -0
- package/config/webpack/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js +108 -0
- package/config/webpack/plugins/paragon-webpack-plugin/index.js +7 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/assetUtils.js +64 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/htmlUtils.js +53 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/index.js +9 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/paragonStylesheetUtils.js +114 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/scriptUtils.js +146 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/stylesheetUtils.js +126 -0
- package/config/webpack/plugins/paragon-webpack-plugin/utils/tagUtils.js +57 -0
- package/config/webpack/types.js +2 -0
- package/config/webpack/utils/getLocalAliases.js +65 -0
- package/config/webpack/utils/getPublicPath.js +6 -0
- package/config/webpack/utils/getResolvedSiteConfigPath.js +32 -0
- package/config/webpack/utils/paragonUtils.js +138 -0
- package/config/webpack/webpack.config.build.js +80 -0
- package/config/webpack/webpack.config.dev.js +76 -0
- package/config/webpack/webpack.config.dev.shell.js +110 -0
- package/eslint.config.js +18 -0
- package/frontend-base.d.ts +8 -0
- package/index.ts +7 -0
- package/jest.config.js +7 -0
- package/openedx-frontend-base.tgz +0 -0
- package/package.json +149 -0
- package/runtime/analytics/MockAnalyticsService.js +71 -0
- package/runtime/analytics/SegmentAnalyticsService.js +243 -0
- package/runtime/analytics/index.ts +12 -0
- package/runtime/analytics/interface.js +145 -0
- package/runtime/auth/AxiosCsrfTokenService.js +60 -0
- package/runtime/auth/AxiosJwtAuthService.js +363 -0
- package/runtime/auth/AxiosJwtTokenService.js +134 -0
- package/runtime/auth/LocalForageCache.js +76 -0
- package/runtime/auth/MockAuthService.js +278 -0
- package/runtime/auth/index.ts +19 -0
- package/runtime/auth/interceptors/createCsrfTokenProviderInterceptor.js +36 -0
- package/runtime/auth/interceptors/createJwtTokenProviderInterceptor.js +37 -0
- package/runtime/auth/interceptors/createProcessAxiosRequestErrorInterceptor.js +20 -0
- package/runtime/auth/interceptors/createRetryInterceptor.js +74 -0
- package/runtime/auth/interface.js +309 -0
- package/runtime/auth/utils.js +105 -0
- package/runtime/babel.config.js +3 -0
- package/runtime/config/index.ts +295 -0
- package/runtime/constants.ts +68 -0
- package/runtime/i18n/index.js +118 -0
- package/runtime/i18n/injectIntlWithShim.jsx +48 -0
- package/runtime/i18n/lib.ts +272 -0
- package/runtime/index.ts +134 -0
- package/runtime/initialize.js +352 -0
- package/runtime/jest.config.js +32 -0
- package/runtime/logging/MockLoggingService.js +31 -0
- package/runtime/logging/NewRelicLoggingService.js +184 -0
- package/runtime/logging/index.ts +9 -0
- package/runtime/logging/interface.js +109 -0
- package/runtime/logging/types.ts +4 -0
- package/runtime/react/AuthenticatedPageRoute.jsx +43 -0
- package/runtime/react/CombinedAppProvider.tsx +46 -0
- package/runtime/react/CurrentAppContext.tsx +25 -0
- package/runtime/react/CurrentAppProvider.tsx +46 -0
- package/runtime/react/Divider.tsx +5 -0
- package/runtime/react/ErrorBoundary.jsx +47 -0
- package/runtime/react/ErrorPage.jsx +72 -0
- package/runtime/react/LoginRedirect.jsx +16 -0
- package/runtime/react/PageWrap.jsx +24 -0
- package/runtime/react/SiteContext.tsx +32 -0
- package/runtime/react/SiteProvider.tsx +78 -0
- package/runtime/react/hooks.ts +106 -0
- package/runtime/react/index.ts +19 -0
- package/runtime/routing/index.ts +1 -0
- package/runtime/routing/utils.ts +34 -0
- package/runtime/scripts/GoogleAnalyticsLoader.ts +59 -0
- package/runtime/scripts/index.ts +1 -0
- package/runtime/setupTest.js +49 -0
- package/runtime/slots/Slot.tsx +32 -0
- package/runtime/slots/SlotContext.tsx +8 -0
- package/runtime/slots/hooks.ts +35 -0
- package/runtime/slots/index.ts +7 -0
- package/runtime/slots/layout/DefaultSlotLayout.tsx +9 -0
- package/runtime/slots/layout/hooks.ts +65 -0
- package/runtime/slots/layout/index.ts +5 -0
- package/runtime/slots/layout/types.ts +45 -0
- package/runtime/slots/layout/utils.ts +14 -0
- package/runtime/slots/types.ts +23 -0
- package/runtime/slots/utils.ts +59 -0
- package/runtime/slots/widget/WidgetContext.tsx +9 -0
- package/runtime/slots/widget/WidgetProvider.tsx +30 -0
- package/runtime/slots/widget/hooks.ts +105 -0
- package/runtime/slots/widget/iframe/IFrameContentWrapper.messages.tsx +16 -0
- package/runtime/slots/widget/iframe/IFrameContentWrapper.tsx +84 -0
- package/runtime/slots/widget/iframe/IFrameWidget.tsx +59 -0
- package/runtime/slots/widget/iframe/constants.ts +19 -0
- package/runtime/slots/widget/iframe/hooks.ts +179 -0
- package/runtime/slots/widget/iframe/index.ts +6 -0
- package/runtime/slots/widget/iframe/types.ts +7 -0
- package/runtime/slots/widget/index.ts +6 -0
- package/runtime/slots/widget/types.ts +134 -0
- package/runtime/slots/widget/utils.tsx +201 -0
- package/runtime/subscriptions.ts +60 -0
- package/runtime/testing/index.ts +9 -0
- package/runtime/testing/initializeMockApp.ts +81 -0
- package/runtime/testing/mockMessages.ts +23 -0
- package/runtime/utils.js +178 -0
- package/shell/DefaultLayout.tsx +18 -0
- package/shell/DefaultMain.tsx +7 -0
- package/shell/Logo.tsx +28 -0
- package/shell/Shell.messages.ts +61 -0
- package/shell/Shell.tsx +18 -0
- package/shell/app.scss +149 -0
- package/shell/app.ts +24 -0
- package/shell/babel.config.js +3 -0
- package/shell/dev/devFooter/app.tsx +43 -0
- package/shell/dev/devFooter/index.ts +1 -0
- package/shell/dev/devHeader/BarContext.tsx +13 -0
- package/shell/dev/devHeader/BarLink.tsx +16 -0
- package/shell/dev/devHeader/BarProvider.tsx +25 -0
- package/shell/dev/devHeader/CoursesLink.tsx +16 -0
- package/shell/dev/devHeader/FooContext.tsx +13 -0
- package/shell/dev/devHeader/FooLink.tsx +16 -0
- package/shell/dev/devHeader/FooProvider.tsx +25 -0
- package/shell/dev/devHeader/app.tsx +53 -0
- package/shell/dev/devHeader/index.ts +1 -0
- package/shell/dev/devHeader/providers.tsx +11 -0
- package/shell/dev/devHome/HomePage.tsx +28 -0
- package/shell/dev/devHome/app.ts +18 -0
- package/shell/dev/devHome/i18n/index.ts +27 -0
- package/shell/dev/devHome/index.ts +1 -0
- package/shell/dev/devHome/messages.ts +11 -0
- package/shell/dev/devUser/app.tsx +24 -0
- package/shell/dev/devUser/index.ts +1 -0
- package/shell/dev/index.ts +5 -0
- package/shell/dev/slotShowcase/HorizontalSlotLayout.tsx +11 -0
- package/shell/dev/slotShowcase/LayoutWithOptions.tsx +17 -0
- package/shell/dev/slotShowcase/SlotShowcasePage.tsx +66 -0
- package/shell/dev/slotShowcase/WidgetWithOptions.tsx +11 -0
- package/shell/dev/slotShowcase/app.tsx +373 -0
- package/shell/dev/slotShowcase/index.ts +1 -0
- package/shell/footer/CenterLinks.tsx +11 -0
- package/shell/footer/CopyrightNotice.tsx +36 -0
- package/shell/footer/Footer.tsx +34 -0
- package/shell/footer/LabeledLinkColumn.tsx +19 -0
- package/shell/footer/LanguageMenu.tsx +35 -0
- package/shell/footer/LanguageMenuItem.tsx +23 -0
- package/shell/footer/LeftLinks.tsx +11 -0
- package/shell/footer/LegalNotices.tsx +17 -0
- package/shell/footer/PoweredBy.tsx +17 -0
- package/shell/footer/RevealLinks.tsx +43 -0
- package/shell/footer/RightLinks.tsx +11 -0
- package/shell/footer/app.tsx +73 -0
- package/shell/footer/data/api.ts +48 -0
- package/shell/footer/index.ts +2 -0
- package/shell/header/AuthenticatedMenu.tsx +32 -0
- package/shell/header/Header.tsx +17 -0
- package/shell/header/anonymous-menu/AnonymousMenu.tsx +14 -0
- package/shell/header/anonymous-menu/LoginButton.tsx +14 -0
- package/shell/header/anonymous-menu/RegisterButton.tsx +15 -0
- package/shell/header/app.tsx +142 -0
- package/shell/header/desktop/DesktopLayout.tsx +22 -0
- package/shell/header/desktop/PrimaryNavLinks.tsx +10 -0
- package/shell/header/desktop/SecondaryNavLinks.tsx +10 -0
- package/shell/header/index.ts +2 -0
- package/shell/header/mobile/MobileLayout.tsx +47 -0
- package/shell/header/mobile/MobileNavLinks.tsx +10 -0
- package/shell/i18n/index.ts +25 -0
- package/shell/index.ts +7 -0
- package/shell/jest.config.js +30 -0
- package/shell/menus/LinkMenuItem.tsx +64 -0
- package/shell/menus/NavDropdownMenuSlot.tsx +29 -0
- package/shell/menus/ProfileLinkMenuItem.tsx +33 -0
- package/shell/menus/data/utils.ts +19 -0
- package/shell/public/index.html +10 -0
- package/shell/router/createRouter.ts +17 -0
- package/shell/router/getAppRoutes.ts +21 -0
- package/shell/setupTest.js +48 -0
- package/shell/site.config.dev.tsx +49 -0
- package/shell/site.tsx +41 -0
- package/test-site/app.d.ts +15 -0
- package/test-site/dist/176.436443549ebb858db483.js +2 -0
- package/test-site/dist/176.436443549ebb858db483.js.map +1 -0
- package/test-site/dist/362.536eff787d2380fe246c.js +2 -0
- package/test-site/dist/362.536eff787d2380fe246c.js.map +1 -0
- package/test-site/dist/653.486966b108d224551296.js +2 -0
- package/test-site/dist/653.486966b108d224551296.js.map +1 -0
- package/test-site/dist/74e025d3fe9a7b7f8503054e2563b353.jpg +0 -0
- package/test-site/dist/806.323cf6496ad0a7fe73a7.js +3 -0
- package/test-site/dist/806.323cf6496ad0a7fe73a7.js.LICENSE.txt +106 -0
- package/test-site/dist/806.323cf6496ad0a7fe73a7.js.map +1 -0
- package/test-site/dist/95ec738c0b7faac5b5c9126794446bbd.svg +4 -0
- package/test-site/dist/app.612058b36c74787759ac.css +61 -0
- package/test-site/dist/app.612058b36c74787759ac.css.map +1 -0
- package/test-site/dist/app.612058b36c74787759ac.js +2 -0
- package/test-site/dist/app.612058b36c74787759ac.js.map +1 -0
- package/test-site/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +1 -0
- package/test-site/dist/index.html +1 -0
- package/test-site/dist/report.html +39 -0
- package/test-site/dist/runtime.c7aeaf7b967496cb076f.js +2 -0
- package/test-site/dist/runtime.c7aeaf7b967496cb076f.js.map +1 -0
- package/test-site/eslint.config.js +12 -0
- package/test-site/package-lock.json +19226 -0
- package/test-site/package.json +29 -0
- package/test-site/public/index.html +10 -0
- package/test-site/site.config.build.tsx +27 -0
- package/test-site/site.config.dev.tsx +27 -0
- package/test-site/src/authenticated-page/AuthenticatedPage.tsx +18 -0
- package/test-site/src/authenticated-page/i18n/index.ts +27 -0
- package/test-site/src/authenticated-page/index.tsx +28 -0
- package/test-site/src/example-page/ExamplePage.tsx +79 -0
- package/test-site/src/example-page/Image.tsx +11 -0
- package/test-site/src/example-page/ParagonPreview.jsx +66 -0
- package/test-site/src/example-page/apple.jpg +0 -0
- package/test-site/src/example-page/apple.svg +1 -0
- package/test-site/src/example-page/index.ts +16 -0
- package/test-site/src/i18n/README.md +3 -0
- package/test-site/src/i18n/messages/frontend-app-sample/ar.json +4 -0
- package/test-site/src/i18n/messages/frontend-app-sample/eo.json +1 -0
- package/test-site/src/i18n/messages/frontend-app-sample/es_419.json +4 -0
- package/test-site/src/i18n/messages/frontend-component-emptylangs/ar.json +1 -0
- package/test-site/src/i18n/messages/frontend-component-singlelang/ar.json +3 -0
- package/test-site/src/iframe-widget/IframeWidget.tsx +14 -0
- package/test-site/src/iframe-widget/index.ts +16 -0
- package/test-site/src/index.tsx +3 -0
- package/test-site/src/messages.js +11 -0
- package/test-site/src/site.scss +11 -0
- package/test-site/tsconfig.json +14 -0
- package/tools/babel/babel.config.js +27 -0
- package/tools/babel.config.js +3 -0
- package/tools/cli/README.md +29 -0
- package/tools/cli/commands/pack.ts +9 -0
- package/tools/cli/commands/release.ts +27 -0
- package/tools/cli/commands/serve.ts +43 -0
- package/tools/cli/intl-imports.ts +274 -0
- package/tools/cli/openedx.ts +101 -0
- package/tools/cli/transifex-utils.ts +75 -0
- package/tools/cli/utils/ensureConfigFilenameOption.ts +40 -0
- package/tools/cli/utils/formatter.ts +10 -0
- package/tools/cli/utils/getResolvedConfigPath.ts +23 -0
- package/tools/cli/utils/prettyPrintTitle.ts +15 -0
- package/tools/cli/utils/printUsage.ts +53 -0
- package/tools/config-helpers/createConfig.ts +8 -0
- package/tools/config-helpers/createLintConfig.ts +14 -0
- package/tools/config-helpers/getBaseConfig.ts +11 -0
- package/tools/defaultConfigPaths.ts +30 -0
- package/tools/dist/babel/babel.config.js +28 -0
- package/tools/dist/cli/commands/pack.js +14 -0
- package/tools/dist/cli/commands/release.js +28 -0
- package/tools/dist/cli/commands/serve.js +44 -0
- package/tools/dist/cli/intl-imports.js +233 -0
- package/tools/dist/cli/openedx.js +100 -0
- package/tools/dist/cli/transifex-utils.js +68 -0
- package/tools/dist/cli/utils/ensureConfigFilenameOption.js +42 -0
- package/tools/dist/cli/utils/formatter.js +10 -0
- package/tools/dist/cli/utils/getResolvedConfigPath.js +28 -0
- package/tools/dist/cli/utils/prettyPrintTitle.js +17 -0
- package/tools/dist/cli/utils/printUsage.js +48 -0
- package/tools/dist/config-helpers/createConfig.js +13 -0
- package/tools/dist/config-helpers/createLintConfig.js +16 -0
- package/tools/dist/config-helpers/getBaseConfig.js +12 -0
- package/tools/dist/defaultConfigPaths.js +35 -0
- package/tools/dist/eslint/base.eslint.config.js +113 -0
- package/tools/dist/eslint.config.js +11 -0
- package/tools/dist/index.js +12 -0
- package/tools/dist/jest/jest.config.js +30 -0
- package/tools/dist/jest.config.js +20 -0
- package/tools/dist/types.js +25 -0
- package/tools/dist/typescript/tsconfig.json +32 -0
- package/tools/dist/webpack/common-config/all/getCodeRules.js +52 -0
- package/tools/dist/webpack/common-config/all/getFileLoaderRules.js +26 -0
- package/tools/dist/webpack/common-config/all/getIgnoreWarnings.js +14 -0
- package/tools/dist/webpack/common-config/all/getImageMinimizer.js +25 -0
- package/tools/dist/webpack/common-config/all/getStylesheetRule.js +112 -0
- package/tools/dist/webpack/common-config/dev/getDevServer.js +38 -0
- package/tools/dist/webpack/common-config/index.js +18 -0
- package/tools/dist/webpack/common-config/site/getHtmlWebpackPlugin.js +16 -0
- package/tools/dist/webpack/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.js +91 -0
- package/tools/dist/webpack/plugins/html-webpack-new-relic-plugin/index.js +7 -0
- package/tools/dist/webpack/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +3 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js +108 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/index.js +7 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/assetUtils.js +64 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/htmlUtils.js +53 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/index.js +9 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/paragonStylesheetUtils.js +114 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/scriptUtils.js +146 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/stylesheetUtils.js +126 -0
- package/tools/dist/webpack/plugins/paragon-webpack-plugin/utils/tagUtils.js +57 -0
- package/tools/dist/webpack/types.js +2 -0
- package/tools/dist/webpack/utils/getLocalAliases.js +65 -0
- package/tools/dist/webpack/utils/getPublicPath.js +6 -0
- package/tools/dist/webpack/utils/getResolvedSiteConfigPath.js +32 -0
- package/tools/dist/webpack/utils/paragonUtils.js +138 -0
- package/tools/dist/webpack/webpack.config.build.js +80 -0
- package/tools/dist/webpack/webpack.config.dev.js +76 -0
- package/tools/dist/webpack/webpack.config.dev.shell.js +110 -0
- package/tools/eslint/base.eslint.config.js +124 -0
- package/tools/eslint/modules.d.ts +5 -0
- package/tools/eslint.config.js +15 -0
- package/tools/index.ts +3 -0
- package/tools/jest/jest.config.js +30 -0
- package/tools/jest.config.js +19 -0
- package/tools/tsconfig.json +24 -0
- package/tools/types.ts +21 -0
- package/tools/typescript/tsconfig.json +32 -0
- package/tools/webpack/common-config/README.md +15 -0
- package/tools/webpack/common-config/all/getCodeRules.ts +51 -0
- package/tools/webpack/common-config/all/getFileLoaderRules.ts +23 -0
- package/tools/webpack/common-config/all/getIgnoreWarnings.ts +13 -0
- package/tools/webpack/common-config/all/getImageMinimizer.ts +26 -0
- package/tools/webpack/common-config/all/getStylesheetRule.ts +111 -0
- package/tools/webpack/common-config/dev/getDevServer.ts +35 -0
- package/tools/webpack/common-config/index.ts +6 -0
- package/tools/webpack/common-config/site/getHtmlWebpackPlugin.ts +11 -0
- package/tools/webpack/modules.d.ts +6 -0
- package/tools/webpack/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.ts +102 -0
- package/tools/webpack/plugins/html-webpack-new-relic-plugin/LICENSE +21 -0
- package/tools/webpack/plugins/html-webpack-new-relic-plugin/README.md +7 -0
- package/tools/webpack/plugins/html-webpack-new-relic-plugin/index.js +3 -0
- package/tools/webpack/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +1 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.ts +134 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/index.ts +3 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/assetUtils.ts +71 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/htmlUtils.ts +72 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/index.ts +6 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/paragonStylesheetUtils.ts +131 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/scriptUtils.ts +144 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/stylesheetUtils.ts +106 -0
- package/tools/webpack/plugins/paragon-webpack-plugin/utils/tagUtils.ts +54 -0
- package/tools/webpack/types.ts +69 -0
- package/tools/webpack/utils/getLocalAliases.ts +65 -0
- package/tools/webpack/utils/getPublicPath.ts +3 -0
- package/tools/webpack/utils/getResolvedSiteConfigPath.ts +28 -0
- package/tools/webpack/utils/paragonUtils.ts +152 -0
- package/tools/webpack/webpack.config.build.ts +93 -0
- package/tools/webpack/webpack.config.dev.shell.ts +122 -0
- package/tools/webpack/webpack.config.dev.ts +90 -0
- package/tsconfig.json +23 -0
- package/types.ts +99 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktest_site=self.webpackChunktest_site||[]).push([[524],{275:(t,e,n)=>{n.d(e,{A:()=>h});var o=n(2431),a=n(1914),i=n(3875),c=n(211),r=n(7517),p=n(6349),s=n(2166);const l={appId:"test-authenticated-page-app",routes:[{path:"/authenticated",lazy:()=>{return t=void 0,e=void 0,a=function*(){const{default:t}=yield n.e(653).then(n.bind(n,8653));return{Component:t}},new((o=void 0)||(o=Promise))((function(n,i){function c(t){try{p(a.next(t))}catch(t){i(t)}}function r(t){try{p(a.throw(t))}catch(t){i(t)}}function p(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(c,r)}p((a=a.apply(t,e||[])).next())}));var t,e,o,a}}],slots:[{slotId:"org.openedx.frontend.slot.header.primaryLinks.v1",id:"authenticatedPageLink",op:p.z.APPEND,element:(0,r.jsx)(s.A,{label:"Authy Page",url:"/authenticated",variant:"navLink"})}],messages:{ar:{},"zh-hk":{},"zh-cn":{},uk:{},"tr-tr":{},th:{},te:{},ru:{},"pt-pt":{},"pt-br":{},"it-it":{},id:{},hi:{},he:{},"fr-ca":{"authenticated.page.content":"This is a localized message in French."},fa:{},"es-es":{},"es-419":{},el:{},"de-de":{},da:{},bo:{}}};const u={appId:"test-example-page-app",routes:[{path:"/",lazy:()=>{return t=void 0,e=void 0,a=function*(){const{default:t}=yield n.e(176).then(n.bind(n,2176));return{Component:t}},new((o=void 0)||(o=Promise))((function(n,i){function c(t){try{p(a.next(t))}catch(t){i(t)}}function r(t){try{p(a.throw(t))}catch(t){i(t)}}function p(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(c,r)}p((a=a.apply(t,e||[])).next())}));var t,e,o,a}}]};const d={appId:"iframe-test-app",routes:[{path:"/iframe-plugin",lazy:()=>{return t=void 0,e=void 0,a=function*(){const{default:t}=yield n.e(362).then(n.bind(n,5362));return{Component:t}},new((o=void 0)||(o=Promise))((function(n,i){function c(t){try{p(a.next(t))}catch(t){i(t)}}function r(t){try{p(a.throw(t))}catch(t){i(t)}}function p(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(c,r)}p((a=a.apply(t,e||[])).next())}));var t,e,o,a}}]},h={siteId:"test",siteName:"Test Site",baseUrl:"http://apps.local.openedx.io:8080",lmsBaseUrl:"http://local.openedx.io:8000",loginUrl:"http://local.openedx.io:8000/login",logoutUrl:"http://local.openedx.io:8000/logout",environment:o.t.PRODUCTION,mfeConfigApiUrl:"http://apps.local.openedx.io:8080/api/mfe_config/v1",apps:[a.A,i.A,c.A,u,l,d]}}},t=>{t.O(0,[806],(()=>t(t.s=9297))),t.O()}]);
|
|
2
|
+
//# sourceMappingURL=app.612058b36c74787759ac.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.612058b36c74787759ac.js","mappings":"8LAGA,MAwBA,EAxBoB,CAClBA,MAAO,8BACPC,OAAQ,CAAC,CACPC,KAAM,iBACNC,KAAM,KAAY,O,OAAD,E,OAAA,E,EAAA,YACf,MAAQC,QAASC,SAAoB,8BACrC,MAAO,CACLA,YAEJ,E,YALiB,K,iRAOnBC,MAAO,CACL,CACEC,OAAQ,mDACRC,GAAI,wBACJC,GAAI,IAAqBC,OACzBC,SACE,SAACC,EAAA,EAAY,CAACC,MAAM,aAAaC,IAAI,iBAAiBC,QAAQ,cAIpEC,SCvBF,CACEC,GAAI,CAAC,EACL,QAAS,CAAC,EACV,QAAS,CAAC,EACVC,GAAI,CAAC,EACL,QAAS,CAAC,EACVC,GAAI,CAAC,EACLC,GAAI,CAAC,EACLC,GAAI,CAAC,EACL,QAAS,CAAC,EACV,QAAS,CAAC,EACV,QAAS,CAAC,EACVb,GAAI,CAAC,EACLc,GAAI,CAAC,EACLC,GAAI,CAAC,EACL,QAAS,CACP,6BAA8B,0CAEhCC,GAAI,CAAC,EACL,QAAS,CAAC,EACV,SAAU,CAAC,EACXC,GAAI,CAAC,EACL,QAAS,CAAC,EACVC,GAAI,CAAC,EACLC,GAAI,CAAC,ICvBP,MAaA,EAboB,CAClB3B,MAAO,wBACPC,OAAQ,CAAC,CACPC,KAAM,IACNC,KAAM,KAAY,O,OAAA,E,OAAA,E,EAAA,YAChB,MAAQC,QAASC,SAAoB,8BACrC,MAAO,CACLA,YAEJ,E,YALkB,K,kRCJtB,MAaA,EAboB,CAClBL,MAAO,kBACPC,OAAQ,CAAC,CACPC,KAAM,iBACNC,KAAM,KAAY,O,OAAA,E,OAAA,E,EAAA,YAChB,MAAQC,QAASC,SAAoB,8BACrC,MAAO,CACLA,YAEJ,E,YALkB,K,kRCoBtB,EApB+B,CAC7BuB,OAAQ,OACRC,SAAU,YACVC,QAAS,oCACTC,WAAY,+BACZC,SAAU,qCACVC,UAAW,sCAEXC,YAAa,IAAiBC,WAC9BC,gBAAiB,sDACjBC,KAAM,CACJ,IACA,IACA,IACA,EACA,EACA,G","sources":["webpack://test-site/./src/authenticated-page/index.tsx","webpack://test-site/./src/authenticated-page/i18n/index.ts","webpack://test-site/./src/example-page/index.ts","webpack://test-site/./src/iframe-widget/index.ts","webpack://test-site/./site.config.build.tsx"],"sourcesContent":["import { App, LinkMenuItem, WidgetOperationTypes } from '@openedx/frontend-base';\nimport messages from './i18n';\n\nconst config: App = {\n appId: 'test-authenticated-page-app',\n routes: [{\n path: '/authenticated',\n lazy: async () => {\n const { default: Component } = await import('./AuthenticatedPage');\n return {\n Component,\n };\n },\n }],\n slots: [\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'authenticatedPageLink',\n op: WidgetOperationTypes.APPEND,\n element: (\n <LinkMenuItem label=\"Authy Page\" url=\"/authenticated\" variant=\"navLink\" />\n )\n }\n ],\n messages,\n};\n\nexport default config;\n","// Placeholder be overridden by `make pull_translations`\nexport default {\n ar: {},\n 'zh-hk': {},\n 'zh-cn': {},\n uk: {},\n 'tr-tr': {},\n th: {},\n te: {},\n ru: {},\n 'pt-pt': {},\n 'pt-br': {},\n 'it-it': {},\n id: {},\n hi: {},\n he: {},\n 'fr-ca': {\n 'authenticated.page.content': 'This is a localized message in French.'\n },\n fa: {},\n 'es-es': {},\n 'es-419': {},\n el: {},\n 'de-de': {},\n da: {},\n bo: {},\n};\n","import { App } from '@openedx/frontend-base';\n\nconst config: App = {\n appId: 'test-example-page-app',\n routes: [{\n path: '/',\n lazy: async () => {\n const { default: Component } = await import('./ExamplePage');\n return {\n Component,\n };\n },\n }]\n};\n\nexport default config;\n","import { App } from '@openedx/frontend-base';\n\nconst config: App = {\n appId: 'iframe-test-app',\n routes: [{\n path: '/iframe-plugin',\n lazy: async () => {\n const { default: Component } = await import('./IframeWidget');\n return {\n Component,\n };\n },\n }]\n};\n\nexport default config;\n","import { footerApp, headerApp, shellApp, EnvironmentTypes, SiteConfig } from '@openedx/frontend-base';\n\nimport { authenticatedPageConfig, examplePageConfig, iframeWidgetConfig } from './src';\n\nimport './src/site.scss';\n\nconst siteConfig: SiteConfig = {\n siteId: 'test',\n siteName: 'Test Site',\n baseUrl: 'http://apps.local.openedx.io:8080',\n lmsBaseUrl: 'http://local.openedx.io:8000',\n loginUrl: 'http://local.openedx.io:8000/login',\n logoutUrl: 'http://local.openedx.io:8000/logout',\n\n environment: EnvironmentTypes.PRODUCTION,\n mfeConfigApiUrl: 'http://apps.local.openedx.io:8080/api/mfe_config/v1',\n apps: [\n shellApp,\n headerApp,\n footerApp,\n examplePageConfig,\n authenticatedPageConfig,\n iframeWidgetConfig,\n ],\n};\n\nexport default siteConfig;\n"],"names":["appId","routes","path","lazy","default","Component","slots","slotId","id","op","APPEND","element","LinkMenuItem","label","url","variant","messages","ar","uk","th","te","ru","hi","he","fa","el","da","bo","siteId","siteName","baseUrl","lmsBaseUrl","loginUrl","logoutUrl","environment","PRODUCTION","mfeConfigApiUrl","apps"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-name="Слой 1" viewBox="0 0 100 125" x="0px" y="0px"><title>Безымянный-1</title><g><path d="M48.29173,20.91309c.44045,2.67407.81828,4.968,1.25786,7.63686a29.75307,29.75307,0,0,0,3.91278-.37779c2.38512-.53346,4.71271-1.32728,7.10142-1.83905.66415-.14232,1.45907.32571,2.194.51374-.51414.48731-.94651,1.22009-1.55542,1.4231a42.59057,42.59057,0,0,1-15.1772,2.408,20.86177,20.86177,0,0,1-11.07629-3.71148,2.81986,2.81986,0,0,1-.51721-.49108,1.71988,1.71988,0,0,1-.175-.42192c.86026-1.19467,1.8261-.49218,2.778-.1154a46.95591,46.95591,0,0,0,5.50622,2.10209c2.1421.54764,2.49613.11136,2.15817-2.0335-.15791-1.00211-.45371-1.98313-.69919-2.9707a2.10178,2.10178,0,0,0-2.20542-1.71675,16.69777,16.69777,0,0,0-8.17976,1.66586c-1.21465.59569-2.44545,1.79479-4.57394.26q.91125-.52011,1.8225-1.04022a19.5657,19.5657,0,0,1,8.76662-2.94536c3.64447-.18813,3.3542-.397,4.83215-3.62009A43.17637,43.17637,0,0,1,49.38579,8.1986,27.03146,27.03146,0,0,1,52.78013,4.7669c.88679-.82751,2.099-1.13929,2.86044-.14869a2.95022,2.95022,0,0,1,.25154,2.67767A17.62547,17.62547,0,0,1,52.64,11.07318a11.939,11.939,0,0,0-3.691,7.01548,9.58451,9.58451,0,0,0-.00957,1.43118c4.67257-.53271,8.678,1.549,12.91179,2.71,1.42367.39039,3.072-.10087,4.61592-.07659,7.75187.12182,15.0069,1.70433,20.62774,7.56383a16.18131,16.18131,0,0,1,2.4769,3.90158,33.47619,33.47619,0,0,1,3.61715,18.76,57.39218,57.39218,0,0,1-3.11865,15.24337c-2.93307,7.71726-6.35779,15.17206-13.49812,20.07157a43.38827,43.38827,0,0,1-12.24457,6.25692c-1.14482.33576-2.26435.75733-3.39644,1.13692-4.80036,1.60938-9.57586.76787-14.37288-.07461-3.17591-.55779-6.3808-.95626-9.57884-1.38046a29.929,29.929,0,0,1-10.19653-3.69123c-4.50508-2.4015-8.054-5.78138-11.4774-9.37706A25.717,25.717,0,0,1,8.50666,67.54893,80.91649,80.91649,0,0,1,6.94228,44.17515c.52046-5.42775,2.03161-10.59663,5.905-14.45175,2.29913-2.28824,5.55312-3.65369,8.46933-5.26865a12.9111,12.9111,0,0,1,4.2301-1.42657c.71509-.1093,1.55884.62326,2.34436.97484a7.64709,7.64709,0,0,1-1.97233,1.10934c-4.79315,1.02586-9.26319,2.8239-12.29393,6.77242a24.38788,24.38788,0,0,0-4.743,13.48973,78.54727,78.54727,0,0,0,.41718,16.10944c1.07008,7.83658,3.75794,14.71927,10.052,20.00759a65.57961,65.57961,0,0,0,10.197,7.57349c4.09212,2.26826,8.61029,2.83369,13.1209,3.43065,3.11373.41208,6.235.427,9.37842,1.052,2.95178.58686,6.32407-.08449,9.33969-.86514A43.9325,43.9325,0,0,0,75.82337,85.6054a23.05284,23.05284,0,0,0,8.21682-10.00235c1.84358-4.47166,3.65114-8.96041,5.35771-13.48574,1.72782-4.58158,1.36369-9.43433,1.628-14.20465.26085-4.70673-1.32794-8.91356-3.338-13.02592-2.8196-5.76882-7.84365-8.5485-13.77934-9.91386a63.14758,63.14758,0,0,0-7.30061-.85715c-.29677-.03236-.66318-.13762-.88784-.01256-3.43263,1.91081-6.27313-.39109-9.33231-1.23972C53.881,22.16813,51.32861,21.63726,48.29173,20.91309Z"/><path d="M18.80551,79.4219A93.68635,93.68635,0,0,1,14.374,70.982c-2.23379-5.47935-2.67758-11.37723-3.2698-17.1937-.46425-4.55984.35623-9.05636,1.40022-13.49426a1.91994,1.91994,0,0,1,.54725-1.10293,5.32017,5.32017,0,0,1,1.50175-.48028c.06886.48819.37168,1.12159.17205,1.44313-3.97083,6.39657-2.75908,13.27394-2.04558,20.14746a39.84049,39.84049,0,0,0,4.424,14.10224c.79439,1.55454,1.70279,3.05071,2.5591,4.57359Q19.23423,79.19954,18.80551,79.4219Z"/><path d="M71.06622,81.56681c-1.856,2.46258-3.67635,4.95383-5.60617,7.35713-.29422.36637-1.09582.32535-1.66274.47277.11409-.534.05832-1.21408.37081-1.5775,1.6291-1.89438,3.327-3.73212,5.05971-5.533a7.53926,7.53926,0,0,1,1.615-.99912Z"/><path d="M64.62508,58.93776q-.52275,5.53883-1.04549,11.07761l-.56253-.02587c.04734-.932.14044-1.8643.13306-2.79584-.01888-2.38011-.12981-4.76066-.091-7.13914.00834-.51317.49166-1.01857.75619-1.52757Z"/><path d="M16.30692,54.97435c-.11374-.165-.33251-.33506-.33708-.51076-.08414-3.19571-.15835-6.392-.18637-9.58855a2.17449,2.17449,0,0,1,.44159-1.14816.8251.8251,0,0,1,.7359-.271.78393.78393,0,0,1,.38091.67113c-1.24846,3.49986-1.023,7.10006-.7936,10.70382C16.54985,54.8553,16.4593,54.88569,16.30692,54.97435Z"/><path d="M73.75838,52.91472c-.48393-1.65238-1.01168-3.29426-1.409-4.96718-.06771-.28473.42368-.70226.65677-1.05845.35052.25786.97181.48331,1.0072.77894.205,1.71337.272,3.44317.38582,5.16743Z"/><path d="M53.80963,71.39829l.79387-7.98009.47277.04527c.72984,2.75575-.035,5.37953-.74609,8.008Z"/><path d="M50.79682,89.66423l1.35754-1.74481a6.14642,6.14642,0,0,1,1.01616,1.95995c.0628.54677-.47954,1.163-.75338,1.74846C51.92847,91.03561,51.43971,90.44339,50.79682,89.66423Z"/><path d="M79.7083,75.52546c.48577-1.448.84059-2.5057,1.24187-3.70182C81.85567,73.925,81.65841,74.73756,79.7083,75.52546Z"/><path d="M44.12531,88.24508a9.73247,9.73247,0,0,1,1.02187-.91533,6.00615,6.00615,0,0,1,1.23774,1.3077c.06464.099-.56824.82452-.61532.79773A16.2951,16.2951,0,0,1,44.12531,88.24508Z"/><path d="M52.80279,79.59158l.46926-4.3877.68426.08313-.57913,4.42907Z"/></g><text x="0" y="115" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by Roman</text><text x="0" y="120" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en-us"><head><title>Test Site</title><link rel="shortcut icon" href="https://edx-cdn.org/v3/default/favicon.ico" type="image/x-icon"/><script defer="defer" src="runtime.c7aeaf7b967496cb076f.js"></script><script defer="defer" src="806.323cf6496ad0a7fe73a7.js"></script><script defer="defer" src="app.612058b36c74787759ac.js"></script><link href="app.612058b36c74787759ac.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript">var PARAGON_THEME = { "paragon": { "version": "22.20.2", "themeUrls": { "core": {}, "variants": {} } }, "brand": { "version": "1.2.3", "themeUrls": { "core": {}, "variants": {} } } };</script></body></html>
|