Skip to content

Commit 2c4932a

Browse files
committed
fix: remove unused assets and update API parameter types
- Deleted favicon.ico, index.html, logo192.png, logo512.png, manifest.json, and robots.txt from the dist directory as they are no longer needed. - Updated the DeviceDetail component to pass parameter values as an array to the executeMethod function. - Changed the params type in the setDeviceJsonCommand mutation from 'any' to 'unknown[]' for better type safety. - Updated tsconfig.tsbuildinfo to include new common UI hooks and selectors.
1 parent ed760b9 commit 2c4932a

10 files changed

Lines changed: 3 additions & 51 deletions

File tree

dist/assets/index-CERBEfvd.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/favicon.ico

-3.78 KB
Binary file not shown.

dist/index.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

dist/logo192.png

-5.22 KB
Binary file not shown.

dist/logo512.png

-9.44 KB
Binary file not shown.

dist/manifest.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

dist/robots.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/features/DeviceDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const DeviceDetailRender = ({
6666

6767
const handleExecute = async () => {
6868
if (!selectedMethod) return;
69-
await executeMethod({ deviceKey, methodName: selectedMethod.Name, params: paramValues });
69+
await executeMethod({ deviceKey, methodName: selectedMethod.Name, params: Object.values(paramValues) });
7070
handleClose();
7171
};
7272

src/store/apiSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const apiSlice = createApi({
6262
}),
6363
}),
6464

65-
setDeviceJsonCommand: builder.mutation<void, { deviceKey: string; methodName: string; params?: any }>({
65+
setDeviceJsonCommand: builder.mutation<void, { deviceKey: string; methodName: string; params?: unknown[] }>({
6666
query: ({ deviceKey, methodName, params }) => ({
6767
url: `/deviceCommands/${deviceKey}`,
6868
method: "POST",

tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"root":["./src/app.test.tsx","./src/app.tsx","./src/index.tsx","./src/react-app-env.d.ts","./src/reportwebvitals.ts","./src/setuptests.ts","./src/features/configfile.tsx","./src/features/devicedetail.tsx","./src/features/devicelist.tsx","./src/features/errorbox.tsx","./src/features/topnav.tsx","./src/features/types.tsx","./src/features/versions.tsx","./src/features/debugconsole/consolewindow.tsx","./src/features/debugconsole/debugconsole.tsx","./src/features/debugconsole/debugfilters.tsx","./src/features/debugconsole/logmessagedetaildrawer.tsx","./src/features/debugconsole/minimumlogleveldropdown.tsx","./src/features/debugconsole/restartconfirmmodal.tsx","./src/features/debugconsole/debugconsts.ts","./src/features/debugconsole/hooks/usefilteredmessages.ts","./src/services/httpservice.ts","./src/shared/filterclearbutton.tsx","./src/shared/filterdropdownsearchparams.tsx","./src/shared/filtersearchtext.tsx","./src/shared/headerscrollerfooter.tsx","./src/shared/listfiltersheader.tsx","./src/shared/tablecellspacer.tsx","./src/shared/icons/objecticons.ts","./src/shared/icons/othericons.ts","./src/shared/icons/index.tsx","./src/shared/types/idlabel.ts","./src/shared/types/logmessage.ts","./src/store/apislice.ts","./src/store/hooks.ts","./src/store/store.ts","./src/store/commonui/commonuislice.ts","./src/store/commonui/commonuistate.ts","./vite.config.ts"],"version":"6.0.2"}
1+
{"root":["./src/app.test.tsx","./src/app.tsx","./src/index.tsx","./src/react-app-env.d.ts","./src/reportwebvitals.ts","./src/setuptests.ts","./src/features/configfile.tsx","./src/features/devicedetail.tsx","./src/features/devicelist.tsx","./src/features/errorbox.tsx","./src/features/topnav.tsx","./src/features/types.tsx","./src/features/versions.tsx","./src/features/debugconsole/consolewindow.tsx","./src/features/debugconsole/debugconsole.tsx","./src/features/debugconsole/debugfilters.tsx","./src/features/debugconsole/logmessagedetaildrawer.tsx","./src/features/debugconsole/minimumlogleveldropdown.tsx","./src/features/debugconsole/restartconfirmmodal.tsx","./src/features/debugconsole/debugconsts.ts","./src/features/debugconsole/hooks/usefilteredmessages.ts","./src/services/httpservice.ts","./src/shared/filterclearbutton.tsx","./src/shared/filterdropdownsearchparams.tsx","./src/shared/filtersearchtext.tsx","./src/shared/headerscrollerfooter.tsx","./src/shared/listfiltersheader.tsx","./src/shared/tablecellspacer.tsx","./src/shared/icons/objecticons.ts","./src/shared/icons/othericons.ts","./src/shared/icons/index.tsx","./src/shared/types/idlabel.ts","./src/shared/types/logmessage.ts","./src/store/apislice.ts","./src/store/hooks.ts","./src/store/store.ts","./src/store/commonui/commonuihooks.ts","./src/store/commonui/commonuiselectors.ts","./src/store/commonui/commonuislice.ts","./src/store/commonui/commonuistate.ts","./vite.config.ts"],"version":"6.0.2"}

0 commit comments

Comments
 (0)