Skip to content

Commit

Permalink
refactor(openwrt-config-dashboard): unused modules within JSON-RPC ht…
Browse files Browse the repository at this point in the history
…tp calls were removed

each of the imports into the functions that make the different JSON-RPC calls, (the ones that
represent the communication with the router) were removed to clean up the code and improve
readability.
  • Loading branch information
andresvcc committed May 3, 2024
1 parent 5407d67 commit 72d8327
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { LoginTokenResponse } from '@/types';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import { act } from 'react-test-renderer';
import tough, { Cookie } from 'tough-cookie';
import { t } from 'xstate';
import { Sid } from '..';

function matchesThymioPattern(str: string): boolean {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { LoginTokenResponse } from '@/types';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import tough, { Cookie } from 'tough-cookie';
import { Sid } from '..';

export async function getIfStatus({ sid }: { sid: Sid }): Promise<any> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { LoginTokenResponse } from '@/types';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import tough, { Cookie } from 'tough-cookie';
import { Sid } from '..';

export async function getUptime({ sid }: { sid: Sid }): Promise<number> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { LoginTokenResponse } from '@/types';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import tough, { Cookie } from 'tough-cookie';
import { Sid } from '..';

function parseStringToJson(inputString: string): any {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { LoginTokenResponse } from '@/types';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import tough, { Cookie } from 'tough-cookie';

export async function updateRootPassword({
newPassword,
sidToken,
Expand Down

0 comments on commit 72d8327

Please sign in to comment.