The frontend/UI server, written in JS using the MarkoJS library
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.

16 lines
363 B

  1. const {charactersApi} = require("../../../rpdata/api/Character")
  2. module.exports = class {
  3. onCreate() {
  4. this.state = {
  5. nicks: [],
  6. }
  7. }
  8. onMount() {
  9. charactersApi.unknownNicks(100).then(unknowns => {
  10. this.state.nicks = unknowns.map(u => u.nick)
  11. }).catch(err => {
  12. console.warn("Failed to get unknown nicks:", err)
  13. })
  14. }
  15. }