refactor: Moving to svelteless, added Jenkinsfile
Some checks failed
Gitea djledda.de/arne-drums/pipeline/head There was a failure building this commit

This commit is contained in:
Daniel Ledda
2021-08-28 20:57:20 +02:00
parent b1e65acda6
commit 87b9078072
20 changed files with 8409 additions and 1064 deletions

View File

@@ -1,20 +0,0 @@
import type BeatUnit from "./BeatUnit";
import Beat, {BeatInitOptions} from "./Beat";
export default class Store {
private beat: Beat;
constructor(options: BeatInitOptions) {
this.beat = new Beat(options);
}
getBeat() {
return this.beat;
}
subscribeBeatUnit(schemaKey: string, index: number, callback: (unit: BeatUnit) => void): BeatUnit {
this.beat.onUnitUpdate(() => {
callback(this.beat.getUnit(schemaKey, index));
});
return this.beat.getUnit(schemaKey, index);
}
}