-
Notifications
You must be signed in to change notification settings - Fork 28
Modules Structure
Marcus edited this page Feb 14, 2021
·
3 revisions
The latest modules system follows the following basic structure:
(_params) => {
return {
functions: { ... }, // For functions that source academy cadets will be interacting with in the IDE.
sideContents: [ // For generating the side content tabs on cadet-frontend.
{
toSpawn: (context) => true, // Renders component if function returns true
body: (React) => (props) => { ... } // Module component that will be rendered in the tab
label: "Test Component", // Tooltip string
iconName: "mugshot", // Icon for side content tab (uses BlueprintJS icon mame)
},
],
};
};
- Home
- Overview
- System Implementation
-
Development Guide
- Getting Started
- Repository Structure
-
Creating a New Module
- Creating a Bundle
- Creating a Tab
- Writing Documentation
- Developer Documentation (TODO)
- Build System
- Source Modules
- FAQs
Try out Source Academy here.
Check out the Source Modules generated API documentation here.