Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #250 from PeterStrob/feat/update_toolbox_UI
Browse files Browse the repository at this point in the history
feat: made menus uniform across all tabs
  • Loading branch information
dbluhm authored Dec 17, 2021
2 parents 178daf2 + 8fee0fc commit e0bbe50
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 42 deletions.
70 changes: 49 additions & 21 deletions src/renderer/components/Dids/index.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
<template >
<el-row>
<did-list
name="did_list"
title="DIDs:"
activeDid="public_did"
:list="dids"
@did-update="updateAgentDid"
@did-activate="activate_did">
</did-list>
<p>Create a Did:</p>
<el-form :model=did_form>
<div>
<span slot="label">Did:</span>
<el-input v-model="did_form.did" style="width:100px;"> </el-input>
<span slot="label">Seed:</span>
<el-input v-model="did_form.seed" style="width:100px;"> </el-input>
<span slot="label">Alias:</span>
<el-input v-model="did_form.label" style="width:100px;"> </el-input>
</div>
<div>
<el-button type="primary" @click="createDid()">Create DID</el-button>
</div>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">DIDs</a>
<el-button
type="primary"
icon="el-icon-refresh"
@click="fetch_dids"></el-button>
</nav>
<el-collapse v-model="expanded_items">
<ul class="list">
<el-collapse-item
v-for="did in dids"
v-bind:title="did.did"
:name="did.did"
:key="did.did">
<el-row :key="did.did">
<p>Verification Key: {{did.verkey}}</p>
<p>DID: {{did.did}}</p>
<el-button type="primary" @click="updateAgentDid(did.updateAgentDid)">Edit DID</el-button>
<el-button type="primary" @click="activate_did(did.activate_did)">Activate DID</el-button>
<div>
<vue-json-pretty
:deep=0
:data="did">
</vue-json-pretty>
</div>
</el-row>
</el-collapse-item>
</ul>
</el-collapse>

<el-divider></el-divider>

<p>Create a DID:</p>
<el-form :inline="false" label-width="120px">
<link rel="shortcut icon" href="/static"/>
<el-form-item label="DID:">
<el-input v-model="did_form.alias" style="width:200px;"> </el-input>
<i>Your new public DID.</i>
</el-form-item>
<el-form-item label="Seed:">
<el-input v-model="did_form.label" style="width:200px;"> </el-input>
<i>Seed for this DID.</i>
</el-form-item>
<el-form-item label="Alias:">
<el-input v-model="did_form.group" style="width:200px;"> </el-input>
<i>Alias used in your DID.</i>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="createDid()">Create DID</el-button>
</el-form-item>
</el-form>
</el-row>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/Routing/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</el-select>
</el-form-item>
<el-form-item label="" :label-width="formLabelWidth">
<el-button @click="keylist_update_send">Go</el-button>
<el-button type="primary" @click="keylist_update_send">Go</el-button>
</el-form-item>
</el-form>
</el-row>
Expand Down
46 changes: 26 additions & 20 deletions src/renderer/components/StaticConnections/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,32 @@
</el-collapse>

<p>Add Static Connection:</p>
<el-form :model="static_agent_form" inline>
<el-form-item label="Label:">
<el-input v-model="static_agent_form.label" style="width:100px;"> </el-input>
</el-form-item>
<el-form-item label="Role:">
<el-input v-model="static_agent_form.role" style="width:100px;"> </el-input>
</el-form-item>
<el-form-item label="Static DID:">
<el-input v-model="static_agent_form.static_did" style="width:100px;"> </el-input>
</el-form-item>
<el-form-item label="Static Key:">
<el-input v-model="static_agent_form.static_key" style="width:100px;"> </el-input>
</el-form-item>
<el-form-item label="Static Endpoint:">
<el-input v-model="static_agent_form.static_endpoint" style="width:100px;"> </el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="add">Add Static Agent</el-button>
</el-form-item>
</el-form>
<el-form :inline="false" label-width="120px">
<link rel="shortcut icon" href="/static"/>
<el-form-item label="Label:">
<el-input v-model="static_agent_form.label" style="width:200px;"> </el-input>
<i>Static agent label.</i>
</el-form-item>
<el-form-item label="Role:">
<el-input v-model="static_agent_form.role" style="width:200px;"> </el-input>
<i>Static agent role.</i>
</el-form-item>
<el-form-item label="Static DID:">
<el-input v-model="static_agent_form.static_did" style="width:200px;"> </el-input>
<i>Static DID.</i>
</el-form-item>
<el-form-item label="Static Key:">
<el-input v-model="static_agent_form.static_key" style="width:200px;"> </el-input>
<i>Static key.</i>
</el-form-item>
<el-form-item label="Endpoint:">
<el-input v-model="static_agent_form.static_endpoint" style="width:200px;"> </el-input>
<i>Static endpoint.</i>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="add">Add Static Agent</el-button>
</el-form-item>
</el-form>
</el-row>
</template>

Expand Down

0 comments on commit e0bbe50

Please sign in to comment.