eslint: sort imports & exports

This commit is contained in:
Martti Malmi
2024-01-04 19:01:18 +02:00
parent 046d4d97bd
commit 3fe3c7a98d
267 changed files with 1281 additions and 1037 deletions

View File

@ -1,26 +1,28 @@
import TZ from "../tz.json";
import Nostrich from "@/assets/img/nostrich.webp";
import * as secp from "@noble/curves/secp256k1";
import * as utils from "@noble/curves/abstract/utils";
import { sha256 as hash } from "@noble/hashes/sha256";
import * as secp from "@noble/curves/secp256k1";
import { hmac } from "@noble/hashes/hmac";
import { sha256 as hash } from "@noble/hashes/sha256";
import { bytesToHex } from "@noble/hashes/utils";
import { bech32, base32hex } from "@scure/base";
import { base32hex,bech32 } from "@scure/base";
import { isHex, isOffline } from "@snort/shared";
import {
encodeTLV,
EventKind,
HexKey,
MetadataCache,
NostrEvent,
NostrLink,
NostrPrefix,
TaggedNostrEvent,
u256,
EventKind,
encodeTLV,
NostrPrefix,
NostrEvent,
MetadataCache,
NostrLink,
UserMetadata,
} from "@snort/system";
import { isHex, isOffline } from "@snort/shared";
import { Birthday, Day } from "@/Utils/Const";
import Nostrich from "@/assets/img/nostrich.webp";
import AnimalName from "@/Components/User/AnimalName";
import { Birthday, Day } from "@/Utils/Const";
import TZ from "../tz.json";
export const sha256 = (str: string | Uint8Array): u256 => {
return utils.bytesToHex(hash(str));