dak.c2s/frontend
CCS Admin 832f5c0a63 feat: add profile/avatar/MFA types and service functions
Extend User and UserResponse interfaces with first_name, last_name,
display_name, avatar_url fields. Add ProfileUpdatePayload,
ChangePasswordPayload, MFASetupResponse, MFAVerifyPayload types.
Add authService functions for profile update, avatar upload/delete,
password change, and MFA setup/verify/disable. Add refreshUser to
AuthContext so components can re-fetch user data after changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 09:42:46 +00:00
..
src feat: add profile/avatar/MFA types and service functions 2026-02-26 09:42:46 +00:00
.gitignore feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
components.json feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
eslint.config.js feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
index.html feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
package.json feat: auth context, login/register pages, app layout with routing 2026-02-24 08:21:00 +00:00
pnpm-lock.yaml feat: auth context, login/register pages, app layout with routing 2026-02-24 08:21:00 +00:00
README.md feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
tsconfig.app.json feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
tsconfig.json feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
tsconfig.node.json feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00
vite.config.ts feat: frontend setup — React, Vite, TypeScript, Tailwind CSS v4, shadcn/ui 2026-02-24 08:14:36 +00:00

React + TypeScript + 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:

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...
    },
  },
])