itu-innov-com-react
v0.1.37
Published
The SWTSS's X-Troop common repository for react projects.
Downloads
4
Readme
The project that provides the common framework for all of our final projects,
basically it includes the core components that are used in multiple React
clients.
ALERT: Be sure in the top level of a project using these components imports "babel-polyfill"
Objects contained within: 1.) Security a.) lib/auth/AuthService - Basic tool for authenticating the webservices (either dev/production) and managing the token and retrieving roles b.) lib/auth/components 1.) lib/auth/components/AccountManagementModal - 2.) lib/auth/components/AccountRequestEntry - 3.) lib/auth/components/ExtendLoginModal - 4.) lib/auth/components/LoginForm - <LoginForm loginCallback={function(options)} [auth={Auth_Service}] /> 5.) lib/auth/components/LoginRequestForm - <LoginRequestForm requestCallback={function(options)} [auth={Auth_Service}] /> 2.) Datalayer a.) lib/controller/AbstractDBController - Basic tool for connecting to the webservices (either dev/production) b.) lib/controller/GenericAfscController - c.) lib/controller/GenericClassController - d.) lib/controller/GenericCourseController - e.) lib/controller/GenericLookupController - f.) lib/controller/GenericReportController - g.) lib/controller/GenericStudentController - h.) lib/controller/controller - generic object for handling referential integrity, ie ensuring that this project and the main project (pipeline, med, etc) use the same controller (and that this project has controllers at all). Must be called with a .use call passing along the AuthService at a minimum otherwise all of the components that are apart of this project won't be able to work. 3.) Components a.) lib/components 1.) b.) lib/components/dropdowns 1.) <AfscDropdown className={style name} value={starting value} /> 2.) <LookupDropdown className={style name} table={value for 'table' column} [column={'column' column to query}] value={starting value} /> 3.) <FiscalYearDropdown className={style name} value={starting value} /> 4.) 4.) Report Tool a.) lib/reports/ReportTool - 5.) Utils a.) lib/util/WorkBook -
To install in a new project: npm install -s @swtss/batg-innov-com-react
To work on this project at the same time as working on the client use the npm link command, 1.) In the folder for this project run: a.) npm link b.) npm run build //This builds the project c.) NOTE: the build script currently doesn't copy over any css, you will need to do this manually 2.) In the folder for the client project a.) npm link @swtss/batg-innov-com-react