feat(api, web): интеграция RuVDS API v2
Docker / build (push) Failing after 21s

Синк VPS, баланса, платежей и тарифов через Bearer-токен из личного кабинета.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-29 14:10:15 +07:00
co-authored by Cursor
parent ce6414c65f
commit 9a29d88b95
19 changed files with 1526 additions and 12 deletions
+9 -2
View File
@@ -1,8 +1,8 @@
import { isSyncApiType, isUserApiType } from '@cfdm/shared/contracts/provider'
import { isSyncApiType, isTokenApiType, isUserApiType } from '@cfdm/shared/contracts/provider'
import type { ProviderAccount, Provider } from '@/types/entities'
export { isSyncApiType, isUserApiType }
export { isSyncApiType, isTokenApiType, isUserApiType }
export function providerByIdMap(providers: Provider[]): Map<string, Provider> {
return new Map(providers.map((p) => [p.id, p]))
@@ -76,6 +76,13 @@ export function accountCredentialLabels(apiType?: string | null): {
loginPlaceholder: '[email protected]',
}
}
if (String(apiType).toLowerCase() === 'ruvds') {
return {
loginLabel: '',
passwordLabel: 'API Token',
loginPlaceholder: '',
}
}
if (isUserApiType(apiType)) {
return {
loginLabel: '',