mnemo_cards/mnemo_cards_admin
Dmitry aa67c02343
Some checks failed
Deploy Admin Panel / Deploy Admin Panel (push) Has been cancelled
Deploy Mnemo Cards / Deploy Backend (push) Has been cancelled
Deploy Admin Panel / Admin Panel Verification (push) Has been cancelled
Deploy Mnemo Cards / Deploy Web App (push) Has been cancelled
Deploy Mnemo Cards / Final Verification (push) Has been cancelled
voices
2026-03-22 15:52:51 +03:00
..
@/components/ui f 2025-12-14 02:35:14 +03:00
public dockerfiles 2025-12-11 05:04:03 +03:00
src voices 2026-03-22 15:52:51 +03:00
.dockerignore dockerfiles 2025-12-11 05:04:03 +03:00
.gitignore dockerfiles 2025-12-11 05:04:03 +03:00
components.json dockerfiles 2025-12-11 05:04:03 +03:00
Dockerfile dockerfiles 2025-12-11 05:04:03 +03:00
eslint.config.js dockerfiles 2025-12-11 05:04:03 +03:00
index.html dockerfiles 2025-12-11 05:04:03 +03:00
nginx.conf dockerfiles 2025-12-11 05:04:03 +03:00
package-lock.json dockerfiles 2025-12-11 05:04:03 +03:00
package.json dockerfiles 2025-12-11 05:04:03 +03:00
postcss.config.cjs dockerfiles 2025-12-11 05:04:03 +03:00
README.md voice 2026-01-24 19:01:36 +03:00
tailwind.config.js dockerfiles 2025-12-11 05:04:03 +03:00
tsconfig.app.json dockerfiles 2025-12-11 05:04:03 +03:00
tsconfig.json dockerfiles 2025-12-11 05:04:03 +03:00
tsconfig.node.json dockerfiles 2025-12-11 05:04:03 +03:00
vite.config.ts dockerfiles 2025-12-11 05:04:03 +03:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Environment Variables

The following environment variables can be configured:

  • VITE_API_BASE_URL - Base URL for the API (default: https://api.mnemo-cards.online)
  • VITE_VOICE_SERVICE_URL - Base URL for the voice-service TTS API (default: https://voice-service.mnemo-cards.online)

Create a .env file in the root directory to override these values:

VITE_API_BASE_URL=https://api.mnemo-cards.online
VITE_VOICE_SERVICE_URL=https://voice-service.mnemo-cards.online

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])