Loading frontend/components/pieces/Artist.js +1 −1 Original line number Diff line number Diff line // Artist.js import Song from "./Song.js" const Artist = { Loading frontend/components/pieces/PaginationControls.js +1 −1 Original line number Diff line number Diff line // frontend/PaginationControls.js const PaginationControls = { view: function (vnode) { const { currentPage, totalPages, onPageChange } = vnode.attrs Loading frontend/components/pieces/SearchBar.js +3 −0 Original line number Diff line number Diff line export default { view: function () { // TODO The search bar behaves laggily with this, because every time an // input is made, the route is updated, updating the fields value again. // This is probably just a design flaw, and should be fixed const query = m.route.param("q") || "" return m("search", [ m("input[type=search]", { Loading frontend/components/pieces/Song.js +1 −1 Original line number Diff line number Diff line // Song.js const Song = { view: function (vnode) { const { song } = vnode.attrs Loading frontend/components/pieces/SongList.js +1 −1 Original line number Diff line number Diff line // frontend/SongList.js import Artist from "./Artist.js" import { renderMessage } from "./Message.js" import ClearSearchLink from "./ClearSearchLink.js" Loading Loading
frontend/components/pieces/Artist.js +1 −1 Original line number Diff line number Diff line // Artist.js import Song from "./Song.js" const Artist = { Loading
frontend/components/pieces/PaginationControls.js +1 −1 Original line number Diff line number Diff line // frontend/PaginationControls.js const PaginationControls = { view: function (vnode) { const { currentPage, totalPages, onPageChange } = vnode.attrs Loading
frontend/components/pieces/SearchBar.js +3 −0 Original line number Diff line number Diff line export default { view: function () { // TODO The search bar behaves laggily with this, because every time an // input is made, the route is updated, updating the fields value again. // This is probably just a design flaw, and should be fixed const query = m.route.param("q") || "" return m("search", [ m("input[type=search]", { Loading
frontend/components/pieces/Song.js +1 −1 Original line number Diff line number Diff line // Song.js const Song = { view: function (vnode) { const { song } = vnode.attrs Loading
frontend/components/pieces/SongList.js +1 −1 Original line number Diff line number Diff line // frontend/SongList.js import Artist from "./Artist.js" import { renderMessage } from "./Message.js" import ClearSearchLink from "./ClearSearchLink.js" Loading