feat: sqlite subdocument (#2816)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng Xiao
2023-06-27 15:40:37 +08:00
committed by GitHub
parent 4307e1eb6b
commit 05452bb297
30 changed files with 842 additions and 426 deletions

View File

@@ -181,7 +181,6 @@ export const useZoomControls = ({
}
}, [imageRef]);
useEffect(() => {
const handleScroll = (event: WheelEvent) => {
const { deltaY } = event;

View File

@@ -62,7 +62,6 @@ export const imagePreviewModalCloseButtonStyle = style({
zIndex: 1,
marginTop: '38px',
marginRight: '38px',
});
export const imagePreviewModalGoStyle = style({

View File

@@ -5,7 +5,14 @@ import { useMediaQuery, useTheme } from '@mui/material';
import type React from 'react';
import { type CSSProperties } from 'react';
import { ScrollableContainer, Table, TableBody, TableCell, TableHead, TableHeadRow } from '../..';
import {
ScrollableContainer,
Table,
TableBody,
TableCell,
TableHead,
TableHeadRow,
} from '../..';
import { TableBodyRow } from '../../ui/table';
import { useHasScrollTop } from '../app-sidebar/sidebar-containers/use-has-scroll-top';
import { AllPagesBody } from './all-pages-body';
@@ -141,12 +148,9 @@ export const PageList = ({
? DEFAULT_SORT_KEY
: undefined;
return (
sorter.data.length === 0 && fallback ?
<StyledTableContainer>
{fallback}
</StyledTableContainer>
:
return sorter.data.length === 0 && fallback ? (
<StyledTableContainer>{fallback}</StyledTableContainer>
) : (
<ScrollableContainer inTableView>
<StyledTableContainer ref={ref}>
<Table showBorder={hasScrollTop} style={{ maxHeight: '100%' }}>
@@ -158,7 +162,6 @@ export const PageList = ({
importFile={onImportFile}
/>
<AllPagesBody
isPublicWorkspace={isPublicWorkspace}
groupKey={groupKey}
data={sorter.data}
@@ -246,12 +249,9 @@ export const PageListTrashView: React.FC<{
}
);
return (
list.length === 0 && fallback ?
<StyledTableContainer>
{fallback}
</StyledTableContainer>
:
return list.length === 0 && fallback ? (
<StyledTableContainer>{fallback}</StyledTableContainer>
) : (
<ScrollableContainer inTableView>
<StyledTableContainer ref={ref}>
<Table showBorder={hasScrollTop}>