Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAsantos committed Apr 18, 2021
1 parent 343d7ff commit d8e357b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class App {
console.log(`Authorizing ${this.clientAddress} with ${permissions}`);
await this.contract.createAccess(address || this.clientAddress, permissions);
console.log(`Authorized access ${JSON.stringify(this.authorization())}`);
location.reload();

}

async authorization(address) {
Expand Down
15 changes: 9 additions & 6 deletions src/authorize.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
<script src="https://unpkg.com/[email protected]/dist/index.js" integrity="sha384-5bXRcW9kyxxnSMbOoHzraqa7Z0PQWIao+cgeg327zit1hz5LZCEbIMx/LWKPReuB" crossorigin="anonymous"></script>
<title>Let Me In</title>
<link rel="stylesheet" href="main.css">

<script src="vendor/qr_packed.js"> </script>

</head>
<body>
<header>
<h1>Let Me In</h1>
<nav>
<ul>
<li><a href="/grant.html">Grant Access</a></li>
<li><a href="/authorize.html">Authorize User</a></li>
</ul>
</nav>
<div id="div_top_hypers">
<nav>
<ul style="margin-left: 100px;" id="ul_top_hypers" class="list-group">
<li id="ul_top_hypers" class="list-group-item"><a href="/grant.html">Grant Access</a></li>
<li style="font-weight: bold" id="ul_top_hypers" class="list-group-item"><a href="/authorize.html">Authorize User</a></li>
</ul>
</nav>
</div>
</header>

<h2>Authenticate to Gain Access</h2>
Expand Down
14 changes: 8 additions & 6 deletions src/grant.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
<body>
<header>
<h1>Let Me In</h1>
<nav>
<ul>
<li><a href="/grant.html">Grant Access</a></li>
<li><a href="/authorize.html">Authorize User</a></li>
</ul>
</nav>
<div id="div_top_hypers">
<nav>
<ul style="margin-left: 100px;" id="ul_top_hypers" class="list-group">
<li style="font-weight: bold" id="ul_top_hypers" class="list-group-item"><a href="/grant.html">Grant Access</a></li>
<li id="ul_top_hypers" class="list-group-item"><a href="/authorize.html">Authorize User</a></li>
</ul>
</nav>
</div>
</header>

<h2>Grant New Access</h2>
Expand Down
14 changes: 13 additions & 1 deletion src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@ label {
display: block;
}

button {
#div_top_hypers {
background-color:#eeeeee;
display:inline;
}
#ul_top_hypers li{
display: inline;
margin-left: 50px;
}

a {
outline: none;
text-decoration: none;
padding: 2px 1px 0;
}

0 comments on commit d8e357b

Please sign in to comment.