Skip to content

Commit c1aa33f

Browse files
authored
fix: example app plugin rendering and remove LMS authentication (#66)
* refactor: remove `frontend-component-header` and `frontend-component-footer` dependencies in example apps * chore: remove auth requirement for LMS * enables development outside of hosted devstack and LMS
1 parent b0649d4 commit c1aa33f

File tree

11 files changed

+1585
-4329
lines changed

11 files changed

+1585
-4329
lines changed

example-plugin-app/package-lock.json

Lines changed: 68 additions & 2064 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example-plugin-app/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
"react": "^17.0.0",
1818
"react-dom": "^17.0.0",
1919
"react-router-dom": "^6.22.1",
20-
"regenerator-runtime": "^0.14.1",
21-
"@edx/frontend-component-footer": "14.0.0",
22-
"@edx/frontend-component-header": "5.3.1"
20+
"regenerator-runtime": "^0.14.1"
2321
}
2422
}

example/env.config.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const config = {
131131
{
132132
op: PLUGIN_OPERATIONS.Insert,
133133
widget: {
134-
id: 'inserted_direct_plugin',
134+
id: 'insert_modular_direct_plugin',
135135
type: DIRECT_PLUGIN,
136136
priority: 1,
137137
RenderWidget: ModularComponent,
@@ -149,7 +149,7 @@ const config = {
149149
{
150150
op: PLUGIN_OPERATIONS.Insert,
151151
widget: {
152-
id: 'inserted_direct_plugin',
152+
id: 'insert_direct_plugin',
153153
type: DIRECT_PLUGIN,
154154
priority: 1,
155155
RenderWidget: ModularComponent,
@@ -162,7 +162,7 @@ const config = {
162162
{
163163
op: PLUGIN_OPERATIONS.Insert,
164164
widget: {
165-
id: 'inserted_direct_plugin',
165+
id: 'insert_another_direct_plugin',
166166
type: DIRECT_PLUGIN,
167167
priority: 10,
168168
RenderWidget: PluginDirect,

example/package-lock.json

Lines changed: 1511 additions & 2248 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"react-dom": "^17.0.0",
1919
"react-router": "^6.22.3",
2020
"react-router-dom": "^6.22.3",
21-
"regenerator-runtime": "^0.14.1",
22-
"@edx/frontend-component-footer": "14.0.0",
23-
"@edx/frontend-component-header": "5.3.1"
21+
"regenerator-runtime": "^0.14.1"
2422
},
2523
"devDependencies": {
2624
"@openedx/frontend-build": "^14.0.3"

example/src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ subscribe(APP_INIT_ERROR, (error) => {
3636
initialize({
3737
messages: [],
3838
requireAuthenticatedUser: false,
39-
hydrateAuthenticatedUser: true,
39+
hydrateAuthenticatedUser: false,
4040
});

example/src/index.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
@import "@edx/brand/paragon/variables.scss";
33
@import "@openedx/paragon/scss/core/core.scss";
44
@import "@edx/brand/paragon/overrides.scss";
5-
6-
@import "~@edx/frontend-component-header/dist/index";
7-
@import "~@edx/frontend-component-footer/dist/footer";

example/src/pluginSlots/PluginSlotWithInsert.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ function PluginSlotWithInsert() {
88
<h2 className="pl-3">Plugin Operation: Insert</h2>
99
<PluginSlot
1010
id="slot_with_insert_operation"
11-
data-testid="testing"
1211
>
1312
<section className="bg-success p-3 text-light">
1413
<h3>Default Content</h3>

example/src/pluginSlots/PluginSlotWithModifyWrapHide.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function PluginSlotWithModifyWrapHide() {
1515
<h2 className="pl-3">Plugin Operation: Modify, Wrap, and Hide</h2>
1616
<PluginSlot
1717
id="slot_with_modify_wrap_hidden_operations"
18-
data-testid="testing"
1918
>
2019
<ModularComponent content={content}/>
2120
</PluginSlot>

example/src/pluginSlots/PluginSlotWithModularPlugins.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ function PluginSlotWithModularPlugins() {
1414
<h2 className="pl-3">Direct Plugins Using Modular Components</h2>
1515
<PluginSlot
1616
id="slot_with_modular_plugins"
17-
data-testid="testing"
1817
>
1918
<ModularComponent content={content} />
2019
</PluginSlot>

0 commit comments

Comments
 (0)