Skip to content

Commit da6c352

Browse files
committed
the first commit
0 parents  commit da6c352

Some content is hidden

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

57 files changed

+17230
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist

.eslintrc.js

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
const { resolve } = require('path');
2+
module.exports = {
3+
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
4+
// This option interrupts the configuration hierarchy at this file
5+
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
6+
root: true,
7+
8+
// https://eslint.vuejs.org/user-guide/#how-to-use-custom-parser
9+
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
10+
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
11+
parserOptions: {
12+
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
13+
// https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#eslint
14+
// Needed to make the parser take into account 'vue' files
15+
extraFileExtensions: ['.vue'],
16+
parser: '@typescript-eslint/parser',
17+
project: resolve(__dirname, './tsconfig.json'),
18+
tsconfigRootDir: __dirname,
19+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
20+
sourceType: 'module' // Allows for the use of imports
21+
},
22+
23+
env: {
24+
browser: true
25+
},
26+
27+
// Rules order is important, please avoid shuffling them
28+
extends: [
29+
// Base ESLint recommended rules
30+
// 'eslint:recommended',
31+
32+
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
33+
// ESLint typescript rules
34+
'plugin:@typescript-eslint/eslint-recommended',
35+
'plugin:@typescript-eslint/recommended',
36+
// consider disabling this class of rules if linting takes too long
37+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
38+
39+
// Uncomment any of the lines below to choose desired strictness,
40+
// but leave only one uncommented!
41+
// See https://eslint.vuejs.org/rules/#available-rules
42+
'plugin:vue/essential', // Priority A: Essential (Error Prevention)
43+
// 'plugin:vue/strongly-recommended' // Priority B: Strongly Recommended (Improving Readability)
44+
// 'plugin:vue/recommended' // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
45+
46+
'standard'
47+
48+
],
49+
50+
plugins: [
51+
// required to apply rules which need type information
52+
'@typescript-eslint',
53+
54+
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-file
55+
// required to lint *.vue files
56+
'vue',
57+
58+
],
59+
60+
globals: {
61+
'ga': true, // Google Analytics
62+
'cordova': true,
63+
'__statics': true,
64+
'process': true,
65+
'Capacitor': true,
66+
'chrome': true
67+
},
68+
69+
// add your custom rules here
70+
rules: {
71+
// allow async-await
72+
'generator-star-spacing': 'off',
73+
// allow paren-less arrow functions
74+
'arrow-parens': 'off',
75+
'one-var': 'off',
76+
77+
'import/first': 'off',
78+
'import/named': 'error',
79+
'import/namespace': 'error',
80+
'import/default': 'error',
81+
'import/export': 'error',
82+
'import/extensions': 'off',
83+
'import/no-unresolved': 'off',
84+
'import/no-extraneous-dependencies': 'off',
85+
'prefer-promise-reject-errors': 'off',
86+
87+
// TypeScript
88+
'quotes': ['warn', 'single'],
89+
'@typescript-eslint/explicit-function-return-type': 'off',
90+
91+
// allow debugger during development only
92+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
93+
}
94+
}

.gitignore

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

.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+
}

.vscode/extensions.json

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

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"vetur.validation.template": false,
3+
4+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
5+
"typescript.tsdk": "node_modules/typescript/lib",
6+
"vetur.experimental.templateInterpolationService": true
7+
}

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Sync (sync2)
2+
3+
VeChain Sync
4+
5+
## Install the dependencies
6+
```bash
7+
npm install
8+
```
9+
10+
### Start the app in development mode (hot-code reloading, error reporting, etc.)
11+
```bash
12+
quasar dev
13+
```
14+
15+
### Lint the files
16+
```bash
17+
npm run lint
18+
```
19+
20+
### Build the app for production
21+
```bash
22+
quasar build
23+
```
24+
25+
### Customize the configuration
26+
See [Configuring quasar.conf.js](https://quasar.dev/quasar-cli/quasar-conf-js).

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
presets: [
4+
'@quasar/babel-preset-app'
5+
]
6+
}

0 commit comments

Comments
 (0)