|
|
@ -15,24 +15,24 @@ const notes = [
|
|
|
|
{id: 'ggg', text: 'Note seven'},
|
|
|
|
{id: 'ggg', text: 'Note seven'},
|
|
|
|
{id: 'hhh', text: 'Note eight'}
|
|
|
|
{id: 'hhh', text: 'Note eight'}
|
|
|
|
];
|
|
|
|
];
|
|
|
|
return m('.app', [
|
|
|
|
return m('.app', {key: 'app'}, [
|
|
|
|
m('.top', [
|
|
|
|
m('.top', {key: 'top'}, [
|
|
|
|
m('.top-left', [
|
|
|
|
m('.top-left', {key: 'top-left'}, [
|
|
|
|
m('button', {key: 'button'}, 'New Note...'),
|
|
|
|
m('button', {key: 'button'}, 'New Note...'),
|
|
|
|
m('input.search', {key: 'search', value: ''}),
|
|
|
|
m('input.search', {key: 'search', value: ''}),
|
|
|
|
m('select.sorting', {key: 'sorting'}, [
|
|
|
|
m('select.sorting', {key: 'sorting'}, [
|
|
|
|
m('option', 'Newest -> Oldest'),
|
|
|
|
m('option', {key: 'new-old'}, 'Newest -> Oldest'),
|
|
|
|
m('option', 'Oldest -> Newest')
|
|
|
|
m('option', {key: 'old-new'}, 'Oldest -> Newest')
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
m('.top-right', [
|
|
|
|
m('.top-right', {key: 'top-right'}, [
|
|
|
|
m('.bin-id', bin.id),
|
|
|
|
m('.bin-id', {key: 'bin-id'}, bin.id),
|
|
|
|
m('button', 'New Bin...')
|
|
|
|
m('button', {key: 'new-bin-button'}, 'New Bin...')
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
m('.main', [
|
|
|
|
m('.main', {key: 'main'}, [
|
|
|
|
m('.notes', notes.map(note =>
|
|
|
|
m('.notes', notes.map(note =>
|
|
|
|
m(Note, {note})
|
|
|
|
m(Note, {note, key: note.id})
|
|
|
|
))
|
|
|
|
))
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|