Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions option-page/App.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react'
import ReactDOM from 'react-dom'
import Index from './components/'

const Element = document.createElement("div");
Element.setAttribute("id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf");
document.body.appendChild(Element);
ReactDOM.render(<Index />, document.getElementById("dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf"));
import React from "react";
import ReactDOM from "react-dom";
import Index from "./components/";

const Element = document.createElement("div");
Element.setAttribute("id", "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf");
document.body.appendChild(Element);
ReactDOM.render(
<Index />,
document.getElementById("dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf")
);
16 changes: 7 additions & 9 deletions option-page/components/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react';
import React from "react";

export default class Index extends React.Component {
constructor(props){
super(props);
}
render() {
return (
<div></div>
);
}
constructor(props) {
super(props);
}
render() {
return <div></div>;
}
}
16 changes: 7 additions & 9 deletions option-page/option.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<div id="app"></div>
<script src="option.bundle.js"></script>
</body>
<head>
<style></style>
</head>
<body>
<div id="app"></div>
<script src="option.bundle.js"></script>
</body>
</html>

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"scripts": {
"start": "webpack-dev-server --config ./webpack.config.js --mode development",
"dev": "webpack --watch --progress --colors --config webpack.config.js --mode=development",
"test": "webpack --progress --colors --config webpack.config.js --mode=production"
"build": "webpack --progress --colors --config webpack.config.js --mode=production",
"prettier_check_src": "prettier --check src/**/*.{js,jsx}",
"prettier_check_popup": "prettier --check src/**/*.{js,jsx}",
"prettier_check_option": "prettier --check src/**/*.{js,jsx}",
"prettier_check_content": "prettier --check src/**/*.{js,jsx}",
"test": "yarn prettier_check_src && yarn prettier_check_popup && yarn prettier_check_option && yarn prettier_check_content && yarn build"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -39,6 +44,8 @@
"@babel/runtime": "^7.5.5",
"@material-ui/core": "^4.3.3",
"@material-ui/icons": "^4.2.1",
"husky": "^3.0.9",
"pretty-quick": "^2.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6"
}
Expand Down
13 changes: 8 additions & 5 deletions popup-page/App.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react'
import ReactDOM from 'react-dom'
import Index from './components/'
import React from "react";
import ReactDOM from "react-dom";
import Index from "./components/";

const Element = document.createElement("div");
Element.setAttribute("id" , "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf");
Element.setAttribute("id", "dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf");
document.body.appendChild(Element);
ReactDOM.render(<Index />, document.getElementById("dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf"));
ReactDOM.render(
<Index />,
document.getElementById("dfghbnjmERHJKFGHNMVBNMFBNMbmvvxnbdgf")
);
16 changes: 7 additions & 9 deletions popup-page/components/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react';
import React from "react";

export default class Index extends React.Component {
constructor(props){
super(props);
}
render() {
return (
<div></div>
);
}
constructor(props) {
super(props);
}
render() {
return <div></div>;
}
}
16 changes: 7 additions & 9 deletions popup-page/popup.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<div id="app"></div>
<script src="popup.bundle.js"></script>
</body>
<head>
<style></style>
</head>
<body>
<div id="app"></div>
<script src="popup.bundle.js"></script>
</body>
</html>

Loading