Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
440913af9c | ||
|
|
66d01afe6e | ||
|
|
ad4a399dc8 | ||
|
|
2137bf7702 | ||
|
|
47bdf7b505 | ||
|
|
669bffa955 | ||
|
|
05c5381a06 | ||
|
|
e623e3ad1a | ||
|
|
c43a2f639a | ||
|
|
d314ed4a16 |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Don't track .vscode directory
|
||||||
|
.vscode
|
||||||
|
!.vscode/launch.json
|
||||||
|
|
||||||
15
README.md
15
README.md
@@ -116,6 +116,21 @@ services:
|
|||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Install on Kubernetes
|
||||||
|
|
||||||
|
You can install Hammond on Kubernetes by using Helm. The
|
||||||
|
[Helm chart for Hammond](https://github.com/djjudas21/charts/tree/main/charts/hammond)
|
||||||
|
is maintained by djjudas21.
|
||||||
|
|
||||||
|
Check out the default [`values.yaml`](https://github.com/djjudas21/charts/blob/main/charts/hammond/values.yaml)
|
||||||
|
to see what you can override.
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm repo add djjudas21 https://djjudas21.github.io/charts/
|
||||||
|
helm repo update djjudas21
|
||||||
|
helm install djjudas21/hammond
|
||||||
|
```
|
||||||
|
|
||||||
### Build from Source / Ubuntu Installation
|
### Build from Source / Ubuntu Installation
|
||||||
|
|
||||||
Although personally I feel that using the docker container is the best way of using
|
Although personally I feel that using the docker container is the best way of using
|
||||||
|
|||||||
3
server/.gitignore
vendored
3
server/.gitignore
vendored
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
# MS VSCode
|
# MS VSCode
|
||||||
.vscode
|
.vscode
|
||||||
|
!.vscode/launch.json
|
||||||
__debug_bin
|
__debug_bin
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Dependency directories (remove the comment below to include it)
|
||||||
@@ -22,4 +23,4 @@ assets/*
|
|||||||
keys/*
|
keys/*
|
||||||
backups/*
|
backups/*
|
||||||
nodemon.json
|
nodemon.json
|
||||||
dist/*
|
dist/*
|
||||||
|
|||||||
5
ui/.gitignore
vendored
5
ui/.gitignore
vendored
@@ -29,3 +29,8 @@ yarn-error.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw*
|
*.sw*
|
||||||
|
|
||||||
|
#Vs code files
|
||||||
|
.vscode
|
||||||
|
!.vscode/launch.json
|
||||||
|
|
||||||
|
|||||||
30
ui/.vscode/_components.code-snippets
vendored
30
ui/.vscode/_components.code-snippets
vendored
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"BaseButton": {
|
|
||||||
"scope": "vue-html",
|
|
||||||
"prefix": "BaseButton",
|
|
||||||
"body": ["<BaseButton>", "\t${3}", "</BaseButton>"],
|
|
||||||
"description": "<BaseButton>"
|
|
||||||
},
|
|
||||||
"BaseIcon": {
|
|
||||||
"scope": "vue-html",
|
|
||||||
"prefix": "BaseIcon",
|
|
||||||
"body": ["<BaseIcon name=\"${1}\">", "\t${2}", "</BaseIcon>"],
|
|
||||||
"description": "<BaseIcon>"
|
|
||||||
},
|
|
||||||
"BaseInputText": {
|
|
||||||
"scope": "vue-html",
|
|
||||||
"prefix": "BaseInputText",
|
|
||||||
"body": ["<BaseInputText ${1}/>"],
|
|
||||||
"description": "<BaseInputText>"
|
|
||||||
},
|
|
||||||
"BaseLink": {
|
|
||||||
"scope": "vue-html",
|
|
||||||
"prefix": "BaseLink",
|
|
||||||
"body": [
|
|
||||||
"<BaseLink ${1|name,:to,href|}=\"${2:route}\">",
|
|
||||||
"\t${3}",
|
|
||||||
"</BaseLink>"
|
|
||||||
],
|
|
||||||
"description": "<BaseLink>"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
26
ui/.vscode/_sfc-blocks.code-snippets
vendored
26
ui/.vscode/_sfc-blocks.code-snippets
vendored
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"script": {
|
|
||||||
"scope": "vue",
|
|
||||||
"prefix": "script",
|
|
||||||
"body": ["<script>", "export default {", "\t${0}", "}", "</script>"],
|
|
||||||
"description": "<script>"
|
|
||||||
},
|
|
||||||
"template": {
|
|
||||||
"scope": "vue",
|
|
||||||
"prefix": "template",
|
|
||||||
"body": ["<template>", "\t${0}", "</template>"],
|
|
||||||
"description": "<template>"
|
|
||||||
},
|
|
||||||
"style": {
|
|
||||||
"scope": "vue",
|
|
||||||
"prefix": "style",
|
|
||||||
"body": [
|
|
||||||
"<style lang=\"scss\" module>",
|
|
||||||
"@import '@design';",
|
|
||||||
"",
|
|
||||||
"${0}",
|
|
||||||
"</style>"
|
|
||||||
],
|
|
||||||
"description": "<style lang=\"scss\" module>"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
37
ui/.vscode/extensions.json
vendored
37
ui/.vscode/extensions.json
vendored
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
|
||||||
// for the documentation about the extensions.json format
|
|
||||||
"recommendations": [
|
|
||||||
// Syntax highlighting and more for .vue files
|
|
||||||
// https://github.com/vuejs/vetur
|
|
||||||
"octref.vetur",
|
|
||||||
|
|
||||||
// Peek and go-to-definition for .vue files
|
|
||||||
// https://github.com/fuzinato/vscode-vue-peek
|
|
||||||
"dariofuzinato.vue-peek",
|
|
||||||
|
|
||||||
// Lint-on-save with ESLint
|
|
||||||
// https://github.com/microsoft/vscode-eslint
|
|
||||||
"dbaeumer.vscode-eslint",
|
|
||||||
|
|
||||||
// Lint-on-save with Stylelint
|
|
||||||
// https://github.com/stylelint/vscode-stylelint
|
|
||||||
"stylelint.vscode-stylelint",
|
|
||||||
|
|
||||||
// Lint-on-save markdown in README files
|
|
||||||
// https://github.com/DavidAnson/vscode-markdownlint
|
|
||||||
"DavidAnson.vscode-markdownlint",
|
|
||||||
|
|
||||||
// Format-on-save with Prettier
|
|
||||||
// https://github.com/prettier/prettier-vscode
|
|
||||||
"esbenp.prettier-vscode",
|
|
||||||
|
|
||||||
// SCSS intellisense
|
|
||||||
// https://github.com/mrmlnc/vscode-scss
|
|
||||||
"mrmlnc.vscode-scss",
|
|
||||||
|
|
||||||
// Test `.unit.js` files on save with Jest
|
|
||||||
// https://github.com/jest-community/vscode-jest
|
|
||||||
"Orta.vscode-jest"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
93
ui/.vscode/settings.json
vendored
93
ui/.vscode/settings.json
vendored
@@ -1,93 +0,0 @@
|
|||||||
{
|
|
||||||
// ===
|
|
||||||
// Spacing
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"editor.insertSpaces": true,
|
|
||||||
"editor.tabSize": 2,
|
|
||||||
"editor.trimAutoWhitespace": true,
|
|
||||||
"files.trimTrailingWhitespace": true,
|
|
||||||
"files.eol": "\n",
|
|
||||||
"files.insertFinalNewline": true,
|
|
||||||
"files.trimFinalNewlines": true,
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// Files
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"files.exclude": {
|
|
||||||
"**/*.log": true,
|
|
||||||
"**/*.log*": true,
|
|
||||||
"**/dist": true,
|
|
||||||
"**/coverage": true
|
|
||||||
},
|
|
||||||
"files.associations": {
|
|
||||||
".markdownlintrc": "jsonc"
|
|
||||||
},
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// Event Triggers
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll.eslint": true,
|
|
||||||
"source.fixAll.stylelint": true,
|
|
||||||
"source.fixAll.markdownlint": true
|
|
||||||
},
|
|
||||||
"eslint.validate": [
|
|
||||||
"javascript",
|
|
||||||
"javascriptreact",
|
|
||||||
"vue",
|
|
||||||
"vue-html",
|
|
||||||
"html"
|
|
||||||
],
|
|
||||||
"vetur.format.enable": false,
|
|
||||||
"vetur.completion.scaffoldSnippetSources": {
|
|
||||||
"user": "🗒️",
|
|
||||||
"workspace": "💼",
|
|
||||||
"vetur": ""
|
|
||||||
},
|
|
||||||
"prettier.disableLanguages": [],
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// HTML
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"html.format.enable": false,
|
|
||||||
"vetur.validation.template": false,
|
|
||||||
"emmet.triggerExpansionOnTab": true,
|
|
||||||
"emmet.includeLanguages": {
|
|
||||||
"vue-html": "html"
|
|
||||||
},
|
|
||||||
"vetur.completion.tagCasing": "initial",
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// JS(ON)
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"jest.autoEnable": false,
|
|
||||||
"jest.enableCodeLens": false,
|
|
||||||
"javascript.format.enable": false,
|
|
||||||
"json.format.enable": false,
|
|
||||||
"vetur.validation.script": false,
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// CSS
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"stylelint.enable": true,
|
|
||||||
"css.validate": false,
|
|
||||||
"scss.validate": false,
|
|
||||||
"vetur.validation.style": false,
|
|
||||||
|
|
||||||
// ===
|
|
||||||
// MARKDOWN
|
|
||||||
// ===
|
|
||||||
|
|
||||||
"[markdown]": {
|
|
||||||
"editor.wordWrap": "wordWrapColumn",
|
|
||||||
"editor.wordWrapColumn": 80
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -140,7 +140,7 @@ export default {
|
|||||||
<b-field :label="this.$t('registration') + `*`">
|
<b-field :label="this.$t('registration') + `*`">
|
||||||
<b-input v-model="vehicleModel.registration" type="text" expanded required></b-input>
|
<b-input v-model="vehicleModel.registration" type="text" expanded required></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field label="VIN">
|
<b-field label="VIN">
|
||||||
<b-input v-model="vehicleModel.vin" type="text" expanded></b-input>
|
<b-input v-model="vehicleModel.vin" type="text" expanded></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field :label="this.$t('fueltype') + `*`">
|
<b-field :label="this.$t('fueltype') + `*`">
|
||||||
@@ -168,13 +168,21 @@ export default {
|
|||||||
<b-field :label="this.$t('yearmanufacture') + `*`">
|
<b-field :label="this.$t('yearmanufacture') + `*`">
|
||||||
<b-input v-model.number="vehicleModel.yearOfManufacture" type="number" expanded number></b-input>
|
<b-input v-model.number="vehicleModel.yearOfManufacture" type="number" expanded number></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field :label="this.$t('yearmanufacture')">
|
<b-field :label="this.$t('enginesize')">
|
||||||
<b-input v-model.number="vehicleModel.engineSize" type="number" expanded number></b-input>
|
<b-input v-model.number="vehicleModel.engineSize" type="number" expanded number></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-button tag="input" native-type="submit" :disabled="tryingToCreate" type="is-primary" :value="this.$t('save')" :label="this.$t('createvehicle')" expanded>
|
<b-button
|
||||||
|
tag="input"
|
||||||
|
native-type="submit"
|
||||||
|
:disabled="tryingToCreate"
|
||||||
|
type="is-primary"
|
||||||
|
:value="this.$t('save')"
|
||||||
|
:label="this.$t('createvehicle')"
|
||||||
|
expanded
|
||||||
|
>
|
||||||
<BaseIcon v-if="tryingToCreate" name="sync" spin />
|
<BaseIcon v-if="tryingToCreate" name="sync" spin />
|
||||||
</b-button>
|
</b-button>
|
||||||
<p v-if="authError">
|
<p v-if="authError">
|
||||||
|
|||||||
Reference in New Issue
Block a user