Chore: Add issue/pr template and general housekeeping tools and docs (#900)

* Add linting

* Add issue templates and docs

* Add root eslint config and remove tslint

* Autofix lint issues
This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 4cfd9db6cf
commit 99e158bd39
44 changed files with 2505 additions and 2249 deletions

View File

@@ -186,20 +186,20 @@
};
export const triggerUpdateMeta = () => {
Promise.resolve().then(() => {
return Promise.resolve().then(() => {
meta = replayer.getMetaData();
})
}
onMount(() => {
playerState = replayer.service.state.value as typeof playerState;
speedState = replayer.speedService.state.value as typeof speedState;
playerState = replayer.service.state.value;
speedState = replayer.speedService.state.value ;
replayer.on(
'state-change',
(states: { player?: PlayerMachineState; speed?: SpeedMachineState }) => {
const { player, speed } = states;
if (player?.value && playerState !== player.value) {
playerState = player.value as typeof playerState;
playerState = player.value ;
switch (playerState) {
case 'playing':
loopTimer();
@@ -212,7 +212,7 @@
}
}
if (speed?.value && speedState !== speed.value) {
speedState = speed.value as typeof speedState;
speedState = speed.value ;
}
},
);
@@ -338,7 +338,7 @@
class="rr-progress"
class:disabled={speedState === 'skipping'}
bind:this={progress}
on:click={(event) => handleProgressClick(event)}>
on:click={handleProgressClick}>
<div
class="rr-progress__step"
bind:this={step}