Commit Graph

142 Commits

Author SHA1 Message Date
Egor
2842aa962d Update Login.tsx 2026-01-28 20:25:51 +03:00
Egor
b178f4cb86 Update AdminPaymentMethods.tsx 2026-01-28 11:58:20 +03:00
c0mrade
4b35d8c392 fix(i18n): rename subscription.servers object to subscription.serverManagement
Resolves conflict where subscription.servers existed as both a nested
object (for server management UI keys) and a pluralization base key.
Renamed the nested object to serverManagement in all 4 locales and
updated all t() references in Subscription.tsx.
2026-01-27 22:47:41 +03:00
c0mrade
9707ad97a4 feat(i18n): migrate all hardcoded Russian text to i18n
- Replace all hardcoded Russian strings with t() calls across 30+ files
- Add ~500 new translation keys to all 4 locales (ru, en, zh, fa)
- Convert module-level config objects to labelKey pattern
- Remove Russian fallbacks from t() calls (fallbackLng handles it)
- Replace DeepLinkRedirect custom i18n with standard t() calls
- Fix subscription.servers key collision (string vs object)
2026-01-27 22:19:41 +03:00
Egor
77f955fc0d Update Login.tsx 2026-01-27 17:57:45 +03:00
c0mrade
bc90ba3779 refactor: migrate to eslint flat config and format codebase with prettier
- Remove legacy .eslintrc.cjs and .eslintignore
- Add eslint.config.js with flat config, security rules (no-eval, no-implied-eval, no-new-func, no-script-url)
- Add .prettierrc and .prettierignore
- Format entire codebase with prettier
2026-01-27 17:37:31 +03:00
Egor
096cf7e918 Update Subscription.tsx 2026-01-27 16:07:12 +03:00
Egor
80da25c102 Update AdminSettings.tsx 2026-01-27 01:19:42 +03:00
Egor
6856518fee Update Dashboard.tsx 2026-01-27 00:33:15 +03:00
Egor
ce29ee63b7 Update AdminEmailTemplates.tsx 2026-01-27 00:26:04 +03:00
Egor
4fc7712bef Update Subscription.tsx 2026-01-26 23:24:30 +03:00
Egor
c2c2399af1 Update Subscription.tsx 2026-01-26 23:23:38 +03:00
Egor
3ebff0c1f8 Update AdminPaymentMethods.tsx 2026-01-26 22:46:37 +03:00
Egor
6567f22e40 Add files via upload 2026-01-26 22:39:56 +03:00
Egor
f10594c4b4 Add files via upload 2026-01-26 21:59:31 +03:00
Egor
558278b729 Add files via upload 2026-01-25 10:43:36 +03:00
Egor
c358d8caab Add files via upload 2026-01-25 09:45:16 +03:00
Egor
d00bb5463b Add files via upload 2026-01-25 09:26:24 +03:00
Egor
13c7d23422 Add files via upload 2026-01-25 09:05:28 +03:00
Egor
97b2fa319a Update Profile.tsx 2026-01-25 08:54:19 +03:00
Egor
fe5be1f08d Add files via upload 2026-01-25 08:44:25 +03:00
Egor
c8d94251e9 Add files via upload 2026-01-23 11:33:26 +03:00
Egor
2fe3a0bb18 Update AdminTariffs.tsx 2026-01-23 03:44:18 +03:00
Egor
767b666962 Update Subscription.tsx 2026-01-23 03:39:08 +03:00
Egor
e51d4d3d71 Update Subscription.tsx 2026-01-23 03:35:27 +03:00
Egor
aac4369bd9 Update AdminPromoOffers.tsx 2026-01-22 23:10:09 +03:00
Egor
122bbb5282 Update Dashboard.tsx 2026-01-22 21:16:31 +03:00
Egor
c5cd92ed6f Update Dashboard.tsx 2026-01-21 10:13:40 +03:00
Egor
5709ab4ff1 Add files via upload 2026-01-21 09:08:08 +03:00
Egor
94a8671d9e Update Login.tsx 2026-01-21 08:42:36 +03:00
Egor
b28b921abd Add files via upload 2026-01-21 08:36:40 +03:00
Egor
0eb4b8ccd7 Update AdminPromocodes.tsx 2026-01-21 08:29:46 +03:00
Egor
71b1c159bf Update Info.tsx 2026-01-21 08:14:28 +03:00
Egor
1880cffad9 Update Subscription.tsx 2026-01-21 06:43:44 +03:00
Egor
4e225c78bf Update Referral.tsx 2026-01-21 05:31:58 +03:00
PEDZEO
4c5fe78cf3 Fix AdminSettings mobile: scroll to top on open and add safe area padding 2026-01-21 05:05:33 +03:00
PEDZEO
8d4c00d176 Add SettingsSidebar and SettingsSearch components to AdminSettings
- Introduced SettingsSidebar for improved navigation and organization.
- Added SettingsSearch and its mobile variant for enhanced search functionality.
- Updated AdminSettings to utilize new components, streamlining the layout and improving user experience.
2026-01-21 04:31:07 +03:00
PEDZEO
82d38b829a Improve global search in AdminSettings
- Search across all settings regardless of active section
- Search by translated names, descriptions, and categories
- Add clear search button (X icon)
- Show search results count
2026-01-21 04:28:31 +03:00
PEDZEO
8776e2d128 Refactor AdminSettings into modular components
Split 1123-line monolithic AdminSettings.tsx into 11 modules:

Components:
- icons.tsx (85 lines) - All SVG icons
- Toggle.tsx (21 lines) - Reusable toggle component
- SettingInput.tsx (89 lines) - Text/select input for settings
- SettingRow.tsx (104 lines) - Single setting card
- BrandingTab.tsx (212 lines) - Logo, name, animation settings
- ThemeTab.tsx (277 lines) - Theme presets and custom colors
- FavoritesTab.tsx (59 lines) - Starred settings display
- SettingsTab.tsx (144 lines) - Accordion categories view

Utilities:
- constants.ts (55 lines) - MENU_SECTIONS, THEME_PRESETS
- utils.ts (35 lines) - formatSettingKey, stripHtml
- index.ts (13 lines) - Barrel exports

Result: AdminSettings.tsx reduced from 1123 to 251 lines
2026-01-21 03:56:21 +03:00
PEDZEO
dcac738aeb Add subscription translations and collapsible categories in AdminSettings
- Add 65+ new translations for subscription, trial, traffic, autopay settings
- Replace flat navigation with accordion-style collapsible subcategories
- Categories are collapsed by default, click to expand
- Search shows flat list when query is present
- Remove unused ChevronRightIcon and activeSubCategory state
2026-01-21 03:48:44 +03:00
PEDZEO
c572fc0b69 Move hardcoded translations from AdminSettings to locales
- Remove SETTING_TRANSLATIONS object with 50+ hardcoded Russian translations
- Add translations to ru.json under admin.settings.settingNames
- Rename formatSettingName to formatSettingKey
- Use t() function with fallback for setting names
2026-01-21 03:42:28 +03:00
PEDZEO
76b2d713f1 Add Russian translations for common settings in AdminSettings
- Introduced a dictionary for translating various settings into Russian.
- Updated the `formatSettingName` function to return translated names when available.
- Adjusted layout for sidebar and main content to improve responsiveness and organization.
2026-01-21 03:25:46 +03:00
PEDZEO
0679905c51 Add helper functions for formatting settings and cleaning HTML in AdminSettings
- Introduced `formatSettingName` to convert setting names from Snake_Case/CamelCase to a readable format.
- Added `stripHtml` function to remove HTML tags from setting descriptions.
- Updated rendering logic in `renderSettingRow` to utilize the new helper functions for improved display of setting names and descriptions.
- Enhanced layout for settings display with better spacing and organization.
2026-01-21 03:21:45 +03:00
PEDZEO
710bc32111 Fix AdminSettings mobile layout with drawer navigation 2026-01-21 03:09:32 +03:00
PEDZEO
329d063387 Redesign AdminSettings with sidebar navigation and localization
- Replace top tabs with sidebar menu navigation
- Add sub-categories for settings (payments, subscriptions, etc.)
- Implement full Russian localization for all UI elements
- Add category translations for all setting groups
- Collapsible presets and custom colors sections
- Favorites functionality with localStorage persistence
- Search functionality in settings
- Responsive layout with collapsible sidebar
2026-01-21 03:02:23 +03:00
PEDZEO
d7b387927f Redesign AdminSettings with tabs navigation and favorites
- Add tab-based navigation (Favorites, Branding, Theme, Payments, etc.)
- Create useFavoriteSettings hook for localStorage-based favorites
- Create SettingCard component for consistent setting display
- Add global search functionality
- Implement collapsible sections for theme presets and colors
- Group settings by meta-categories (payments, subscriptions, etc.)
- Add dropdown for additional categories (More menu)
- Modern UI with improved spacing and interactions
2026-01-21 02:52:37 +03:00
PEDZEO
215a65dbae Refactor theme settings with two collapsible sections
- Quick Presets: collapsible section with 8 theme presets
- Custom Colors: collapsible section with all color pickers
- Added translations for quickPresets, customColors in all locales (ru, en, zh, fa)
- Chevron icon rotates when section is expanded
- Preview section moved inside Custom Colors
2026-01-21 02:11:39 +03:00
PEDZEO
bf0a43384b Add collapsible theme sections and Russian translations
- Translated Quick Presets to Russian (Быстрые пресеты)
- Translated preset names: Стандарт, Океан, Лес, Закат, Фиолет, Роза, Полночь, Бирюза
- Made theme color sections collapsible (Accent, Dark Theme, Light Theme, Status Colors)
- Each section shows color preview when collapsed
2026-01-21 02:04:48 +03:00
PEDZEO
26e8e19b8a Merge remote branch and add Quick Presets for theme colors
- Added Quick Presets section in AdminSettings with 8 predefined themes
- Fixed ColorPicker overflow issues for small containers
- Resolved merge conflicts keeping local theme implementation
2026-01-21 01:56:51 +03:00
PEDZEO
879031508b Enhance ColorPicker and AdminSettings components with improved styling and theme presets
- Updated ColorPicker component styles for better visual consistency and usability.
- Adjusted button sizes and input fields for a more cohesive design.
- Introduced theme presets in AdminSettings for quick color scheme selection, enhancing user experience.
- Added new color schemes with predefined colors for easier theme management.
2026-01-21 01:53:31 +03:00