19 |
20 | Light-codegen is used to scaffold a new project with a specification file and a config file.
21 |
22 |
23 | For document, please visit reference.
24 |
25 |
26 | To learn how to use each generator, please visit tutorial.
27 |
28 |
29 | )
30 | }
31 | }
32 |
33 | export default withStyles(styles)(Document);
34 |
--------------------------------------------------------------------------------
/codegen-web/view/src/components/GitHub.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {withStyles} from "@material-ui/core";
3 |
4 | const styles = theme => ({
5 | root: {
6 | display: 'flex',
7 | flexWrap: 'wrap',
8 | },
9 | pre: {
10 | 'white-space': 'pre-wrap',
11 | },
12 | });
13 |
14 | class GitHub extends Component {
15 | render() {
16 | const { classes } = this.props;
17 | return (
18 |
19 |
20 | Light-codegen is an open source project on GitHub.com
21 |
22 |
23 | For the light-codegen project, please visit light-codegen.
24 |
25 |
26 | For the services to support this site, please visit codegen-web.
27 |
28 |
29 | For the react single page application, please visit view.
30 |
31 |
32 | )
33 | }
34 | }
35 |
36 | export default withStyles(styles)(GitHub);
37 |
--------------------------------------------------------------------------------
/codegen-web/view/src/components/Home.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {withStyles} from "@material-ui/core";
3 |
4 | const styles = theme => ({
5 | root: {
6 | display: 'flex',
7 | flexWrap: 'wrap',
8 | },
9 | pre: {
10 | 'white-space': 'pre-wrap',
11 | },
12 | });
13 |
14 | class Home extends Component {
15 | render() {
16 | const { classes } = this.props;
17 | return (
18 |