https://superchat-production.firebaseapp.com/
https://components-e2e6e.firebaseapp.com/
npm i
npm start
Router
Simple router based on HTML5 History API
Service for getting users avatars in chat
Service of chat functionality. Provide sending and polling of messages.
Service for making of http requests
Emitter
This provides methods used for event handling. It's not meant to be used directly.
Object
Object
Router
Simple router based on HTML5 History API
Router
Kind: inner class of Router
HTMLElement
Kind: inner property of Router
History
Kind: inner property of Router
Object
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
boolean
Switch route to the path
Kind: inner method of Router
Returns: boolean
- - is route exists
Access: public
Param | Type |
---|---|
path | string |
boolean
string
boolean
Сравнивает объекты по значниию
Kind: inner method of utils
Param | Type |
---|---|
src | Object |
dest | Object |
string
Поднимает первую букву строки в верхний регистр
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.
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
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 |
Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
user | string |
имя текущего пользователя |
messages | Array.<ChatMessage> |
масси сообщений в чате |
Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
text | string |
Текст сообщения |
name | string |
имя отправителя сообщения |