From f49e7b6c7df19db94684e33fc4887e32ef8485c0 Mon Sep 17 00:00:00 2001 From: dskvr Date: Tue, 3 Jan 2023 19:46:42 +0100 Subject: [PATCH] optimization round 1, timsort + sort caching --- package.json | 4 +- public/index.html | 1 + relays.yaml | 22 +- src/App.vue | 17 +- src/components/relays/RefreshComponent.vue | 189 +++++++++++++---- src/components/relays/RelayStatistics.vue | 63 +++++- src/components/relays/SingleClearnet.vue | 1 - src/components/relays/charts/BarChart.vue | 40 ---- .../relays/charts/SoftwareVersionPolar.vue | 0 src/components/relays/pages/RelaysHome.vue | 15 +- src/components/relays/pages/RelaysSingle.vue | 13 +- src/main.js | 9 +- src/shared/pool.js | 53 +++++ src/shared/relays-lib.js | 193 +++++++----------- src/shared/user-lib.js | 2 +- src/store/relays.js | 18 +- vue.config.js | 3 + 17 files changed, 402 insertions(+), 241 deletions(-) create mode 100644 public/index.html delete mode 100644 src/components/relays/charts/BarChart.vue delete mode 100644 src/components/relays/charts/SoftwareVersionPolar.vue create mode 100644 src/shared/pool.js diff --git a/package.json b/package.json index 6dd589f..1a30480 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "@popperjs/core": "2.11.6", "@vue-leaflet/vue-leaflet": "0.6.1", "@vueuse/core": "9.9.0", + "@vueuse/head": "1.0.22", "alby": "1.0.1", - "chart.js": "4.1.1", + "array-timsort": "1.0.3", "core-js": "^3.8.3", "country-code-emoji": "2.3.0", "cross-fetch": "3.1.5", @@ -42,7 +43,6 @@ "socks-proxy-agent": "7.0.0", "stream-browserify": "3.0.0", "vue": "^3.2.45", - "vue-chartjs": "5.1.0", "vue-final-modal": "3", "vue-grid-responsive": "1.3.0", "vue-identify-network": "2.0.0", diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..53a016e --- /dev/null +++ b/public/index.html @@ -0,0 +1 @@ +nostr.watch
\ No newline at end of file diff --git a/relays.yaml b/relays.yaml index 1bb271b..0bd98ed 100644 --- a/relays.yaml +++ b/relays.yaml @@ -1,4 +1,5 @@ relays: + - wss://relay.nostr.vision - wss://nostr-3.orba.ca - wss://satstacker.cloud - wss://freedom-relay.herokuapp.com/ws @@ -14,7 +15,6 @@ relays: - wss://nostr-verified.wellorder.net - wss://nostr.drss.io - wss://nostr.rocks - - wss://nostr.bitcoiner.social - wss://nostr.openchain.fr - wss://nostr.delo.software - wss://relay.nostr.info @@ -59,6 +59,7 @@ relays: - wss://nostr-relay.nonce.academy - wss://nostr.rewardsbunny.com - wss://nostr.slothy.win + - wss://nostr-verif.slothy.win - wss://nostr.coinos.io - wss://relay.nostropolis.xyz/websocket - wss://lv01.tater.ninja @@ -83,7 +84,6 @@ relays: - wss://nostr.jiashanlu.synology.me - wss://nostr.radixrat.com - wss://nostr.shawnyeager.net - - wss://nostr.pobblelabs.org - wss://relay.dev.kronkltd.net - wss://nostr2.namek.link - wss://nostr-dev.wellorder.net @@ -159,9 +159,19 @@ relays: - wss://btc.klendazu.com - wss://nostr.hackerman.pro - wss://relay.realsearch.cc - - wss://nostr3.actn.io - - wss://nostr.pwnshop.cloud - wss://nostr.mrbits.it - - wss://echo.obsolete.org - - wss://brb.io + - wss://nostr.coollamer.com + - wss://node01.nostress.cc + - wss://nostr.zenon.wtf - wss://nostr.massmux.com + - wss://no.contry.xyz + - wss://relay.nostr.bg + - wss://nostr.uselessshit.co + - wss://brb.io + - wss://nostream.gromeul.eu + - wss://relay.nostr.ro + - wss://nostr.developer.li + - wss://nostr.screaminglife.io + - wss://deschooling.us + - wss://relay-pub.deschooling.us + - wss://nostr.bitcoiner.social \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 2a0c07b..df6b1de 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,21 +1,17 @@ \ No newline at end of file diff --git a/src/components/relays/SingleClearnet.vue b/src/components/relays/SingleClearnet.vue index 0cb0cb0..d739435 100644 --- a/src/components/relays/SingleClearnet.vue +++ b/src/components/relays/SingleClearnet.vue @@ -248,7 +248,6 @@ td.verified span { .restricted.aggregate.indicator { position:relative; - left:-7px; } td { diff --git a/src/components/relays/charts/BarChart.vue b/src/components/relays/charts/BarChart.vue deleted file mode 100644 index e7445a7..0000000 --- a/src/components/relays/charts/BarChart.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/relays/charts/SoftwareVersionPolar.vue b/src/components/relays/charts/SoftwareVersionPolar.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/components/relays/pages/RelaysHome.vue b/src/components/relays/pages/RelaysHome.vue index fde6a6b..18e2a68 100644 --- a/src/components/relays/pages/RelaysHome.vue +++ b/src/components/relays/pages/RelaysHome.vue @@ -35,7 +35,7 @@