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.

40 lines
1.5KB

  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. import WBTabs from 'wb-tabs';
  8. class WBBrowse extends Component {
  9. render({ ownerUuid, activePage, appCallbacks, appState }) {
  10. return (
  11. <div>
  12. <WBNavbar items={ [
  13. { 'name': 'Home', 'id': 'home', 'active': (ownerUuid === appState.currentUser.uuid) },
  14. { 'name': 'All Projects', 'id': 'all-projects', 'active': (!ownerUuid) },
  15. { 'name': 'User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  16. ] } rhs={ (
  17. <WBInlineSearch />
  18. ) } onItemClicked={ appCallbacks.navbarItemClicked } />
  19. <WBProjectCrumbs uuid={ ownerUuid } appState={ appState }
  20. onItemClicked={ item => route('/browse/' + item['uuid']) } />
  21. <WBTabs tabs={ [ { 'name': 'Projects', 'isActive': true } ] } />
  22. <WBProjectListing arvHost={ appState.arvHost }
  23. arvToken={ appState.arvToken }
  24. ownerUuid={ ownerUuid }
  25. itemsPerPage="5"
  26. activePage={ Number(activePage || 0) }
  27. onPageChanged={ i => route('/browse/' + (ownerUuid || '') + '/' + i)} />
  28. <WBTabs tabs={ [ { 'name': 'Collections', 'isActive': true }, 'Processes', 'Workflows' ] } />
  29. </div>
  30. );
  31. }
  32. }
  33. export default WBBrowse;