Skip to content

Commit

Permalink
Merge pull request #3 from Qquanwei/superpower
Browse files Browse the repository at this point in the history
Superpower
  • Loading branch information
Qquanwei authored Dec 18, 2021
2 parents 628c8de + a1d5882 commit 32d9cf4
Show file tree
Hide file tree
Showing 45 changed files with 19,269 additions and 938 deletions.
9 changes: 8 additions & 1 deletion .erb/configs/webpack.config.renderer.dev.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,21 @@ export default merge(baseConfig, {
entry: [
'core-js',
'regenerator-runtime/runtime',
require.resolve('../../src/index.tsx'),
require.resolve('../../src/client/index.tsx'),
],

output: {
publicPath: `http://localhost:${port}/dist/`,
filename: 'renderer.dev.js',
},


resolve: {
alias: {
'shared': path.resolve(__dirname, '../../src/shared-electron')
}
},

module: {
rules: [
{
Expand Down
8 changes: 7 additions & 1 deletion .erb/configs/webpack.config.renderer.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default merge(baseConfig, {
entry: [
'core-js',
'regenerator-runtime/runtime',
path.join(__dirname, '../../src/index.tsx'),
path.join(__dirname, '../../src/client/index.tsx'),
],

output: {
Expand All @@ -39,6 +39,12 @@ export default merge(baseConfig, {
filename: 'renderer.prod.js',
},

resolve: {
alias: {
'shared': path.resolve(__dirname, '../../src/shared-electron')
}
},

module: {
rules: [
{
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module.exports = {
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'class-methods-use-this': 'off',
'import/extensions': 'off',
},
parserOptions: {
ecmaVersion: 2020,
Expand Down
50 changes: 50 additions & 0 deletions .projectile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
.eslintcache

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# OSX
.DS_Store

# App packaged
release
src/main.prod.js
src/main.prod.js.map
src/renderer.prod.js
src/renderer.prod.js.map
src/style.css
src/style.css.map
dist
dll
main.js
main.js.map

.idea
npm-debug.log.*
*.css.d.ts
*.sass.d.ts
*.scss.d.ts
55 changes: 12 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,30 @@
- base on https://electron-react-boilerplate.js.org
- 组件库 @material-ui/core

## 软件截图

![](/screenshots/two.jpeg?raw=true)
![](/screenshots/home.png?raw=true)
![](/screenshots/homepage.png?raw=true)
![](/screenshots/two.png?raw=true)
![](/screenshots/underthehood.png?raw=true)

## 下载

https://github.com/Qquanwei/electron-webtoon/releases

## Install

- **If you have installation or compilation issues with this project, please see [our debugging guide](https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/400)**

First, clone the repo via git and install dependencies:
## 开发

```bash
git clone --depth 1 --single-branch https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name
cd your-project-name
yarn
```

## Starting Development

Start the app in the `dev` environment:

```bash
yarn
yarn start
```

## Packaging for Production
## 打包

To package apps for the local platform:

```bash
yarn package
```
yarn run package
```

## Docs

See our [docs and guides here](https://electron-react-boilerplate.js.org/docs/installation)

## License
### 开发说明

MIT © [Electron React Boilerplate](https://github.com/electron-react-boilerplate)
- 本软件可分为两种模 1. Electron 客户端模式 2. 在线模式。 在线模式适合转移手机端使用。
- 在线模式时需要向 html 注入对应的配置信息,例如本机 IP,端口

[github-actions-status]: https://github.com/electron-react-boilerplate/electron-react-boilerplate/workflows/Test/badge.svg
[github-actions-url]: https://github.com/electron-react-boilerplate/electron-react-boilerplate/actions
[github-tag-image]: https://img.shields.io/github/tag/electron-react-boilerplate/electron-react-boilerplate.svg?label=version
[github-tag-url]: https://github.com/electron-react-boilerplate/electron-react-boilerplate/releases/latest
[stackoverflow-img]: https://img.shields.io/badge/stackoverflow-electron_react_boilerplate-blue.svg
[stackoverflow-url]: https://stackoverflow.com/questions/tagged/electron-react-boilerplate
[david-image]: https://img.shields.io/david/electron-react-boilerplate/electron-react-boilerplate.svg
[david-url]: https://david-dm.org/electron-react-boilerplate/electron-react-boilerplate
[david-dev-image]: https://img.shields.io/david/dev/electron-react-boilerplate/electron-react-boilerplate.svg?label=devDependencies
[david-dev-url]: https://david-dm.org/electron-react-boilerplate/electron-react-boilerplate?type=dev
[good-first-issue-image]: https://img.shields.io/github/issues/electron-react-boilerplate/electron-react-boilerplate/good%20first%20issue.svg?label=good%20first%20issues
[good-first-issue-url]: https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues?q=is%3Aopen+is%3Aissue+label%3A"good+first+issue"
- base on https://electron-react-boilerplate.js.org
- base on @material-ui/core
5 changes: 4 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ module.exports = (api) => {
return {
presets: [
// @babel/preset-env will automatically target our browserslist targets
require('@babel/preset-env'),
require('@babel/preset-env', {
useBuiltins: 'entry',
corejs: 3,
}),
require('@babel/preset-typescript'),
[require('@babel/preset-react'), { development }],
],
Expand Down
Loading

0 comments on commit 32d9cf4

Please sign in to comment.