This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nodeNode (make sure to config them)
- Loading branch information
1 parent
dbe8769
commit a5b231c
Showing
5 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<script lang="ts"> | ||
import Base from "./elements/base/Base.wc.svelte"; | ||
import Profiles from "./elements/profiles/Profiles.wc.svelte"; | ||
import DL from "./elements/DeployedList/DeployedList.wc.svelte"; | ||
// import C from "./elements/FarmingCalculator/FarmingCalculator.wc.svelte"; | ||
import VM from "./elements/vm/Vm.wc.svelte"; | ||
</script> | ||
|
||
<!-- <C /> --> | ||
<Base /> | ||
<VM /> | ||
<Profiles /> | ||
<DL /> |
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
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 |
---|---|---|
@@ -1,21 +1,10 @@ | ||
const { GridClient, Nodes } = window.configs?.grid3_client ?? {}; | ||
|
||
export default function findNodes() { | ||
export default function findNodes(filters: any) { | ||
const nodes = new Nodes( | ||
GridClient.config.graphqlURL, | ||
GridClient.config.rmbClient["proxyURL"] | ||
"https://graphql.dev.grid.tf/graphql", | ||
"https://gridproxy.dev.grid.tf" | ||
); | ||
|
||
return nodes.filterNodes({ | ||
accessNodeV4: false, | ||
accessNodeV6: false, | ||
city: "", | ||
country: "", | ||
cru: 0, | ||
farmId: 0, | ||
gateway: false, | ||
hru: 0, | ||
mru: 0, | ||
sru: 0, | ||
}); | ||
return nodes.filterNodes(filters); | ||
} |