Drobysh 87f482861b 🌊 Волна 15: frontend #5 — security + юзабилити (16 багов)
Security (XSS):
- feed_modal_javascript_url_xss: safeUrl валидация (FeedModal.tsx)
- feed_modal_telegram_url_xss: safeUrl валидация (FeedModal.tsx)

Данные:
- feed_composer_duplicate_post_on_upload_fail: isPublished флаг (FeedPostComposer.tsx)
- STRICTMODE_DOUBLE_REGISTER_RETRY: двойная защита + cleanup (App.tsx)
- RETRY_TIMEOUT_NOT_CLEANED: clearTimeout в cleanup (App.tsx)

Производительность:
- CONTENT_TYPE_ON_GET_TRIGGERS_PREFLIGHT: Content-Type только при body (api.ts)
- DUPLICATED_FETCH_LOGIC: fetchWithTimeout helper (api.ts)
- UNENCODED_PATH_PARAMS: encodeURIComponent для path (api.ts)

Юзабилити:
- content_editor_no_escape: Escape (ContentEditorMenu.tsx)
- lessons_editor_no_backdrop_close: Escape + backdrop (LessonsEditor.tsx)
- support_delete_ticket_no_confirm: модалка подтверждения (SupportChatModal.tsx)

Качество:
- GET_INIT_DATA_CONSOLE_SPAM: логируем один раз (telegram.ts)
- words_editor_dead_button: удалена мёртвая кнопка (WordsEditor.tsx)
- highlights_carousel_setstate_on_unmount: убран setState в cleanup (HighlightsCarousel.tsx)
- image_lightbox_timers_accumulate: очистка таймеров (ImageLightbox.tsx)
- typing_modal_timeout_not_cleared: clearTimeout (TypingModal.tsx)

Пропущено осознанно:
- INIT_DATA_IN_URL_DELETE_FEED (fallback для deleteFeedPost, Cloudflare preflight)

Аудит v3: Issue #4, frontend 17/18 задач
2026-09-24 19:21:24 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03:00
2026-09-20 15:08:32 +03: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...
    },
  },
])

S
Description
No description provided
Readme
6.4 MiB
Languages
TypeScript 96%
Python 3.5%
CSS 0.4%