added type script and folder structure
This commit is contained in:
parent
262db46a24
commit
822dd6fb5d
873
app/client/package-lock.json
generated
873
app/client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
|
@ -7,16 +7,25 @@
|
||||||
"@blueprintjs/datetime": "^3.6.0",
|
"@blueprintjs/datetime": "^3.6.0",
|
||||||
"@blueprintjs/icons": "^3.5.0",
|
"@blueprintjs/icons": "^3.5.0",
|
||||||
"@blueprintjs/table": "^3.4.0",
|
"@blueprintjs/table": "^3.4.0",
|
||||||
|
"@types/jest": "^23.3.13",
|
||||||
|
"@types/node": "^10.12.18",
|
||||||
|
"@types/react": "^16.7.20",
|
||||||
|
"@types/react-dom": "^16.0.11",
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.18.0",
|
||||||
"flow-bin": "^0.91.0",
|
"flow-bin": "^0.91.0",
|
||||||
|
"husky": "^1.3.1",
|
||||||
|
"lint-staged": "^8.1.0",
|
||||||
|
"prettier": "^1.16.0",
|
||||||
"react": "^16.7.0",
|
"react": "^16.7.0",
|
||||||
"react-dnd": "^7.0.2",
|
"react-dnd": "^7.0.2",
|
||||||
"react-dnd-html5-backend": "^7.0.2",
|
"react-dnd-html5-backend": "^7.0.2",
|
||||||
"react-dom": "^16.7.0",
|
"react-dom": "^16.7.0",
|
||||||
"react-redux": "^6.0.0",
|
"react-redux": "^6.0.0",
|
||||||
"react-router": "^4.3.1",
|
"react-router": "^4.3.1",
|
||||||
|
"react-router-dom": "^4.3.1",
|
||||||
"react-scripts": "2.1.3",
|
"react-scripts": "2.1.3",
|
||||||
"redux-saga": "^1.0.0"
|
"redux-saga": "^1.0.0",
|
||||||
|
"typescript": "^3.2.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import logo from './logo.svg';
|
import logo from './assets/images/logo.svg';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
|
|
@ -9,7 +9,7 @@ class App extends Component {
|
||||||
<header className="App-header">
|
<header className="App-header">
|
||||||
<img src={logo} className="App-logo" alt="logo" />
|
<img src={logo} className="App-logo" alt="logo" />
|
||||||
<p>
|
<p>
|
||||||
Edit <code>src/App.js</code> and save to reload.
|
Edit <code>{"src/App.tsx"}</code> and save to reload.
|
||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
className="App-link"
|
className="App-link"
|
||||||
0
app/client/src/actions/CanvasActions.tsx
Normal file
0
app/client/src/actions/CanvasActions.tsx
Normal file
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
0
app/client/src/constants/AppConstants.tsx
Normal file
0
app/client/src/constants/AppConstants.tsx
Normal file
0
app/client/src/constants/ColorConstants.tsx
Normal file
0
app/client/src/constants/ColorConstants.tsx
Normal file
0
app/client/src/pages/Canvas/index.tsx
Normal file
0
app/client/src/pages/Canvas/index.tsx
Normal file
1
app/client/src/react-app-env.d.ts
vendored
Normal file
1
app/client/src/react-app-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/// <reference types="react-scripts" />
|
||||||
0
app/client/src/reducers/entityReducers/index.tsx
Normal file
0
app/client/src/reducers/entityReducers/index.tsx
Normal file
8
app/client/src/reducers/index.tsx
Normal file
8
app/client/src/reducers/index.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { combineReducers } from "redux";
|
||||||
|
import entityReducer from "./entityReducers";
|
||||||
|
import uiReducer from "./uiReducers";
|
||||||
|
|
||||||
|
export default combineReducers({
|
||||||
|
entities: entityReducer,
|
||||||
|
ui: uiReducer
|
||||||
|
});
|
||||||
0
app/client/src/reducers/uiReducers/index.tsx
Normal file
0
app/client/src/reducers/uiReducers/index.tsx
Normal file
0
app/client/src/utils/PicassoUtils.tsx
Normal file
0
app/client/src/utils/PicassoUtils.tsx
Normal file
25
app/client/tsconfig.json
Normal file
25
app/client/tsconfig.json
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"strict": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"jsx": "preserve"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user