mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
The API Keys route mounted the pre-App-Router UserDashboard component, whose beforeunload handler cleared sessionStorage on every refresh of the Virtual Keys page. That wiped the Playground chat history and model, the logs live-tail preference, and everything else other pages keep in session storage. The same component also re-decoded the login token, re-fetched teams, and wrote cache entries nothing read. ApiKeysDashboard now renders VirtualKeysTable and the Create Key button directly, taking identity and role from useAuthorized like every other page. Create Key is hidden for view-only roles, which the proxy already rejects on /key/generate. The legacy component, its test, the fetch_teams helper, and their grandfathered eslint suppressions are removed, and the ProxySettings type moves to useProxySettings.
11 lines
548 B
JSON
11 lines
548 B
JSON
{
|
|
"@typescript-eslint/no-explicit-any": { "max": 2040, "target": 1500 },
|
|
"no-console": { "max": 12, "target": 0 },
|
|
"complexity": { "max": 140, "target": 80 },
|
|
"max-depth": { "max": 70, "target": 30 },
|
|
"local/no-large-inline-object-arg": { "max": 551, "target": 300 },
|
|
"local/no-long-condition-chain": { "max": 196, "target": 120 },
|
|
"testing-library/no-container": { "max": 133, "target": 50 },
|
|
"testing-library/no-node-access": { "max": 707, "target": 500 },
|
|
"testing-library/prefer-screen-queries": { "max": 18, "target": 18 }
|
|
}
|