Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/toeverything/AFFiNE
/ functions
Functions
18,927 in github.com/toeverything/AFFiNE
⨍
Functions
18,927
◇
Types & classes
7,103
↓ 156 callers
Function
SignalWatcher
( Base: T )
blocksuite/framework/global/src/lit/signal-watcher.ts:19
↓ 154 callers
Method
create
(options: { model: SurfaceBlockModel; type: string; middlewares: ((job: TemplateJob) => void)[];
blocksuite/affine/gfx/template/src/services/template.ts:110
↓ 154 callers
Method
instance
(literal?: Zod.TypeOf<DataSchema>)
blocksuite/affine/data-view/src/core/logical/data-type.ts:56
↓ 153 callers
Method
revalidate
()
packages/frontend/core/src/modules/workspace/entities/list.ts:40
↓ 151 callers
Method
getStore
(options?: GetStoreOptions)
blocksuite/framework/store/src/extension/workspace/doc.ts:25
↓ 151 callers
Method
insert
( table: T, document: IndexerDocument<T> )
packages/common/nbstore/src/storage/indexer.ts:53
↓ 150 callers
Method
from
(arg1: IBound)
blocksuite/framework/global/src/gfx/model/bound.ts:188
↓ 149 callers
Method
get
(key: string, signal?: AbortSignal)
packages/common/nbstore/src/storage/blob.ts:21
↓ 148 callers
Function
effect
(...args: any[])
packages/common/infra/src/livedata/effect/index.ts:77
↓ 146 callers
Function
createJob
(middlewares?: TransformerMiddleware[])
blocksuite/affine/all/src/__tests__/utils/create-job.ts:24
↓ 145 callers
Method
impl
* @see {@link FrameworkEditor.impl}
packages/common/infra/src/framework/core/framework.ts:62
↓ 143 callers
Method
debug
(message: string, ...args: any[])
packages/common/debug/src/index.ts:57
↓ 143 callers
Method
preventDefault
()
blocksuite/framework/std/src/gfx/tool/tool-controller.ts:247
↓ 141 callers
Method
down
()
packages/backend/server/src/data/migrations/1698398506533-guid.ts:114
↓ 140 callers
Function
getBlockSuiteEditorTitle
(page: Page)
tests/kit/src/utils/page-logic.ts:54
↓ 138 callers
Function
pressBackspace
(page: Page, count = 1)
tests/blocksuite/e2e/utils/actions/keyboard.ts:44
↓ 137 callers
Function
selectAllByKeyboard
(page: Page)
tests/blocksuite/e2e/utils/actions/keyboard.ts:120
↓ 135 callers
Function
useAsyncCallback
( callback: (...args: T) => Promise<void>, deps: DependencyList )
packages/frontend/core/src/components/hooks/affine-async-hooks.ts:18
↓ 134 callers
Method
has
(key: CacheKey)
packages/frontend/core/src/modules/pdf/cache/bitmap-cache.ts:26
↓ 132 callers
Method
append
(value: T)
blocksuite/affine/data-view/src/view-presets/table/pc-virtual/virtual/linked-list.ts:14
↓ 132 callers
Method
transact
* Execute a transaction. * * @example * ```ts * store.transact(() => { * op1(); * op2(); * }); * ``` * * @category H
blocksuite/framework/store/src/model/store/store.ts:371
↓ 130 callers
Method
gql
()
packages/frontend/core/src/modules/integration/store/calendar.ts:25
↓ 129 callers
Method
type
()
blocksuite/framework/std/src/gfx/view/view.ts:73
↓ 128 callers
Method
match
(trx: DataStructROTransaction, term: string)
packages/common/nbstore/src/impls/idb/indexer/inverted-index.ts:12
↓ 126 callers
Function
dragBetweenCoords
( page: Page, from: { x: number; y: number }, to: { x: number; y: number }, options?: { beforeMous
tests/blocksuite/e2e/utils/actions/drag.ts:5
↓ 124 callers
Method
remove
()
blocksuite/affine/components/src/context-menu/types.ts:14
↓ 124 callers
Method
setValue
(target: UnRecord, p: string, value: unknown)
blocksuite/framework/store/src/model/block/sync-controller.ts:221
↓ 123 callers
Method
delete
( key: string, permanently: boolean, signal?: AbortSignal )
packages/common/nbstore/src/storage/blob.ts:23
↓ 123 callers
Method
getParent
* Gets the parent block of a given block * @param target - Block model or block ID to find parent for * @returns The parent block model if found
blocksuite/framework/store/src/model/store/store.ts:1051
↓ 123 callers
Method
up
(db: PrismaClient)
packages/backend/server/src/data/migrations/1698398506533-guid.ts:8
↓ 121 callers
Method
has
* * @param bound * @param strict * @param reverseChecking If true, check if the bound is inside the elements instead of checking if the eleme
blocksuite/framework/std/src/gfx/grid.ts:241
↓ 121 callers
Method
info
(message: string, ...args: any[])
packages/common/debug/src/index.ts:61
↓ 120 callers
Method
join
(...paths: string[])
tools/utils/src/path.ts:27
↓ 120 callers
Method
number
(value: QueryValue, field: string)
packages/backend/server/src/core/storage/r2-proxy.ts:133
↓ 120 callers
Method
send
( command: Omit<Jobs['notification.sendMail'], 'startTime'>, suppressError = false )
packages/backend/server/src/core/mail/mailer.ts:22
↓ 120 callers
Function
wait
(time: number = 0)
blocksuite/integration-test/src/__tests__/utils/common.ts:3
↓ 116 callers
Method
create
(config: Config['mailer']['SMTP'])
packages/backend/server/src/core/mail/sender.ts:45
↓ 114 callers
Function
assertRichTextInlineRange
( page: Page, richTextIndex: number, rangeIndex: number, rangeLength = 0 )
tests/blocksuite/e2e/utils/asserts.ts:271
↓ 113 callers
Method
createDoc
(docId?: string)
blocksuite/framework/store/src/extension/workspace/workspace.ts:25
↓ 113 callers
Method
log
(context: string, debugInfo?: object)
packages/backend/server/src/base/error/def.ts:148
↓ 111 callers
Method
addImpl
* @see {@link ContainerEditor.addImpl}
blocksuite/framework/global/src/di/container.ts:117
↓ 111 callers
Method
format
(content: string, parser: BuiltInParserName)
tools/cli/src/init.ts:62
↓ 111 callers
Method
login
(user: MockedUser)
packages/backend/server/src/__tests__/e2e/create-app.ts:172
↓ 110 callers
Method
abort
(force = false)
blocksuite/affine/components/src/hover/controller.ts:127
↓ 110 callers
Function
setEdgelessTool
( page: Page, mode: EdgelessTool, shape = Shape.Square )
tests/blocksuite/e2e/utils/actions/edgeless.ts:320
↓ 109 callers
Method
closeNode
()
blocksuite/framework/store/src/adapter/context.ts:36
↓ 109 callers
Method
setup
(di: Container)
blocksuite/framework/store/src/extension/extension.ts:133
↓ 108 callers
Function
createIdentifier
( name: string, variant: ServiceVariant = DEFAULT_SERVICE_VARIANT )
blocksuite/framework/global/src/di/identifier.ts:78
↓ 108 callers
Method
openNode
(node: TNode, parentProp?: Keyof<TNode>)
blocksuite/framework/store/src/adapter/context.ts:76
↓ 108 callers
Method
search
( table: T, query: Query<T>, options?: O )
packages/common/nbstore/src/storage/indexer.ts:19
↓ 107 callers
Method
GET
(path: string)
packages/backend/server/src/__tests__/e2e/create-app.ts:121
↓ 107 callers
Function
initThreeParagraphs
(page: Page)
tests/blocksuite/e2e/utils/actions/misc.ts:570
↓ 107 callers
Method
replace
(path: To)
packages/frontend/core/src/modules/workbench/entities/view.ts:146
↓ 106 callers
Function
assertEdgelessSelectedRect
(page: Page, xywh: number[])
tests/blocksuite/e2e/utils/asserts.ts:772
↓ 106 callers
Method
serialize
()
blocksuite/affine/model/src/elements/group/group.ts:107
↓ 105 callers
Function
OnEvent
(event: EventName, opts?: EventOptions)
packages/backend/server/src/base/event/def.ts:37
↓ 105 callers
Function
get
(key)
packages/frontend/core/src/components/affine/page-history-modal/data.ts:120
↓ 105 callers
Method
replace
* Replace the text content with a new content. * * @param index - The index to replace. * @param length - The length to replace. * @param
blocksuite/framework/store/src/reactive/text/text.ts:285
↓ 104 callers
Function
i18nTime
( time: dayjs.ConfigType, options: { // override i18n instance, default is global I18n instance i1
packages/frontend/i18n/src/utils/time.ts:45
↓ 104 callers
Method
test
()
packages/backend/server/src/__tests__/version.spec.ts:20
↓ 103 callers
Method
getBlock
* Gets a block by its ID * @param id - The block's ID * @returns The block instance if found, undefined otherwise * * @category Block CRUD
blocksuite/framework/store/src/model/store/store.ts:979
↓ 103 callers
Method
join
* Join current text with another text. * * @param other - The other text to join. * * @example * ```ts * const text = new Text('Hell
blocksuite/framework/store/src/reactive/text/text.ts:259
↓ 103 callers
Method
max
* Returns the node with the maximum value in the tree. * * @returns The node with the maximum value, or null if the tree is empty
packages/common/nbstore/src/utils/binary-search-tree.ts:259
↓ 102 callers
Method
assert
(resource: Resource<'doc'>, action: DocAction)
packages/backend/server/src/core/permission/doc.ts:51
↓ 102 callers
Method
next
( abort?: AbortSignal, dequeue: (arr: T[]) => T | undefined = a => a.shift() )
blocksuite/framework/sync/src/utils/async-queue.ts:24
↓ 102 callers
Function
t
(key: I18nString, options?: Record<string, any>)
packages/frontend/i18n/src/i18next.ts:116
↓ 100 callers
Method
waitFor
(predicate: (v: T) => unknown, signal?: AbortSignal)
packages/common/infra/src/livedata/livedata.ts:514
↓ 99 callers
Method
deleteBlock
(node: MockBlockComponent)
blocksuite/affine/shared/src/test-utils/create-test-host.ts:89
↓ 99 callers
Method
min
* Returns the node with the minimum value in the tree. * * @returns The node with the minimum value, or null if the tree is empty
packages/common/nbstore/src/utils/binary-search-tree.ts:272
↓ 98 callers
Function
join
(userId: string, spaceId: string, roomType: RoomType = 'sync')
packages/backend/server/src/core/sync/gateway.ts:707
↓ 97 callers
Method
createEntity
()
packages/common/infra/src/framework/core/components/scope.ts:26
↓ 96 callers
Method
updateBlock
* Updates a block's properties or executes a callback in a transaction * @param modelOrId - The block model or block ID to update * @param callB
blocksuite/framework/store/src/model/store/store.ts:858
↓ 96 callers
Method
user
( @Args('email') email: string, @CurrentUser() currentUser?: CurrentUser )
packages/backend/server/src/core/user/resolver.ts:63
↓ 94 callers
Function
dragBetweenIndices
( page: Page, [startRichTextIndex, startVIndex]: [number, number], [endRichTextIndex, endVIndex]: [numbe
tests/blocksuite/e2e/utils/actions/drag.ts:29
↓ 94 callers
Method
getDoc
* Get a doc record with latest binary.
packages/common/nbstore/src/storage/doc.ts:72
↓ 93 callers
Function
clickView
(page: Page, point: [number, number])
tests/blocksuite/e2e/utils/actions/click.ts:33
↓ 92 callers
Method
on
(listener: (data: unknown) => void)
packages/frontend/apps/electron/src/shared/utils.ts:33
↓ 92 callers
Method
parse
(tokens: Token[])
blocksuite/affine/blocks/bookmark/src/adapters/markdown/preprocessor.ts:156
↓ 91 callers
Method
filter
({ width, height }: HTMLCanvasElement)
blocksuite/affine/blocks/surface/src/renderer/canvas-renderer.ts:121
↓ 91 callers
Method
remove
()
blocksuite/framework/store/src/extension/workspace/doc.ts:19
↓ 90 callers
Method
add
(element: GfxModel | GfxLocalElementModel)
blocksuite/framework/std/src/gfx/grid.ts:202
↓ 90 callers
Function
onChange
(event: MediaQueryListEvent)
packages/frontend/admin/src/modules/common.ts:52
↓ 89 callers
Method
findMany
* Find doc history by workspaceId and docId. * * Only including timestamp, createdByUser
packages/backend/server/src/models/history.ts:75
↓ 89 callers
Method
updateElement
( element: GfxModel | string, props: Record<string, unknown> )
blocksuite/framework/std/src/gfx/controller.ts:247
↓ 88 callers
Method
load
(initFn?: () => void)
blocksuite/framework/store/src/extension/workspace/doc.ts:20
↓ 87 callers
Method
entity
* @see {@link FrameworkEditor.entity}
packages/common/infra/src/framework/core/framework.ts:69
↓ 86 callers
Method
clear
* Clear the cache
blocksuite/affine/shared/src/services/link-preview-service/link-preview-cache.ts:79
↓ 86 callers
Function
useServices
( identifiers: T )
packages/common/infra/src/framework/react/index.tsx:29
↓ 85 callers
Method
workspace
()
blocksuite/framework/store/src/extension/workspace/doc.ts:31
↓ 83 callers
Method
group
()
blocksuite/framework/std/src/gfx/layer.ts:721
↓ 82 callers
Function
reject
(message: string)
blocksuite/framework/store/src/__tests__/test-utils-dom.ts:41
↓ 81 callers
Method
parse
(raw: string)
packages/backend/server/src/core/utils/doc.ts:23
↓ 81 callers
Method
setProperty
(propertyId: string, value: string)
packages/frontend/core/src/modules/doc/entities/doc.ts:92
↓ 80 callers
Function
dragBetweenViewCoords
( page: Page, start: number[], end: number[] )
tests/blocksuite/e2e/edgeless/frame/frame-mindmap.spec.ts:19
↓ 80 callers
Method
fromAny
(anything: any)
packages/common/error/src/index.ts:58
↓ 79 callers
Method
focus
(selection: DetailViewSelection)
blocksuite/affine/data-view/src/core/detail/selection.ts:100
↓ 79 callers
Function
type
(page: Page, content: string, delay = 50)
tests/kit/src/utils/page-logic.ts:58
↓ 79 callers
Method
upsert
* insert or update a doc.
packages/backend/server/src/models/doc.ts:148
↓ 78 callers
Method
create
(data: CreateUserInput)
packages/backend/server/src/models/user.ts:165
↓ 78 callers
Function
edgelessCommonSetup
(page: Page)
tests/blocksuite/e2e/utils/actions/edgeless.ts:1840
← previous
next →
101–200 of 18,927, ranked by callers