| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import ScrollToTop from '../ScrollToTop'; |
||
| 7 | const provideServices = (bottle, connect, withRouter) => { |
||
| 8 | bottle.constant('ScrollToTop', ScrollToTop); |
||
| 9 | bottle.decorator('ScrollToTop', withRouter); |
||
| 10 | |||
| 11 | bottle.serviceFactory('MainHeader', MainHeader, 'ServersDropdown'); |
||
| 12 | bottle.decorator('MainHeader', withRouter); |
||
| 13 | |||
| 14 | bottle.serviceFactory('Home', () => Home); |
||
| 15 | bottle.decorator('Home', connect([ 'servers' ], [ 'resetSelectedServer' ])); |
||
| 16 | |||
| 17 | bottle.serviceFactory( |
||
| 18 | 'MenuLayout', |
||
| 19 | MenuLayout, |
||
| 20 | 'TagsList', |
||
| 21 | 'ShortUrls', |
||
| 22 | 'AsideMenu', |
||
| 23 | 'CreateShortUrl', |
||
| 24 | 'ShortUrlVisits' |
||
| 25 | ); |
||
| 26 | bottle.decorator('MenuLayout', connect([ 'selectedServer', 'shortUrlsListParams' ], [ 'selectServer' ])); |
||
| 27 | bottle.decorator('MenuLayout', withRouter); |
||
| 28 | |||
| 29 | bottle.serviceFactory('AsideMenu', AsideMenu, 'DeleteServerButton'); |
||
| 30 | }; |
||
| 31 | |||
| 33 |