@edx/left-sidebar-navigation-plugin

0.0.2 • Public • Published

Template plugin

Left sidebar navigation plugin for course outline and navigation

Hosted project

frontend-app-learning::env.config.jsx

import {
  PLUGIN_OPERATIONS,
  DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import Plugin from "@edx/left-sidebar-navigation-plugin";

// Load environment variables from .env file
const config = {
  ...process.env,
  pluginSlots: {
   course_outline_sidebar_slot: {
      keepDefault: false,
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'custom_sidebar_component',
            type: DIRECT_PLUGIN,
            RenderWidget: Plugin,
          },
        },
      ]
    },
  },
};

export default config;

frontend-app-learning::module.config.js

module.exports = {
  localModules: [
    {
      moduleName: "@edx/template-private-plugin",
      dir: "../src/frontend-plugins/packages/template-private-plugin",
    },
  ],
};

Readme

Keywords

none

Package Sidebar

Install

npm i @edx/left-sidebar-navigation-plugin

Weekly Downloads

37

Version

0.0.2

License

AGPL-3.0

Unpacked Size

134 kB

Total Files

46

Last publish

Collaborators

  • edx-old-org
  • edx-semantic-release
  • feanil
  • openedx-semantic-release-bot