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!
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

31 wiersze
986B

  1. import { h, Component } from 'preact';
  2. import { route } from 'preact-router';
  3. import WBNavbarCommon from 'wb-navbar-common';
  4. import WBUserListing from 'wb-user-listing';
  5. class WBUsersPage extends Component {
  6. getUrl(params) {
  7. const url = '/users/' +
  8. Number('page' in params ? params.page : (this.props.page || 0)) + '/' +
  9. encodeURIComponent('textSearch' in params ? params.textSearch : (this.props.textSearch || ''));
  10. return url;
  11. // return ('/users/' + page);
  12. }
  13. render({ app, page, textSearch }) {
  14. return (
  15. <div>
  16. <WBNavbarCommon app={ app } activeItem="all-users"
  17. textSearch={ textSearch }
  18. textSearchNavigate={ textSearch => route(this.getUrl({ textSearch, page: 0 })) } />
  19. <WBUserListing app={ app } page={ Number(page || 0) }
  20. textSearch={ textSearch }
  21. getPageUrl={ page => this.getUrl({ page }) } />
  22. </div>
  23. );
  24. }
  25. };
  26. export default WBUsersPage;