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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user