Skip to content

Commit 2e52832

Browse files
authored
Merge branch 'master' into patch-1
2 parents 4d81a09 + 7912a32 commit 2e52832

Some content is hidden

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

84 files changed

+23803
-14790
lines changed

.eslintrc.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"plugin:@typescript-eslint/eslint-recommended"
1212
],
1313
"rules": {
14-
"prettier/prettier": "off",
14+
"prettier/prettier": "warn",
1515
"vue/require-default-prop": "off",
1616
"vue/prop-name-casing": "off",
1717
"vue/name-property-casing": "off",
@@ -20,7 +20,14 @@
2020
"@typescript-eslint/no-var-requires": ["off"],
2121
"@typescript-eslint/no-explicit-any": ["off"],
2222
"@typescript-eslint/no-use-before-define": "warn",
23-
"@typescript-eslint/no-this-alias": "warn",
23+
"@typescript-eslint/no-unused-vars": ["warn", {"argsIgnorePattern": "^_"}],
24+
"@typescript-eslint/no-this-alias": [
25+
"warn",
26+
{
27+
"allowDestructuring": true,
28+
"allowedNames": ["that"]
29+
}
30+
],
2431
"prefer-rest-params": "warn",
2532
"no-shadow": [
2633
"warn",

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Install
24+
run: npm ci
25+
- name: Run linting
26+
run: make lint

.github/workflows/nodejs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [12.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: 'recursive'
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- name: Install
29+
run: npm ci
30+
- name: Build
31+
run: npm run build
32+
- name: Run tests
33+
run: npm test
34+
- name: Serve webui
35+
run: npm run serve &
36+
- name: Run e2e tests with testcafe
37+
uses: DevExpress/testcafe-action@latest
38+
with:
39+
args: "chrome test/e2e/"
40+
- name: Upload screenshots
41+
uses: actions/upload-artifact@v2-preview
42+
with:
43+
name: screenshots
44+
path: screenshots/*
45+
46+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ test/unit/coverage
77
test/e2e/reports
88
*.swp
99
__pycache__
10+
screenshots

.gitmodules

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

.prettierrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ singleQuote: true
22
trailingComma: 'es5'
33
tabWidth: 2
44
printWidth: 100
5+
arrowParens: "avoid"
6+
endOfLine: "lf"

.travis.yml

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

Makefile

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
1-
.PHONY: install build dev test clean aw-client-js
1+
.PHONY: install build dev test clean
22

33
.FORCE: ;
44

5+
# This is to disable check for new release in aw-webui for aw-android
6+
ifdef ON_ANDROID
7+
# The following flag will pass --android as a command line argument to vue-cli-service
8+
# https://docs.npmjs.com/cli/run-script
9+
androidflag := -- --os=android
10+
else
11+
androidflag :=
12+
endif
13+
514
build: install
6-
npm run build
15+
npm run build ${androidflag}
716

8-
install: aw-client-js
9-
npm install
17+
install:
18+
npm ci
1019

1120
uninstall:
1221
rm -r node_modules/
1322

1423
dev:
15-
npm run serve
24+
npm run serve ${androidflag}
1625

1726
test:
1827
npm test
1928

29+
test-e2e:
30+
testcafe firefox test/e2e/
31+
2032
clean:
2133
rm -rf node_modules dist
2234

2335
lint:
24-
npx eslint --ext=js,vue src/
36+
npx eslint --ext=js,ts,vue --max-warnings=0 src/ test/
2537

26-
aw-client-js:
27-
make --directory=aw-client-js build
38+
lint-fix:
39+
npx eslint --ext=js,ts,vue --fix src/ test/

aw-client-js

Lines changed: 0 additions & 1 deletion
This file was deleted.

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
// TODO: We should try to switch to the @vue/app preset, but right now it breaks everything
33
//presets: ['@vue/app'],
4+
presets: ['@vue/cli-plugin-babel/preset'],
45
plugins: ['lodash', '@babel/plugin-syntax-dynamic-import'],
56
comments: false,
67
};

0 commit comments

Comments
 (0)