Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Jan 23, 2024
1 parent 4e6ea9d commit 7ce988e
Show file tree
Hide file tree
Showing 10 changed files with 1,416 additions and 521 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="dark h-full" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 2 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"jsxImportSource": "solid-js",
"types": ["vite/client"],
"noEmit": true,
"isolatedModules": true
}
"isolatedModules": true,
},
}
1,887 changes: 1,391 additions & 496 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"postcss-input-range": "^5.0.0",
"prettier": "^2.8.7",
"prettier": "^3.2.4",
"tailwindcss": "^3.2.6",
"typescript": "^5.0.2",
"vite": "^4.1.1",
"vite-plugin-singlefile": "^0.13.3",
"vite": "^5.0.12",
"vite-plugin-singlefile": "^1.0.0",
"vite-plugin-solid": "^2.5.0"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Control/Regions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ export function Regions() {

const isPlaying = createSelector(
currentTime,
(r: Region, t) => t >= Math.floor(r.startTime) && t <= Math.ceil(r.endTime)
(r: Region, t) => t >= Math.floor(r.startTime) && t <= Math.ceil(r.endTime),
);

const progress = (r: Region) =>
Math.max(
0,
Math.min(
100,
((currentTime() - r.startTime) / (r.endTime - r.startTime)) * 100
)
((currentTime() - r.startTime) / (r.endTime - r.startTime)) * 100,
),
);

return (
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export function reduceActions(actions: Action[]): Action[] {
type: "ToggleSendMute",
track: parseInt(track),
send,
} as ToggleSendMuteAction)
)
}) as ToggleSendMuteAction,
),
),
];
}
Expand Down
6 changes: 3 additions & 3 deletions src/Data/ClientLoop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Subscription {

export function initializeClient(
interval: number,
onReply: (data: string) => void
onReply: (data: string) => void,
): [Subscription, () => void] {
let unmount = false;
let ignoreResults = false;
Expand Down Expand Up @@ -69,7 +69,7 @@ export function initializeClient(
promises = promises.then(() =>
runSubscriptions().catch((e) => {
console.log("Request failed", e);
})
}),
);
}, interval);
}
Expand Down Expand Up @@ -101,7 +101,7 @@ export function initializeClient(
promises = promises.then(() =>
runQueue().catch((e) => {
console.log("Request failed", e);
})
}),
);
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/Data/Context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function ReaperProvider(p: ReaperProps) {
setSends: (sends) => {
setSends(reconcile(sends));
},
})
}),
);
onCleanup(destroyClient);

Expand Down Expand Up @@ -120,7 +120,7 @@ export function ReaperProvider(p: ReaperProps) {
(track) => track.id === id,
produce((state) => {
state.volume = volume;
})
}),
);
},
setSendVolume(send, volume) {
Expand All @@ -131,7 +131,7 @@ export function ReaperProvider(p: ReaperProps) {
send: send.index,
volume,
},
true
true,
);
setSends(
(s) =>
Expand All @@ -140,7 +140,7 @@ export function ReaperProvider(p: ReaperProps) {
s.trackTo == s.trackTo,
produce((state) => {
state.volume = volume;
})
}),
);
},
toggleSendMute(send) {
Expand All @@ -150,7 +150,7 @@ export function ReaperProvider(p: ReaperProps) {
track: send.trackTo,
send: send.index,
},
true
true,
);
setSends(
(s) =>
Expand All @@ -159,7 +159,7 @@ export function ReaperProvider(p: ReaperProps) {
s.trackTo == s.trackTo,
produce((state) => {
state.mute = !state.mute;
})
}),
);
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/Data/ResponseParser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function colorToRgba(color: string): string {

export function onReply(
result: string,
{ setPlayState, setCurrentTime, setRegions, setTracks, setSends }: Setters
{ setPlayState, setCurrentTime, setRegions, setTracks, setSends }: Setters,
) {
let regionStrings: string[][] = [];

Expand Down Expand Up @@ -44,7 +44,7 @@ export function onReply(
if (state & 1) return PlayState.Playing;
if (state & 2) return PlayState.Paused;
return PlayState.Stopped;
})(parseInt(tokens[1]))
})(parseInt(tokens[1])),
);

break;
Expand All @@ -65,7 +65,7 @@ export function onReply(
startTime: parseFloat(startTime),
endTime: parseFloat(endTime),
color: colorToRgba(color),
})
}),
);

setRegions(newRegions);
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"jsxImportSource": "solid-js",
"jsx": "preserve",
"strict": true,
"baseUrl": "./"
}
"baseUrl": "./",
},
}

0 comments on commit 7ce988e

Please sign in to comment.