Skip to content

Commit 55899cb

Browse files
authored
Migration to vue3 + vuetify (#118)
1 parent 4796982 commit 55899cb

Some content is hidden

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

83 files changed

+6250
-42885
lines changed

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
> 1%
22
last 2 versions
33
not dead
4+
not ie 11

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.eslintrc.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true
5-
},
6-
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
7-
parserOptions: {
8-
parser: "babel-eslint"
4+
node: true,
95
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
],
1011
rules: {
11-
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
12-
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
12+
'vue/multi-word-component-names': 'off',
1313
},
14-
overrides: [
15-
{
16-
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
17-
env: {
18-
jest: true
19-
}
20-
}
21-
]
22-
};
14+
}

.github/workflows/docker-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Docker images
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
push_to_registries:
7+
name: Build Docker images
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out the repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v3
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
18+
- name: Build Docker images
19+
uses: docker/build-push-action@v5
20+
with:
21+
context: .
22+
file: ./docker/prod/Dockerfile
23+
platforms: linux/amd64,linux/arm64
24+
push: false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ node_modules
1010
npm-debug.log*
1111
yarn-debug.log*
1212
yarn-error.log*
13+
pnpm-debug.log*
1314

1415
# Editor directories and files
1516
.idea
17+
.vscode
1618
*.suo
1719
*.ntvs*
1820
*.njsproj

.prettierrc

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

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "none",
4+
"arrowParens": "avoid"
5+
}

README.md

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,69 @@
1-
# frontend
1+
# essentials
22

33
## Project setup
4+
45
```
6+
# yarn
7+
yarn
8+
9+
# npm
510
npm install
11+
12+
# pnpm
13+
pnpm install
14+
15+
# bun
16+
bun install
617
```
718

819
### Compiles and hot-reloads for development
20+
921
```
10-
npm run serve
22+
# yarn
23+
yarn dev
24+
25+
# npm
26+
npm run dev
27+
28+
# pnpm
29+
pnpm dev
30+
31+
# bun
32+
bun run dev
1133
```
1234

1335
### Compiles and minifies for production
36+
1437
```
38+
# yarn
39+
yarn build
40+
41+
# npm
1542
npm run build
16-
```
1743
18-
### Run your unit tests
19-
```
20-
npm run test:unit
44+
# pnpm
45+
pnpm build
46+
47+
# bun
48+
bun run build
2149
```
2250

2351
### Lints and fixes files
52+
2453
```
54+
# yarn
55+
yarn lint
56+
57+
# npm
2558
npm run lint
59+
60+
# pnpm
61+
pnpm lint
62+
63+
# bun
64+
bun run lint
2665
```
2766

2867
### Customize configuration
29-
See [Configuration Reference](https://cli.vuejs.org/config/).
68+
69+
See [Configuration Reference](https://vitejs.dev/config/).

babel.config.js

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

docker/docker-entrypoint.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ if [[ "$1" =~ "dev" ]]; then
88
npm install
99
touch .node_installed
1010
fi
11-
if [[ ! -z "${VUE_API_BACKEND}" ]]; then
12-
# this is the busybox version of sed
13-
sed -i s/localhost/${VUE_API_BACKEND}/ vue.config.js
14-
fi
15-
npm run serve
11+
npm run dev
1612
fi
1713

1814
if [[ "$1" =~ "shell" ]]; then

0 commit comments

Comments
 (0)