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

✨ Add donkeycar manager front #109

Merged
merged 50 commits into from
Jul 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
689e9cc
✨ Add donkeycar manager front
yannis-mlgrn Jun 2, 2022
54f8ae3
Merge remote-tracking branch 'upstream/main' into 73-Create_donkeycar…
yannis-mlgrn Jun 2, 2022
1fc1bec
⚡ Improve register , dashboard and waiting board P
yannis-mlgrn Jun 5, 2022
e9fb029
Merge branch 'main' into 73-Create_donkeycar_manager_front
yannis-mlgrn Jun 5, 2022
cc90c8c
🐛 Put car player to null if this car is in maintenance
yannis-mlgrn Jun 5, 2022
e704ba6
✨ Add Race view page
yannis-mlgrn Jun 6, 2022
c438893
➕ Add flip-countdown countdown
yannis-mlgrn Jun 6, 2022
f0fe6d2
🚸 Improve user experience and fixe some bugs
yannis-mlgrn Jun 6, 2022
75596c4
⚡ Added websocket in race view
yannis-mlgrn Jun 6, 2022
68b7de0
modif in raceView
yannis-mlgrn Jun 11, 2022
160aa42
🐛 missing eslint config
yannis-mlgrn Jun 18, 2022
b7e3cce
💥 idk if it's right
yannis-mlgrn Jun 18, 2022
e33c5be
Merge remote-tracking branch 'upstream/main' into 73-Create_donkeycar…
yannis-mlgrn Jun 19, 2022
58f2da0
♻ dashboard jobs ( move before , move after )
yannis-mlgrn Jun 19, 2022
6ff4c09
♻ Remove a user with button
yannis-mlgrn Jun 19, 2022
e475ed1
✨ Jobs parameters dashboard
yannis-mlgrn Jun 19, 2022
84112ab
♻ Finish jobs and worker refracto ( waiting list and cars table )
yannis-mlgrn Jun 19, 2022
80dcd54
Merge branch 'main' into 73-Create_donkeycar_manager_front
yannis-mlgrn Jun 19, 2022
2efc815
🐛 Fix service typos
yannis-mlgrn Jun 19, 2022
7460a63
Merge remote-tracking branch 'upstream/main' into 73-Create_donkeycar…
yannis-mlgrn Jun 19, 2022
4332e4e
Merge remote-tracking branch 'origin/73-Create_donkeycar_manager_fron…
yannis-mlgrn Jun 19, 2022
0afe2cf
🎨 Improve dashboard text
yannis-mlgrn Jun 19, 2022
093105b
💄 Add a update raimbow progress bar
yannis-mlgrn Jun 20, 2022
7e80e31
Fix height progress bar
yannis-mlgrn Jun 20, 2022
54cfb55
🚧 Add client view, missing take charge of timestamp
yannis-mlgrn Jun 20, 2022
e63fcde
🐛 Fix timestamp bug
yannis-mlgrn Jun 20, 2022
fbc9f3e
⚡ organisation of space
yannis-mlgrn Jun 21, 2022
450c0eb
✨ Add camera preview on client view
yannis-mlgrn Jun 21, 2022
cbdadf5
💄 Improve client css
yannis-mlgrn Jun 21, 2022
e5c0781
⚡ Add best score display
yannis-mlgrn Jun 21, 2022
926fcfb
organization
yannis-mlgrn Jun 21, 2022
415c3df
Merge remote-tracking branch 'upstream/main' into 73-Create_donkeycar…
yannis-mlgrn Jun 21, 2022
1ebd0ea
📌 Add vue progress bar component
yannis-mlgrn Jun 22, 2022
4400ab9
✨ Currently update the time ago in waiting list
yannis-mlgrn Jun 22, 2022
489c067
✏ Fix waiting board typos
yannis-mlgrn Jun 22, 2022
ceb6db9
✨ Add arrow to move jobs in waiting list
yannis-mlgrn Jun 22, 2022
5ee2e20
♻ fix web socket typos on waiting board
yannis-mlgrn Jun 22, 2022
368334b
🔥 Remove expand option on waiting list dashboard because it is veryy …
yannis-mlgrn Jun 22, 2022
44a6769
💄 Update register form
yannis-mlgrn Jun 22, 2022
17e4889
🐛 Fix waiting time error in register
yannis-mlgrn Jun 22, 2022
3f18ba1
🐛 Fix undefined and improve client view if doesn't have cars
yannis-mlgrn Jun 22, 2022
c467f68
several improvments
yannis-mlgrn Jun 23, 2022
ad13f82
⚡ improve client view design
yannis-mlgrn Jun 23, 2022
915d3f5
Merge remote-tracking branch 'upstream/main' into 73-Create_donkeycar…
yannis-mlgrn Jun 23, 2022
932f4f9
:bug: Lots of bug fixes
Benvii Jun 25, 2022
f5cf7ff
💥 Be careful maybe breaking changes
yannis-mlgrn Jun 27, 2022
727b41e
refract clientview
viandoxdev Jun 28, 2022
e50406c
fixes things
viandoxdev Jun 29, 2022
1c37d20
Fix race not properly beign updated
viandoxdev Jun 29, 2022
9b7ef39
animations mostly
viandoxdev Jul 1, 2022
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
135 changes: 134 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,137 @@
venv
.venv

packer/output-raspbian
packer/output-raspbian

package-lock.json

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

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

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

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

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

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
9 changes: 9 additions & 0 deletions donkeycarManagerFront/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions donkeycarManagerFront/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build/
/config/
/dist/
/*.js
29 changes: 29 additions & 0 deletions donkeycarManagerFront/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}
14 changes: 14 additions & 0 deletions donkeycarManagerFront/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
59 changes: 59 additions & 0 deletions donkeycarManagerFront/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# listwaiting

> A Vue.js project

## Build Setup

``` bash
# install dependencies
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`

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

## 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
41 changes: 41 additions & 0 deletions donkeycarManagerFront/build/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict'
require('./check-versions')()

process.env.NODE_ENV = 'production'

const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')

const spinner = ora('building for production...')
spinner.start()

rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')

if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}

console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
})
})
54 changes: 54 additions & 0 deletions donkeycarManagerFront/build/check-versions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')

function exec (cmd) {
return require('child_process').execSync(cmd).toString().trim()
}

const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
}
]

if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
})
}

module.exports = function () {
const warnings = []

for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]

if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(mod.name + ': ' +
chalk.red(mod.currentVersion) + ' should be ' +
chalk.green(mod.versionRequirement)
)
}
}

if (warnings.length) {
console.log('')
console.log(chalk.yellow('To use this template, you must update following to modules:'))
console.log()

for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}

console.log()
process.exit(1)
}
}
Binary file added donkeycarManagerFront/build/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading