Skip to content

Commit

Permalink
refactor(web): replace the UsersClient with queries (#1492)
Browse files Browse the repository at this point in the history
Adapt the users management code to use queries instead of `UsersClient`.
Related to #1439.
  • Loading branch information
imobachgs authored Jul 23, 2024
2 parents bd2f35d + 2ed229f commit fc5a871
Show file tree
Hide file tree
Showing 13 changed files with 469 additions and 842 deletions.
4 changes: 0 additions & 4 deletions web/src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { ManagerClient } from "./manager";
import { Monitor } from "./monitor";
import { ProductClient, SoftwareClient } from "./software";
import { StorageClient } from "./storage";
import { UsersClient } from "./users";
import phase from "./phase";
import { QuestionsClient } from "./questions";
import { NetworkClient } from "./network";
Expand All @@ -41,7 +40,6 @@ import { HTTPClient, WSClient } from "./http";
* @property {ProductClient} product - product client.
* @property {SoftwareClient} software - software client.
* @property {StorageClient} storage - storage client.
* @property {UsersClient} users - users client.
* @property {QuestionsClient} questions - questions client.
* @property {() => WSClient} ws - Agama WebSocket client.
* @property {() => boolean} isConnected - determines whether the client is connected
Expand All @@ -68,7 +66,6 @@ const createClient = (url) => {
const network = new NetworkClient(client);
const software = new SoftwareClient(client);
const storage = new StorageClient(client);
const users = new UsersClient(client);
const questions = new QuestionsClient(client);

const isConnected = () => client.ws().isConnected() || false;
Expand All @@ -82,7 +79,6 @@ const createClient = (url) => {
network,
software,
storage,
users,
questions,
isConnected,
isRecoverable,
Expand Down
184 changes: 0 additions & 184 deletions web/src/client/users.js

This file was deleted.

Loading

0 comments on commit fc5a871

Please sign in to comment.