diff --git a/frontend/react/.eslintrc.cjs b/frontend/react/.eslintrc.cjs new file mode 100644 index 00000000..3e212e1d --- /dev/null +++ b/frontend/react/.eslintrc.cjs @@ -0,0 +1,21 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:react/recommended', + 'plugin:react/jsx-runtime', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, + settings: { react: { version: '18.2' } }, + plugins: ['react-refresh'], + rules: { + 'react/jsx-no-target-blank': 'off', + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/frontend/react/.gitignore b/frontend/react/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/frontend/react/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/frontend/react/README.md b/frontend/react/README.md new file mode 100644 index 00000000..f768e33f --- /dev/null +++ b/frontend/react/README.md @@ -0,0 +1,8 @@ +# React + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh diff --git a/frontend/react/index.html b/frontend/react/index.html new file mode 100644 index 00000000..0f9805e1 --- /dev/null +++ b/frontend/react/index.html @@ -0,0 +1,13 @@ + + +
+ + + +- Copyright (C) 2023 Veltro & Gang -
-- DCS Olympus (the "MATERIAL" or "Software") is provided completely free - to users subject to the it under both the terms of version 3 of the GNU - General Public License as published by the Free Software Foundation, and - the additional terms set out below; except where such terms conflict with this - disclaimer, in which case, the terms of this disclaimer shall prevail. -
-- The authors and/or copyright holders of the Software have not received any - financial benefit in connection with the Software. In any event, the - Software is provided “as is”, without warranty of any kind, express or - implied, including but not limited to the warranties of merchantability, - fitness for a particular purpose and non-infringement. In no event shall - the authors and/or copyright holders be liable for any claim, damages or - other liability, whether in an action of contract, tort or otherwise, - arising from, out of or in connection with the Software or the use or o - ther dealings in the Software. -
-- Any party making use of the Software in any manner agrees to be - bound by the terms set out in this disclaimer, version 3 of the GNU - General Public Licence, and the Additional Terms below. -
-- THIS MATERIAL IS NOT MADE OR SUPPORTED BY EAGLE DYNAMICS SA. -
-Nullam iaculis nisi sed mi tincidunt pretium blandit tempus urna. Vestibulum non ex vitae massa tristique auctor. Praesent orci justo, porttitor pellentesque convallis non, commodo at augue.
-Donec nibh est, fringilla sed pharetra eu, varius vel sem. Aliquam ac libero leo. Sed consectetur enim aliquam dui pellentesque luctus. Pellentesque vel iaculis quam.
-