ops-webui is a module in the OpenSwitch project that is responsible for displaying information about the switch via a Web User Interface.
This project leverages:
- NodeJS / npm
- ReactJS
- Controller-view framework
- Redux
- State container for JavaScript applications
- React-Router
- URL routing (i.e View) framework
- Browser history support
- Superagent
- ajax API library
.babelrc- javascript/JSX Babel compiler configuration.eslintrc- javascript/JSX ESLint rule definitionsaliases.sh- can be sourced by bash, aliases of "npm run ..." commandspackage.json- nodeJS/npm dependences and npm command definitionswebpack.config.js- Webpack Module Bundler configurationindex.html- copied to ./buildbuild.config.js- default build configurationkarma.*- unit test framework filesbuild/- all built artifacts go hereindex.html- contains the main application divbundle.js- all compiled javascript and style- images, icons, & fonts
node_modules/- all 3rd party npm modules are install herereact/grommet/- ...etc...
src/- all javascript/JSX sourceshared/- shared business logic, components and resourcesassets/- fonts and iconsboxGraphics/- box graphic component and device drawingscomponents/- ReactJS shared componentsi18n/- localization component and locale text (i.e. en-US.js)test/- business logic tests- business logic modules
app/- main application source- global scss styles, main framework, layout, navigation
modules/- plug-in module directoriesexampleModule/- example module directoryexampleConst.jsx- constant definitions (i.e. client-server shared keys)exampleDux.jsx- Dux file for this module (imported in the build config)examplePage.jsx- page component (Dux will have a route component for this)exampleDetails.jsx- detail component (optional)exampleEdit.jsx- edit component (optional)
tools/- development tools (build and test)scripts/- script tools (tar/untar node modules)reference/- backup directory for legacy code (not used)
ops-webui is using the Apache 2.0 license. For more details refer to COPYING.
For the high level design of ops-webui, refer to DESIGN.md For the current list of contributors and maintainers, refer to AUTHORS
For general information about OpenSwitch project refer to http://www.openswitch.net