Skip to content

Commit

Permalink
2.0.1 (#137)
Browse files Browse the repository at this point in the history
# 2.0.1

Predisposizione allo sviluppo della nuova interfaccia React, sistemati bug e aggiunte nuove funzionalità.

## BUG
FIXED #136
FIXED #133
FIXED #131
FIXED #128
FIXED #122

## ENHANCEMENT
ADDED #121 
ADDED #113

## PULL
MERGED #132 [Thanks to @devaleriofrancesco]
MERGED #135 [Thanks to @devaleriofrancesco]
  • Loading branch information
MainKronos authored Feb 9, 2024
1 parent 3dd1c37 commit e273ac5
Show file tree
Hide file tree
Showing 100 changed files with 6,615 additions and 57 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
*.pyc
*.log
*.log
node_modules
13 changes: 13 additions & 0 deletions DEV.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Breve documentazione per costruire l'interfaccia:

1. Avviare il backend:
```sh
cd src
python3 ./dev_api.py
```

2. Avviare l'interfaccia:
```sh
cd frontend
npm run dev
```
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN pip3 install --no-cache-dir --upgrade pip

RUN pip3 install config --upgrade --no-cache-dir

COPY requirements.txt /tmp/
COPY src/requirements.txt /tmp/

RUN pip3 install --no-cache-dir -r /tmp/requirements.txt

Expand Down
18 changes: 18 additions & 0 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
27 changes: 27 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
16 changes: 16 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="it" style="color-scheme: dark;">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<meta charset="UTF-8">
<meta name="description" content="Home">
<meta name="author" content="MainKronos">
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<title>Home</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/pages/home/main.tsx"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions frontend/log.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Log</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/pages/log/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit e273ac5

Please sign in to comment.