mirror of
https://github.com/seerr-team/seerr.git
synced 2025-12-23 23:58:07 -05:00
* feat(linked-accounts): create page and display linked media server accounts * feat(dropdown): add new shared Dropdown component Adds a shared component for plain dropdown menus, based on the headlessui Menu component. Updates the `ButtonWithDropdown` component to use the same inner components, ensuring that the only difference between the two components is the trigger button, and both use the same components for the actual dropdown menu. * refactor(modal): add support for configuring button props * feat(linked-accounts): add support for linking/unlinking jellyfin accounts * feat(linked-accounts): support linking/unlinking plex accounts * fix(linked-accounts): probibit unlinking accounts in certain cases Prevents the primary administrator from unlinking their media server account (which would break sync). Additionally, prevents users without a configured local email and password from unlinking their accounts, which would render them unable to log in. * feat(linked-accounts): support linking/unlinking emby accounts * style(dropdown): improve style class application * fix(server): improve error handling and API spec * style(usersettings): improve syntax & performance of user password checks * style(linkedaccounts): use applicationName in page description * fix(linkedaccounts): resolve typo * refactor(app): remove RequestError class
13 lines
407 B
TypeScript
13 lines
407 B
TypeScript
export enum ApiErrorCode {
|
|
InvalidUrl = 'INVALID_URL',
|
|
InvalidCredentials = 'INVALID_CREDENTIALS',
|
|
InvalidAuthToken = 'INVALID_AUTH_TOKEN',
|
|
InvalidEmail = 'INVALID_EMAIL',
|
|
NotAdmin = 'NOT_ADMIN',
|
|
NoAdminUser = 'NO_ADMIN_USER',
|
|
SyncErrorGroupedFolders = 'SYNC_ERROR_GROUPED_FOLDERS',
|
|
SyncErrorNoLibraries = 'SYNC_ERROR_NO_LIBRARIES',
|
|
Unauthorized = 'UNAUTHORIZED',
|
|
Unknown = 'UNKNOWN',
|
|
}
|