File tree Expand file tree Collapse file tree 8 files changed +372
-57
lines changed Expand file tree Collapse file tree 8 files changed +372
-57
lines changed Original file line number Diff line number Diff line change 1- import React from 'react'
2- import ReactDOM from 'react-dom'
3- import Index from './components/'
4-
5- const Element = document . createElement ( "div" ) ;
6- Element . setAttribute ( "id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ;
7- document . body . appendChild ( Element ) ;
8- ReactDOM . render ( < Index /> , document . getElementById ( "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ) ;
1+ import React from "react" ;
2+ import ReactDOM from "react-dom" ;
3+ import Index from "./components/" ;
4+
5+ const Element = document . createElement ( "div" ) ;
6+ Element . setAttribute ( "id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ;
7+ document . body . appendChild ( Element ) ;
8+ ReactDOM . render (
9+ < Index /> ,
10+ document . getElementById ( "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" )
11+ ) ;
Original file line number Diff line number Diff line change 1- import React from ' react' ;
1+ import React from " react" ;
22
33export default class Index extends React . Component {
4- constructor ( props ) {
5- super ( props ) ;
6- }
7- render ( ) {
8- return (
9- < div > </ div >
10- ) ;
11- }
4+ constructor ( props ) {
5+ super ( props ) ;
6+ }
7+ render ( ) {
8+ return < div > </ div > ;
9+ }
1210}
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
3- < head >
4- < style >
5- </ style >
6- </ head >
7- < body >
8- < div id ="app "> </ div >
9- < script src ="option.bundle.js "> </ script >
10- </ body >
3+ < head >
4+ < style > </ style >
5+ </ head >
6+ < body >
7+ < div id ="app "> </ div >
8+ < script src ="option.bundle.js "> </ script >
9+ </ body >
1110</ html >
12-
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "start" : " webpack-dev-server --config ./webpack.config.js --mode development" ,
88 "dev" : " webpack --watch --progress --colors --config webpack.config.js --mode=development" ,
9- "test" : " webpack --progress --colors --config webpack.config.js --mode=production"
9+ "build" : " webpack --progress --colors --config webpack.config.js --mode=production" ,
10+ "prettier_check_src" : " prettier --check src/**/*.{js,jsx}" ,
11+ "prettier_check_popup" : " prettier --check src/**/*.{js,jsx}" ,
12+ "prettier_check_option" : " prettier --check src/**/*.{js,jsx}" ,
13+ "prettier_check_content" : " prettier --check src/**/*.{js,jsx}" ,
14+ "test" : " yarn prettier_check_src && yarn prettier_check_popup && yarn prettier_check_option && yarn prettier_check_content && yarn build"
1015 },
1116 "husky" : {
1217 "hooks" : {
3944 "@babel/runtime" : " ^7.5.5" ,
4045 "@material-ui/core" : " ^4.3.3" ,
4146 "@material-ui/icons" : " ^4.2.1" ,
47+ "husky" : " ^3.0.9" ,
48+ "pretty-quick" : " ^2.0.0" ,
4249 "react" : " ^16.8.6" ,
4350 "react-dom" : " ^16.8.6"
4451 }
Original file line number Diff line number Diff line change 1- import React from ' react'
2- import ReactDOM from ' react-dom'
3- import Index from ' ./components/'
1+ import React from " react" ;
2+ import ReactDOM from " react-dom" ;
3+ import Index from " ./components/" ;
44
55const Element = document . createElement ( "div" ) ;
6- Element . setAttribute ( "id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ;
6+ Element . setAttribute ( "id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ;
77document . body . appendChild ( Element ) ;
8- ReactDOM . render ( < Index /> , document . getElementById ( "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" ) ) ;
8+ ReactDOM . render (
9+ < Index /> ,
10+ document . getElementById ( "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf" )
11+ ) ;
Original file line number Diff line number Diff line change 1- import React from ' react' ;
1+ import React from " react" ;
22
33export default class Index extends React . Component {
4- constructor ( props ) {
5- super ( props ) ;
6- }
7- render ( ) {
8- return (
9- < div > </ div >
10- ) ;
11- }
4+ constructor ( props ) {
5+ super ( props ) ;
6+ }
7+ render ( ) {
8+ return < div > </ div > ;
9+ }
1210}
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
3- < head >
4- < style >
5- </ style >
6- </ head >
7- < body >
8- < div id ="app "> </ div >
9- < script src ="popup.bundle.js "> </ script >
10- </ body >
3+ < head >
4+ < style > </ style >
5+ </ head >
6+ < body >
7+ < div id ="app "> </ div >
8+ < script src ="popup.bundle.js "> </ script >
9+ </ body >
1110</ html >
12-
You can’t perform that action at this time.
0 commit comments