diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-13 16:10:26 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-13 16:10:26 +0000 |
| commit | 6e0ca3212a6c4e38ee5cf4089342cd9f711b0a7c (patch) | |
| tree | a737d9c27f04de64e90544b5b0c375760daa7305 | |
| parent | 7c1df6a3b0d5f90a3b57e1682bcac0470fae3095 (diff) | |
| download | mullvadvpn-6e0ca3212a6c4e38ee5cf4089342cd9f711b0a7c.tar.xz mullvadvpn-6e0ca3212a6c4e38ee5cf4089342cd9f711b0a7c.zip | |
Update README
| -rw-r--r-- | README.md | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -27,4 +27,26 @@ - **test/** - tests - **scripts/** - support scripts for development - **init.js** - entry file for electron, points to compiled **main.js** -- **distribution.yml** - distribution configuration
\ No newline at end of file +- **distribution.yml** - distribution configuration + +## View layout + +Most of application layouts consist of header bar area and main content area. Three of components from `components/Layout` help to assemble each view, i.e: + +``` +<Layout> + <Header /> + <Container> + { /* content goes here */ } + </Container> +</Layout> +``` + +## Redux and Backend communication + +Redux store keeps data displayed in user interface. Backend is connected with the app via event system. + +There are two helpers responsible for events translation: + +- **app/lib/backend-redux-actions.js** - translates events into redux actions +- **app/lib/backend-routing.js** - application logic based on received events (i.e managing active route etc..) |
