From: "Michael Köppl" <m.koeppl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH dart_api_client v2 1/1] fix typos
Date: Fri, 9 May 2025 10:31:20 +0200 [thread overview]
Message-ID: <20250509083120.40047-3-m.koeppl@proxmox.com> (raw)
In-Reply-To: <20250509083120.40047-1-m.koeppl@proxmox.com>
In addition to user-facing errors, a few internal variable names are
also fixed.
Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
lib/src/client.dart | 2 +-
lib/src/handle_ticket_response.dart | 7 ++++---
lib/src/models/pve_cluster_resources_model.dart | 4 ++--
lib/src/models/pve_nodes_lxc_status_model.dart | 2 +-
lib/src/models/pve_nodes_qemu_status_model.dart | 2 +-
5 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/lib/src/client.dart b/lib/src/client.dart
index f597c28..889d81c 100644
--- a/lib/src/client.dart
+++ b/lib/src/client.dart
@@ -94,7 +94,7 @@ class ProxmoxApiClient extends http.BaseClient {
Future<ProxmoxApiClient> finishTfaChallenge(String kind, String code) async {
if (credentials.tfa == null) {
- throw StateError('No tfa challange expected');
+ throw StateError('No tfa challenge expected');
}
credentials = await credentials.tfaChallenge(kind, code,
diff --git a/lib/src/handle_ticket_response.dart b/lib/src/handle_ticket_response.dart
index 7d4c650..ba2128f 100644
--- a/lib/src/handle_ticket_response.dart
+++ b/lib/src/handle_ticket_response.dart
@@ -1,11 +1,12 @@
import 'dart:convert';
+
import 'package:http/http.dart' as http;
import 'package:proxmox_dart_api_client/src/credentials.dart';
import 'package:proxmox_dart_api_client/src/extentions.dart';
import 'package:proxmox_dart_api_client/src/tfa_challenge.dart';
Credentials handleAccessTicketResponse(
- http.Response response, Credentials unauthenicatedCredentials) {
+ http.Response response, Credentials unauthenticatedCredentials) {
response.validate(false);
final bodyJson = jsonDecode(response.body)['data'];
@@ -29,8 +30,8 @@ Credentials handleAccessTicketResponse(
}
return Credentials(
- unauthenicatedCredentials.apiBaseUrl,
- unauthenicatedCredentials.username,
+ unauthenticatedCredentials.apiBaseUrl,
+ unauthenticatedCredentials.username,
ticket: ticket,
csrfToken: csrfToken,
expiration: time,
diff --git a/lib/src/models/pve_cluster_resources_model.dart b/lib/src/models/pve_cluster_resources_model.dart
index 1f69213..16e18df 100644
--- a/lib/src/models/pve_cluster_resources_model.dart
+++ b/lib/src/models/pve_cluster_resources_model.dart
@@ -69,7 +69,7 @@ abstract class PveClusterResourcesModel
return PveResourceStatusType.stopped;
}
- return PveResourceStatusType.unkown;
+ return PveResourceStatusType.unknown;
}
}
@@ -109,7 +109,7 @@ class PveResourceStatusType extends EnumClass {
static const PveResourceStatusType paused = _$paused;
static const PveResourceStatusType suspending = _$suspending;
static const PveResourceStatusType suspended = _$suspended;
- static const PveResourceStatusType unkown = _$unkown;
+ static const PveResourceStatusType unknown = _$unknown;
const PveResourceStatusType._(super.name);
diff --git a/lib/src/models/pve_nodes_lxc_status_model.dart b/lib/src/models/pve_nodes_lxc_status_model.dart
index c82574e..7f71bf9 100644
--- a/lib/src/models/pve_nodes_lxc_status_model.dart
+++ b/lib/src/models/pve_nodes_lxc_status_model.dart
@@ -49,7 +49,7 @@ abstract class PveNodesLxcStatusModel
}
return PveResourceStatusType.stopped;
}
- return PveResourceStatusType.unkown;
+ return PveResourceStatusType.unknown;
}
}
diff --git a/lib/src/models/pve_nodes_qemu_status_model.dart b/lib/src/models/pve_nodes_qemu_status_model.dart
index 8b997c1..ae82802 100644
--- a/lib/src/models/pve_nodes_qemu_status_model.dart
+++ b/lib/src/models/pve_nodes_qemu_status_model.dart
@@ -59,6 +59,6 @@ abstract class PveQemuStatusModel
}
return PveResourceStatusType.stopped;
}
- return PveResourceStatusType.unkown;
+ return PveResourceStatusType.unknown;
}
}
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-05-09 8:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-09 8:31 [pve-devel] [PATCH flutter_frontend v2 1/2] " Michael Köppl
2025-05-09 8:31 ` [pve-devel] [PATCH flutter_frontend v2 2/2] ui: make containers naming more consistent Michael Köppl
2025-05-09 8:31 ` Michael Köppl [this message]
2025-05-19 14:12 ` [pve-devel] [PATCH flutter_frontend v2 1/2] fix typos Shan Shaji
2025-05-21 12:43 ` [pve-devel] applied: " Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250509083120.40047-3-m.koeppl@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal