4 Commits

9 changed files with 505 additions and 348 deletions
Unified View
  1. BIN
      digital-7.ttf
  2. +6
    -0
      index.html
  3. +362
    -346
      package-lock.json
  4. +3
    -1
      package.json
  5. +2
    -1
      src/index.tsx
  6. +0
    -0
      src/main-view/action.ts
  7. +123
    -0
      src/main-view/container.tsx
  8. +9
    -0
      src/main-view/index.ts
  9. +0
    -0
      src/main-view/reducer.ts

BIN
digital-7.ttf View File


+ 6
- 0
index.html View File

@ -18,6 +18,12 @@
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
<style>
@font-face {
font-family: "7bar";
src: url("./digital-7.ttf");
}
</style>
</head> </head>
<body> <body>


+ 362
- 346
package-lock.json
File diff suppressed because it is too large
View File


+ 3
- 1
package.json View File

@ -10,7 +10,9 @@
"author": "redforks@gmail.com", "author": "redforks@gmail.com",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"mammoth": "git+ssh://git@192.168.1.5:forks/mammoth-lib.git"
"@types/react-router-redux": "^5.0.10",
"electron": "^1.7.10",
"mammoth": "git+file:///home/forks/work/mammoth-lib.git"
}, },
"devDependencies": { "devDependencies": {
"typescript": "^2.6.2" "typescript": "^2.6.2"


+ 2
- 1
src/index.tsx View File

@ -4,6 +4,7 @@ import * as React from "react";
import { ConnectedRouter } from "react-router-redux"; import { ConnectedRouter } from "react-router-redux";
import { Provider } from "react-redux"; import { Provider } from "react-redux";
import { Route } from "react-router"; import { Route } from "react-router";
import { MainView } from "./main-view";
const store = createStore({ const store = createStore({
@ -13,7 +14,7 @@ ReactDOM.render(
<Provider store={store}> <Provider store={store}>
<ConnectedRouter history={history}> <ConnectedRouter history={history}>
<> <>
<Route exact path="/" component={Root} />
<Route exact path="/" component={MainView} />
<Route exact path="/login" component={Login} /> <Route exact path="/login" component={Login} />
</> </>
</ConnectedRouter> </ConnectedRouter>


+ 0
- 0
src/main-view/action.ts View File


+ 123
- 0
src/main-view/container.tsx View File

@ -0,0 +1,123 @@
import * as React from "react";
import { connect, Dispatch } from "react-redux";
import { StMainView, StAppWithMainView } from ".";
import { Grid, Row, Col, Table, ButtonToolbar, Button, Panel, FormControl, Checkbox } from "react-bootstrap";
interface Props { };
interface Callbacks { };
function mainView(props: Props & Callbacks) {
const weightPanel = {
color: "#ff4300",
backgroundColor: "black",
fontSize: "7rem",
fontFamily: "\"7bar\"",
};
return <Grid>
<Row style={{ height: "calc(20vh - 50px)" }}>
<Col xs={3}>
<div style={weightPanel}>0.00</div>
<ButtonToolbar>
<Button></Button>
<Button disabled></Button>
</ButtonToolbar>
<div><input /></div>
</Col>
<Col xs={5} style={{ height: "15vh", flexWrap: "wrap", display: "flex", flexDirection: "column", alignItems: "flex-start" }}>
<Checkbox></Checkbox>
<Button></Button>
<Button></Button>
<Button></Button>
<Button></Button>
<div style={{ flex: 1 }}></div>
<div style={{ alignSelf: "flex-end" }}>屠宰顺序: 0 已宰头数: 0</div>
</Col>
<Col xs={4}>
<ButtonToolbar>
<Button bsSize="large"></Button>
<Button bsSize="large"></Button>
<Button bsSize="large"></Button>
</ButtonToolbar>
</Col>
</Row>
<Row>
<Col xs={8}>
<Row>
<Panel style={{ height: "40vh" }} header="烫褪">
<Col xs={6} >
<Table >
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</Table>
</Col>
<Col xs={6}>
<ButtonToolbar>
<Button bsStyle="info"></Button>
<Button bsStyle="info"></Button>
<Button bsStyle="info"></Button>
</ButtonToolbar>
</Col>
</Panel>
</Row>
<Row>
<Panel style={{ height: "40vh" }} header="毛剥">
<Col xs={6}>
<Table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</Table>
</Col>
<Col xs={6}>
<ButtonToolbar>
<Button></Button>
<Button></Button>
<Button></Button>
</ButtonToolbar>
</Col>
</Panel>
</Row>
</Col>
<Col xs={4}>
<Panel style={{ height: "calc(80vh + 20px)" }} header="记录">
<Table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</Table>
</Panel>
</Col>
</Row>
</Grid>;
}
function mapStateToProps(st: StAppWithMainView): Props {
return {
};
}
function mapDispatchToProps(dispatch: Dispatch<StAppWithMainView>): Callbacks {
return {
};
}
export const MainView = connect(mapStateToProps, mapDispatchToProps)(mainView);

+ 9
- 0
src/main-view/index.ts View File

@ -0,0 +1,9 @@
export { MainView } from "./container";
export interface StMainView {
}
export interface StAppWithMainView {
mainView: StMainView;
}

+ 0
- 0
src/main-view/reducer.ts View File


Loading…
Cancel
Save