diff --git a/.gitignore b/.gitignore index 7d4754a..a547bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,24 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - +# Logs +logs +*.log npm-debug.log* yarn-debug.log* yarn-error.log* +pnpm-debug.log* +lerna-debug.log* -.idea \ No newline at end of file +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/Dockerfile b/Dockerfile index 3f5ecf9..9e2ad40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # Build stage -FROM node:lts as build +FROM node:lts AS build ARG BYTEBIN_URL="data/" -ENV REACT_APP_BYTEBIN_URL="${BYTEBIN_URL}" +ENV VITE_BYTEBIN_URL="${BYTEBIN_URL}" WORKDIR /app COPY package.json yarn.lock ./ @@ -13,6 +13,6 @@ RUN yarn build # Run stage FROM nginx:alpine COPY docker/nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=build /app/build /usr/share/nginx/html +COPY --from=build /app/dist /usr/share/nginx/html CMD ["nginx", "-g", "daemon off;"] -EXPOSE 80/tcp \ No newline at end of file +EXPOSE 80/tcp diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..092408a --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,28 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' + +export default tseslint.config( + { ignores: ['dist'] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, + }, +) diff --git a/public/index.html b/index.html similarity index 61% rename from public/index.html rename to index.html index c6eae84..6e149b4 100644 --- a/public/index.html +++ b/index.html @@ -11,20 +11,21 @@ - + - - + + - - - + + +
+