Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update + added tachymeter #288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 0 additions & 4 deletions donkeycarManagerFront/.browserslistrc

This file was deleted.

5 changes: 0 additions & 5 deletions donkeycarManagerFront/.editorconfig

This file was deleted.

14 changes: 14 additions & 0 deletions donkeycarManagerFront/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
20 changes: 0 additions & 20 deletions donkeycarManagerFront/.eslintrc.js

This file was deleted.

27 changes: 16 additions & 11 deletions donkeycarManagerFront/.gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
8 changes: 8 additions & 0 deletions donkeycarManagerFront/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
97 changes: 20 additions & 77 deletions donkeycarManagerFront/README.md
Original file line number Diff line number Diff line change
@@ -1,92 +1,35 @@
# donkeycar manager frontend
# .

The donkeycar manager allow to an admin to manage cars and players (jobs) when they race
> A Vue.js project
This template should help get you started developing with Vue 3 in Vite.

## Frontend views :
## Recommended IDE Setup

The donkeycar manager is composed of multiples parts :
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

### Register
## Customize configuration

- add jobs in waiting list
See [Vite Configuration Reference](https://vitejs.dev/config/).

### Car view
- see current laps time and those before
- display cars who running, their color and their job (player) affected
- display waiting list
## Project Setup

### admin dashboard :
- see players (jobs) in waiting list
- manage jobs in the waiting list (remove, upgrade his rank, downgrade)
- differents cars with their current job, status
- total player who subscribe in register login

## Build Setup

``` bash
# install dependencies
```sh
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

## Views

client login :
`http://localhost:8080/#/`

waiting board :
`http://localhost:8080/#/waitingBoard`
### Compile and Hot-Reload for Development

admin dashboard :
`http://localhost:8080/#/dashboard`

## Others docs:
- [Websocket documentation](doc/donkeycarManager/events.md)
- [manager features documentation](doc/donkeycarManager/manager-features.md)
- [data structure diagram](../doc/donkeycarManager/DataStructure.png)

## Controller icons for the screen\_msg of jobs

The icons are parsed from the message, any `[<name>]` will become an icon

Available icons are:
- Circle
- Cross
- Diagram
- Diagram\_Simple
- Dpad\_Down
- Dpad\_Left
- Dpad
- Dpad\_Right
- Dpad\_Up
- L1
- L2
- Left\_Stick\_Click
- Left\_Stick
- Options
- R1
- R2
- Right\_Stick\_Click
- Right\_Stick
- Share
- Square
- Touch\_Pad
- Triangle
```sh
npm run dev
```

### Compile and Minify for Production

## 📷 Screenshot :
```sh
npm run build
```

***
<br>
### Lint with [ESLint](https://eslint.org/)

![carView](../doc/assets/carView.jpg)
```sh
npm run lint
```
5 changes: 0 additions & 5 deletions donkeycarManagerFront/babel.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions donkeycarManagerFront/index.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" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
19 changes: 0 additions & 19 deletions donkeycarManagerFront/jsconfig.json

This file was deleted.

Loading