This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* delete redundant staff Signed-off-by: Julia Bezrukova <[email protected]> * added decoding of json fields Signed-off-by: Julia Bezrukova <[email protected]> * removed unnecessary comments Signed-off-by: Julia Bezrukova <[email protected]> * changed requests processing Signed-off-by: Julia Bezrukova <[email protected]>
- Loading branch information
Showing
3 changed files
with
153 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,8 @@ | |
<script src="https://use.fontawesome.com/bc7671744e.js"></script> | ||
<script src="https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"></script> | ||
|
||
<!-- версия для разработки, отображает полезные предупреждения в консоли --> | ||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | ||
|
||
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script> --> | ||
|
||
<script src="index.js"></script> | ||
<link rel="stylesheet" href="styles.css"> | ||
|
||
|
@@ -37,8 +33,8 @@ | |
<div class="modal-footer"> | ||
<slot name="footer"> | ||
<button class="modal-default-button" @click="$emit('close')"> | ||
OK | ||
</button> | ||
OK | ||
</button> | ||
</slot> | ||
</div> | ||
</div> | ||
|
@@ -50,72 +46,69 @@ | |
|
||
<body> | ||
|
||
<div class="search-block"> | ||
<div class="search-block"> | ||
|
||
<div id="checkbox"> | ||
<select v-model="block" @change="onChange($event)" type="checkbox" class="dropdown"> | ||
<div id="checkbox"> | ||
<select v-model="block" @change="onChange($event)" type="checkbox" class="dropdown"> | ||
<!-- <option disabled value="">Выберите один из вариантов</option> --> | ||
<option>Block number</option> // 0 | ||
<option>Tx ID</option> // af589062d2e699c9b0ba38663c6df3b6e07d8701320336e831609876f0ebae99 | ||
<option>WriteSet key</option> // payload key name | ||
</select> | ||
</div> | ||
|
||
<br/> | ||
<option>Block number</option> | ||
// 0 | ||
<option>Tx ID</option> | ||
// af589062d2e699c9b0ba38663c6df3b6e07d8701320336e831609876f0ebae99 | ||
</select> | ||
</div> | ||
|
||
<div id="input"> | ||
<input v-model="message" :placeholder="placeholder" type="input" class="form-control"> | ||
</div> | ||
<br/> | ||
|
||
<br/> | ||
<div id="input"> | ||
<input v-model="message" :placeholder="placeholder" type="input" class="form-control"> | ||
</div> | ||
|
||
<div id="button"> | ||
<button v-on:click="getAns()" class="search-button">Get block</button> | ||
</div> | ||
<br/> | ||
|
||
<div id="button"> | ||
<button v-on:click="getAns()" class="search-button">Get block</button> | ||
</div> | ||
|
||
<br/><br/> | ||
</div> | ||
|
||
<div class="center"> | ||
<br/><br/> | ||
|
||
<script type="text/x-template" id="item-template"> | ||
<li> | ||
<div :class="{bold: isFolder}" @click="toggle"> | ||
{{ item.name }} | ||
<span v-if="isFolder">[{{ isOpen ? '-' : '+' }}]</span> | ||
</div> | ||
<ul v-show="isOpen" v-if="isFolder"> | ||
<tree-item class="item" v-for="(child, index) in item.children" :key="index" :item="child" @add-item="$emit('add-item', $event)"></tree-item> | ||
</ul> | ||
</li> | ||
</script> | ||
<div class="center"> | ||
|
||
<script type="text/x-template" id="item-template"> | ||
<li> | ||
<div :class="{bold: isFolder}" @click="toggle"> | ||
{{ item.name }} | ||
<span v-if="isFolder">[{{ isOpen ? '-' : '+' }}]</span> | ||
</div> | ||
<ul v-show="isOpen" v-if="isFolder"> | ||
<tree-item class="item" v-for="(child, index) in item.children" :key="index" :item="child" | ||
@add-item="$emit('add-item', $event)"></tree-item> | ||
</ul> | ||
</li> | ||
</script> | ||
|
||
<ul id="demo"> | ||
<tree-item class="item" :item="treeData" @make-folder="makeFolder" @add-item="addItem"></tree-item> | ||
</ul> | ||
<ul id="demo"> | ||
<tree-item class="item" :item="treeData" @make-folder="makeFolder" @add-item="addItem"></tree-item> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
|
||
<a onclick="GetNewBlock('left');" class="arrows left" style="display: inline;"> | ||
<i class="fa fa-angle-double-left" aria-hidden="true"></i> | ||
</a> | ||
|
||
<a onclick="GetNewBlock('right');" class="arrows right" style="display: inline;"> | ||
<i class="fa fa-angle-double-right" aria-hidden="true"></i> | ||
</a> | ||
|
||
<div id="app"> | ||
<!-- <button id="show-modal" @click="showModal = true">Show Modal</button> --> | ||
<!-- use the modal component, pass in the prop --> | ||
<modal v-if="showModal" @close="showModal = false" v-model="httpCode"> | ||
<!--you can use custom content here to overwrite default content | ||
--> | ||
<h3 slot="header">{{ httpCode }}</h3> | ||
<h3 slot="body">{{ error }}</h3> | ||
<!-- <h3 slot="footer">Error {{ httpCode }}</h3> --> | ||
</modal> | ||
</div> | ||
<a onclick="GetNewBlock('left');" class="arrows left" style="display: inline;"> | ||
<i class="fa fa-angle-double-left" aria-hidden="true"></i> | ||
</a> | ||
|
||
<a onclick="GetNewBlock('right');" class="arrows right" style="display: inline;"> | ||
<i class="fa fa-angle-double-right" aria-hidden="true"></i> | ||
</a> | ||
|
||
<div id="app"> | ||
<modal v-if="showModal" @close="showModal = false" v-model="httpCode"> | ||
<h3 slot="header">{{ httpCode }}</h3> | ||
<h3 slot="body">{{ error }}</h3> | ||
</modal> | ||
</div> | ||
|
||
</body> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.