Fela Maslen 2de4f6919f refactor: smaller (partial) state update action payloads преди 4 години
..
public 6ae2b251e3 Refactor/project structure (#3) преди 5 години
src 2de4f6919f refactor: smaller (partial) state update action payloads преди 4 години
.dockerignore 3810564d53 feat: continuous integration and kubernetes config преди 5 години
.env.example a958d33941 feat: skip to next / previous song преди 5 години
.env.test 6ae2b251e3 Refactor/project structure (#3) преди 5 години
.eslintrc.js 1b15dfcbfe feat: play queue преди 5 години
.gitignore 6ae2b251e3 Refactor/project structure (#3) преди 5 години
.prettierrc.js 6ae2b251e3 Refactor/project structure (#3) преди 5 години
Dockerfile 3810564d53 feat: continuous integration and kubernetes config преди 5 години
Makefile 28a2fb8cd1 feat: grouped songs and queue position indicator преди 5 години
README.md 6ae2b251e3 Refactor/project structure (#3) преди 5 години
builder.Dockerfile 34e4e59b50 fix: add Makefile to image преди 5 години
nginx.conf 3810564d53 feat: continuous integration and kubernetes config преди 5 години
package.json 69c2536819 feat: basic mobile UI преди 5 години
tsconfig.json 6ae2b251e3 Refactor/project structure (#3) преди 5 години
yarn.lock 69c2536819 feat: basic mobile UI преди 5 години

README.md

gmus-web

This is a frontend web app for use with the gmus backend.

Scripts

yarn start

Runs the app in the development mode.

yarn test

Runs tests

yarn build

Builds app

Architecture

Global app

This is the main part of the app. It is responsible for handling:

  • Global state such as which song is playing, and the current time
  • Connections to the API, through a websocket
  • Sharing state with other clients, and responding to updates from the API
  • Playing music, through an HTML element
  • UI

    This is the part of the app which implements user interaction. It is responsible for handling:

    • User input, to decide which actions to take
    • Display, to let the user know the state of things

    UIs follow a common model and are built into separate bundles, then lazily loaded.

    The following UIs are implemented:

    cmus

    This is based heavily on the cmus ncurses-based music player, and is essentially a web-based client with vim-like bindings for navigation.