Skip to content

Commit 0490639

Browse files
author
Andras Hejj
committed
first commit
0 parents  commit 0490639

Some content is hidden

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

43 files changed

+4951
-0
lines changed

.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

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/dist
2+
/src-capacitor
3+
/src-cordova
4+
/.quasar
5+
/node_modules
6+
.eslintrc.cjs
7+
/src-ssr
8+
/quasar.config.*.temporary.compiled*

.eslintrc.cjs

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
module.exports = {
2+
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
3+
// This option interrupts the configuration hierarchy at this file
4+
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
5+
root: true,
6+
7+
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
8+
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
9+
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
10+
parserOptions: {
11+
parser: require.resolve('@typescript-eslint/parser'),
12+
extraFileExtensions: [ '.vue' ]
13+
},
14+
15+
env: {
16+
browser: true,
17+
es2021: true,
18+
node: true,
19+
'vue/setup-compiler-macros': true
20+
},
21+
22+
// Rules order is important, please avoid shuffling them
23+
extends: [
24+
// Base ESLint recommended rules
25+
// 'eslint:recommended',
26+
27+
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
28+
// ESLint typescript rules
29+
'plugin:@typescript-eslint/recommended',
30+
31+
// Uncomment any of the lines below to choose desired strictness,
32+
// but leave only one uncommented!
33+
// See https://eslint.vuejs.org/rules/#available-rules
34+
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
35+
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
36+
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
37+
38+
// https://github.com/prettier/eslint-config-prettier#installation
39+
// usage with Prettier, provided by 'eslint-config-prettier'.
40+
'prettier'
41+
],
42+
43+
plugins: [
44+
// required to apply rules which need type information
45+
'@typescript-eslint',
46+
47+
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
48+
// required to lint *.vue files
49+
'vue'
50+
51+
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
52+
// Prettier has not been included as plugin to avoid performance impact
53+
// add it as an extension for your IDE
54+
55+
],
56+
57+
globals: {
58+
ga: 'readonly', // Google Analytics
59+
cordova: 'readonly',
60+
__statics: 'readonly',
61+
__QUASAR_SSR__: 'readonly',
62+
__QUASAR_SSR_SERVER__: 'readonly',
63+
__QUASAR_SSR_CLIENT__: 'readonly',
64+
__QUASAR_SSR_PWA__: 'readonly',
65+
process: 'readonly',
66+
Capacitor: 'readonly',
67+
chrome: 'readonly'
68+
},
69+
70+
// add your custom rules here
71+
rules: {
72+
73+
'prefer-promise-reject-errors': 'off',
74+
75+
quotes: ['warn', 'single', { avoidEscape: true }],
76+
77+
// this rule, if on, would require explicit return type on the `render` function
78+
'@typescript-eslint/explicit-function-return-type': 'off',
79+
80+
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
81+
'@typescript-eslint/no-var-requires': 'off',
82+
83+
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
84+
// does not work with type definitions
85+
'no-unused-vars': 'off',
86+
87+
// allow debugger during development only
88+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
89+
}
90+
}

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.DS_Store
2+
.thumbs.db
3+
node_modules
4+
5+
# Quasar core related directories
6+
.quasar
7+
/dist
8+
/quasar.config.*.temporary.compiled*
9+
10+
# Cordova related directories and files
11+
/src-cordova/node_modules
12+
/src-cordova/platforms
13+
/src-cordova/plugins
14+
/src-cordova/www
15+
16+
# Capacitor related directories and files
17+
/src-capacitor/www
18+
/src-capacitor/node_modules
19+
20+
# BEX related directories and files
21+
/src-bex/www
22+
/src-bex/js/core
23+
24+
# Log files
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
29+
# Editor directories and files
30+
.idea
31+
*.suo
32+
*.ntvs*
33+
*.njsproj
34+
*.sln
35+
36+
# local .env files
37+
.env.local*

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# pnpm-related options
2+
shamefully-hoist=true
3+
strict-peer-dependencies=false
4+
# to get the latest compatible packages when creating the project https://github.com/pnpm/pnpm/issues/6463
5+
resolution-mode=highest

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true
4+
}

.vscode/extensions.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"editorconfig.editorconfig",
6+
"vue.volar",
7+
"wayou.vscode-todo-highlight"
8+
],
9+
"unwantedRecommendations": [
10+
"octref.vetur",
11+
"hookyqr.beautify",
12+
"dbaeumer.jshint",
13+
"ms-vscode.vscode-typescript-tslint-plugin"
14+
]
15+
}

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.bracketPairColorization.enabled": true,
3+
"editor.guides.bracketPairs": true,
4+
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.codeActionsOnSave": [
7+
"source.fixAll.eslint"
8+
],
9+
"eslint.validate": [
10+
"javascript",
11+
"javascriptreact",
12+
"typescript",
13+
"vue"
14+
],
15+
"typescript.tsdk": "node_modules/typescript/lib"
16+
}

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Vue3 Challenge (vue3-challenge)
2+
3+
A Quasar Challenge
4+
5+
## Install the dependencies
6+
```bash
7+
yarn
8+
# or
9+
npm install
10+
```
11+
12+
### Start the app in development mode (hot-code reloading, error reporting, etc.)
13+
```bash
14+
quasar dev
15+
```
16+
17+
18+
### Lint the files
19+
```bash
20+
yarn lint
21+
# or
22+
npm run lint
23+
```
24+
25+
26+
### Format the files
27+
```bash
28+
yarn format
29+
# or
30+
npm run format
31+
```
32+
33+
34+
35+
### Build the app for production
36+
```bash
37+
quasar build
38+
```
39+
40+
### Customize the configuration
41+
See [Configuring quasar.config.js](https://v2.quasar.dev/quasar-cli-vite/quasar-config-js).

index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title><%= productName %></title>
5+
6+
<meta charset="utf-8">
7+
<meta name="description" content="<%= productDescription %>">
8+
<meta name="format-detection" content="telephone=no">
9+
<meta name="msapplication-tap-highlight" content="no">
10+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
11+
12+
<link rel="icon" type="image/png" sizes="128x128" href="icons/favicon-128x128.png">
13+
<link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png">
14+
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
15+
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
16+
<link rel="icon" type="image/ico" href="favicon.ico">
17+
</head>
18+
<body>
19+
<!-- quasar:entry-point -->
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)