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
1 change: 0 additions & 1 deletion .env

This file was deleted.

28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Old Project
*.pyc
RealTime/__pycache__/SerialHandler.cpython-36.pyc
*.env
Expand All @@ -13,3 +14,30 @@ secondProc.py
*.xml
.vscode/settings.json
settings.xml

# New Project
*.pyc
*.sh
setup.cfg
pywebview.egg-info
MANIFEST
build
dist
.cache
.idea
.vs
bin
obj
node_modules
dist
gui
.DS_Store
*venv*
*env*
.vscode
.pytest_cache
__pycache__
src/__pycache__
.eggs
yarn-error.log
yarn.lock
17 changes: 0 additions & 17 deletions .project

This file was deleted.

5 changes: 0 additions & 5 deletions .pydevproject

This file was deleted.

5 changes: 0 additions & 5 deletions GRIFFIN/.vscode/arduino.json

This file was deleted.

17 changes: 0 additions & 17 deletions GRIFFIN/.vscode/c_cpp_properties.json

This file was deleted.

8 changes: 0 additions & 8 deletions GRIFFIN/.vscode/settings.json

This file was deleted.

134 changes: 0 additions & 134 deletions GRIFFIN/serialdata/PRE-MERGE/FormatData.py

This file was deleted.

29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2020, Roman
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68 changes: 66 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,66 @@
# Formula-SAE
Progetto formula sae 2019/2020
# GUI

TODO !

Thanks to https://github.com/r0x0r/pywebview-react-boilerplate

## Requirements
- Python 3
- Node
- virtualenv

## Installation

``` bash
yarn run init
```

This will create a virtual environment, install pip and Node dependencies. Alternatively you can perform these steps manually.

``` bash
yarn install
pip install -r requirements.txt
```

On Linux systems installation system makes educated guesses. If you run KDE, QT dependencies are installed, otherwise GTK is chosen. `apt` is used for installing GTK dependencies. In case you are running a non apt-based system, you will have to install GTK dependencies manually. See [installation](https://pywebview.flowrl.com/guide/installation.html) for details.

## Usage

To launch the application.

``` bash
yarn run start
```

To build an executable. The output binary will be produced in the `dist` directory.

``` bash
yarn run build
```

To start a development server (only for testing frontend code).

``` bash
yarn run dev
```

To clean the developement environment, this will delete `gui`, `dist`, `build` directories.

``` bash
yarn run clean
```


To eject create-react-app and tweak the configuration as you may wish.

``` bash
yarn run eject
```

To test the frontend code if you have written tests.

``` bash
yarn run frontend:test
```


56 changes: 56 additions & 0 deletions build-linux.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- mode: python ; coding: utf-8 -*-
import json

def load_configs():
json_data = ''
with open('package.json', 'r') as f:
json_data = json.loads(f.read())

return json_data

block_cipher = None

added_files = [
('./gui', 'gui'),
]

configs = load_configs()

a = Analysis(
['./src/index.py'],
pathex=['./dist'],
binaries=[],
datas=added_files,
hiddenimports=['clr'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name=configs['name'],
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
Loading