mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
ci(mobile): typecheck (#8166)
This commit is contained in:
@@ -21,7 +21,6 @@ import {
|
|||||||
} from '@blocksuite/blocks';
|
} from '@blocksuite/blocks';
|
||||||
import { DisposableGroup } from '@blocksuite/global/utils';
|
import { DisposableGroup } from '@blocksuite/global/utils';
|
||||||
import { type AffineEditorContainer } from '@blocksuite/presets';
|
import { type AffineEditorContainer } from '@blocksuite/presets';
|
||||||
import type { Doc as BlockSuiteDoc } from '@blocksuite/store';
|
|
||||||
import {
|
import {
|
||||||
DocService,
|
DocService,
|
||||||
FrameworkScope,
|
FrameworkScope,
|
||||||
@@ -106,7 +105,7 @@ const DetailPageImpl = () => {
|
|||||||
usePageDocumentTitle(title);
|
usePageDocumentTitle(title);
|
||||||
|
|
||||||
const onLoad = useCallback(
|
const onLoad = useCallback(
|
||||||
(_bsPage: BlockSuiteDoc, editorContainer: AffineEditorContainer) => {
|
(editorContainer: AffineEditorContainer) => {
|
||||||
// blocksuite editor host
|
// blocksuite editor host
|
||||||
const editorHost = editorContainer.host;
|
const editorHost = editorContainer.host;
|
||||||
|
|
||||||
@@ -191,11 +190,7 @@ const DetailPageImpl = () => {
|
|||||||
className={styles.journalIconButton}
|
className={styles.journalIconButton}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<PageDetailEditor
|
<PageDetailEditor onLoad={onLoad} />
|
||||||
pageId={doc.id}
|
|
||||||
onLoad={onLoad}
|
|
||||||
docCollection={docCollection}
|
|
||||||
/>
|
|
||||||
</AffineErrorBoundary>
|
</AffineErrorBoundary>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export const Component = () => {
|
|||||||
if (workspaceNotFound) {
|
if (workspaceNotFound) {
|
||||||
if (
|
if (
|
||||||
detailDocRoute /* */ &&
|
detailDocRoute /* */ &&
|
||||||
environment.isBrowser /* only browser has share page */
|
environment.isDesktopEdition /* only browser has share page */
|
||||||
) {
|
) {
|
||||||
return <div>TODO: share page</div>;
|
return <div>TODO: share page</div>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,22 @@ import {
|
|||||||
|
|
||||||
import { MobileCurrentWorkspaceModals } from '../../provider/model-provider';
|
import { MobileCurrentWorkspaceModals } from '../../provider/model-provider';
|
||||||
|
|
||||||
|
// TODO(@forehalo): reuse the global context with [core/electron]
|
||||||
|
declare global {
|
||||||
|
/**
|
||||||
|
* @internal debug only
|
||||||
|
*/
|
||||||
|
// eslint-disable-next-line no-var
|
||||||
|
var currentWorkspace: Workspace | undefined;
|
||||||
|
// eslint-disable-next-line no-var
|
||||||
|
var exportWorkspaceSnapshot: (docs?: string[]) => Promise<void>;
|
||||||
|
// eslint-disable-next-line no-var
|
||||||
|
var importWorkspaceSnapshot: () => Promise<void>;
|
||||||
|
interface WindowEventMap {
|
||||||
|
'affine:workspace:change': CustomEvent<{ id: string }>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const WorkspaceLayout = ({
|
export const WorkspaceLayout = ({
|
||||||
meta,
|
meta,
|
||||||
children,
|
children,
|
||||||
|
|||||||
@@ -97,6 +97,9 @@
|
|||||||
{
|
{
|
||||||
"path": "./packages/frontend/web"
|
"path": "./packages/frontend/web"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "./packages/frontend/mobile"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "./packages/frontend/electron/tsconfig.test.json"
|
"path": "./packages/frontend/electron/tsconfig.test.json"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user