-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Material UI and other deps (#334)
- Loading branch information
Showing
46 changed files
with
1,785 additions
and
1,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,4 @@ PGDEBUG=false | |
|
||
# Analytics | ||
|
||
GA_TRACKING_ID=UA-XXXXX-Y | ||
# GA_TRACKING_ID=UA-XXXXX-Y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,93 @@ | ||
{ | ||
"React": { | ||
"prefix": "react", | ||
"ReactComponent": { | ||
"prefix": "reactComponent", | ||
"body": [ | ||
"import clsx from 'clsx';", | ||
"import React from 'react';", | ||
"import { withStyles } from '@material-ui/core/styles';", | ||
"import { makeStyles } from '@material-ui/styles';", | ||
"", | ||
"const styles = theme => ({", | ||
" root: {}", | ||
"});", | ||
"const useStyles = makeStyles(theme => ({", | ||
" root: {},", | ||
"}));", | ||
"", | ||
"function ${1:Component}(props) {", | ||
" const { className, ...other } = props;", | ||
" const s = useStyles();", | ||
"", | ||
"function ${1:Component}({ classes: s, ...props }) {", | ||
" return (", | ||
" <${2:div} className={s.root}>", | ||
" <${2:div} className={clsx(s.root, className)} {...other}>", | ||
" ${3:body}$0", | ||
" </${2:div}>", | ||
" );", | ||
"}", | ||
"", | ||
"export default withStyles(styles)(${1:Component});", | ||
"export default ${1:Component};", | ||
"" | ||
], | ||
"description": "React Component" | ||
}, | ||
"Relay Fragment Container": { | ||
"prefix": "relay", | ||
"ReactRefComponent": { | ||
"prefix": "reactRefComponent", | ||
"body": [ | ||
"import clsx from 'clsx';", | ||
"import React from 'react';", | ||
"import { withStyles } from '@material-ui/core/styles';", | ||
"import { graphql, createFragmentContainer } from 'react-relay';", | ||
"import { makeStyles } from '@material-ui/styles';", | ||
"", | ||
"const useStyles = makeStyles(theme => ({", | ||
" root: {},", | ||
"}));", | ||
"", | ||
"const ${1:Component} = React.forwardRef(function ${1:Component}(props, ref) {", | ||
" const { className, ...other } = props;", | ||
" const s = useStyles();", | ||
"", | ||
"const styles = theme => ({", | ||
" root: {}", | ||
" return (", | ||
" <${2:div} className={clsx(s.root, className)} ref={ref} {...other}>", | ||
" ${3:body}$0", | ||
" </${2:div}>", | ||
" );", | ||
"});", | ||
"", | ||
"function ${1:Component}({ classes: s, data, ...props }) {", | ||
"export default ${1:Component};", | ||
"" | ||
], | ||
"description": "React Ref Component" | ||
}, | ||
"React/Relay Fragment Container": { | ||
"prefix": "reactFragmentContainer", | ||
"body": [ | ||
"import clsx from 'clsx';", | ||
"import React from 'react';", | ||
"import { makeStyles } from '@material-ui/styles';", | ||
"import { createFragmentContainer, graphql } from 'react-relay';", | ||
"", | ||
"const useStyles = makeStyles(theme => ({", | ||
" root: {},", | ||
"}));", | ||
"", | ||
"function ${1:Component}(props) {", | ||
" const { className, data, ...other } = props;", | ||
" const s = useStyles();", | ||
"", | ||
" return (", | ||
" <${2:div} className={s.root}>", | ||
" <${2:div} className={clsx(s.root, className)} {...other}>", | ||
" ${3:body}$0", | ||
" </${2:div}>", | ||
" );", | ||
"}", | ||
"", | ||
"export default withStyles(styles)(createFragmentContainer(", | ||
"export default createFragmentContainer(", | ||
" ${1:Component},", | ||
" graphql`", | ||
" fragment ${1:Component} on Query {", | ||
" id", | ||
" }", | ||
" `,", | ||
"));", | ||
" {", | ||
" data: graphql`", | ||
" fragment ${1:Component} on Query {", | ||
" id", | ||
" }", | ||
" `,", | ||
" },", | ||
");", | ||
"" | ||
], | ||
"description": "Relay Fragment Container" | ||
"description": "React/Relay Fragment Container" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* React Starter Kit for Firebase | ||
* https://github.com/kriasoft/react-firebase-starter | ||
* Copyright (c) 2015-present Kriasoft | MIT License | ||
*/ | ||
|
||
/* @flow */ | ||
|
||
import React from 'react'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import List from '@material-ui/core/List'; | ||
import ListItem from '@material-ui/core/ListItem'; | ||
import { createFragmentContainer, graphql } from 'react-relay'; | ||
|
||
function AdminStoryList(props) { | ||
return ( | ||
<> | ||
<Typography variant="h3">Stories</Typography> | ||
<List> | ||
<ListItem>Story A</ListItem> | ||
<ListItem>Story B</ListItem> | ||
<ListItem>Story C</ListItem> | ||
</List> | ||
</> | ||
); | ||
} | ||
|
||
export default createFragmentContainer(AdminStoryList, { | ||
data: graphql` | ||
fragment AdminStoryList_data on Query { | ||
me { | ||
id | ||
} | ||
} | ||
`, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* React Starter Kit for Firebase | ||
* https://github.com/kriasoft/react-firebase-starter | ||
* Copyright (c) 2015-present Kriasoft | MIT License | ||
*/ | ||
|
||
/* @flow */ | ||
|
||
import React from 'react'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import List from '@material-ui/core/List'; | ||
import ListItem from '@material-ui/core/ListItem'; | ||
import { createFragmentContainer, graphql } from 'react-relay'; | ||
|
||
function AdminUserList(props) { | ||
return ( | ||
<> | ||
<Typography variant="h3">Users</Typography> | ||
<List> | ||
<ListItem>User A</ListItem> | ||
<ListItem>User B</ListItem> | ||
<ListItem>User C</ListItem> | ||
</List> | ||
</> | ||
); | ||
} | ||
|
||
export default createFragmentContainer(AdminUserList, { | ||
data: graphql` | ||
fragment AdminUserList_data on Query { | ||
me { | ||
id | ||
} | ||
} | ||
`, | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.