Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/toeverything/AFFiNE
/ functions
Functions
18,927 in github.com/toeverything/AFFiNE
⨍
Functions
18,927
◇
Types & classes
7,103
↓ 12 callers
Method
next
()
packages/common/nbstore/src/sync/doc/peer.ts:169
↓ 12 callers
Function
normalizeSearchText
( value: unknown, { fallback = '', arrayJoiner = ' ' }: NormalizeSearchTextOptions = {} )
packages/frontend/core/src/utils/normalize-search-text.ts:24
↓ 12 callers
Method
openDoc
(docId?: string)
packages/frontend/core/src/blocksuite/ai/components/ai-tools/doc-write.ts:122
↓ 12 callers
Method
openExternal
* Opens an external URL with different implementations based on the environment. * Unlike openPopupWindow, openExternal opens the URL in the curren
packages/frontend/core/src/modules/url/services/url.ts:41
↓ 12 callers
Function
openFilesWith
( acceptType: AcceptTypes = 'Any', multiple: boolean = true )
blocksuite/affine/shared/src/utils/file/filesys.ts:124
↓ 12 callers
Method
openPopupWindow
* open a popup window, provide different implementations in different environments. * e.g. in electron, use system default browser to open a popup
packages/frontend/core/src/modules/url/services/url.ts:27
↓ 12 callers
Method
override
* @see {@link ContainerEditor.scope}
blocksuite/framework/global/src/di/container.ts:133
↓ 12 callers
Function
parse
(str: string)
packages/backend/server/src/base/utils/duration.ts:25
↓ 12 callers
Function
pressCreateLinkShortCut
(page: Page)
tests/blocksuite/e2e/link.spec.ts:26
↓ 12 callers
Method
recordLastProps
(key: LastPropsKey, props: Partial<LastProps[LastPropsKey]>)
blocksuite/affine/shared/src/services/edit-props-store.ts:184
↓ 12 callers
Method
search$
( table: T, query: Query<T>, options?: O )
packages/common/nbstore/src/storage/indexer.ts:32
↓ 12 callers
Method
select
(palette: Palette)
blocksuite/affine/components/src/color-picker/color-panel.ts:144
↓ 12 callers
Function
selectElementInEdgeless
(page: Page, elements: string[])
tests/blocksuite/e2e/utils/actions/edgeless.ts:1973
↓ 12 callers
Function
setEdgelessTool
( page: Page, tool: EdgelessTool, shape = Shape.Square, editorIndex = 0 )
tests/kit/src/utils/editor.ts:361
↓ 12 callers
Function
setInlineRangeInSelectedRichText
( page: Page, index: number, length: number )
tests/blocksuite/e2e/utils/actions/misc.ts:707
↓ 12 callers
Method
setMeta
(meta: Partial<DocMeta>)
packages/frontend/core/src/modules/doc/entities/record.ts:68
↓ 12 callers
Method
setOwner
(workspaceId: string, docId: string, userId: string)
packages/backend/server/src/models/doc-user.ts:18
↓ 12 callers
Method
start
()
packages/frontend/core/src/modules/workspace/entities/engine.ts:55
↓ 12 callers
Function
substringMatchScore
(name: string, query: string)
blocksuite/affine/shared/src/utils/string.ts:44
↓ 12 callers
Method
syncTextSelectionToRange
(selection: TextSelection)
blocksuite/framework/std/src/inline/range/range-manager.ts:214
↓ 12 callers
Function
themeVar
(key, fallback)
packages/frontend/admin/tailwind.config.js:4
↓ 12 callers
Function
toViewCoord
(page: Page, point: IVec, editorIndex = 0)
tests/kit/src/utils/editor.ts:189
↓ 12 callers
Method
tokenize
(text: string)
packages/common/nbstore/src/impls/idb/indexer/tokenizer.ts:4
↓ 12 callers
Function
toolbarButtons
(page: Page)
tests/kit/src/bs/linked-toolbar.ts:3
↓ 12 callers
Function
unwrapResponse
(t: ExecutionContext, res: WebsocketResponse<T>)
packages/backend/server/src/__tests__/sync/gateway.spec.ts:19
↓ 12 callers
Method
updateSyncStatus
()
blocksuite/framework/sync/src/doc/peer.ts:376
↓ 11 callers
Method
_onChange
(date: Date, emit = true)
blocksuite/affine/components/src/date-picker/date-picker.ts:329
↓ 11 callers
Method
add
* Add to group to be disposed with others. * This will be immediately disposed if this group has already been disposed.
blocksuite/framework/global/src/disposable/index.ts:28
↓ 11 callers
Function
asDataSource
(dataSource: object)
blocksuite/affine/data-view/src/__tests__/kanban.unit.spec.ts:73
↓ 11 callers
Function
assertNativeSelectionRangeCount
( page: Page, count: number )
tests/blocksuite/e2e/utils/asserts.ts:289
↓ 11 callers
Function
assertRectEqual
(a: Rect, b: Rect)
tests/blocksuite/e2e/utils/asserts.ts:729
↓ 11 callers
Method
bindHotkey
(keymap: Record<string, UIEventHandler>, options?: EventOptions)
blocksuite/framework/std/src/event/control/keyboard.ts:90
↓ 11 callers
Function
checkMDList
(text: string)
packages/backend/server/src/__tests__/copilot-provider.spec.ts:178
↓ 11 callers
Method
collection$
(id: string)
packages/frontend/core/src/modules/collection/services/collection.ts:53
↓ 11 callers
Method
complete
()
packages/common/infra/src/livedata/livedata.ts:464
↓ 11 callers
Function
copyByKeyboard
(page: Page)
tests/kit/src/utils/keyboard.ts:76
↓ 11 callers
Function
createAccount
( userId: string, overrides: Partial<UpsertCalendarAccountInput> = {} )
packages/backend/server/src/plugins/calendar/__tests__/service.spec.ts:92
↓ 11 callers
Function
createAutoIncrementIdGenerator
()
blocksuite/framework/store/src/test/index.ts:7
↓ 11 callers
Function
createClient
(url: string, cookie: string)
packages/backend/server/src/__tests__/sync/gateway.spec.ts:47
↓ 11 callers
Method
createDoc
* By default, only an empty doc will be created. * If the `init` parameter is passed, a `surface`, `note`, and `paragraph` block * will be creat
blocksuite/framework/store/src/test/test-workspace.ts:153
↓ 11 callers
Function
createElement
(id: string)
blocksuite/framework/std/src/__tests__/gfx/tree.unit.spec.ts:32
↓ 11 callers
Function
createGroup
( service: EdgelessRootBlockComponent['service'], childIds: string[] )
blocksuite/integration-test/src/__tests__/edgeless/layer.spec.ts:414
↓ 11 callers
Function
createHeadings
(page: Page, gap = 0)
tests/affine-local/e2e/blocksuite/outline/utils.ts:18
↓ 11 callers
Method
createMention
(input: MentionNotificationCreate)
packages/backend/server/src/models/notification.ts:159
↓ 11 callers
Function
createSubscription
( accountId: string, overrides: Partial<UpsertCalendarSubscriptionInput> & { syncToken?: string | null
packages/backend/server/src/plugins/calendar/__tests__/service.spec.ts:112
↓ 11 callers
Method
default
()
packages/backend/server/src/__tests__/nestjs/throttler.spec.ts:28
↓ 11 callers
Function
diffMarkdown
(oldMarkdown: string, newMarkdown: string)
packages/frontend/core/src/blocksuite/ai/utils/apply-model/markdown-diff.ts:103
↓ 11 callers
Method
exists
* Detect a doc exists or not, including updates
packages/backend/server/src/models/doc.ts:245
↓ 11 callers
Function
exportHandler
({ page, type, editorContainer, }: ExportHandlerOptions)
packages/frontend/core/src/components/hooks/affine/use-export-page.ts:144
↓ 11 callers
Method
find$
(where?: FindEntityInput<T>)
packages/common/infra/src/orm/core/table.ts:256
↓ 11 callers
Function
formatBytes
(bytes: number)
packages/frontend/admin/src/modules/workspaces/utils.ts:1
↓ 11 callers
Function
getAttachment
(page: Page)
tests/blocksuite/e2e/attachment.spec.ts:51
↓ 11 callers
Method
getClientRects
()
blocksuite/affine/widgets/toolbar/src/toolbar.ts:149
↓ 11 callers
Method
getEditorContent
(page: Page, trim = true)
tests/affine-cloud-copilot/e2e/utils/editor-utils.ts:27
↓ 11 callers
Function
getSelectedRect
(page: Page)
tests/blocksuite/e2e/utils/asserts.ts:759
↓ 11 callers
Method
getTransformer
()
packages/frontend/core/src/modules/comment/services/snapshot-helper.ts:70
↓ 11 callers
Function
getViewportElement
(editorHost: EditorHost)
blocksuite/affine/shared/src/utils/dom/viewport.ts:14
↓ 11 callers
Function
importAttachment
(page: Page, file: string)
tests/kit/src/utils/attachment.ts:25
↓ 11 callers
Function
intersectInlineRange
( a: InlineRange, b: InlineRange )
blocksuite/framework/std/src/inline/utils/inline-range.ts:64
↓ 11 callers
Function
isCollectionChip
(chip: ChatChip)
packages/frontend/core/src/blocksuite/ai/components/ai-chat-chips/utils.ts:63
↓ 11 callers
Function
isGfxBlockComponent
( element: unknown )
blocksuite/framework/std/src/view/element/gfx-block-component.ts:17
↓ 11 callers
Function
isInlineRangeContain
(a: InlineRange, b: InlineRange)
blocksuite/framework/std/src/inline/utils/inline-range.ts:10
↓ 11 callers
Function
isNoteBlock
( element: BlockModel | GfxModel | null )
blocksuite/affine/blocks/surface/src/extensions/query.ts:11
↓ 11 callers
Function
isTagChip
(chip: ChatChip)
packages/frontend/core/src/blocksuite/ai/components/ai-chat-chips/utils.ts:59
↓ 11 callers
Method
isValid
* Checks if the child flavour is valid under the parent flavour. * * @param child - The child block flavour name. * @param parent - The paren
blocksuite/framework/store/src/schema/schema.ts:257
↓ 11 callers
Function
lazy
( factory: () => Promise<Record<any, T>>, fallback?: React.ReactNode )
packages/frontend/routes/src/lazy.ts:8
↓ 11 callers
Function
local
()
blocksuite/framework/std/src/gfx/model/surface/decorators/local.ts:12
↓ 11 callers
Function
locatorComponentToolbarMoreButton
(page: Page)
tests/blocksuite/e2e/utils/actions/edgeless.ts:1078
↓ 11 callers
Function
moveView
(page: Page, point: [number, number])
tests/blocksuite/e2e/utils/actions/click.ts:24
↓ 11 callers
Function
openSettingModal
(page: Page)
tests/kit/src/utils/setting.ts:11
↓ 11 callers
Method
openSidebar
()
packages/frontend/core/src/modules/workbench/entities/workbench.ts:114
↓ 11 callers
Method
parseESQuery
( query: Record<string, any>, options?: { termMappingField?: string; parentNodes?: Record<
packages/backend/server/src/plugins/indexer/providers/manticoresearch.ts:258
↓ 11 callers
Function
parseIdentifier
(input: any)
packages/common/infra/src/framework/core/identifier.ts:106
↓ 11 callers
Function
pointInPolygon
(p: IVec, points: IVec[])
blocksuite/framework/global/src/gfx/math.ts:343
↓ 11 callers
Function
preprocessFootnoteReference
(content: string)
blocksuite/affine/inlines/footnote/src/adapters/markdown/preprocessor.ts:31
↓ 11 callers
Function
pressEscape
(page: Page, count = 1)
tests/kit/src/utils/keyboard.ts:70
↓ 11 callers
Function
process
(content: string)
blocksuite/affine/shared/src/__tests__/adapters/markdown/remark-plugins/remark-callout.unit.spec.ts:20
↓ 11 callers
Method
propertyAdd
( insertToPosition: InsertToPosition, ops?: { type?: string; name?: string; } )
blocksuite/affine/data-view/src/core/data-source/base.ts:62
↓ 11 callers
Function
pushWithPriority
(points: number[][], vecs: IVec[], priority = 0)
blocksuite/affine/gfx/connector/src/connector-manager.ts:251
↓ 11 callers
Function
resolveError
(err: any)
packages/frontend/core/src/blocksuite/ai/provider/copilot-client.ts:82
↓ 11 callers
Function
resolveHref
(href: string, baseUrl: string)
packages/backend/server/src/plugins/calendar/providers/caldav.ts:88
↓ 11 callers
Function
rmrf
(targetPath)
packages/backend/server/scripts/docker-clean.mjs:41
↓ 11 callers
Method
sanitizeString
(value: T)
packages/backend/server/src/models/copilot-session.ts:116
↓ 11 callers
Method
save
()
packages/backend/server/src/plugins/copilot/context/session.ts:399
↓ 11 callers
Method
saveStripeInvoice
(stripeInvoice: Stripe.Invoice)
packages/backend/server/src/plugins/payment/service.ts:470
↓ 11 callers
Method
setEnabled
(enabled: boolean)
packages/frontend/core/src/modules/media/services/meeting-settings.ts:55
↓ 11 callers
Method
setMode
(mode: DocMode)
packages/frontend/core/src/modules/editor/entities/editor.ts:105
↓ 11 callers
Method
stop
(skipUpdate?: boolean)
packages/frontend/core/src/modules/media/entities/audio-media.ts:336
↓ 11 callers
Function
toModelCoord
(page: Page, point: number[])
tests/blocksuite/e2e/utils/actions/edgeless.ts:1620
↓ 11 callers
Method
toViewBound
(bound: Bound)
blocksuite/framework/std/src/gfx/viewport.ts:618
↓ 11 callers
Function
toggleEmbedCardCreateModal
( host: EditorHost, titleText: string, descriptionText: string, createOptions: | { mode: '
blocksuite/affine/components/src/embed-card-modal/embed-card-create-modal.ts:180
↓ 11 callers
Function
useMutateQueryResource
()
packages/frontend/admin/src/use-mutation.ts:68
↓ 11 callers
Function
useWorkspaceInfo
(meta?: WorkspaceMetadata)
packages/frontend/core/src/components/hooks/use-workspace-info.ts:8
↓ 11 callers
Function
waitForConnect
(socket: SocketIOClient)
packages/backend/server/src/__tests__/sync/gateway.spec.ts:58
↓ 10 callers
Function
ConfigExtensionFactory
( configId: string )
blocksuite/framework/std/src/extension/config.ts:31
↓ 10 callers
Function
MarkdownASTToDeltaExtension
( matcher: MarkdownASTToDeltaMatcher )
blocksuite/affine/shared/src/adapters/markdown/delta-converter.ts:135
↓ 10 callers
Function
SubscribeMessage
(event: string)
packages/backend/server/src/core/sync/gateway.ts:46
↓ 10 callers
Function
action
()
packages/frontend/core/src/utils/navigable-history.ts:143
↓ 10 callers
Function
addDatabase
(title: string, group = true)
blocksuite/playground/apps/starter/data/database.ts:35
↓ 10 callers
Method
addOverlay
(overlay: Overlay)
blocksuite/affine/blocks/surface/src/renderer/canvas-renderer.ts:382
← previous
next →
901–1,000 of 18,927, ranked by callers