IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
1.1KB

  1. import { h, Component } from 'preact';
  2. import { route } from 'preact-router';
  3. import WBNavbar from 'wb-navbar';
  4. import WBProjectListing from 'wb-project-listing';
  5. import WBInlineSearch from 'wb-inline-search';
  6. import WBProjectCrumbs from 'wb-project-crumbs';
  7. class WBBrowse extends Component {
  8. render({ ownerUuid, activePage, appCallbacks, appState }) {
  9. return (
  10. <div>
  11. <WBNavbar items={ [
  12. { 'name': 'Browse', 'active': true },
  13. { 'name': 'User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  14. ] } rhs={ (
  15. <WBInlineSearch />
  16. ) } onItemClicked={ appCallbacks.navbarItemClicked } />
  17. <WBProjectCrumbs uuid={ ownerUuid } appState={ appState }
  18. onItemClicked={ item => route('/browse/' + item['uuid']) } />
  19. <WBProjectListing arvHost={ appState.arvHost }
  20. arvToken={ appState.arvToken }
  21. ownerUuid={ ownerUuid }
  22. itemsPerPage="5"
  23. activePage={ Number(activePage || 0) }
  24. onPageChanged={ i => route('/browse/' + (ownerUuid || '') + '/' + i)} />
  25. </div>
  26. );
  27. }
  28. }
  29. export default WBBrowse;