mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
import { CenterPeek } from './components/layout';
|
|
import { DatabaseTitle } from './components/title';
|
|
import { DatabaseBlockComponent } from './database-block';
|
|
import { DatabaseDndPreviewBlockComponent } from './database-dnd-preview-block';
|
|
import { BlockRenderer } from './detail-panel/block-renderer';
|
|
import { NoteRenderer } from './detail-panel/note-renderer';
|
|
import { LinkCell, LinkCellEditing } from './properties/link/cell-renderer';
|
|
import { LinkNode } from './properties/link/components/link-node';
|
|
import {
|
|
RichTextCell,
|
|
RichTextCellEditing,
|
|
} from './properties/rich-text/cell-renderer';
|
|
import { IconCell } from './properties/title/icon';
|
|
import {
|
|
HeaderAreaTextCell,
|
|
HeaderAreaTextCellEditing,
|
|
} from './properties/title/text';
|
|
|
|
export function effects() {
|
|
customElements.define('affine-database-title', DatabaseTitle);
|
|
customElements.define('data-view-header-area-icon', IconCell);
|
|
customElements.define('affine-database-link-cell', LinkCell);
|
|
customElements.define('affine-database-link-cell-editing', LinkCellEditing);
|
|
customElements.define('data-view-header-area-text', HeaderAreaTextCell);
|
|
customElements.define(
|
|
'data-view-header-area-text-editing',
|
|
HeaderAreaTextCellEditing
|
|
);
|
|
customElements.define('affine-database-rich-text-cell', RichTextCell);
|
|
customElements.define(
|
|
'affine-database-rich-text-cell-editing',
|
|
RichTextCellEditing
|
|
);
|
|
customElements.define('center-peek', CenterPeek);
|
|
customElements.define('database-datasource-note-renderer', NoteRenderer);
|
|
customElements.define('database-datasource-block-renderer', BlockRenderer);
|
|
customElements.define('affine-database-link-node', LinkNode);
|
|
customElements.define('affine-database', DatabaseBlockComponent);
|
|
|
|
customElements.define(
|
|
'affine-dnd-preview-database',
|
|
DatabaseDndPreviewBlockComponent
|
|
);
|
|
}
|