-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from create-react-app to vite. For using vite it is necessary to change the file ending fo JS files using React/JSX to `.jsx`. Otherwise vite (rollup) will raise errors. The project is also prepared to allow using TypeScript now.
- Loading branch information
1 parent
62e0ec0
commit 3e0a1c6
Showing
1,186 changed files
with
6,436 additions
and
17,471 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
*.local | ||
|
||
dist/ | ||
build/ | ||
/tags | ||
coverage/ | ||
tags | ||
node_modules/ | ||
.env.local | ||
|
||
public/config.js | ||
|
||
.vscode/ | ||
.tern-project | ||
|
||
# directory files for image previews | ||
.directory | ||
coverage/ | ||
|
||
.venv |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/img/favicon.png" type="image/png"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Greenbone Security Assistant</title> | ||
<script type="text/javascript" src="/config.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<div id="portals"></div> | ||
<script type="module" src="/src/index.jsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.