mirror of https://github.com/vector-im/riot-web
Spoken to @ara4n about names/conventions. Settled on the following layout:
src/components
|_____________views
| |____ tiles
| | |___ MTextTile.js
| | |___ MNoticeTile.js
| | |___ ...
| |
| |____ avatars
| | |____ RoomAvatar.js
| | |____ MemberAvatar.js
| | |____ ...
| |
| |____ ...
|
|_____________structures
|____ RoomView.js
|____ UserSettings.js
|____ CreateRoom.js
|____ ...
Views are the "pure UI" components which can be reused. Structures are the
wire components which give important contextual information to the views e.g.
a view may be MemberList, but it's where it is in the structure that defines
that it is a *Room* MemberList.
|
||
|---|---|---|
| .. | ||
| components | ||
| controllers | ||
| CallHandler.js | ||
| ContentMessages.js | ||
| MatrixClientPeg.js | ||
| MatrixTools.js | ||
| Modal.js | ||
| Modulator.js | ||
| Presence.js | ||
| RoomListSorter.js | ||
| Signup.js | ||
| SignupStages.js | ||
| Skinner.js | ||
| SlashCommands.js | ||
| TextForEvent.js | ||
| UserActivity.js | ||
| WhoIsTyping.js | ||
| dispatcher.js | ||
| encryption.js | ||
| extend.js | ||
| index.js | ||
| linkify-matrix.js | ||