Skip to content

Commit dd2008f

Browse files
Merge pull request #3 from rubixchain/feature/pvtkeypass
Update pvtkeypass, quorumkey pass and StartQuorum
2 parents 1e3c26b + 96124c3 commit dd2008f

File tree

5 files changed

+740
-11
lines changed

5 files changed

+740
-11
lines changed

src/components/Sidebar.vue

Lines changed: 206 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,123 @@
1313
"
1414
style="background: #edf2f7"
1515
>
16+
<div
17+
v-if="showModal"
18+
class="
19+
overflow-x-hidden overflow-y-auto
20+
fixed
21+
inset-0
22+
z-50
23+
outline-none
24+
focus:outline-none
25+
justify-center
26+
items-center
27+
flex
28+
"
29+
>
30+
<div class="relative w-auto my-6 mx-auto max-w-6xl">
31+
<!--content-->
32+
<div
33+
class="
34+
border-0
35+
rounded-lg
36+
shadow-lg
37+
relative
38+
flex flex-col
39+
w-full
40+
bg-white
41+
outline-none
42+
focus:outline-none
43+
"
44+
>
45+
<!--header-->
46+
<div
47+
class="
48+
flex
49+
items-start
50+
justify-between
51+
p-5
52+
border-b border-solid border-blueGray-200
53+
rounded-t
54+
"
55+
>
56+
<h3 class="text-3xl font-semibold">
57+
{{ transactionResponse }}
58+
</h3>
59+
<button
60+
class="
61+
p-1
62+
ml-auto
63+
bg-transparent
64+
border-0
65+
text-black
66+
opacity-5
67+
float-right
68+
text-3xl
69+
leading-none
70+
font-semibold
71+
outline-none
72+
focus:outline-none
73+
"
74+
v-on:click="toggleModal()"
75+
>
76+
<span
77+
class="
78+
bg-transparent
79+
text-black
80+
opacity-5
81+
h-6
82+
w-6
83+
text-2xl
84+
block
85+
outline-none
86+
focus:outline-none
87+
"
88+
>
89+
×
90+
</span>
91+
</button>
92+
</div>
93+
<div
94+
class="
95+
flex
96+
items-center
97+
justify-end
98+
p-6
99+
border-t border-solid border-blueGray-200
100+
rounded-b
101+
"
102+
>
103+
<button
104+
class="
105+
text-red-500
106+
bg-transparent
107+
border border-solid border-red-500
108+
hover:bg-red-500 hover:text-white
109+
active:bg-red-600
110+
font-bold
111+
uppercase
112+
text-sm
113+
px-6
114+
py-3
115+
rounded
116+
outline-none
117+
focus:outline-none
118+
mr-1
119+
mb-1
120+
ease-linear
121+
transition-all
122+
duration-150
123+
"
124+
type="button"
125+
v-on:click="toggleModal()"
126+
>
127+
Close
128+
</button>
129+
</div>
130+
</div>
131+
</div>
132+
</div>
16133
<div
17134
class="
18135
min-h-screen
@@ -79,7 +196,48 @@
79196
>
80197
{{ sync }}
81198
</button>
199+
82200
</a>
201+
202+
</li>
203+
<li>
204+
<a
205+
class="
206+
duration-200
207+
ease-in-out
208+
relative
209+
flex flex-row
210+
items-center
211+
h-11
212+
focus:outline-none
213+
hover:bg-grey-50
214+
text-gray-600 text-black
215+
hover:text-white
216+
border-l-4 border-transparent
217+
hover:border-red-500
218+
border-indigo-500
219+
pr-6
220+
"
221+
>
222+
<span class="inline-flex justify-center items-center ml-4">
223+
</span>
224+
<button
225+
@click="$router.push({ name: 'StartQuorum' })"
226+
class="
227+
bg-gray-800
228+
border-0
229+
py-2
230+
px-8
231+
focus:outline-none
232+
hover:bg-gray-700
233+
rounded
234+
"
235+
>
236+
Start Quorum
237+
</button>
238+
239+
</a>
240+
83241
</li>
84242
<li>
85243
<a
@@ -295,6 +453,47 @@
295453
>
296454
</a>
297455
</li>
456+
<li>
457+
<a
458+
@click="$router.push({ name: 'Settings' })"
459+
class="
460+
duration-200
461+
ease-in-out
462+
relative
463+
flex flex-row
464+
items-center
465+
h-11
466+
focus:outline-none
467+
hover:bg-grey-50
468+
text-gray-600 text-black
469+
hover:text-white
470+
border-l-4 border-transparent
471+
hover:border-red-500
472+
border-indigo-500
473+
pr-6
474+
"
475+
>
476+
<span class="inline-flex justify-center items-center ml-4">
477+
<svg
478+
class="w-5 h-5"
479+
fill="none"
480+
stroke="currentColor"
481+
viewBox="0 0 24 24"
482+
xmlns="http://www.w3.org/2000/svg"
483+
>
484+
<path
485+
stroke-linecap="round"
486+
stroke-linejoin="round"
487+
stroke-width="2"
488+
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
489+
></path>
490+
</svg>
491+
</span>
492+
<span class="ml-2 text-l tracking-wide truncate"
493+
>Settings</span
494+
>
495+
</a>
496+
</li>
298497
<li>
299498
<a
300499
@click="$router.push({ name: 'Contacts' })"
@@ -341,6 +540,7 @@
341540
</div>
342541
</template>
343542

543+
344544
<script>
345545
import axios from "axios";
346546
export default {
@@ -364,16 +564,12 @@ export default {
364564
console.log(error);
365565
});
366566
},
367-
368-
// getTags: function() {
369-
// axios.get('http://498ce43301f8.ngrok.io/api/tags')
370-
// .then((response) => {
371-
// this.tags = response.data.tags
372-
// })
373-
// .catch(function (error) {
374-
// console.log(error);
375-
// });
376-
// },
567+
toggleModal: function () {
568+
this.showModal = !this.showModal;
569+
},
570+
testLog(){
571+
console.log("test");
572+
},
377573
378574
dashboard() {
379575
axios

src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import Explorer from '@/pages/Explorer'
1212
import Bootstraps from '@/pages/Bootstraps'
1313
import Transactions from '@/pages/Transactions'
1414
import Wallet from '@/pages/Wallet'
15+
import Settings from '@/pages/Settings'
16+
import StartQuorum from '@/pages/StartQuorum'
1517

1618
import store from './store'
1719

@@ -40,6 +42,8 @@ const routes = [
4042
{ path: 'explorer', name: 'Explorer', component: Explorer },
4143
{ path: 'bootstraps', name: 'Bootstraps', component: Bootstraps },
4244
{ path: 'transactions', name: 'Transactions', component: Transactions },
45+
{ path: 'settings', name: 'Settings', component: Settings },
46+
{ path: 'start-quorum', name: 'StartQuorum', component: StartQuorum },
4347
{ path: 'my-wallet', name: 'Wallet', component: Wallet },
4448
]
4549
},

src/pages/Home.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,18 @@
243243
"
244244
/>
245245
</div>
246+
<div class="relative mb-4">
247+
<label for="email" class="leading-7 text-l text-white"
248+
>Private Key Password</label
249+
>
250+
<vue-simple-suggest
251+
type="password"
252+
v-model="newTxn.pvtKeyPass"
253+
:list="simpleSuggestionList"
254+
:filter-by-query="false"
255+
>
256+
</vue-simple-suggest>
257+
</div>
246258
<div class="relative mb-4">
247259
<label for="email" class="leading-7 text-l text-white"
248260
>Comments</label
@@ -289,7 +301,7 @@
289301
</div>
290302
</div>
291303
</div>
292-
</section>
304+
</section>
293305
<div
294306
v-if="showModal"
295307
class="
@@ -438,6 +450,7 @@ export default {
438450
tokenCount: 0.1,
439451
comment: "",
440452
type: 1,
453+
pvtKeyPass: "",
441454
},
442455
};
443456
},
@@ -470,6 +483,7 @@ export default {
470483
tokenCount: this.newTxn.tokenCount,
471484
comment: this.newTxn.comment,
472485
type: this.newTxn.type,
486+
pvtKeyPass: this.newTxn.pvtKeyPass,
473487
// "Quorum": this.quorum
474488
})
475489
.then((response) => {
@@ -478,6 +492,7 @@ export default {
478492
this.transactionResponse = response.data.data.response.message;
479493
this.newTxn.comment = "";
480494
this.newTxn.tokenCount = 1;
495+
this.newTxn.pvtKeyPass = "";
481496
this.toggleModal();
482497
})
483498
.catch(function (error) {
@@ -488,6 +503,7 @@ export default {
488503
this.newTxn.receiver = "";
489504
this.newTxn.comment = "";
490505
this.newTxn.tokenCount = 1;
506+
this.newTxn.pvtKeyPass = "";
491507
this.transactionResponse = "Error, Try again!";
492508
this.toggleModal();
493509
});

0 commit comments

Comments
 (0)