Skip to content

Commit beb48b6

Browse files
committed
cleanup
1 parent efce573 commit beb48b6

4 files changed

Lines changed: 14 additions & 77 deletions

File tree

packages/raga-app/package.json

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,62 +20,29 @@
2020
"dependencies": {
2121
"@adahiya/raga-lib": "workspace:^",
2222
"@adahiya/raga-web-app": "workspace:^",
23-
"@emotion/react": "^11.14.0",
24-
"@mantine/colors-generator": "^7.17.3",
25-
"@mantine/core": "^7.17.3",
26-
"@mantine/dates": "^7.17.3",
27-
"@mantine/dropzone": "^7.17.3",
28-
"@mantine/form": "^7.17.3",
29-
"@mantine/hooks": "^7.17.3",
30-
"@mantine/modals": "^7.17.3",
31-
"@mantine/notifications": "^7.17.3",
32-
"@mantine/nprogress": "^7.17.3",
33-
"@mantine/spotlight": "^7.17.3",
34-
"@number-flow/react": "^0.5.8",
35-
"@roarr/browser-log-writer": "^1.3.0",
36-
"@table-library/react-table-library": "^4.1.12",
3723
"@tinyhttp/app": "^2.5.2",
3824
"ansis": "^3.17.0",
3925
"app-root-dir": "^1.0.2",
40-
"chroma-js": "^3.1.2",
41-
"classnames": "^2.5.1",
42-
"clsx": "^2.1.1",
43-
"date-fns": "^4.1.0",
44-
"dayjs": "^1.11.13",
4526
"disconnect": "^1.2.2",
4627
"effection": "^3.4.0",
47-
"immer": "^10.1.1",
48-
"mantine-contextmenu": "^7.17.1",
4928
"milliparsec": "^5.0.2",
50-
"motion": "^12.6.3",
5129
"node-taglib-sharp": "^6.0.1",
52-
"pluralize": "^8.0.0",
5330
"radash": "^12.1.0",
5431
"react": "^19.1.0",
5532
"react-dom": "^19.1.0",
56-
"react-dropzone": "^14.3.8",
57-
"react-icons": "^5.5.0",
58-
"react-resizable-panels": "^2.1.7",
5933
"react-scan": "^0.3.4",
6034
"roarr": "^7.21.1",
6135
"serialize-error": "^12.0.0",
6236
"sirv": "^3.0.1",
63-
"use-immer": "^0.11.0",
64-
"usehooks-ts": "3.1.1",
65-
"vite-plugin-html-config": "^2.0.2",
66-
"wavesurfer.js": "^7.9.4",
67-
"web-audio-beat-detector": "^8.2.27",
68-
"zustand": "^5.0.3"
37+
"vite-plugin-html-config": "^2.0.2"
6938
},
7039
"devDependencies": {
7140
"@electron-forge/cli": "^7.8.1",
7241
"@electron-forge/maker-deb": "^7.8.1",
7342
"@electron-forge/maker-zip": "^7.8.1",
7443
"@electron-forge/plugin-vite": "^7.8.1",
7544
"@types/app-root-dir": "^0.1.4",
76-
"@types/chroma-js": "^3.1.1",
7745
"@types/node": "^22.15.24",
78-
"@types/pluralize": "^0.0.33",
7946
"@types/react": "^19.1.6",
8047
"@types/react-devtools": "^3.6.2",
8148
"@types/react-dom": "^19.1.5",

packages/raga-web-app/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"dayjs": "^1.11.13",
4040
"immer": "^10.1.1",
4141
"mantine-contextmenu": "^7.17.1",
42-
"milliparsec": "^5.0.2",
4342
"motion": "^12.6.3",
4443
"pluralize": "^8.0.0",
4544
"radash": "^12.1.0",
@@ -51,7 +50,6 @@
5150
"react-scan": "^0.3.4",
5251
"roarr": "^7.21.1",
5352
"serialize-error": "^12.0.0",
54-
"sirv": "^3.0.1",
5553
"use-immer": "^0.11.0",
5654
"usehooks-ts": "3.1.1",
5755
"wavesurfer.js": "^7.9.4",

packages/raga-web-app/src/store/slices/librarySlice.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import type {
66
import { call, type Operation } from "effection";
77
import { Roarr as log } from "roarr";
88

9-
import { DEBUG, LOAD_SWINSIAN_LIBRARY_TIMEOUT } from "../../common/constants";
9+
import {
10+
DEBUG,
11+
LOAD_SWINSIAN_LIBRARY_TIMEOUT,
12+
WRITE_MODIFIED_LIBRARY_TIMEOUT,
13+
} from "../../common/constants";
1014
import { ClientErrors } from "../../common/errorMessages";
1115
import {
1216
ClientEventChannel,
@@ -232,10 +236,8 @@ export const createLibrarySlice: AppStoreSliceCreator<LibraryState & LibraryActi
232236
set((state) => {
233237
const { longestCommonAudioFilePath } = data.libraryMeta;
234238
if (longestCommonAudioFilePath !== "") {
235-
log.debug(
236-
`[client] setting audio tracks root folder to ${String(longestCommonAudioFilePath)}`,
237-
);
238-
state.audioFilesRootFolder = String(longestCommonAudioFilePath);
239+
log.debug(`[client] setting audio tracks root folder to ${longestCommonAudioFilePath}`);
240+
state.audioFilesRootFolder = longestCommonAudioFilePath;
239241
}
240242
state.startAudioFilesServer();
241243
state.libraryLoadingState = "loaded";
@@ -277,7 +279,12 @@ export const createLibrarySlice: AppStoreSliceCreator<LibraryState & LibraryActi
277279
});
278280

279281
try {
280-
yield* call(window.api.waitForResponse(ServerEventChannel.WRITE_MODIFIED_LIBRARY_COMPLETE));
282+
yield* call(
283+
window.api.waitForResponse(
284+
ServerEventChannel.WRITE_MODIFIED_LIBRARY_COMPLETE,
285+
WRITE_MODIFIED_LIBRARY_TIMEOUT,
286+
),
287+
);
281288
set({ libraryWriteState: "none" });
282289
} catch {
283290
log.error(ClientErrors.LIBRARY_WRITE_TIMED_OUT);

yarn.lock

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,72 +22,39 @@ __metadata:
2222
"@electron-forge/maker-deb": "npm:^7.8.1"
2323
"@electron-forge/maker-zip": "npm:^7.8.1"
2424
"@electron-forge/plugin-vite": "npm:^7.8.1"
25-
"@emotion/react": "npm:^11.14.0"
26-
"@mantine/colors-generator": "npm:^7.17.3"
27-
"@mantine/core": "npm:^7.17.3"
28-
"@mantine/dates": "npm:^7.17.3"
29-
"@mantine/dropzone": "npm:^7.17.3"
30-
"@mantine/form": "npm:^7.17.3"
31-
"@mantine/hooks": "npm:^7.17.3"
32-
"@mantine/modals": "npm:^7.17.3"
33-
"@mantine/notifications": "npm:^7.17.3"
34-
"@mantine/nprogress": "npm:^7.17.3"
35-
"@mantine/spotlight": "npm:^7.17.3"
36-
"@number-flow/react": "npm:^0.5.8"
37-
"@roarr/browser-log-writer": "npm:^1.3.0"
38-
"@table-library/react-table-library": "npm:^4.1.12"
3925
"@tinyhttp/app": "npm:^2.5.2"
4026
"@types/app-root-dir": "npm:^0.1.4"
41-
"@types/chroma-js": "npm:^3.1.1"
4227
"@types/node": "npm:^22.15.24"
43-
"@types/pluralize": "npm:^0.0.33"
4428
"@types/react": "npm:^19.1.6"
4529
"@types/react-devtools": "npm:^3.6.2"
4630
"@types/react-dom": "npm:^19.1.5"
4731
"@vitejs/plugin-react": "npm:^4.5.0"
4832
ansis: "npm:^3.17.0"
4933
app-root-dir: "npm:^1.0.2"
50-
chroma-js: "npm:^3.1.2"
51-
classnames: "npm:^2.5.1"
52-
clsx: "npm:^2.1.1"
5334
cross-env: "npm:^7.0.3"
54-
date-fns: "npm:^4.1.0"
55-
dayjs: "npm:^1.11.13"
5635
disconnect: "npm:^1.2.2"
5736
effection: "npm:^3.4.0"
5837
electron: "npm:^35.5.0"
5938
electron-extension-installer: "npm:^1.2.0"
6039
eslint: "npm:^9.27.0"
61-
immer: "npm:^10.1.1"
62-
mantine-contextmenu: "npm:^7.17.1"
6340
milliparsec: "npm:^5.0.2"
64-
motion: "npm:^12.6.3"
6541
node-taglib-sharp: "npm:^6.0.1"
6642
package-up: "npm:^5.0.0"
67-
pluralize: "npm:^8.0.0"
6843
postcss: "npm:^8.5.4"
6944
postcss-preset-mantine: "npm:^1.17.0"
7045
postcss-simple-vars: "npm:^7.0.1"
7146
radash: "npm:^12.1.0"
7247
react: "npm:^19.1.0"
7348
react-devtools: "npm:^6.1.2"
7449
react-dom: "npm:^19.1.0"
75-
react-dropzone: "npm:^14.3.8"
76-
react-icons: "npm:^5.5.0"
77-
react-resizable-panels: "npm:^2.1.7"
7850
react-scan: "npm:^0.3.4"
7951
roarr: "npm:^7.21.1"
8052
sass: "npm:^1.89.0"
8153
serialize-error: "npm:^12.0.0"
8254
sirv: "npm:^3.0.1"
8355
typescript: "npm:^5.8.3"
84-
use-immer: "npm:^0.11.0"
85-
usehooks-ts: "npm:3.1.1"
8656
vite: "npm:^6.3.5"
8757
vite-plugin-html-config: "npm:^2.0.2"
88-
wavesurfer.js: "npm:^7.9.4"
89-
web-audio-beat-detector: "npm:^8.2.27"
90-
zustand: "npm:^5.0.3"
9158
languageName: unknown
9259
linkType: soft
9360

@@ -165,7 +132,6 @@ __metadata:
165132
eslint: "npm:^9.27.0"
166133
immer: "npm:^10.1.1"
167134
mantine-contextmenu: "npm:^7.17.1"
168-
milliparsec: "npm:^5.0.2"
169135
motion: "npm:^12.6.3"
170136
pluralize: "npm:^8.0.0"
171137
postcss: "npm:^8.5.4"
@@ -181,7 +147,6 @@ __metadata:
181147
roarr: "npm:^7.21.1"
182148
sass: "npm:^1.89.0"
183149
serialize-error: "npm:^12.0.0"
184-
sirv: "npm:^3.0.1"
185150
typescript: "npm:^5.8.3"
186151
use-immer: "npm:^0.11.0"
187152
usehooks-ts: "npm:3.1.1"

0 commit comments

Comments
 (0)