commit
a292ed996d
34935
example/package-lock.json
generated
34935
example/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,18 +17,15 @@
|
|||||||
"@types/node": "file:../node_modules/@types/node",
|
"@types/node": "file:../node_modules/@types/node",
|
||||||
"@types/react": "file:../node_modules/@types/react",
|
"@types/react": "file:../node_modules/@types/react",
|
||||||
"@types/react-dom": "file:../node_modules/@types/react-dom",
|
"@types/react-dom": "file:../node_modules/@types/react-dom",
|
||||||
|
"gantt-task-react": "file:..",
|
||||||
|
"postcss-preset-env": "file:../node_modules/postcss-preset-env",
|
||||||
"react": "file:../node_modules/react",
|
"react": "file:../node_modules/react",
|
||||||
"react-dom": "file:../node_modules/react-dom",
|
"react-dom": "file:../node_modules/react-dom",
|
||||||
"react-scripts": "file:../node_modules/react-scripts",
|
"react-scripts": "file:../node_modules/react-scripts"
|
||||||
"typescript": "file:../node_modules/typescript",
|
|
||||||
"gantt-task-react": "file:.."
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"
|
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
|
||||||
"extends": "react-app"
|
|
||||||
},
|
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { ViewSwitcher } from "./components/view-switcher";
|
|||||||
import { getStartEndDateForProject, initTasks } from "./helper";
|
import { getStartEndDateForProject, initTasks } from "./helper";
|
||||||
import "gantt-task-react/dist/index.css";
|
import "gantt-task-react/dist/index.css";
|
||||||
|
|
||||||
//Init
|
// Init
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const [view, setView] = React.useState<ViewMode>(ViewMode.Day);
|
const [view, setView] = React.useState<ViewMode>(ViewMode.Day);
|
||||||
const [tasks, setTasks] = React.useState<Task[]>(initTasks());
|
const [tasks, setTasks] = React.useState<Task[]>(initTasks());
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import './index.css'
|
import "./index.css";
|
||||||
|
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from "react-dom";
|
||||||
import App from './App'
|
import App from "./App";
|
||||||
|
|
||||||
ReactDOM.render(<App />, document.getElementById('root'))
|
ReactDOM.render(<App />, document.getElementById("root"));
|
||||||
|
|||||||
19972
package-lock.json
generated
19972
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@ -36,7 +36,7 @@
|
|||||||
"deploy": "gh-pages -d example/build"
|
"deploy": "gh-pages -d example/build"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.0.0"
|
"react": "^17.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^5.12.0",
|
"@testing-library/jest-dom": "^5.12.0",
|
||||||
@ -44,29 +44,33 @@
|
|||||||
"@testing-library/user-event": "^13.1.8",
|
"@testing-library/user-event": "^13.1.8",
|
||||||
"@types/jest": "^26.0.23",
|
"@types/jest": "^26.0.23",
|
||||||
"@types/node": "^15.0.1",
|
"@types/node": "^15.0.1",
|
||||||
"@types/react": "^17.0.4",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^17.0.3",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
||||||
"@typescript-eslint/parser": "^4.22.0",
|
"@typescript-eslint/parser": "^5.9.1",
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint-config-prettier": "^6.15.0",
|
"eslint-config-prettier": "^6.15.0",
|
||||||
"eslint-config-standard": "^14.1.0",
|
"eslint-config-standard": "^16.0.3",
|
||||||
"eslint-config-standard-react": "^9.2.0",
|
"eslint-config-standard-react": "^9.2.0",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.22.1",
|
||||||
"eslint-plugin-node": "^11.0.0",
|
"eslint-plugin-node": "^11.0.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"eslint-plugin-promise": "^4.3.1",
|
"eslint-plugin-promise": "^5.2.0",
|
||||||
"eslint-plugin-react": "^7.22.0",
|
"eslint-plugin-react": "^7.22.0",
|
||||||
"eslint-plugin-standard": "^4.1.0",
|
"eslint-plugin-standard": "^4.1.0",
|
||||||
"gh-pages": "^3.1.0",
|
"gh-pages": "^3.1.0",
|
||||||
"microbundle-crl": "^0.13.11",
|
"microbundle-crl": "^0.13.11",
|
||||||
|
"mini-css-extract-plugin": "^2.5.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.2.1",
|
"postcss-flexbugs-fixes": "^5.0.2",
|
||||||
"react": "^16.14.0",
|
"postcss-normalize": "^10.0.1",
|
||||||
"react-dom": "^16.14.0",
|
"postcss-preset-env": "^7.2.3",
|
||||||
"react-scripts": "^4.0.3",
|
"prettier": "^2.5.1",
|
||||||
"typescript": "^3.9.9"
|
"react": "^17.0.2",
|
||||||
|
"react-dom": "^17.0.2",
|
||||||
|
"react-scripts": "^5.0.0",
|
||||||
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user