upgrade dependencies (#184)

* upgrade dependencies

* upgrade dependencies

* format code

* update nextjs

* fixes

* chore: update graphql generator

* fixes

* fixes

* fixes
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2020-06-06 03:50:58 +05:30
1 parent b69461b66e
commit 618bd8d5bc
88 files changed
+3427 -3350

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
export enum BabelTransforms {
JSON_TO_PROPTYPES = 1,
OBJECT_STYLES_TO_TEMPLATE,
JSON_TO_MOBX_TREE
JSON_TO_MOBX_TREE,
}
+1 -1
View File
@@ -3,7 +3,7 @@ export const json = JSON.stringify(
userId: 1,
id: 1,
title: "delectus aut autem",
completed: false
completed: false,
},
null,
2
+1 -1
View File
@@ -12,5 +12,5 @@ export enum GraphqlTransforms {
TO_TYPESCRIPT_RESOLVERS_SIGNATURE,
TO_FLOW_RESOLVERS_SIGNATURE,
TO_URQL,
TO_TYPESCRIPT_MONGODB
TO_TYPESCRIPT_MONGODB,
}
+6 -6
View File
@@ -40,7 +40,7 @@ export const nativeRequiredSettings = {
removeXMLProcInst: false,
removeComments: true,
removeMetadata: true,
removeDimensions: false
removeDimensions: false,
};
export const defaultSettings = {
@@ -73,7 +73,7 @@ export const defaultSettings = {
removeRasterImages: true,
mergePaths: true,
convertShapeToPath: true,
sortAttrs: true
sortAttrs: true,
};
export const defaultNativeSettings = omit(
@@ -81,15 +81,15 @@ export const defaultNativeSettings = omit(
Object.keys(nativeRequiredSettings)
);
export const formFields = settings =>
export const formFields = (settings) =>
Object.keys(settings).map((property: keyof Settings) => ({
label: lowerCase(property),
type: InputType.SWITCH,
key: property,
...(property !== "optimizeSvg"
? {
isDisabled: values => !values.optimizeSvg,
props: { paddingLeft: 20, borderLeft: "2px solid #FDF8F3" }
isDisabled: (values) => !values.optimizeSvg,
props: { paddingLeft: 20, borderLeft: "2px solid #FDF8F3" },
}
: {})
: {}),
}));