@edx/frontend-platform 8.5.0 → 8.5.2

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/README.md CHANGED
@@ -41,7 +41,7 @@ dependencies based on this new package file. Delete `node_modules`, and run `npm
41
41
 
42
42
  1. `npm install`
43
43
  2. `npm start`
44
- 3. Open http://localhost:8080 to view the example app.
44
+ 3. Open http://local.openedx.io:8080 to view the example app.
45
45
 
46
46
  ## Architecture
47
47
 
@@ -149,6 +149,19 @@ When making changes to frontend-platform, be sure to manually run the included e
149
149
 
150
150
  If you want to test changes to frontend-platform against a micro-frontend locally, follow the directions here: https://github.com/openedx/frontend-build#local-module-configuration-for-webpack
151
151
 
152
+ ## Getting the example app to work with a tutor dev environment
153
+
154
+ Part of the example app functionality includes an API request to get the logged in user's profile information. This request will fail by default due to CORS restrictions. To overcome this, patch `openedx-lms-development-settings` with the following settings (via a tutor plugin):
155
+
156
+ ```python
157
+ # Used for the example app in the frontend-plugin library
158
+ CORS_ORIGIN_WHITELIST.append("http://local.openedx.io:8080")
159
+ LOGIN_REDIRECT_WHITELIST.append("local.openedx.io:8080")
160
+ CSRF_TRUSTED_ORIGINS.append("http://local.openedx.io:8080")
161
+ ```
162
+
163
+ Make sure the plugin is installed, enabled, and then run `tutor dev restart lms` to make sure the new configuration is picked up.
164
+
152
165
  # Production Deployment Strategy
153
166
 
154
167
  For any MFE built on top of the frontend-platform, the deployment strategy will be something like the following:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edx/frontend-platform",
3
- "version": "8.5.0",
3
+ "version": "8.5.2",
4
4
  "description": "Foundational application framework for Open edX micro-frontend applications.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -57,7 +57,7 @@
57
57
  "@cospired/i18n-iso-languages": "4.2.0",
58
58
  "@formatjs/intl-pluralrules": "4.3.3",
59
59
  "@formatjs/intl-relativetimeformat": "10.0.1",
60
- "axios": "1.9.0",
60
+ "axios": "1.12.0",
61
61
  "axios-cache-interceptor": "1.8.0",
62
62
  "form-urlencoded": "4.1.4",
63
63
  "glob": "7.2.3",
@@ -17,7 +17,8 @@ var messages = {
17
17
  'pt-br': {},
18
18
  ru: {},
19
19
  th: {},
20
- uk: {}
20
+ uk: {},
21
+ vi: {}
21
22
  };
22
23
  export default messages;
23
24
  //# sourceMappingURL=mockMessages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mockMessages.js","names":["messages","ar","fa","fr","ca","he","id","pl","ru","th","uk"],"sources":["../../src/testing/mockMessages.js"],"sourcesContent":["/**\n * An empty messages object suitable for fulfilling the i18n service's contract.\n * @memberof module:Testing\n */\nconst messages = {\n ar: {},\n 'es-419': {},\n fa: {},\n 'fa-ir': {},\n fr: {},\n 'zh-cn': {},\n ca: {},\n he: {},\n id: {},\n 'ko-kr': {},\n pl: {},\n 'pt-br': {},\n ru: {},\n th: {},\n uk: {},\n};\n\nexport default messages;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG;EACfC,EAAE,EAAE,CAAC,CAAC;EACN,QAAQ,EAAE,CAAC,CAAC;EACZC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC;AACP,CAAC;AAED,eAAeV,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"mockMessages.js","names":["messages","ar","fa","fr","ca","he","id","pl","ru","th","uk","vi"],"sources":["../../src/testing/mockMessages.js"],"sourcesContent":["/**\n * An empty messages object suitable for fulfilling the i18n service's contract.\n * @memberof module:Testing\n */\nconst messages = {\n ar: {},\n 'es-419': {},\n fa: {},\n 'fa-ir': {},\n fr: {},\n 'zh-cn': {},\n ca: {},\n he: {},\n id: {},\n 'ko-kr': {},\n pl: {},\n 'pt-br': {},\n ru: {},\n th: {},\n uk: {},\n vi: {},\n};\n\nexport default messages;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG;EACfC,EAAE,EAAE,CAAC,CAAC;EACN,QAAQ,EAAE,CAAC,CAAC;EACZC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACN,OAAO,EAAE,CAAC,CAAC;EACXC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC,CAAC;EACNC,EAAE,EAAE,CAAC;AACP,CAAC;AAED,eAAeX,QAAQ","ignoreList":[]}