fix: snackbar 导致界面不可点击的问题

This commit is contained in:
Ivan Li 2021-10-04 11:05:59 +08:00
parent 320506af68
commit e8620c2818
5 changed files with 5889 additions and 2344 deletions

8180
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,7 @@
"graphql": "^15.5.0",
"graphql-scalars": "^1.10.0",
"material-ui-confirm": "^2.1.2",
"notistack": "^1.0.6",
"notistack": "^2.0.2",
"ramda": "^0.27.1",
"react": "^17.0.2",
"react-ace": "^9.4.4",

View File

@ -2021,13 +2021,9 @@
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Configuration",
"ofType": null
}
"kind": "OBJECT",
"name": "Configuration",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
@ -2044,6 +2040,18 @@
"description": null,
"fields": null,
"inputFields": [
{
"name": "id",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "pipelineId",
"description": null,
@ -2107,6 +2115,18 @@
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": "\"Default Configuration\"",
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,

View File

@ -214,7 +214,7 @@ export type Query = {
commits?: Maybe<Array<Commit>>;
listPipelineTaskByPipelineId: Array<PipelineTask>;
pipelineTask: PipelineTask;
getConfiguration: Configuration;
getConfiguration?: Maybe<Configuration>;
};
@ -255,10 +255,12 @@ export type QueryGetConfigurationArgs = {
};
export type SetConfigurationInput = {
id?: Maybe<Scalars['String']>;
pipelineId: Scalars['String'];
projectId: Scalars['String'];
content: Scalars['String'];
language: ConfigurationLanguage;
name?: Maybe<Scalars['String']>;
};
export type Subscription = {

View File

@ -9,8 +9,7 @@ import { ConfirmProvider } from "material-ui-confirm";
import { SnackbarProvider } from "notistack";
import Router from "./commons/route/router";
import { AuthProvider } from "./commons/auth/auth.provider";
import { LocalizationProvider } from "@mui/lab";
import AdapterDateFns from "@mui/lab/AdapterDateFns";
import { zhCN } from "@mui/material/locale";
import {
ThemeProvider,
Theme,
@ -23,7 +22,7 @@ declare module "@mui/styles/defaultTheme" {
interface DefaultTheme extends Theme {}
}
const theme = createTheme();
const theme = createTheme({}, zhCN);
ReactDOM.render(
<React.StrictMode>
@ -33,11 +32,9 @@ ReactDOM.render(
<SnackbarProvider maxSnack={5}>
<AuthProvider>
<AppApolloClientProvider>
<LocalizationProvider dateAdapter={AdapterDateFns}>
<Router>
<App />
</Router>
</LocalizationProvider>
<Router>
<App />
</Router>
</AppApolloClientProvider>
</AuthProvider>
</SnackbarProvider>