Skip to content

Commit da2d3a7

Browse files
committed
Updated to modern vite/vue setup
1 parent e34bb45 commit da2d3a7

137 files changed

Lines changed: 7833 additions & 4933 deletions

File tree

Some content is hidden

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

client/.browserslistrc

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

client/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
2+
charset = utf-8
3+
indent_size = 4
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
end_of_line = lf
9+
max_line_length = 120

client/.eslintrc.js

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

client/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

client/.gitignore

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
5-
# local env files
6-
.env.local
7-
.env.*.local
8-
9-
# Log files
1+
# Logs
2+
logs
3+
*.log
104
npm-debug.log*
115
yarn-debug.log*
126
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
1319

1420
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
1523
.idea
16-
.vscode
1724
*.suo
1825
*.ntvs*
1926
*.njsproj
2027
*.sln
2128
*.sw?
29+
30+
*.tsbuildinfo

client/.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"singleQuote": false,
5+
"printWidth": 120
6+
}

client/.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig",
6+
"oxc.oxc-vscode",
7+
"esbenp.prettier-vscode"
8+
]
9+
}

client/.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

client/.vscode/settings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"explorer.fileNesting.enabled": true,
3+
"explorer.fileNesting.patterns": {
4+
"tsconfig.json": "tsconfig.*.json, env.d.ts",
5+
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6+
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .prettier*, prettier*, .editorconfig"
7+
},
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll": "explicit"
10+
},
11+
"editor.formatOnSave": true,
12+
"editor.defaultFormatter": "esbenp.prettier-vscode",
13+
"oxc.enable": true,
14+
"[vue]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"[typescript]": {
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
19+
}
20+
}
Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,29 @@
99
</template>
1010

1111
<script setup lang="ts">
12-
// library imports
13-
import { computed, ref } from 'vue';
14-
// components imports
15-
// props
16-
// emits
17-
// data
12+
// -- libraries --
13+
import { computed, ref } from "vue"
14+
// --- components ---
15+
// --- stores ---
16+
// --- api ---
17+
// --- types ---
18+
// --- props ---
19+
const { foo = "bar" } = defineProps<{
20+
foo?: string
21+
}>()
22+
// --- emits ---
23+
// --- data ---
1824
const visible = ref<boolean>(true)
19-
// computed
25+
// --- computed ---
2026
const isVisible = computed<boolean>(() => visible.value) // arrow function where possible
21-
// watch
22-
// lifecycle (in order of execution)
23-
// methods
27+
// --- watch ---
28+
// --- lifecycle (in order of execution) ---
29+
// --- methods ---
2430
</script>
2531

2632
<style scoped lang="scss">
2733
/**
28-
* Avoid html element as selectors and use classes instead.
34+
* Avoid html element as selectors and use classes instead.
2935
*/
3036
.btn {
3137
background-color: green;

0 commit comments

Comments
 (0)