gridTemplateColumns: dims[1], | gridTemplateColumns: dims[1], | ||||
} | } | ||||
return m('.videos', {style}, | return m('.videos', {style}, | ||||
m(Video, {username: State.username}), | |||||
State.online.filter(username => username != State.username) | |||||
.map(username => m(Video, {key: username, username})) | |||||
State.online.map(username => m(Video, {key: username, username})) | |||||
) | ) | ||||
}, | }, | ||||
} | } |