Rework website with bulma instead of bootstrap #6

Manually merged
tlater merged 43 commits from tlater/bulma2 into master 2022-08-14 00:26:49 +01:00
5 changed files with 11 additions and 1 deletions
Showing only changes of commit d6cb49a0d1 - Show all commits

1
src/global.d.ts vendored Normal file
View file

@ -0,0 +1 @@
declare module "*.mp3";

View file

@ -28,3 +28,5 @@ document.addEventListener("DOMContentLoaded", () => {
}); });
}); });
}); });
export {};

View file

@ -5,7 +5,6 @@ import { Provider } from "react-redux";
import { store } from "./store"; import { store } from "./store";
import MusicPlayer from "./MusicPlayer"; import MusicPlayer from "./MusicPlayer";
import { setSource, setTitle } from "./store/music/types"; import { setSource, setTitle } from "./store/music/types";
// @ts-ignore - mp3 files have no types.
import mseq from "./Mseq_-_Journey.mp3"; import mseq from "./Mseq_-_Journey.mp3";
const rootElement = document.getElementById("playerUI"); const rootElement = document.getElementById("playerUI");

View file

@ -26,17 +26,25 @@ const initialState: MusicState = {
export const musicStateReducer = createReducer<MusicState>( export const musicStateReducer = createReducer<MusicState>(
{ {
// @ts-ignore - These appear to be working, even if functions
// are technically prohibited, and were recommended upstream
[setTitle]: (state: MusicState, title: Title): MusicState => { [setTitle]: (state: MusicState, title: Title): MusicState => {
return update(state, { return update(state, {
title: { $set: title }, title: { $set: title },
}); });
}, },
// @ts-ignore - These appear to be working, even if functions
// are technically prohibited, and were recommended upstream
[togglePlay]: (state: MusicState): MusicState => { [togglePlay]: (state: MusicState): MusicState => {
return update(state, { $toggle: ["playing"] }); return update(state, { $toggle: ["playing"] });
}, },
// @ts-ignore - These appear to be working, even if functions
// are technically prohibited, and were recommended upstream
[toggleMute]: (state: MusicState): MusicState => { [toggleMute]: (state: MusicState): MusicState => {
return update(state, { $toggle: ["muted"] }); return update(state, { $toggle: ["muted"] });
}, },
// @ts-ignore - These appear to be working, even if functions
// are technically prohibited, and were recommended upstream
[setSource]: (state: MusicState, source: string): MusicState => { [setSource]: (state: MusicState, source: string): MusicState => {
return update(state, { source: { $set: source } }); return update(state, { source: { $set: source } });
}, },