feat: миграция frontend React 18 → Angular 19
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Полная миграция фронтенда на Angular 19 + PrimeNG + NgRx SignalStore. - React 18 + AntD 5 + Zustand + Vite → Angular 19 + PrimeNG 19 + NgRx SignalStore + Angular CLI - Ноды X6: React-компоненты → чистые DOM-функции через Shape.HTML.register с effect: ['data'] - Все 5 типов нод (site, device, cross-device, splice, card) переписаны как рендереры - Zustand store → NgRx signalStore (schema.store.ts) - AntD компоненты → PrimeNG (p-tree, p-table, p-menu, p-toggleSwitch, p-slider, p-button) - 13 файлов чистого TypeScript переиспользованы as-is (типы, константы, утилиты, мок, layout, ports, edges) - Структура файлов переименована в kebab-case Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
frontend/src/app/utils/index.ts
Normal file
14
frontend/src/app/utils/index.ts
Normal file
@ -0,0 +1,14 @@
|
||||
let counter = 0;
|
||||
|
||||
export function generateId(prefix = 'id'): string {
|
||||
counter += 1;
|
||||
return `${prefix}-${Date.now()}-${counter}`;
|
||||
}
|
||||
|
||||
export function isCrossDevice(category: string): boolean {
|
||||
return category === 'cross_optical' || category === 'cross_copper';
|
||||
}
|
||||
|
||||
export function isSpliceDevice(category: string): boolean {
|
||||
return category === 'splice';
|
||||
}
|
||||
Reference in New Issue
Block a user