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
↓ 3 callers
Method
deleteStripeSubscription
(subscription: Stripe.Subscription)
packages/backend/server/src/plugins/payment/service.ts:504
↓ 3 callers
Method
deleteUpdates
* Delete updates by workspaceId, docId, and createdAts.
packages/backend/server/src/models/doc.ts:119
↓ 3 callers
Method
deleteWorkspaceEmbedding
(workspaceId: string, docId: string)
packages/backend/server/src/models/copilot-context.ts:323
↓ 3 callers
Function
dependenciesToFactory
* Convert dependencies definition to a factory function.
blocksuite/framework/global/src/di/container.ts:417
↓ 3 callers
Method
destroy
* Remove all listeners
packages/frontend/core/src/mobile/utils/swipe-helper.ts:98
↓ 3 callers
Method
diamond
* Generate diamond (rhombus) polygon points
blocksuite/framework/global/src/gfx/svg-path.ts:92
↓ 3 callers
Function
diffKeyedRecords
( fromRecords: Map<string, KeyedRecord>, toRecords: Map<string, KeyedRecord> )
tools/doc-diff/src/diff.ts:24
↓ 3 callers
Method
disable
()
packages/frontend/core/src/mobile/modules/navigation-gesture/services/navigation-gesture.ts:52
↓ 3 callers
Method
dismissDraftReply
()
packages/frontend/core/src/modules/comment/entities/doc-comment.ts:163
↓ 3 callers
Method
dispatch
(key: string, data: any)
packages/common/infra/src/orm/core/adapters/memory/table.ts:177
↓ 3 callers
Function
dispatchEvents
(events: TelemetryEvent[])
packages/frontend/track/src/tracker.ts:151
↓ 3 callers
Function
displayFlex
( justifyContent: CSSProperties['justifyContent'] = 'unset', alignItems: CSSProperties['alignItems'] = 'un
packages/frontend/component/src/styles/helper.ts:3
↓ 3 callers
Function
dispose
()
blocksuite/framework/std/src/extension/service.ts:90
↓ 3 callers
Function
docLinkBaseURLMiddlewareBuilder
( baseUrl: string, collectionId: string )
blocksuite/affine/shared/src/adapters/middlewares/doc-link.ts:15
↓ 3 callers
Method
downloadBlob
* Downloads a blob from all peers * @param blobId - The blob ID to download * @returns A promise that resolves to true when the download is comp
packages/common/nbstore/src/sync/blob/index.ts:40
↓ 3 callers
Function
downloadUpdate
()
packages/frontend/apps/electron/src/main/updater/electron-updater.ts:69
↓ 3 callers
Function
drag
(from: number, to: number)
tests/blocksuite/e2e/edgeless/presentation.spec.ts:170
↓ 3 callers
Function
dragBetweenViewCoords
( page: Page, start: number[], end: number[], options?: Parameters<typeof dragBetweenCoords>[3] )
tests/blocksuite/e2e/utils/actions/edgeless.ts:1604
↓ 3 callers
Function
dragCard
( from: Locator, to: Locator, position: 'before' | 'after' = 'before' )
tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:371
↓ 3 callers
Method
dragMove
(e: PointerEventState)
blocksuite/affine/gfx/pointer/src/tools/pan-tool.ts:57
↓ 3 callers
Function
dragOverTitle
(page: Page)
tests/blocksuite/e2e/utils/actions/drag.ts:59
↓ 3 callers
Method
dragStart
(active: Active, coordinates: Coordinates)
blocksuite/affine/data-view/src/core/utils/wc-dnd/dnd-context.ts:411
↓ 3 callers
Function
dragToTrash
(page: Page, title: string, dragItem: Locator)
tests/affine-local/e2e/drag-page.spec.ts:71
↓ 3 callers
Function
draggableGet
( get: T )
packages/frontend/component/src/ui/dnd/types.ts:31
↓ 3 callers
Method
elementFromJSON
(element: Record<string, unknown>)
blocksuite/affine/blocks/surface/src/surface-transformer.ts:57
↓ 3 callers
Function
ellipseWithParams
( x: number, y: number, o: ResolvedOptions, ellipseParams: EllipseParams )
blocksuite/affine/blocks/surface/src/utils/rough/renderer.ts:141
↓ 3 callers
Function
emitRecordingStatus
()
packages/frontend/media-capture-playground/server/main.ts:318
↓ 3 callers
Function
encodeAudioFrames
* Encodes audio frames using the provided encoder
packages/frontend/core/src/utils/opus-encoding.ts:144
↓ 3 callers
Method
encryptPassword
(password: string)
packages/backend/server/src/base/helpers/crypto.ts:271
↓ 3 callers
Method
end
()
packages/backend/server/src/plugins/copilot/providers/utils.ts:570
↓ 3 callers
Function
ensureAnalyticsTables
(db: PrismaClient)
packages/backend/server/src/__tests__/e2e/workspace/admin-analytics.spec.ts:13
↓ 3 callers
Function
ensureInEdgelessMode
(page: Page)
tests/kit/src/utils/editor.ts:48
↓ 3 callers
Method
error
* Nestjs ConsoleLogger.error() will not print the stack trace if the error is an instance of Error * This method is a workaround to print the stack
packages/backend/server/src/base/logger/service.ts:51
↓ 3 callers
Function
expandBound
(bound: Bound, margin: number)
packages/frontend/core/src/blocksuite/ai/actions/page-response.ts:277
↓ 3 callers
Function
expectManaged
(fn: () => Promise<any>)
packages/backend/server/src/__tests__/payment/revenuecat.spec.ts:734
↓ 3 callers
Function
expectNoEvent
( socket: SocketIOClient, event: string, durationMs = 200 )
packages/backend/server/src/__tests__/sync/gateway.spec.ts:105
↓ 3 callers
Function
expectTabCount
(page: Page, count: number)
tests/kit/src/utils/app-tabs.ts:40
↓ 3 callers
Method
expectToHaveHistory
( page: Page, expected: ( | Partial<ChatUserMessage> | Partial<ChatAssistantMessage>
tests/affine-cloud-copilot/e2e/utils/chat-panel-utils.ts:135
↓ 3 callers
Method
extractArray
(value: T | T[] | undefined)
packages/backend/server/src/plugins/copilot/providers/fal.ts:154
↓ 3 callers
Method
extractInvoiceId
(charge: Stripe.Charge)
packages/backend/server/src/plugins/payment/webhook.ts:69
↓ 3 callers
Function
favoriteLabel
(key: string)
tools/doc-diff/src/table.ts:84
↓ 3 callers
Function
fetchBuffer
( url: string, limit: number, contentType?: string )
packages/backend/server/src/base/utils/ssrf.ts:336
↓ 3 callers
Function
fetchImageToFile
( url: string, filename: string, imageProxy?: string )
packages/frontend/core/src/blocksuite/ai/utils/image.ts:6
↓ 3 callers
Function
fillLine
(page: Page, toNext = false)
tests/blocksuite/e2e/utils/actions/keyboard.ts:212
↓ 3 callers
Method
findEmptySummaryDocIds
(workspaceId: string)
packages/backend/server/src/models/doc.ts:699
↓ 3 callers
Method
findManyByUserId
* Find notifications by user id, order by createdAt desc
packages/backend/server/src/core/notification/service.ts:409
↓ 3 callers
Method
findPublics
* Find the workspace public doc metas.
packages/backend/server/src/models/doc.ts:486
↓ 3 callers
Function
findSlashActionItem
( items: SlashMenuItem[], name: string )
blocksuite/integration-test/src/__tests__/main/editor-semantics.spec.ts:40
↓ 3 callers
Method
firstChild
()
blocksuite/framework/store/src/model/block/block-model.ts:143
↓ 3 callers
Function
firstFilter
(vars: Variable[])
blocksuite/affine/data-view/src/core/filter/utils.ts:29
↓ 3 callers
Function
firstFilterByRef
( vars: Variable[], ref: VariableRef )
blocksuite/affine/data-view/src/core/filter/utils.ts:18
↓ 3 callers
Function
flat
(arr: T[][])
blocksuite/affine/gfx/template/src/toolbar/builtin-templates.ts:32
↓ 3 callers
Method
flush
()
packages/common/nbstore/src/telemetry/manager.ts:72
↓ 3 callers
Method
flushActiveUsersMinute
(options?: { aggregateAcrossCluster?: boolean; })
packages/backend/server/src/core/sync/gateway.ts:348
↓ 3 callers
Function
focusDatabaseTitle
(page: Page)
tests/blocksuite/e2e/utils/actions/misc.ts:493
↓ 3 callers
Method
focusDateCell
* Focus on date-cell
blocksuite/affine/components/src/date-picker/date-picker.ts:479
↓ 3 callers
Method
focusInput
()
blocksuite/affine/components/src/context-menu/menu-renderer.ts:144
↓ 3 callers
Function
focusTitle
(editorHost: EditorHost, index = Infinity, len = 0)
blocksuite/affine/shared/src/utils/title.ts:22
↓ 3 callers
Function
folderLabel
(id: string, record: KeyedRecord)
tools/doc-diff/src/table.ts:71
↓ 3 callers
Function
fontBaseStyle
(container: string)
blocksuite/affine/shared/src/styles/font.ts:4
↓ 3 callers
Method
forkChat
()
packages/frontend/core/src/blocksuite/ai/provider/ai-provider.ts:103
↓ 3 callers
Function
formatChartDate
(value: string)
packages/frontend/core/src/desktop/pages/workspace/detail-page/tabs/analytics.tsx:54
↓ 3 callers
Function
formatDate
(value: string)
packages/frontend/admin/src/modules/dashboard/index.tsx:161
↓ 3 callers
Function
formatDate
(date: Date)
blocksuite/affine/widgets/keyboard-toolbar/src/utils.ts:26
↓ 3 callers
Function
formatDateTime
(value: string)
packages/frontend/admin/src/modules/dashboard/index.tsx:157
↓ 3 callers
Function
formatWithTimezone
(date: Date, timeZone: string = 'Asia/Tokyo')
tests/blocksuite/e2e/slash-menu.spec.ts:39
↓ 3 callers
Function
frameInViewport
()
tests/affine-local/e2e/peek-view.spec.ts:167
↓ 3 callers
Function
fromJSON
(value: unknown)
blocksuite/framework/store/src/transformer/json.ts:32
↓ 3 callers
Function
fromJson
( config: PropertyConfig<Data, RawValue, JsonValue>, { value, data, dataSource, }: { val
blocksuite/affine/data-view/src/core/property/utils.ts:4
↓ 3 callers
Method
fromSnapshot
({ json, }: FromSnapshotPayload)
blocksuite/framework/store/src/transformer/base.ts:62
↓ 3 callers
Method
fulfillFile
(file: ContextFile)
packages/backend/server/src/plugins/copilot/context/session.ts:197
↓ 3 callers
Function
generateMarkdownPreview
(block: BlockDocumentInfo)
packages/common/reader/src/reader.ts:413
↓ 3 callers
Method
generateOrthogonalConnectorPath
(input: OrthogonalConnectorInput)
blocksuite/affine/gfx/connector/src/connector-manager.ts:1114
↓ 3 callers
Method
generateQuotaCalculator
( storageQuota: number, blobLimit: number, usedQuota: number, unlimited = false )
packages/backend/server/src/core/quota/service.ts:253
↓ 3 callers
Method
generateSessionTitle
(job: Jobs['copilot.session.generateTitle'])
packages/backend/server/src/plugins/copilot/session.ts:662
↓ 3 callers
Function
generateYml
scripts/generate-release-yml.mjs:15
↓ 3 callers
Method
get
(workspaceId: string)
packages/backend/server/src/models/workspace.ts:126
↓ 3 callers
Method
get
* get config, if key is provided, return the value of the key * @param key * @returns
packages/common/infra/src/app-config-storage.ts:58
↓ 3 callers
Function
getActivePage
(pages: Page[])
tests/kit/src/electron.ts:33
↓ 3 callers
Function
getAllApps
* Gets all applications and groups them by bundle identifier. * For apps with the same bundle ID (e.g., multiple processes of the same app), * only
packages/frontend/media-capture-playground/server/main.ts:577
↓ 3 callers
Method
getAllRaw
( identifier: IdentifierValue, { sameScope = false, noCache, props }: ResolveOptions = {} )
packages/common/infra/src/framework/core/provider.ts:209
↓ 3 callers
Method
getAllWorkspaceProfile
()
packages/frontend/core/src/modules/workspace/services/workspaces.ts:65
↓ 3 callers
Function
getAttachmentId
(attachment: AttachmentFile)
packages/frontend/core/src/modules/workspace-indexer-embedding/utils.ts:35
↓ 3 callers
Function
getAttrOfActiveElement
( page: Page, attrName = 'data-testid' )
tests/affine-mobile/e2e/utils.ts:24
↓ 3 callers
Function
getBezierNearestTime
( values: BezierCurveParameters, point: IVec )
blocksuite/framework/global/src/gfx/curve.ts:102
↓ 3 callers
Function
getBgGridGap
(zoom: number)
blocksuite/affine/blocks/surface/src/utils/get-bg-grip-gap.ts:5
↓ 3 callers
Method
getBlob
( @Res() res: Response, @Param('userId') userId: string, @Param('workspaceId') workspaceId: string
packages/backend/server/src/plugins/copilot/controller.ts:766
↓ 3 callers
Method
getBlockCollection
(docId: string)
blocksuite/framework/store/src/test/test-workspace.ts:185
↓ 3 callers
Function
getBoundingRect
( page: Page, selector: string )
tests/blocksuite/e2e/utils/actions/selection.ts:35
↓ 3 callers
Function
getBundler
(env: NodeJS.ProcessEnv = process.env)
tools/cli/src/bundler.ts:25
↓ 3 callers
Method
getByToken
(token: string)
packages/backend/server/src/models/access-token.ts:64
↓ 3 callers
Method
getCallbackUrl
()
packages/backend/server/src/plugins/calendar/service.ts:541
↓ 3 callers
Method
getCanvasByBound
( bound: IBound = this.viewport.viewportBounds, surfaceElements?: SurfaceElementModel[], canvas?:
blocksuite/affine/blocks/surface/src/renderer/canvas-renderer.ts:412
↓ 3 callers
Function
getCardBorderColor
(style: NotificationStyle)
packages/frontend/component/src/ui/notification/utils.ts:51
↓ 3 callers
Function
getCardColor
( style: NotificationStyle, theme: NotificationTheme )
packages/frontend/component/src/ui/notification/utils.ts:7
↓ 3 callers
Function
getCardVars
( style: NotificationStyle, theme: NotificationTheme, iconColor?: string )
packages/frontend/component/src/ui/notification/utils.ts:83
↓ 3 callers
Function
getCellRect
(element: Element, bounds?: DOMRect)
blocksuite/affine/shared/src/utils/dnd/get-drop-rect-by-point.ts:135
↓ 3 callers
Function
getCenterAreaBounds
(bounds: IBound, ratio: number)
blocksuite/framework/global/src/gfx/math.ts:556
↓ 3 callers
Function
getChatPanel
(target: HTMLElement)
packages/frontend/core/src/blocksuite/ai/components/ai-tools/artifacts-preview-panel.ts:10
↓ 3 callers
Function
getClipboardHTML
(page: Page)
tests/blocksuite/e2e/utils/actions/misc.ts:794
← previous
next →
2,901–3,000 of 18,927, ranked by callers