style: eslint config and prettier for dx
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { ExpandedNote } from "~/lib/types"
|
||||
import { indexer } from "@crossbell/indexer"
|
||||
import { createClient, cacheExchange, fetchExchange } from "@urql/core"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
import { indexer } from "@crossbell/indexer"
|
||||
import { cacheExchange, createClient, fetchExchange } from "@urql/core"
|
||||
|
||||
import { expandCrossbellNote } from "~/lib/expand-unit"
|
||||
import { ExpandedNote } from "~/lib/types"
|
||||
|
||||
export type FeedType = "latest" | "following" | "topic" | "hot" | "search"
|
||||
export type SearchType = "latest" | "hot"
|
||||
|
||||
+12
-10
@@ -1,15 +1,17 @@
|
||||
import { notFound } from "~/lib/server-side-props"
|
||||
import { PageVisibilityEnum, Notes, Note, ExpandedNote } from "~/lib/types"
|
||||
import unidata from "~/queries/unidata.server"
|
||||
import { indexer } from "@crossbell/indexer"
|
||||
import { NoteMetadata } from "crossbell.js"
|
||||
import { getStorage, getKeys } from "~/lib/storage"
|
||||
import axios from "axios"
|
||||
import type Unidata from "unidata.js"
|
||||
import { NoteMetadata } from "crossbell.js"
|
||||
import type { Contract } from "crossbell.js"
|
||||
import { checkSlugReservedWords } from "~/lib/slug-reserved-words"
|
||||
import type Unidata from "unidata.js"
|
||||
|
||||
import { GeneralAccount } from "@crossbell/connect-kit"
|
||||
import { expandUnidataNote, expandCrossbellNote } from "~/lib/expand-unit"
|
||||
import { indexer } from "@crossbell/indexer"
|
||||
|
||||
import { expandCrossbellNote, expandUnidataNote } from "~/lib/expand-unit"
|
||||
import { notFound } from "~/lib/server-side-props"
|
||||
import { checkSlugReservedWords } from "~/lib/slug-reserved-words"
|
||||
import { getKeys, getStorage } from "~/lib/storage"
|
||||
import { ExpandedNote, Note, Notes, PageVisibilityEnum } from "~/lib/types"
|
||||
import unidata from "~/queries/unidata.server"
|
||||
|
||||
export async function checkPageSlug(
|
||||
input: {
|
||||
@@ -438,7 +440,7 @@ export async function getLikes({
|
||||
)
|
||||
if (includeCharacter) {
|
||||
res.list?.forEach((item) => {
|
||||
;(<any>item).character = item.fromCharacter
|
||||
;(item as any).character = item.fromCharacter
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import { SiteNavigationItem, Profile } from "~/lib/types"
|
||||
import { CharacterOperatorPermission, Indexer } from "crossbell.js"
|
||||
import dayjs from "dayjs"
|
||||
import { nanoid } from "nanoid"
|
||||
import unidata from "~/queries/unidata.server"
|
||||
import type Unidata from "unidata.js"
|
||||
import type { Profiles as UniProfiles } from "unidata.js"
|
||||
import { createClient, cacheExchange, fetchExchange } from "@urql/core"
|
||||
import { Indexer } from "crossbell.js"
|
||||
import { CharacterOperatorPermission } from "crossbell.js"
|
||||
|
||||
import type { useContract } from "@crossbell/contract"
|
||||
import dayjs from "dayjs"
|
||||
import { cacheExchange, createClient, fetchExchange } from "@urql/core"
|
||||
|
||||
import { expandUnidataProfile } from "~/lib/expand-unit"
|
||||
import { Profile, SiteNavigationItem } from "~/lib/types"
|
||||
import unidata from "~/queries/unidata.server"
|
||||
|
||||
type Contract = ReturnType<typeof useContract>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user