Skip to content

Commit e0c1ea4

Browse files
authored
Merge pull request #3079 from CVEProject/dev
update int with dev
2 parents afe5738 + b18c1fa commit e0c1ea4

120 files changed

Lines changed: 20464 additions & 43109 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.

.browserslistrc

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

.dockerignore

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

.editorconfig

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

.env-EXAMPLE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://cli.vuejs.org/guide/mode-and-env.html#modes-and-environment-variables
2-
3-
VUE_APP_API_BASE_URL={{ TODO }}
4-
VUE_APP_CVE_SERVICES_BASE_URL={{ TODO }}
1+
VITE_API_BASE_URL={{ TODO }}
2+
VITE_CVE_SERVICES_BASE_URL={{ TODO }}
3+
VITE_WEBSITE_ENVIRONMENT={{ TODO }}
4+
VITE_GOOGLE_ANALYTICS_PROPERTY_ID={{ TODO }}

.eslintrc.cjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
rules: {
13+
'vue/no-v-text-v-html-on-component': 0,
14+
'vue/multi-word-component-names': 0
15+
},
16+
parserOptions: {
17+
ecmaVersion: 'latest'
18+
}
19+
}

.eslintrc.js

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

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262
- name: Perform CodeQL Analysis
6363
uses: github/codeql-action/analyze@v2
6464
with:
65-
category: "/language:${{matrix.language}}"
65+
category: "/language:${{matrix.language}}"

.gitignore

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
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*
137
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
# local env files
11+
.env.*
12+
13+
node_modules
14+
.DS_Store
15+
dist
16+
dist-ssr
17+
coverage
18+
*.local
19+
20+
/cypress/videos/
21+
/cypress/screenshots/
1422

1523
# Editor directories and files
24+
.vscode/
25+
!.vscode/extensions.json
1626
.idea
17-
.vscode
1827
*.suo
1928
*.ntvs*
2029
*.njsproj
2130
*.sln
2231
*.sw?
23-
*.*~
32+
33+
*.tsbuildinfo

.prettierrc.json

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

README.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,46 @@
11
# cve-website
22

3-
## Project setup
4-
```
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8+
9+
## Type Support for `.vue` Imports in TS
10+
11+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
12+
13+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
14+
15+
1. Disable the built-in TypeScript Extension
16+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
19+
20+
## Customize configuration
21+
22+
See [Vite Configuration Reference](https://vitejs.dev/config/).
23+
24+
## Project Setup
25+
26+
```sh
527
npm install
628
```
729

8-
### Compiles and hot-reloads for development
9-
```
10-
npm run serve
11-
```
30+
### Compile and Hot-Reload for Development
1231

13-
### Compiles and minifies for production
32+
```sh
33+
npm run dev
1434
```
35+
36+
### Type-Check, Compile and Minify for Production
37+
38+
```sh
1539
npm run build
1640
```
1741

18-
### Lints and fixes files
19-
```
42+
### Lint with [ESLint](https://eslint.org/)
43+
44+
```sh
2045
npm run lint
2146
```
22-
23-
### Customize configuration
24-
See [Configuration Reference](https://cli.vuejs.org/config/).

0 commit comments

Comments
 (0)