diff --git a/sveltekit/src/lib/components/StatsNetwork.svelte b/sveltekit/src/lib/components/StatsNetwork.svelte
new file mode 100644
index 00000000..51dcddc5
--- /dev/null
+++ b/sveltekit/src/lib/components/StatsNetwork.svelte
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+ Kredeum NFTs Factory - Statistics {network?.chainName || "?"}
+
+
+
+
+ {network?.chainId || 0}
+
+
+
diff --git a/sveltekit/src/lib/components/StatsNetworks.svelte b/sveltekit/src/lib/components/StatsNetworks.svelte
index 0d63b5f2..e1a04720 100644
--- a/sveltekit/src/lib/components/StatsNetworks.svelte
+++ b/sveltekit/src/lib/components/StatsNetworks.svelte
@@ -12,14 +12,11 @@
explorerContractUrl
} from "@kredeum/common/src/common/config";
import { resolverCountCollections } from "@kredeum/common/src/resolver/resolver-get-collection";
- import Network from "../../../../svelte/src/components/Network/Network.svelte";
-
- type NetworkTypeWithCount = NetworkType & { countCollection?: number };
///////////////////////////////////////
//
///////////////////////////////////////
- export let networks: NetworkTypeWithCount[];
+ export let networks: NetworkType[];
///////////////////////////////////////
let total = 0;
let done = 0;
@@ -42,11 +39,11 @@
return count;
};
- let networksSorted: NetworkTypeWithCount[];
+ let networksSorted: NetworkType[];
const sortNetworks = () => {
console.log("sortNetworks ~ sortNetworks:", networks);
networksSorted = [...networks].sort(
- (a: NetworkTypeWithCount, b: NetworkTypeWithCount) => (counts.get(b.chainId) || 0) - (counts.get(a.chainId) || 0)
+ (a: NetworkType, b: NetworkType) => (counts.get(b.chainId) || 0) - (counts.get(a.chainId) || 0)
);
};
@@ -69,7 +66,7 @@
{#each networksSorted || networks as network}
{network.chainId} |
- {network.chainName} |
+ {network.chainName} |
{#await countCollections(network.chainId)}
...
diff --git a/sveltekit/src/routes/stats/[chainId]/+page.svelte b/sveltekit/src/routes/stats/[chainId]/+page.svelte
new file mode 100644
index 00000000..054a216d
--- /dev/null
+++ b/sveltekit/src/routes/stats/[chainId]/+page.svelte
@@ -0,0 +1,6 @@
+
+
+
|