diff --git a/src/App.vue b/src/App.vue index 428952f..1cf7e68 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,3 +1,4 @@ +import {PlayingState} from "@/common"; @@ -29,6 +30,7 @@ diff --git a/src/common.ts b/src/common.ts new file mode 100644 index 0000000..a751a65 --- /dev/null +++ b/src/common.ts @@ -0,0 +1,12 @@ +enum LoadingState { + UNLOADED = "unloaded", + LOADING = "loading", + LOADED = "loaded", +} + +enum PlayingState { + STOPPED = "stopped", + PLAYING = "playing" +} + +export {LoadingState, PlayingState}; diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 8eb75d3..d8c4c60 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -1,13 +1,13 @@