Commit e8235047 authored by Jakob Moser's avatar Jakob Moser
Browse files

Reformat and cleanup

parent 4081ff1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ const SongList = {
                        onClear: () => {
                            const params = Object.assign({}, m.route.param())
                            delete params.q
                            const path = m.route.get().split('?')[0]
                            const path = m.route.get().split("?")[0]
                            m.route.set(path, params, { replace: true })
                        },
                    }),
@@ -64,7 +64,7 @@ const SongList = {
                        onClear: () => {
                            const params = Object.assign({}, m.route.param())
                            delete params.q
                            const path = m.route.get().split('?')[0]
                            const path = m.route.get().split("?")[0]
                            m.route.set(path, params, { replace: true })
                        },
                    }),
+4 −3
Original line number Diff line number Diff line
@@ -3,10 +3,11 @@ import SongList from "../../SongList.mjs"

export default {
    view() {
        return m(Base, {
            children: m(SongList, {
        return m(
            Base,
            m(SongList, {
                currentView: "all",
            }),
        })
        )
    },
}
+1 −5
Original line number Diff line number Diff line
@@ -2,10 +2,6 @@ import Header from "../pieces/Header.mjs"

export default {
    view(vnode) {
        const { children } = vnode.attrs || {}
        return [
            m(Header),
            m("main", children),
        ]
        return [m(Header), m("main", vnode.children)]
    },
}
+4 −3
Original line number Diff line number Diff line
@@ -3,10 +3,11 @@ import SongList from "../../SongList.mjs"

export default {
    view() {
        return m(Base, {
            children: m(SongList, {
        return m(
            Base,
            m(SongList, {
                currentView: "favorites",
            }),
        })
        )
    },
}
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ export default {
                    } else {
                        delete params.q
                    }
                    const path = m.route.get().split('?')[0]
                    const path = m.route.get().split("?")[0]
                    m.route.set(path, params, { replace: true })
                },
            }),