mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-19 18:03:20 +08:00
Minor
This commit is contained in:
@@ -22,5 +22,8 @@
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
],
|
||||
"exclude": [
|
||||
"../src"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import {
|
||||
AdditionalColumnDelegate,
|
||||
CollectionSize,
|
||||
CompositeIndex,
|
||||
Entity,
|
||||
EntitySchema,
|
||||
FilterValues, CompositeIndex,
|
||||
FilterValues,
|
||||
Property,
|
||||
TextSearchDelegate
|
||||
} from "../../models";
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
useTheme
|
||||
} from "@material-ui/core";
|
||||
|
||||
import { CollectionSize, EntitySchema, FilterValues } from "../../models";
|
||||
import { CollectionSize, EntitySchema } from "../../models";
|
||||
import SearchBar from "./SearchBar";
|
||||
import ClearIcon from "@material-ui/icons/Clear";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from "react";
|
||||
import React from "react";
|
||||
import { useInputStyles } from "./styles";
|
||||
import { KeyboardDateTimePicker } from "@material-ui/pickers";
|
||||
import { Box, Typography } from "@material-ui/core";
|
||||
|
||||
@@ -1,26 +1,4 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { Grow } from "@material-ui/core";
|
||||
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
|
||||
import clsx from "clsx";
|
||||
|
||||
const useStyles = makeStyles<Theme>((theme: Theme) =>
|
||||
createStyles({
|
||||
popup: {
|
||||
display: "inline-block",
|
||||
userSelect: "none",
|
||||
position: "fixed",
|
||||
zIndex: 1300,
|
||||
boxShadow: "0 0 0 2px rgba(0,0,0,0.1)",
|
||||
borderRadius: "6px",
|
||||
backgroundColor: theme.palette.background.paper,
|
||||
padding: theme.spacing(2)
|
||||
},
|
||||
hidden: {
|
||||
visibility: "hidden",
|
||||
zIndex: -1
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
type DraggableProps = {
|
||||
containerRef: React.RefObject<HTMLDivElement>,
|
||||
@@ -32,11 +10,11 @@ type DraggableProps = {
|
||||
|
||||
export function useDraggable({
|
||||
containerRef,
|
||||
ref,
|
||||
x,
|
||||
y,
|
||||
onMove,
|
||||
}: DraggableProps) {
|
||||
ref,
|
||||
x,
|
||||
y,
|
||||
onMove
|
||||
}: DraggableProps) {
|
||||
|
||||
|
||||
let relX = 0;
|
||||
|
||||
@@ -31,7 +31,7 @@ export const useStyles = makeStyles(theme => createStyles({
|
||||
[theme.breakpoints.down("xs")]: {
|
||||
width: "100vw"
|
||||
},
|
||||
transition: "width 155ms cubic-bezier(0.33, 1, 0.68, 1)"
|
||||
transition: "width 300ms ease-in-out"
|
||||
},
|
||||
wide: {
|
||||
width: "65vw",
|
||||
@@ -46,7 +46,7 @@ export const useStyles = makeStyles(theme => createStyles({
|
||||
[theme.breakpoints.down("xs")]: {
|
||||
width: "100vw"
|
||||
},
|
||||
transition: "width 150ms cubic-bezier(0.33, 1, 0.68, 1)"
|
||||
transition: "width 300ms ease-in-out"
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
@@ -6,11 +6,9 @@ import {
|
||||
FormControl,
|
||||
FormHelperText,
|
||||
makeStyles,
|
||||
Paper,
|
||||
Theme,
|
||||
Typography
|
||||
Theme
|
||||
} from "@material-ui/core";
|
||||
import MDEditor from '@uiw/react-md-editor';
|
||||
import MDEditor from "@uiw/react-md-editor";
|
||||
|
||||
import { FieldProps } from "../../models";
|
||||
import { FieldDescription } from "../../form/components";
|
||||
|
||||
@@ -12,7 +12,6 @@ import LabelWithIcon from "../components/LabelWithIcon";
|
||||
import { useClearRestoreValue } from "../../hooks";
|
||||
import { enumToObjectEntries, isEnumValueDisabled } from "../../util/enums";
|
||||
import { EnumValuesChip } from "../../preview/components/CustomChip";
|
||||
import { formStyles } from "../styles";
|
||||
|
||||
type SelectProps<T extends EnumType> = FieldProps<T>;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import React from "react";
|
||||
import {
|
||||
ArrayProperty,
|
||||
MapProperty
|
||||
} from "../../models";
|
||||
import { ArrayProperty, MapProperty } from "../../models";
|
||||
import ErrorBoundary from "../../core/internal/ErrorBoundary";
|
||||
|
||||
import { Table, TableBody, TableCell, TableRow } from "@material-ui/core";
|
||||
|
||||
Reference in New Issue
Block a user