https://superchat-production.firebaseapp.com/
https://components-e2e6e.firebaseapp.com/
npm inpm start
- Router :
Router Simple router based on HTML5 History API
- utils
- AvatarService
Service for getting users avatars in chat
- ChatService
Service of chat functionality. Provide sending and polling of messages.
- HttpService
Service for making of http requests
- Emitter :
Emitter This provides methods used for event handling. It's not meant to be used directly.
- ChatData :
Object - ChatMessage :
Object
Simple router based on HTML5 History API
- Router :
Router
Kind: inner class of Router
Kind: inner property of Router
Kind: inner property of Router
Kind: inner property of Router
Register the view for the path
Kind: inner method of Router
Access: public
| Param | Type |
|---|---|
| path | string |
| view | BaseView |
Start listening popstate event and clicks on links into the node
Kind: inner method of Router
Access: public
Switch route to the path
Kind: inner method of Router
Returns: boolean - - is route exists
Access: public
| Param | Type |
|---|---|
| path | string |
- utils
- ~deepEqual(src, dest) ⇒
boolean - ~capitalize(str) ⇒
string
- ~deepEqual(src, dest) ⇒
Сравнивает объекты по значниию
Kind: inner method of utils
| Param | Type |
|---|---|
| src | Object |
| dest | Object |
Поднимает первую букву строки в верхний регистр
Kind: inner method of utils
| Param | Type |
|---|---|
| str | string |
Service for getting users avatars in chat
Service of chat functionality. Provide sending and polling of messages.
- ChatService
- exports.ChatService ⏏
- instance
- inner
- exports.ChatService ⏏
Kind: Exported class
Mixes: Emitter
Link for symbol for storign callbacks
Kind: instance property of exports.ChatService
Mixes: symbol
Method for apply mixin to the recipient
Kind: instance method of exports.ChatService
Mixes: apply
| Param | Type | Description |
|---|---|---|
| recipient | * |
object to install functionality |
Kind: inner method of exports.ChatService
Access: public
| Param | Type | Description |
|---|---|---|
| name | string |
set username field |
Service for making of http requests
Emitter : Emitter
This provides methods used for event handling. It's not meant to be used directly.
Kind: global mixin
Link for symbol for storign callbacks
Kind: static property of Emitter
Method for apply mixin to the recipient
Kind: static method of Emitter
| Param | Type | Description |
|---|---|---|
| recipient | * |
object to install functionality |
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| user | string |
имя текущего пользователя |
| messages | Array.<ChatMessage> |
масси сообщений в чате |
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| text | string |
Текст сообщения |
| name | string |
имя отправителя сообщения |