Skip to content

Commit

Permalink
config wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 29, 2023
1 parent b407b9a commit 8e0a55a
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@
</div> -->
<div class="mt-0 flex-grow-1">
</div>
<div v-if="!sync.section" class="mt-0 pr-1">
<div v-if="settings.tabIndex != 4 && !sync.section" class="mt-0 pr-1">
<b-button size="sm" @click="saveSettings(); syncIt(false);" variant="primary" v-b-popover.hover.bottom="'Sync stealth address announcement events'">Sync</b-button>
</div>
<div v-if="!sync.section" class="mt-0 pr-1">
<div v-if="settings.tabIndex != 4 && !sync.section" class="mt-0 pr-1">
<b-button size="sm" @click="saveSettings(); syncIt(true);" variant="outline-primary" v-b-popover.hover.bottom="'This will do dev things'">Dev</b-button>
</div>
<div v-if="sync.section" class="mt-1 p-0" style="width: 300px;">
Expand Down Expand Up @@ -664,16 +664,12 @@ <h5>Stealth Meta-Address</h5>
<!-- :CONFIG -->
<b-card v-if="settings.tabIndex == 4 && !settings.showInfo && coinbase != null" no-body class="my-1 p-1">
<b-card-body class="mt-1 p-1">
<h5>Contracts</h5>
<b-form-group label-cols-lg="2" label="Search" label-size="md" label-class="font-weight-bold pt-0" class="mt-3 mb-0">
<!-- <b-form-group label="Message:" label-for="generate-keys-message" label-size="sm" label-cols-sm="3" label-align-sm="right" class="mx-0 my-1 p-0" description="IMPORTANT: This exact message is required to recover your stealth meta-address with your web3 attached account. Save this information securely!">
<b-form-input type="text" size="sm" id="generate-keys-message" v-model.trim="settings.stealthMetaAddress.message" @input="saveSettings" class="w-50"></b-form-input>
</b-form-group> -->
<h5>Configure Contracts</h5>
<!-- <b-form-group label-cols-lg="2" label="Search" label-size="md" label-class="font-weight-bold pt-0" class="mt-3 mb-0">
<b-form-group label="" label-for="config-search" label-size="sm" label-cols-sm="3" label-align-sm="right" class="mx-0 my-1 p-0">
<b-button size="sm" id="config-search" @click="searchForContracts()" variant="warning">Search</b-button>
</b-form-group>
</b-form-group>

</b-form-group> -->
<div class="d-flex flex-wrap m-0 p-0">
<div class="mt-0 flex-grow-1">
</div>
Expand All @@ -697,7 +693,8 @@ <h5>Contracts</h5>
</div>

<!-- <b-table ref="contractsTable" small fixed striped responsive hover selectable select-mode="single" @row-selected='activityRowSelected' :fields="activityFields" :items="pagedFilteredSortedContracts" show-empty empty-html="Click Sync above to retrieve stealth address announcement events" head-variant="light" class="mx-0 my-1"> -->
<b-table ref="contractsTable" small fixed striped responsive hover :items="pagedFilteredSortedContracts" show-empty empty-html="Click Sync above to retrieve stealth address announcement events" head-variant="light" class="mx-0 my-1">
<b-table ref="contractsTable" small fixed striped responsive hover :fields="contractsFields" :items="pagedFilteredSortedContracts" show-empty empty-html="Click Sync above to retrieve stealth address announcement events" head-variant="light" class="mx-0 my-1">
<!-- <b-table ref="contractsTable" small fixed striped responsive hover :items="pagedFilteredSortedContracts" show-empty empty-html="Click Sync above to retrieve stealth address announcement events" head-variant="light" class="mx-0 my-1"> -->
</b-table>

<!-- <b-form-group label-cols-lg="2" label="Generate Keys" label-size="md" label-class="font-weight-bold pt-0" class="mt-3 mb-0">
Expand Down Expand Up @@ -1054,6 +1051,17 @@ <h5>Contracts</h5>
{ key: 'schemeId', label: 'Scheme Id', sortable: false, thStyle: 'width: 10%;', thClass: 'text-left', tdClass: 'text-truncate' },
{ key: 'stealthMetaAddress', label: 'Stealth Meta-Address', sortable: false, thStyle: 'width: 55%;', thClass: 'text-left', tdClass: 'text-left' },
],
contractsFields: [
{ key: 'number', label: '#', sortable: false, thStyle: 'width: 5%;', tdClass: 'text-truncate' },
{ key: 'chainId', label: 'Chain Id', sortable: false, thStyle: 'width: 10%;', tdClass: 'text-truncate' },
{ key: 'timestamp', label: 'When', sortable: false, thStyle: 'width: 15%;', tdClass: 'text-truncate' },
{ key: 'contract', label: 'Contract', sortable: false, thStyle: 'width: 20%;', thClass: 'text-left', tdClass: 'text-truncate' },
{ key: 'name', label: 'Name', sortable: false, thStyle: 'width: 30%;', thClass: 'text-left', tdClass: 'text-truncate' },
{ key: 'read', label: 'Read', sortable: false, thStyle: 'width: 10%;', thClass: 'text-left', tdClass: 'text-truncate' },
{ key: 'write', label: 'Write', sortable: false, thStyle: 'width: 10%;', thClass: 'text-left', tdClass: 'text-truncate' },
// { key: 'schemeId', label: 'Scheme Id', sortable: false, thStyle: 'width: 10%;', thClass: 'text-left', tdClass: 'text-truncate' },
// { key: 'stealthMetaAddress', label: 'Stealth Meta-Address', sortable: false, thStyle: 'width: 55%;', thClass: 'text-left', tdClass: 'text-left' },
],
reportingDateTimeOptions: [
{ value: 0, text: 'Local Time' },
{ value: 1, text: 'UTC Time' },
Expand Down

0 comments on commit 8e0a55a

Please sign in to comment.