-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9430458
commit dbdb7ac
Showing
15 changed files
with
321 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"env": { | ||
"production": { | ||
"presets": [ | ||
] | ||
}, | ||
"development": { | ||
} | ||
}, | ||
"presets": [] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const webpack = require('webpack'); | ||
const WebpackDevServer = require('webpack-dev-server'); | ||
const webpackConfig = require('./webpack.config.dev'); | ||
|
||
function runFunc(err) { | ||
if (err) { | ||
console.log(err); | ||
} | ||
console.log('Listening at http://127.0.0.1:9999/index.html'); | ||
} | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
open: 'chrome', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
// 'Cross-Origin-Embedder-Policy': 'unsafe-none', | ||
// 'Cross-Origin-Opener-Policy': 'unsafe-none', | ||
}, | ||
openPage: 'http://127.0.0.1:9999/index.html', | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
proxy: [{ | ||
path: '/meeting.html', | ||
target: 'http://127.0.0.1:9998/' | ||
}] | ||
}).listen(9999, '0.0.0.0', runFunc); | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
'Cross-Origin-Embedder-Policy': 'require-corp', | ||
'Cross-Origin-Opener-Policy': 'same-origin', | ||
}, | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
}).listen(9998, '0.0.0.0', runFunc); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const args = process.argv.slice(2); | ||
let https = false; | ||
let disableCORP = true; | ||
if (args.includes('--https')) https = true; | ||
if (args.includes('--corp')) disableCORP = false; | ||
|
||
|
||
module.exports = { | ||
devtool: 'eval', | ||
entry: { | ||
}, | ||
context: __dirname, | ||
target: 'web', | ||
devServer: { | ||
https, | ||
cert: './localhost.crt', | ||
key: './localhost.key', | ||
host: '0.0.0.0', | ||
port: 9999, | ||
hot: true, | ||
overlay: true, | ||
historyApiFallback: false, | ||
watchContentBase: true, | ||
disableHostCheck: true, | ||
headers: { | ||
'Access-Control-Allow-Origin': https ? 'https://0.0.0.0:9999' : 'http://0.0.0.0:9999' | ||
}, | ||
open: 'chrome', | ||
openPage: https ? 'https://127.0.0.1:9999' : 'http://127.0.0.1:9999', | ||
}, | ||
mode: 'development', | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('development'), | ||
'process.env.BABEL_ENV': JSON.stringify('development'), | ||
}), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,20 @@ | ||
{ | ||
"extends": "airbnb", | ||
"parser": "@babel/eslint-parser", | ||
"extends": [ | ||
"airbnb", "prettier" | ||
], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"comma-dangle": 0, | ||
"no-console": "off", | ||
"react/jsx-filename-extension": [1, { | ||
"extensions": [".js", ".jsx"] | ||
}], | ||
"global-require": "off", | ||
"react/prop-types": [ | ||
1, | ||
{ "ignore": "ignore", "customValidators": "customValidator" } | ||
], | ||
"react/destructuring-assignment": [true , "always", { "ignoreClassFields": true }], | ||
"react/jsx-indent": [true, 4], | ||
"max-len": 0, | ||
"class-methods-use-this": 0, | ||
"react/jsx-indent-props": 0, | ||
"import/no-named-as-default": 0, | ||
"jsx-a11y/click-events-have-key-events": 0, | ||
"jsx-a11y/interactive-supports-focus": 0, | ||
"no-bitwise": 0, | ||
"no-trailing-spaces": ["error", { "ignoreComments": true }], | ||
"react/no-string-refs": 0, | ||
"jsx-a11y/no-static-element-interactions": [ | ||
"error", | ||
{ | ||
"handlers": [ | ||
"onClick", | ||
"onMouseDown", | ||
"onMouseUp", | ||
"onKeyPress", | ||
"onKeyDown", | ||
"onKeyUp", | ||
"onMouseOver", | ||
"onMouseOut" | ||
] | ||
} | ||
] | ||
"prettier/prettier": ["warn", { | ||
"singleQuote": true, | ||
"semi": true, | ||
"trailingComma": "none" | ||
}], | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] | ||
}, | ||
"env": { | ||
"amd": true, | ||
"browser": true, | ||
"jquery": true, | ||
"node": true, | ||
"es6": true, | ||
"worker": true | ||
}, | ||
"globals": { | ||
"document": true, | ||
"window": true, | ||
"$": true, | ||
"_": true | ||
}, | ||
"parser": "babel-eslint" | ||
"ignorePatterns": [ | ||
"js/index.js", | ||
"js/meeting.js", | ||
"js/tool.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const webpack = require('webpack'); | ||
const WebpackDevServer = require('webpack-dev-server'); | ||
const webpackConfig = require('./webpack.config.dev'); | ||
|
||
function runFunc(err) { | ||
if (err) { | ||
console.log(err); | ||
} | ||
console.log('Listening at http://127.0.0.1:9999/index.html'); | ||
} | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
open: 'chrome', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
// 'Cross-Origin-Embedder-Policy': 'unsafe-none', | ||
// 'Cross-Origin-Opener-Policy': 'unsafe-none', | ||
}, | ||
openPage: 'http://127.0.0.1:9999/index.html', | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
proxy: [{ | ||
path: '/meeting.html', | ||
target: 'http://127.0.0.1:9998/' | ||
}] | ||
}).listen(9999, '0.0.0.0', runFunc); | ||
|
||
new WebpackDevServer(webpack(webpackConfig), { | ||
publicPath: '/static', | ||
hot: true, | ||
host: '0.0.0.0', | ||
after(app, server) { | ||
}, | ||
headers: { | ||
'Cross-Origin-Embedder-Policy': 'require-corp', | ||
'Cross-Origin-Opener-Policy': 'same-origin', | ||
}, | ||
disableHostCheck: true, | ||
historyApiFallback: true, | ||
}).listen(9998, '0.0.0.0', runFunc); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.