├── .babelrc ├── .github └── workflows │ └── pushPullAction.yml ├── .gitignore ├── LICENSE ├── README.md ├── app ├── assets │ ├── app.css │ ├── app.main.js │ ├── app.vendors~main.js │ ├── app.vendors~main.js.LICENSE.txt │ └── neutralino.js ├── index.html ├── settings-browser.json ├── settings-cloud.json └── settings.json ├── configs ├── webpack.common.js ├── webpack.dev.js └── webpack.prod.js ├── neutralino.png ├── package-lock.json ├── package.json ├── src ├── App-core │ └── mainApp.js ├── App.css ├── App.js ├── App.test.js ├── Components │ ├── NeuDefault.js │ └── RamUsageExample .js ├── neu.css ├── serviceWorker.js └── setupTests.js └── storage └── .gitkeep /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/preset-env", "@babel/preset-react"], 3 | "plugins": [ 4 | [ 5 | "@babel/plugin-proposal-class-properties", 6 | { 7 | "loose": true 8 | } 9 | ] 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.github/workflows/pushPullAction.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: React-Neu on CI 5 | 6 | on: 7 | push: 8 | branches: [ master ] 9 | pull_request: 10 | branches: [ master ] 11 | 12 | jobs: 13 | build: 14 | 15 | strategy: 16 | matrix: 17 | node-version: [10.x, 12.x] 18 | os: [windows-latest,ubuntu-latest,macos-latest] 19 | 20 | runs-on: ${{matrix.os}} 21 | 22 | steps: 23 | - uses: actions/checkout@v2 24 | - name: Use Node.js ${{ matrix.node-version }} 25 | uses: actions/setup-node@v1 26 | with: 27 | node-version: ${{ matrix.node-version }} 28 | - run: npm install 29 | - run: npm run build --if-present 30 | env: 31 | CI: true 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | node_modules 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 99X Technology Incubator 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Notice 🔔 2 | 3 | Please use https://github.com/neutralinojs/neutralinojs-minimal instead of this template, if you are trying Neutralinojs v2. 4 | 5 | # neutralinojs-react 6 | 7 | ![](https://github.com/sachith-1/react-for-neu-cli/workflows/React-Neu%20on%20CI/badge.svg) 8 | 9 | React starter project for Neutralinojs 10 | 11 | ## Get started 12 | 13 | Install [neu-cli](https://neutralino.js.org/docs/#/tools/cli) 14 | 15 | ```bash 16 | $ npm i -g @neutralinojs/neu 17 | ``` 18 | 19 | Create Neutralino app with React template 20 | 21 | ```bash 22 | $ neu create myapp --template react 23 | $ cd myapp 24 | ``` 25 | 26 | Bundle source files 27 | 28 | ```bash 29 | $ neu build 30 | ``` 31 | 32 | Learn more about neu-cli from [docs](https://neutralino.js.org/docs/#/tools/cli) 33 | -------------------------------------------------------------------------------- /app/assets/app.css: -------------------------------------------------------------------------------- 1 | #neutralinoapp{text-align:center}#neutralinoapp h1{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:20px;color:#000}#neutralinoapp a{margin-left:12px}#neutralinoapp span{font-size:12px;font-weight:400} -------------------------------------------------------------------------------- /app/assets/app.main.js: -------------------------------------------------------------------------------- 1 | !function(a){function t(t){for(var e,n,r=t[0],o=t[1],c=t[2],u=0,i=[];u