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.

30 lines
1.0KB

  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. class WBBrowse extends Component {
  7. render({ ownerUuid, activePage, appCallbacks }) {
  8. return (
  9. <div>
  10. <WBNavbar items={ [
  11. { 'name': 'Browse', 'active': true },
  12. { 'name': 'User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  13. ] } rhs={ (
  14. <WBInlineSearch />
  15. ) } onItemClicked={ appCallbacks.navbarItemClicked } />
  16. <WBProjectListing arvHost="api.arkau.roche.com"
  17. arvToken="v2/arkau-gj3su-uf4hnu2o2qkvm8j/15kla38mafzq6b31d5t74ynhk6iuy32v1ticslodr0obvvhde9"
  18. ownerUuid={ ownerUuid }
  19. itemsPerPage="5"
  20. activePage={ Number(activePage || 0) }
  21. onPageChanged={ i => route('/browse/' + (ownerUuid || '') + '/' + i)} />
  22. </div>
  23. );
  24. }
  25. }
  26. export default WBBrowse;