forked from openedx/frontend-app-profile
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: update redwood branch with upstream (#8)
* chore(deps): update dependency glob to v10.3.15 * fix(deps): update dependency @edx/frontend-component-header to v5.3.1 * fix(deps): update dependency @edx/frontend-component-footer to v13.2.0 * fix: update footer to resolve (not so) optional peer dependency issue (openedx#1022) * feat: use frontend-plugin-framework to provide a FooterSlot (openedx#1017) * perf: add css-variables support to redwood (#6) * refactor: update package-lock * refactor: solve issues with package-lock --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Brian Smith <[email protected]>
- Loading branch information
1 parent
1e53e0e
commit d59e179
Showing
8 changed files
with
140 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ | |
], | ||
"dependencies": { | ||
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2", | ||
"@edx/frontend-component-footer": "npm:@edunext/[email protected]", | ||
"@edx/frontend-component-header": "npm:@edunext/[email protected]", | ||
"@edx/frontend-platform": "npm:@edunext/[email protected]", | ||
"@edx/openedx-atlas": "^0.6.0", | ||
|
@@ -39,6 +38,7 @@ | |
"@fortawesome/free-regular-svg-icons": "6.5.2", | ||
"@fortawesome/free-solid-svg-icons": "6.5.2", | ||
"@fortawesome/react-fontawesome": "0.2.0", | ||
"@openedx/frontend-slot-footer": "^1.0.2", | ||
"@openedx/paragon": "23.0.0-alpha.1", | ||
"@pact-foundation/pact": "^11.0.2", | ||
"@redux-devtools/extension": "3.3.0", | ||
|
@@ -72,7 +72,7 @@ | |
"@openedx/frontend-build": "github:edunext/frontend-build#ednx-release/css-variables-13.1.4", | ||
"@testing-library/jest-dom": "6.4.5", | ||
"@testing-library/react": "12.1.5", | ||
"glob": "10.3.12", | ||
"glob": "10.3.15", | ||
"reactifex": "1.1.1", | ||
"redux-mock-store": "1.5.4" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Footer Slot | ||
|
||
### Slot ID: `footer_slot` | ||
|
||
## Description | ||
|
||
This slot is used to replace/modify/hide the footer. | ||
|
||
The implementation of the `FooterSlot` component lives in [the `frontend-slot-footer` repository](https://github.com/openedx/frontend-slot-footer/). | ||
|
||
## Example | ||
|
||
The following `env.config.jsx` will replace the default footer. | ||
|
||
![Screenshot of Default Footer](./images/default_footer.png) | ||
|
||
with a simple custom footer | ||
|
||
![Screenshot of Custom Footer](./images/custom_footer.png) | ||
|
||
```jsx | ||
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework'; | ||
|
||
const config = { | ||
pluginSlots: { | ||
footer_slot: { | ||
plugins: [ | ||
{ | ||
// Hide the default footer | ||
op: PLUGIN_OPERATIONS.Hide, | ||
widgetId: 'default_contents', | ||
}, | ||
{ | ||
// Insert a custom footer | ||
op: PLUGIN_OPERATIONS.Insert, | ||
widget: { | ||
id: 'custom_footer', | ||
type: DIRECT_PLUGIN, | ||
RenderWidget: () => ( | ||
<h1 style={{textAlign: 'center'}}>🦶</h1> | ||
), | ||
}, | ||
}, | ||
] | ||
} | ||
}, | ||
} | ||
|
||
export default config; | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `frontend-app-profile` Plugin Slots | ||
|
||
* [`footer_slot`](./FooterSlot/) |