Skip to content

Commit

Permalink
Add Capacitor App plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Got17 committed Oct 18, 2024
1 parent 30cfad4 commit 082d511
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
1 change: 1 addition & 0 deletions FingerAuth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions FingerAuth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@aparajita/capacitor-biometric-auth": "^8.0.2",
"@capacitor/android": "^6.1.2",
"@capacitor/app": "^6.0.1",
"@capacitor/camera": "^6.0.2",
"@capacitor/core": "^6.1.2",
"@capacitor/dialog": "^6.0.1",
Expand Down
10 changes: 7 additions & 3 deletions FingerAuth/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
<p class="authenticate-text">Please authenticate</p>
<input id="username" placeholder="Username" ws-var="Username" /><br />
<input id="password" type="password" placeholder="Password" ws-var="Password" />
<button role="button" ws-onclick="LogIn" href="${ToPicDrawPage}" class="login-button">Log in</button>
<button role="button" ws-onclick="BiometricAuthenticate" href="${ToPicDrawPage}" class="authenticate-button">Authorize with Biometric</button>
<div class="login-button-container">
<button role="button" ws-onclick="LogIn" href="${ToPicDrawPage}" class="login-button">Log in</button>
</div>
<div class="login-button-container">
<button role="button" ws-onclick="BiometricAuthenticate" href="${ToPicDrawPage}" class="authenticate-button">Authorize with Biometric</button>
</div>
</div>
<!--PicDraw Page-->
<div id="main" ws-children-template="PicDraw">
Expand All @@ -39,7 +43,7 @@
</div>
<br />
<div class="canvas-container">
<canvas id="annotationCanvas" width="300" height="300" ws-hole="canvas"
<canvas id="annotationCanvas" width="300" height="400" ws-hole="canvas"
ws-onmouseDown="canvasMouseDown" ws-onmouseup="canvasMouseUp"
ws-onmouseout="canvasMouseOut" ws-onmousemove="canvasMouseMove"
ws-onafterrender="canvasInit"></canvas>
Expand Down
26 changes: 21 additions & 5 deletions FingerAuth/wwwroot/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ body {
background-color: #f4f4f4;
min-height: 100vh;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
height: 100%;
overflow-x: hidden;
}

* {
box-sizing: border-box;
}

a {
Expand All @@ -22,10 +32,9 @@ a {

#text {
background: transparent;
padding: 20px;
padding: 15px;
border-radius: 10px;
width: 100%;
max-width: 400px;
}

.authenticate-text,
Expand All @@ -35,6 +44,13 @@ a {
margin-bottom: 20px;
color: #333;
}
.login-button-container {
display:flex;
flex-direction:column;
justify-content: center;
align-items:center;
width: 100%
}

input {
width: 100%;
Expand All @@ -43,6 +59,7 @@ input {
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
box-sizing: border-box;
}

.login-button, .authenticate-button {
Expand All @@ -54,7 +71,7 @@ input {
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
margin: 10px 0;
margin: 10px 0px;
}

#captureBtn,
Expand All @@ -75,10 +92,9 @@ input {

#main {
background: transparent;
padding: 20px;
padding: 15px;
border-radius: 10px;
width: 100%;
max-width: 400px;
}

.choose-color-text {
Expand Down

0 comments on commit 082d511

Please sign in to comment.