Configure a default API base URL per git provider (github/gitlab/gitea) in settings.json gitProviders, with GitHub Enterprise support (Octokit baseUrl + device-flow web origin derived from the API base), and replace the client-side custom-domains list with server-persisted detection URL chips (SSH/HTTPS forms normalized to hosts). The configured API base host auto-counts as a detection host. Settings round-trip through the existing /api/config/settings sanitizer; the UI store hydrates from server settings with a one-time localStorage migration.
23 lines
396 B
JavaScript
23 lines
396 B
JavaScript
export {
|
|
getGiteaAuth,
|
|
getGiteaAuthAccounts,
|
|
setGiteaAuth,
|
|
activateGiteaAuth,
|
|
clearGiteaAuth,
|
|
normalizeBaseUrl,
|
|
GITEA_AUTH_FILE,
|
|
getGiteaDefaultBaseUrl,
|
|
} from './auth.js';
|
|
|
|
export {
|
|
createGiteaClient,
|
|
getGiteaClientOrNull,
|
|
isGiteaRateLimited,
|
|
noteGiteaRateLimit,
|
|
} from './client.js';
|
|
|
|
export {
|
|
parseGiteaRemoteUrl,
|
|
resolveGiteaRepoFromDirectory,
|
|
} from './repo.js';
|