refactor: massive codebase stabilization, strict TS, UI/UX overhaul, and central logging

This commit is contained in:
iqubik
2026-03-28 18:33:13 +03:00
parent 388417cec9
commit 8f8a3bf724
69 changed files with 4272 additions and 1693 deletions
@@ -1,4 +1,11 @@
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToMany } from 'typeorm';
import {
Entity,
Column,
PrimaryGeneratedColumn,
CreateDateColumn,
UpdateDateColumn,
OneToMany,
} from 'typeorm';
import { Inbound } from '../../inbounds/entities/inbound.entity';
@Entity()
@@ -16,7 +23,12 @@ export class Subscription {
isEnabled: boolean;
@Column({ type: 'simple-json', nullable: true })
inboundsConfig: any[];
inboundsConfig: Array<{
type?: string;
port?: number | string;
sni?: string;
link?: string;
}>;
@OneToMany(() => Inbound, (inbound) => inbound.subscription)
inbounds: Inbound[];
@@ -26,4 +38,4 @@ export class Subscription {
@UpdateDateColumn()
updatedAt: Date;
}
}