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!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

wb-sign-out.js 502B

il y a 4 ans
12345678910111213141516171819202122
  1. import { h, Component } from 'preact';
  2. import { route } from 'preact-router';
  3. class WBSignOut extends Component {
  4. componentDidMount() {
  5. const { app } = this.props;
  6. const keys = ['arvHost', 'arvToken', 'currentUser'];
  7. for (let i = 0; i < keys.length; i++) {
  8. delete app.state[keys[i]];
  9. delete window.localStorage[keys[i]];
  10. }
  11. route('/sign-in');
  12. }
  13. render() {
  14. return (
  15. <div>Signing out...</div>
  16. );
  17. }
  18. }
  19. export default WBSignOut;