refactor: Moving to svelteless, added Jenkinsfile
Some checks failed
Gitea djledda.de/arne-drums/pipeline/head There was a failure building this commit
Some checks failed
Gitea djledda.de/arne-drums/pipeline/head There was a failure building this commit
This commit is contained in:
54
src/main.ts
54
src/main.ts
@@ -1,18 +1,38 @@
|
||||
import App from './ui/App.svelte';
|
||||
import Store from "./Store";
|
||||
|
||||
const app = new App({
|
||||
target: document.body,
|
||||
props: {
|
||||
store: new Store({
|
||||
bars: 10,
|
||||
timeSig: {
|
||||
down: 4,
|
||||
up: 4,
|
||||
},
|
||||
drumSchema: ['LF', 'LH', 'RH', 'RF'],
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
import App from "./ui/App.svelte";
|
||||
import Store from "./Store";
|
||||
|
||||
const defaultSettings = {
|
||||
bars: 10,
|
||||
timeSig: {
|
||||
down: 4,
|
||||
up: 4,
|
||||
},
|
||||
};
|
||||
|
||||
const store = new Store({
|
||||
beats: [
|
||||
{
|
||||
name: "LF",
|
||||
...defaultSettings,
|
||||
},
|
||||
{
|
||||
name: "LH",
|
||||
...defaultSettings,
|
||||
},
|
||||
{
|
||||
name: "RH",
|
||||
...defaultSettings,
|
||||
},
|
||||
{
|
||||
name: "RF",
|
||||
...defaultSettings,
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
const app = new App({
|
||||
target: document.body,
|
||||
props: {store},
|
||||
});
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user