Skip to content

Commit ee6fd08

Browse files
committed
chore: update requested change
1 parent 77fa47d commit ee6fd08

26 files changed

+1375
-1667
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ module.config.js
2727
# Local environment overrides
2828
.env.private
2929

30-
src/i18n/messages/
30+
src/i18n/messages/
31+
32+
env.config.jsx

env.config.jsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

example.env.config.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import UnitTranslationPlugin from '@plugins/UnitTranslationPlugin';
2-
import { DIRECT_PLUGIN } from '@plugin-framework';
2+
import { PLUGIN_OPERATIONS, DIRECT_PLUGIN } from '@openedx/frontend-plugin-framework';
33

44
// Load environment variables from .env file
55
const config = {
66
...process.env,
77
pluginSlots: {
8-
unit_title_plugin: {
9-
defaultContents: [
10-
{
11-
id: 'default_widget',
8+
plugins: [
9+
{
10+
op: PLUGIN_OPERATIONS.Insert,
11+
widget: {
12+
id: 'unit_title_plugin',
1213
type: DIRECT_PLUGIN,
1314
priority: 1,
1415
RenderWidget: UnitTranslationPlugin,
1516
},
16-
],
17-
plugins: [],
18-
},
17+
},
18+
],
1919
},
2020
};
2121

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const config = createConfig('jest', {
1616
'react-markdown': '<rootDir>/node_modules/react-markdown/react-markdown.min.js',
1717
'@src/(.*)': '<rootDir>/src/$1',
1818
'@plugins/(.*)': '<rootDir>/plugins/$1',
19-
'@plugin-framework': '<rootDir>/plugin-framework/index.js',
2019
},
2120
testTimeout: 30000,
2221
globalSetup: "./global-setup.js",

0 commit comments

Comments
 (0)