mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-26 14:58:55 +08:00
chore(infra): remove blocksuite from infra (#9353)
This commit is contained in:
+2
-2
@@ -88,9 +88,9 @@ export const CloudQuotaModal = () => {
|
||||
currentWorkspace.engine.blob.singleBlobSizeLimit = workspaceQuota.blobLimit;
|
||||
|
||||
const disposable =
|
||||
currentWorkspace.engine.blob.onAbortLargeBlob.on(onAbortLargeBlob);
|
||||
currentWorkspace.engine.blob.onAbortLargeBlob(onAbortLargeBlob);
|
||||
return () => {
|
||||
disposable?.dispose();
|
||||
disposable();
|
||||
};
|
||||
}, [currentWorkspace.engine.blob, onAbortLargeBlob, workspaceQuota]);
|
||||
|
||||
|
||||
+3
-3
@@ -16,13 +16,13 @@ export const LocalQuotaModal = () => {
|
||||
}, [setOpen]);
|
||||
|
||||
useEffect(() => {
|
||||
const disposable = currentWorkspace.engine.blob.onAbortLargeBlob.on(() => {
|
||||
const disposable = currentWorkspace.engine.blob.onAbortLargeBlob(() => {
|
||||
setOpen(true);
|
||||
});
|
||||
return () => {
|
||||
disposable?.dispose();
|
||||
disposable();
|
||||
};
|
||||
}, [currentWorkspace.engine.blob.onAbortLargeBlob, setOpen]);
|
||||
}, [currentWorkspace.engine.blob, setOpen]);
|
||||
|
||||
return (
|
||||
<ConfirmModal
|
||||
|
||||
+2
-1
@@ -67,12 +67,13 @@ import {
|
||||
import { Bound } from '@blocksuite/affine/global/utils';
|
||||
import { type BlockSnapshot, Text } from '@blocksuite/affine/store';
|
||||
import type { ReferenceParams } from '@blocksuite/affine-model';
|
||||
import { type DocProps, type FrameworkProvider } from '@toeverything/infra';
|
||||
import { type FrameworkProvider } from '@toeverything/infra';
|
||||
import { type TemplateResult } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
import { pick } from 'lodash-es';
|
||||
|
||||
import type { DocProps } from '../../../../../blocksuite/initialization';
|
||||
import { generateUrl } from '../../../../hooks/affine/use-share-url';
|
||||
import { createKeyboardToolbarConfig } from './widgets/keyboard-toolbar';
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { toast } from '@affine/component';
|
||||
import type { DocProps } from '@affine/core/blocksuite/initialization';
|
||||
import { AppSidebarService } from '@affine/core/modules/app-sidebar';
|
||||
import { DocsService } from '@affine/core/modules/doc';
|
||||
import { EditorSettingService } from '@affine/core/modules/editor-setting';
|
||||
import { WorkbenchService } from '@affine/core/modules/workbench';
|
||||
import { type DocMode } from '@blocksuite/affine/blocks';
|
||||
import type { DocCollection } from '@blocksuite/affine/store';
|
||||
import { type DocProps, useServices } from '@toeverything/infra';
|
||||
import { useServices } from '@toeverything/infra';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
|
||||
export const usePageHelper = (docCollection: DocCollection) => {
|
||||
|
||||
Reference in New Issue
Block a user