Add OBS group management feature and documentation
- Add group_name column to teams table for mapping teams to OBS groups - Create API endpoints for group creation (/api/createGroup) and bulk sync (/api/syncGroups) - Update teams UI with group status display and creation buttons - Implement automatic group assignment when adding streams - Add comprehensive OBS setup documentation (docs/OBS_SETUP.md) - Fix team list spacing issue with explicit margins - Update OBS client with group management functions - Add database migration script for existing deployments 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c259f0d943
commit
5789986bb6
14 changed files with 540 additions and 144 deletions
|
@ -18,7 +18,15 @@ export function isValidUrl(url: string): boolean {
|
|||
}
|
||||
|
||||
export function isPositiveInteger(value: unknown): value is number {
|
||||
return Number.isInteger(value) && value > 0;
|
||||
return Number.isInteger(value) && Number(value) > 0;
|
||||
}
|
||||
|
||||
export function validateInteger(value: unknown): number | null {
|
||||
const num = Number(value);
|
||||
if (Number.isInteger(num) && num > 0) {
|
||||
return num;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// String sanitization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue