Skip to content

Commit fd24b18

Browse files
Basgranildez
authored andcommitted
Add a new dashboard page.
1 parent 89150e1 commit fd24b18

File tree

133 files changed

+17301
-11110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+17301
-11110
lines changed

webui/.browserslistrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

webui/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

webui/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist

webui/.eslintrc.js

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,55 @@
11
module.exports = {
22
root: true,
3+
4+
parserOptions: {
5+
parser: 'babel-eslint',
6+
sourceType: 'module'
7+
},
8+
39
env: {
4-
node: true
10+
browser: true
511
},
6-
extends: ["plugin:vue/essential", "@vue/prettier"],
7-
rules: {
8-
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9-
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
12+
13+
extends: [
14+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
15+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
16+
'plugin:vue/essential',
17+
'@vue/standard'
18+
],
19+
20+
// required to lint *.vue files
21+
plugins: [
22+
'vue'
23+
],
24+
25+
globals: {
26+
'ga': true, // Google Analytics
27+
'cordova': true,
28+
'__statics': true,
29+
'process': true
1030
},
11-
parserOptions: {
12-
parser: "babel-eslint"
31+
32+
// add your custom rules here
33+
rules: {
34+
// allow async-await
35+
'generator-star-spacing': 'off',
36+
// allow paren-less arrow functions
37+
'arrow-parens': 'off',
38+
'one-var': 'off',
39+
40+
'import/first': 'off',
41+
'import/named': 'error',
42+
'import/namespace': 'error',
43+
'import/default': 'error',
44+
'import/export': 'error',
45+
'import/extensions': 'off',
46+
'import/no-unresolved': 'off',
47+
'import/no-extraneous-dependencies': 'off',
48+
'prefer-promise-reject-errors': 'off',
49+
50+
// allow console.log during development only
51+
//'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
52+
// allow debugger during development only
53+
//'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
1354
}
14-
};
55+
}

webui/.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
.quasar
12
.DS_Store
3+
.thumbs.db
24
node_modules
35
/dist
4-
5-
# local env files
6-
.env.local
7-
.env.*.local
6+
/dev_local
7+
/src-cordova/node_modules
8+
/src-cordova/platforms
9+
/src-cordova/plugins
10+
/src-cordova/www
811

912
# Log files
1013
npm-debug.log*
@@ -19,3 +22,7 @@ yarn-error.log*
1922
*.njsproj
2023
*.sln
2124
*.sw?
25+
26+
# local env files
27+
.env.local
28+
.env.*.local

webui/.postcssrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// https://github.com/michael-ciniawsky/postcss-load-config
2+
3+
module.exports = {
4+
plugins: [
5+
// to edit target browsers: use "browserslist" field in package.json
6+
require('autoprefixer')
7+
]
8+
}

webui/.stylintrc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"blocks": "never",
3+
"brackets": "never",
4+
"colons": "never",
5+
"colors": "always",
6+
"commaSpace": "always",
7+
"commentSpace": "always",
8+
"cssLiteral": "never",
9+
"depthLimit": false,
10+
"duplicates": true,
11+
"efficient": "always",
12+
"extendPref": false,
13+
"globalDupe": true,
14+
"indentPref": 2,
15+
"leadingZero": "never",
16+
"maxErrors": false,
17+
"maxWarnings": false,
18+
"mixed": false,
19+
"namingConvention": false,
20+
"namingConventionStrict": false,
21+
"none": "never",
22+
"noImportant": false,
23+
"parenSpace": "never",
24+
"placeholder": false,
25+
"prefixVarsWithDollar": "always",
26+
"quotePref": "single",
27+
"semicolons": "never",
28+
"sortOrder": false,
29+
"stackedProperties": "never",
30+
"trailingWhitespace": "never",
31+
"universal": "never",
32+
"valid": true,
33+
"zeroUnits": "never",
34+
"zIndexNormalize": false
35+
}

webui/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ ENV WEBUI_DIR /src/webui
44
RUN mkdir -p $WEBUI_DIR
55

66
COPY package.json $WEBUI_DIR/
7-
COPY yarn.lock $WEBUI_DIR/
7+
COPY package-lock.json $WEBUI_DIR/
88

99
WORKDIR $WEBUI_DIR
10-
RUN yarn install
10+
RUN npm install
1111

1212
COPY . $WEBUI_DIR/
1313

1414
EXPOSE 8080
1515

16-
RUN yarn lint
16+
RUN npm run lint

webui/babel.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module.exports = {
2-
presets: ["@vue/app"]
3-
};
2+
presets: [
3+
'@quasar/babel-preset-app'
4+
]
5+
}

webui/dev/scripts/transfer.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const fs = require('fs-extra')
2+
3+
const folder = process.argv[2]
4+
5+
async function execute () {
6+
try {
7+
await fs.emptyDir('../static')
8+
console.log('Deleted static folder contents!')
9+
await fs.copy(`./dist/${folder}`, '../static', { overwrite: true })
10+
console.log('Installed new files in static folder!')
11+
} catch (err) {
12+
console.error(err)
13+
}
14+
}
15+
16+
execute()

webui/jest.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)