This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"voter_id": "lucascasp.near", | |
"balance_in_contract": "0", | |
"locking_positions": [ | |
{ | |
"index": 0, | |
"amount": "1447929400", | |
"locking_period": 300, | |
"voting_power": "7239647000000000000000000000", |
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
import { useCallback, useMemo } from "react"; | |
import { zodResolver } from "@hookform/resolvers/zod"; | |
import { useRouter } from "next/router"; | |
import { FieldErrors, SubmitHandler, useForm, useWatch } from "react-hook-form"; | |
import { walletApi } from "@/common/api/near"; | |
import { | |
POTLOCK_CONTRACT_REPO_URL, | |
POTLOCK_CONTRACT_VERSION, |
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
use {dioxus::prelude::*, | |
dioxus_class::prelude::*, | |
dioxus_free_icons::{icons::hi_solid_icons::*, Icon}, | |
regex::Regex, | |
scraper::{Html, Selector}, | |
url::*}; | |
fn use_favicon_url<'a>(cx: Scope<'a, LinkProps<'a>>, url: Url) -> Option<String> { | |
let body = use_future(cx, (), |_| async move { | |
reqwest::get(url.to_owned()).await.unwrap().text().await |
This file has been truncated, but you can view the full file.
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
257 | Ok(v as Self::Value) | |
| ^^ not found in this scope | |
... | |
286 | / impl_deserialize_num! { | |
287 | | i16, NonZeroI16 cfg(not(no_num_nonzero_signed)), deserialize_i16 | |
288 | | num_self!(i16:visit_i16); | |
289 | | num_as_self!(i8:visit_i8); | |
290 | | int_to_int!(i32:visit_i32 i64:visit_i64); | |
291 | | uint_to_self!(u8:visit_u8 u16:visit_u16 u32:visit_u32 u64:visit_u64); | |
292 | | } |
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
{ | |
"editor.semanticHighlighting.enabled": true, | |
"editor.tabSize": 2, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"git.confirmSync": false, | |
"git.enableSmartCommit": false, | |
"editor.fontFamily": "'PragmataPro Mono Liga', monospace", | |
"terminal.integrated.fontFamily": "'PragmataPro Mono Liga', monospace", | |
"editor.fontSize": 18, | |
"terminal.integrated.fontSize": 16, |
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
import { createForm } from "effector-forms" | |
import { __, assoc, pipe, prop } from "ramda" | |
import { toString } from "some-library" | |
import { toGas, toSomeAlienStructure } from "some-other-library-or-something" | |
import { isOk, isJustFine } from "some-validation-library" | |
/* Shared library code */ | |
const logged = (value) => { | |
console.log(value) | |
return value |
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
did:3:kjzl6cwe1jw147bm53gh2sa5f0azm0e1r4pfvkystrc7lwdtyhus4urew247epv |
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
module.exports = { | |
forbidden: [ | |
{ | |
name: "no-pages-on-pages", | |
severity: "warn", | |
comment: "Page MUST not depends on another page.", | |
from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
}, | |
{ |
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
import tinycolor from 'tinycolor2'; | |
export const darken = (color, degree = 10) => { | |
if (0 <= degree && degree <= 100) { | |
return tinycolor(color) | |
.darken(degree) | |
.toString(); | |
} else { | |
throw new RangeError('The color darken degree must be between 0 and 100.'); | |
} |
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
#!/bin/sh | |
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix | |
basedir=`dirname "$0"` | |
case `uname` in | |
*CYGWIN*) basedir=`cygpath -w "$basedir"`;; | |
esac | |
NODE_EXE="$basedir/node.exe" |