feat: Refactor utility and component exports, update dependencies, and add Knip for unused code detection.

This commit is contained in:
2025-12-04 11:58:04 +01:00
parent c3375b714d
commit 2ea74816fb
65 changed files with 624 additions and 707 deletions
+1 -8
View File
@@ -1,12 +1,5 @@
import PasskeysSection from './PasskeysSection';
import ApiTokensSection from './ApiTokensSection';
import CapabilitySetsSection from './CapabilitySetsSection';
import {
API_TOKENS_SECTION,
CAPABILITY_SETS_SECTION,
DEFAULT_SETTINGS_SECTIONS,
PASSKEYS_SECTION,
} from '../../constants/settings';
export { PasskeysSection, ApiTokensSection, CapabilitySetsSection };
export { PASSKEYS_SECTION, API_TOKENS_SECTION, CAPABILITY_SETS_SECTION, DEFAULT_SETTINGS_SECTIONS };
export { DEFAULT_SETTINGS_SECTIONS };
+3 -3
View File
@@ -59,13 +59,13 @@ interface PasskeyRegisterPayload {
nickname?: string;
}
export type RegisterPasskeyFailureReason = 'unsupported' | 'busy' | 'cancelled' | 'error';
type RegisterPasskeyFailureReason = 'unsupported' | 'busy' | 'cancelled' | 'error';
export type RegisterPasskeyResult =
| { ok: true }
| { ok: false; reason: RegisterPasskeyFailureReason; message?: string };
export type RevokePasskeyFailureReason = 'missing-id' | 'error';
export type RevokePasskeyResult =
type RevokePasskeyFailureReason = 'missing-id' | 'error';
type RevokePasskeyResult =
| { ok: true }
| { ok: false; reason: RevokePasskeyFailureReason; message?: string };