Skip to content

Commit

Permalink
change did and key flow update
Browse files Browse the repository at this point in the history
  • Loading branch information
terance-edmonds committed Feb 24, 2024
1 parent c43d9c9 commit 6bba529
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 49 deletions.
30 changes: 24 additions & 6 deletions src/app/models/resolve-did/resolve-did.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,34 @@
<label>
Select Chain Code: &nbsp;

<select id="resolve-did-chainCodeType" (change)="onSelectChange($event)" name="path" #chainCodeType>
<select
id="resolve-did-chainCodeType"
(change)="onSelectChange($event)"
name="path"
#chainCodeType>
<option value="m/256/256/2">Holder</option>
<option value="m/256/256/1">Issuer</option>
<option value="custom" selected>Custom</option>
</select>
</label>

<input id="resolve-did-chainCode" (input)="onPathChange($event)" class="input" type="text" name="chainCode"
placeholder="DID Chain Code (m/256)" [value]="chainCode" />
<input
id="resolve-did-chainCode"
(input)="onPathChange($event)"
class="input"
type="text"
name="chainCode"
placeholder="DID Chain Code (m/256)"
[value]="chainCode" />

<textarea readonly id="resolve-did-didAddress" class="input textarea no-resize" type="text" name="didAddress"
placeholder="DID Address" [value]="didAddress" cols="30" rows="5"></textarea>
</div>
<textarea
readonly
id="resolve-did-didAddress"
class="input textarea no-resize"
type="text"
name="didAddress"
placeholder="DID Address"
[value]="didAddress"
cols="30"
rows="5"></textarea>
</div>
10 changes: 5 additions & 5 deletions src/app/models/set-key-did/set-key-did.component.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div id="set-key-did">
<div class="wrap">
<span class="title">{{data?.type == 'mnemonic' ? 'Mnemonic' : 'Private Key'}}</span>
<span class="value">{{data?.key}}</span>
<span class="title">{{ data?.type == 'mnemonic' ? 'Mnemonic' : 'Private Key' }}</span>
<span class="value">{{ data?.key }}</span>
</div>
<div class="wrap">
<span class="title">Chain Code</span>
<span class="value">{{data?.chain_code}}</span>
<span class="value">{{ data?.chain_code }}</span>
</div>
<div class="wrap">
<span class="title">DID</span>
<span class="value">{{data?.did}}</span>
<span class="value">{{ data?.did }}</span>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion src/app/settings/settings.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@
<app-set-key-did [data]="didKeyData"></app-set-key-did>
</div>
</div>
</div>
</div>
77 changes: 40 additions & 37 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<title>DidExtension</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

<style>
.swal2-title {
font-size: 1.1em !important;
}

.swal2-html-container {
font-size: 1em !important;
}

div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line,
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step {
background-color: #b1efea !important;

}

div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step,
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line {
background-color: #24c3b5 !important;
}
</style>
</head>

<body>
<app-root></app-root>
</body>

</html>
<head>
<meta charset="utf-8" />
<title>DidExtension</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

<style>
.swal2-title {
font-size: 1.1em !important;
}

.swal2-html-container {
font-size: 1em !important;
}

div:where(.swal2-container)
.swal2-progress-steps
.swal2-progress-step.swal2-active-progress-step
~ .swal2-progress-step-line,
div:where(.swal2-container)
.swal2-progress-steps
.swal2-progress-step.swal2-active-progress-step
~ .swal2-progress-step {
background-color: #b1efea !important;
}

div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step,
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line {
background-color: #24c3b5 !important;
}
</style>
</head>

<body>
<app-root></app-root>
</body>
</html>

0 comments on commit 6bba529

Please sign in to comment.