Skip to content

Commit

Permalink
add docs in both stores
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored and ThibaultNocchi committed Feb 28, 2023
1 parent b292820 commit 40d472a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/store/playbackManager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* This store handles the state of the playback
*
* It must be used in an agnostic way to cover both local and remote playback.
* If you want to handle the state of the local player element, use playerElement store instead.
*/
import { reactive, ref, watch } from 'vue';
import { shuffle, isNil, cloneDeep } from 'lodash-es';
import {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/store/playerElement.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* This store handles the state of the local player.
*
* In the other part, playbackManager is suited to handle the playback state in
* an agnostic way, regardless of where the media is being played (remotely or locally)
*/
import { cloneDeep } from 'lodash-es';
import { nextTick, reactive, watch } from 'vue';
// @ts-expect-error - No types on libass-wasm
Expand Down

0 comments on commit 40d472a

Please sign in to comment.