Skip to content

Commit

Permalink
refactor(web): drop questions client
Browse files Browse the repository at this point in the history
Since it has been replaced by queries.
  • Loading branch information
dgdavid committed Jul 30, 2024
1 parent ded2d52 commit 529c7bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 281 deletions.
4 changes: 0 additions & 4 deletions web/src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { Monitor } from "./monitor";
import { ProductClient, SoftwareClient } from "./software";
import { StorageClient } from "./storage";
import phase from "./phase";
import { QuestionsClient } from "./questions";
import { NetworkClient } from "./network";
import { HTTPClient, WSClient } from "./http";

Expand All @@ -40,7 +39,6 @@ import { HTTPClient, WSClient } from "./http";
* @property {ProductClient} product - product client.
* @property {SoftwareClient} software - software client.
* @property {StorageClient} storage - storage client.
* @property {QuestionsClient} questions - questions client.
* @property {() => WSClient} ws - Agama WebSocket client.
* @property {() => boolean} isConnected - determines whether the client is connected
* @property {() => boolean} isRecoverable - determines whether the client is recoverable after disconnected
Expand All @@ -66,7 +64,6 @@ const createClient = (url) => {
const network = new NetworkClient(client);
const software = new SoftwareClient(client);
const storage = new StorageClient(client);
const questions = new QuestionsClient(client);

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

This file was deleted.

124 changes: 0 additions & 124 deletions web/src/client/questions.test.js

This file was deleted.

0 comments on commit 529c7bf

Please sign in to comment.