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!
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

38 líneas
1.3KB

  1. import { h, Component } from 'preact';
  2. import WBTabs from 'wb-tabs';
  3. import WBTable from 'wb-table';
  4. import WBPagination from 'wb-pagination';
  5. import WBProjectListing from 'wb-project-listing';
  6. class WBApp extends Component {
  7. render({}, { activePage }) {
  8. return (
  9. <div>
  10. <h1>WBApp</h1>
  11. <WBProjectListing arvHost="api.arkau.roche.com"
  12. arvToken="v2/arkau-gj3su-uf4hnu2o2qkvm8j/15kla38mafzq6b31d5t74ynhk6iuy32v1ticslodr0obvvhde9"
  13. itemsPerPage="5" />
  14. <WBPagination numPages={ 0 } activePage={ 0 } />
  15. <WBPagination numPages={ 100 } activePage={ activePage || 0 }
  16. onPageChanged={ i => this.setState({ 'activePage': i }) } />
  17. <WBTable
  18. columns={ [ 'Name', 'Description', 'Size' ] }
  19. rows={ [
  20. [ 'Name', 'Description', '0 bytes'],
  21. [ 'Name', 'Description', '0 bytes'],
  22. [ 'Name', 'Description', '0 bytes'],
  23. [ 'Name', 'Description', '0 bytes'],
  24. [ 'Name', 'Description', '0 bytes']
  25. ] } />
  26. <WBTabs tabs={ [
  27. { 'name': 'Ala', 'isActive': true },
  28. "Ma",
  29. { 'name': 'Kota', 'isDisabled': true }
  30. ] } onTabChanged={ idx => alert(idx) } />
  31. </div>
  32. );
  33. }
  34. }
  35. export default WBApp;