* hidously mangle ChatView to start moving it to React * fix up Realtime/index.js - should be good now? * in theory this should compile * ok the MapChat renders using react... * move Handlers code into react - woot * try reintegrating backbone * fix wrapper styling * chat box opens and closes properly * make the unread count work * organize more sanely * refactor some of the ChatView functions * removed management of chatview from room * css can stop handling logic right about now * makin things work * don't need room here anymore * set raw html in message * make pending work * removeParticipant when mapper left was broken * re-enable scrolling, focus, and blur
21 lines
525 B
JavaScript
21 lines
525 B
JavaScript
/* global $ */
|
|
|
|
import ExploreMaps from './ExploreMaps'
|
|
import ChatView from './ChatView'
|
|
import VideoView from './VideoView'
|
|
import Room from './Room'
|
|
import { JUNTO_UPDATED } from '../Realtime/events'
|
|
|
|
const Views = {
|
|
init: (serverData) => {
|
|
$(document).on(JUNTO_UPDATED, () => ExploreMaps.render())
|
|
ChatView.init([serverData['sounds/MM_sounds.mp3'],serverData['sounds/MM_sounds.ogg']])
|
|
},
|
|
ExploreMaps,
|
|
ChatView,
|
|
VideoView,
|
|
Room
|
|
}
|
|
|
|
export { ExploreMaps, ChatView, VideoView, Room }
|
|
export default Views
|