Skip to content

Commit

Permalink
Free Pertsev!
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Jun 28, 2024
1 parent 42c129f commit ab87d2e
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 184 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ https://bokkypoobah.github.io/onlyfens/

Notes:
* <strike>Jun 25 2024 - Infura seems to have changed their event log scraping server's responses so that errors are returned when there are more than a few hundred events in the `getLog()` calls. This limit used to be 10k.</strike>

* Jun 25 2024 - Infura now returning results with 10k max as normal.
* Only .eth names are supported in this dapp

<br />

Expand Down
8 changes: 7 additions & 1 deletion docs/names.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ const Names = {
</div>
<div class="mt-0 flex-grow-1">
</div>
<div class="mt-0 pr-1">
<b-button size="sm" :disabled="!coinbase" @click="searchName" variant="link" v-b-popover.hover.top="'Check name'"><b-icon-search shift-v="+1" font-scale="0.95"></b-icon-search></b-button>
</div>
<div class="mt-0 flex-grow-1">
</div>
<div class="mt-0 pr-1">
Expand Down Expand Up @@ -612,6 +615,9 @@ const Names = {
async halt() {
store.dispatch('data/setSyncHalt', true);
},
async searchName() {
store.dispatch('viewName/viewName', null);
},
formatTimestamp(ts) {
if (ts != null) {
if (ts > 1000000000000n) {
Expand All @@ -634,7 +640,7 @@ const Names = {
rowSelected(item) {
// logInfo("Names", "methods.rowSelected BEGIN: " + JSON.stringify(item, null, 2));
if (item && item.length > 0) {
store.dispatch('viewName/viewName', { label: item[0].name.replace(/.eth$/, ''), contract: item[0].contract, tokenId: item[0].tokenId });
store.dispatch('viewName/viewName', item[0].name);
this.$refs.namesTable.clearSelected();
}
},
Expand Down
8 changes: 7 additions & 1 deletion docs/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const Search = {
</div>
<div class="mt-0 flex-grow-1">
</div>
<div class="mt-0 pr-1">
<b-button size="sm" :disabled="!coinbase" @click="searchName" variant="link" v-b-popover.hover.top="'Check name'"><b-icon-search shift-v="+1" font-scale="0.95"></b-icon-search></b-button>
</div>
<!-- <div v-if="sync.section == null" class="mt-0 pr-1">
<b-button size="sm" @click="exportEvents" :disabled="!coinbase" variant="link" v-b-popover.hover.top="'Export events'"><b-icon-file-earmark-spreadsheet shift-v="+1" font-scale="1.2"></b-icon-file-earmark-spreadsheet></b-button>
</div> -->
Expand Down Expand Up @@ -609,6 +612,9 @@ const Search = {
async halt() {
store.dispatch('search/setSyncHalt', true);
},
async searchName() {
store.dispatch('viewName/viewName', null);
},
// async exportEvents() {
// logInfo("Search", "methods.exportEvents");
// },
Expand All @@ -634,7 +640,7 @@ const Search = {
rowSelected(item) {
logInfo("Search", "methods.rowSelected BEGIN: " + JSON.stringify(item, null, 2));
if (item && item.length > 0) {
store.dispatch('viewName/viewName', { label: item[0].name.replace(/.eth$/, ''), contract: item[0].contract, tokenId: item[0].tokenId });
store.dispatch('viewName/viewName', item[0].name);
this.$refs.searchTable.clearSelected();
}
},
Expand Down
Loading

0 comments on commit ab87d2e

Please sign in to comment.