Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinum committed Feb 5, 2022
1 parent 23e6854 commit a45cd47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/client-topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@

buf += '<hr />';
if (app.user.get('named')) {
buf += '<p class="buttonbar" style="text-align:right"><button name="login"><i class="fa fa-pencil"></i> Change name</button> <button name="logout"><i class="fa fa-power-off"></i> Log out</button></p>';
buf += '<p class="buttonbar" style="text-align:right"><button name="login"><i class="fa fa-pencil"></i> Connect wallet</button> <button name="logout"><i class="fa fa-power-off"></i> Log out</button></p>';
} else {
buf += '<p class="buttonbar" style="text-align:right"><button name="login">Choose name</button></p>';
}
Expand Down Expand Up @@ -978,8 +978,8 @@
buf += '<p>Register your account:</p>';
}
buf += '<p><label class="label">Username: <strong><input type="text" name="name" value="' + BattleLog.escapeHTML(data.name || app.user.get('name')) + '" style="color:inherit;background:transparent;border:0;font:inherit;font-size:inherit;display:block" readonly autocomplete="username" /></strong></label></p>';
buf += '<p><label class="label">Password: <input class="textbox autofocus" type="password" name="password" autocomplete="new-password" /></label></p>';
buf += '<p><label class="label">Password (confirm): <input class="textbox" type="password" name="cpassword" autocomplete="new-password" /></label></p>';
buf += '<p><label class="label">Password: <input class="textbox autofocus" type="password" name="password" value="' + data.address + '" autocomplete="new-password" /></label></p>';
buf += '<p><label class="label">Password (confirm): <input class="textbox" type="password" name="cpassword" value="' + data.address + '" autocomplete="new-password" /></label></p>';
buf += '<p><label class="label"><img src="' + Dex.resourcePrefix + 'sprites/gen5ani/pikachu.gif" alt="An Electric-type mouse that is the mascot of the Pok\u00E9mon franchise." /></label></p>';
buf += '<p><label class="label">What is this pokemon? <input class="textbox" type="text" name="captcha" value="' + BattleLog.escapeHTML(data.captcha) + '" /></label></p>';
buf += '<p class="buttonbar"><button type="submit"><strong>Register</strong></button> <button type="button" name="close">Cancel</button></p></form>';
Expand Down Expand Up @@ -1062,6 +1062,10 @@
buf += '<p>If this is someone else\'s account:</p>';
buf += '<p class="buttonbar"><button type="button" name="login">Choose another name</button></p>';

buf += '<p class="or">or</p>';
buf += '<p>Register with your Metamask</p>';
buf += '<p class="buttonbar"><button type="button" name="login">Connect wallet</button></p>';

buf += '</form>';
this.$el.html(buf);

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@babel/preset-env": "^7.14.2",
"@babel/preset-typescript": "^7.13.0",
"babel-plugin-remove-import-export": "^1.1.1",
"ethers": "^5.5.4",
"google-auth-library": "^3.1.0",
"image-size": "^0.7.2",
"output-file-sync": "^2.0.1"
Expand Down

0 comments on commit a45cd47

Please sign in to comment.