@edx/course-end-recommendations-plugin
v0.0.1
Published
Plugin to hide course-end recommendations for certain learners
Downloads
7
Keywords
Readme
Template plugin
This is a demo for plugin
Hosted project
frontend-app-learning::env.config.jsx
import {
PLUGIN_OPERATIONS,
DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import hideCourseSuggestionsForEnterpriseLearners from "@edx/course-end-recommendations-plugin";
// Load environment variables from .env file
const config = {
...process.env,
pluginSlots: {
course_recommendations_slot: {
keepDefault: true,
plugins: [
{
op: PLUGIN_OPERATIONS.Modify,
widgetId: 'default_contents',
fn: hideCourseSuggestionsForEnterpriseLearners,
},
],
},
},
};
export default config;frontend-app-learning::module.config.js
module.exports = {
localModules: [
{
moduleName: "@edx/course-end-recommendations-plugin",
dir: "../src/frontend-plugins/packages/course-end-recommendations-plugin",
},
],
};