Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed May 25, 2019
1 parent a26811e commit 602d699
Show file tree
Hide file tree
Showing 27 changed files with 884 additions and 698 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# gatsby-theme-material-ui

> [Gatsby](https://github.com/gatsbyjs/gatsby) themes for
> [Material-UI](https://github.com/mui-org/material-ui)
> [Material-UI](https://github.com/mui-org/material-ui): The fastest way to build server-side rendered Material-UI websites
:warning: This is experimental and subject to breaking changes.

Expand All @@ -15,7 +15,13 @@ This repository is a monorepo managed with [Lerna](https://github.com/lerna/lern

## Running the examples locally

Clone this repo and run yarn in the root directory. To launch the development server with the hot reloading functionality that allows any change in files in the `src` & `content` folder to be immediately visible in the browser. Run the following command:
Clone this repo and run yarn in the root directory.

```
yarn
```

To launch the development server with the hot reloading functionality that allows any change in files in the `src` & `content` folder to be immediately visible in the browser. Run the following command:

```
yarn start:*
Expand Down
8 changes: 4 additions & 4 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "1.0.12",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/icons": "next",
"@material-ui/styles": "next",
"gatsby": "2.4.2",
"@material-ui/core": "4.0.0",
"@material-ui/icons": "4.0.0",
"@material-ui/styles": "4.0.0",
"gatsby": "2.7.1",
"gatsby-theme-material-ui": "^0.0.22",
"gatsby-theme-material-ui-blog": "^0.0.15",
"gatsby-theme-material-ui-layout": "^0.0.5",
Expand Down
8 changes: 4 additions & 4 deletions examples/composition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "1.0.10",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/icons": "next",
"@material-ui/styles": "next",
"gatsby": "2.4.2",
"@material-ui/core": "4.0.0",
"@material-ui/icons": "4.0.0",
"@material-ui/styles": "4.0.0",
"gatsby": "2.7.1",
"gatsby-theme-material-ui": "^0.0.22",
"gatsby-theme-material-ui-album": "^0.0.9",
"gatsby-theme-material-ui-blog": "^0.0.15",
Expand Down
6 changes: 3 additions & 3 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.12",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/styles": "next",
"gatsby": "2.4.2",
"@material-ui/core": "4.0.0",
"@material-ui/styles": "4.0.0",
"gatsby": "2.7.1",
"gatsby-theme-material-ui": "^0.0.22",
"react": "latest",
"react-dom": "latest",
Expand Down
6 changes: 3 additions & 3 deletions examples/using-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.12",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/styles": "next",
"gatsby": "2.4.2",
"@material-ui/core": "4.0.0",
"@material-ui/styles": "4.0.0",
"gatsby": "2.7.1",
"gatsby-theme-material-ui": "^0.0.22",
"react": "latest",
"react-dom": "latest",
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "gatsby-theme-material-ui-root",
"version": "1.0.0",
"name": "root",
"private": true,
"author": "[email protected]",
"license": "MIT",
Expand All @@ -25,6 +24,6 @@
"www"
],
"devDependencies": {
"lerna": "^3.13.4"
"lerna": "^3.14.1"
}
}
10 changes: 5 additions & 5 deletions packages/gatsby-theme-material-ui-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"main": "index.js",
"scripts": {},
"dependencies": {
"@mdx-js/mdx": "^1.0.16",
"@mdx-js/mdx": "^1.0.19",
"@mdx-js/react": "^1.0.16",
"gatsby-image": "^2.0.41",
"gatsby-image": "^2.1.1",
"gatsby-mdx": "0.6.3",
"gatsby-plugin-sharp": "^2.0.36",
"gatsby-remark-images": "^3.0.11",
"gatsby-source-filesystem": "^2.0.33",
"gatsby-plugin-sharp": "^2.1.1",
"gatsby-remark-images": "^3.0.12",
"gatsby-source-filesystem": "^2.0.37",
"gatsby-theme-material-ui": "^0.0.22",
"gatsby-transformer-sharp": "^2.1.19",
"material-ui-mdx": "^0.0.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby-theme-material-ui-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"main": "index.js",
"scripts": {},
"dependencies": {
"@mdx-js/mdx": "^1.0.16",
"@mdx-js/mdx": "^1.0.19",
"@mdx-js/react": "^1.0.16",
"gatsby-mdx": "0.6.3",
"gatsby-plugin-page-creator": "^2.0.12",
"gatsby-source-filesystem": "^2.0.33",
"gatsby-plugin-page-creator": "^2.0.13",
"gatsby-source-filesystem": "^2.0.37",
"gatsby-theme-material-ui": "^0.0.22",
"mkdirp": "^0.5.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-theme-material-ui-landing-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"main": "index.js",
"scripts": {},
"dependencies": {
"gatsby-background-image": "^0.5.3",
"gatsby-source-filesystem": "^2.0.33",
"gatsby-background-image": "^0.6.2",
"gatsby-source-filesystem": "^2.0.37",
"gatsby-theme-material-ui": "^0.0.22",
"gatsby-transformer-yaml": "^2.1.12",
"mkdirp": "^0.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import React from 'react';
import Layout from './layout';

export default function wrapWithLayout({ element, props }) {
console.log('Element', element);
return <Layout {...props}>{element}</Layout>;
}
2 changes: 1 addition & 1 deletion packages/gatsby-theme-material-ui/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# gatsby-theme-material-ui

> A [Gatsby](https://github.com/gatsbyjs/gatsby) theme for
> [Material-UI](https://github.com/mui-org/material-ui)
> [Material-UI](https://github.com/mui-org/material-ui): The fastest way to build server-side rendered Material-UI websites
:warning: This is experimental and subject to breaking changes.

Expand Down
8 changes: 4 additions & 4 deletions packages/gatsby-theme-material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"scripts": {},
"dependencies": {
"gatsby-plugin-compile-es6-packages": "^1.1.0",
"gatsby-plugin-material-ui": "next",
"gatsby-plugin-material-ui": "^2.0.1",
"gatsby-plugin-react-helmet": "^3.0.12",
"gatsby-plugin-webfonts": "^1.0.1"
"gatsby-plugin-webfonts": "^1.0.8"
},
"peerDependencies": {
"@material-ui/core": ">=4.0.0-beta.0",
"@material-ui/styles": ">=4.0.0-beta.0",
"@material-ui/core": ">=4.0.0",
"@material-ui/styles": ">=4.0.0",
"gatsby": "^2.0.75",
"react-helmet": "^5.2.0"
}
Expand Down
14 changes: 3 additions & 11 deletions packages/gatsby-theme-material-ui/src/components/button.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import React from 'react';
import MuiButton from '@material-ui/core/Button';
import Button from '@material-ui/core/Button';

import GatsbyLink from './gatsby-link';
import patchBaseButtonComponent from '../utils/patch-base-button-components';

function Button(props) {
const { to, href } = props;
const component = to || href ? GatsbyLink : 'button';

return <MuiButton component={component} {...props} />;
}

export default Button;
export default patchBaseButtonComponent(Button);
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import React from 'react';
import MuiCardActionArea from '@material-ui/core/CardActionArea';
import CardActionArea from '@material-ui/core/CardActionArea';

import GatsbyLink from './gatsby-link';
import patchBaseButtonComponent from '../utils/patch-base-button-components';

function CardActionArea(props) {
const { to, href } = props;
const component = to || href ? GatsbyLink : 'button';

return <MuiCardActionArea component={component} {...props} />;
}

export default CardActionArea;
export default patchBaseButtonComponent(CardActionArea);
5 changes: 5 additions & 0 deletions packages/gatsby-theme-material-ui/src/components/fab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Fab from '@material-ui/core/Fab';

import patchBaseButtonComponent from '../utils/patch-base-button-components';

export default patchBaseButtonComponent(Fab);
14 changes: 3 additions & 11 deletions packages/gatsby-theme-material-ui/src/components/icon-button.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import React from 'react';
import MuiIconButton from '@material-ui/core/IconButton';
import IconButton from '@material-ui/core/IconButton';

import GatsbyLink from './gatsby-link';
import patchBaseButtonComponent from '../utils/patch-base-button-components';

function IconButton(props) {
const { to, href } = props;
const component = to || href ? GatsbyLink : 'button';

return <MuiIconButton component={component} {...props} />;
}

export default IconButton;
export default patchBaseButtonComponent(IconButton);
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

import GatsbyLink from '../components/gatsby-link';

export default function patchBaseButtonComponent(BaseButtonComponent) {
return props => {
const { to, href } = props;
const component = to || href ? GatsbyLink : 'button';

return <BaseButtonComponent component={component} {...props} />;
};
}
12 changes: 6 additions & 6 deletions packages/material-ui-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@material-ui/core": "^4.0.0-beta.0",
"@material-ui/styles": "^4.0.0-beta.0",
"@mdx-js/mdx": "^1.0.16",
"@material-ui/core": "^4.0.0",
"@material-ui/styles": "^4.0.0",
"@mdx-js/mdx": "^1.0.19",
"@mdx-js/react": "^1.0.16",
"cross-env": "^5.2.0",
"react": "^16.8.6",
Expand All @@ -45,6 +45,6 @@
},
"dependencies": {
"prism-react-renderer": "^0.1.6",
"react-live": "^2.0.1"
"react-live": "^2.1.2"
}
}
4 changes: 2 additions & 2 deletions www/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# example-composition
[![Netlify Status](https://api.netlify.com/api/v1/badges/c611085a-2b6f-4ca0-8b5d-99c376829144/deploy-status)](https://app.netlify.com/sites/gatsby-theme-material-ui/deploys)

Gatsby example site that shows how to compose themes.
# gatsby-theme-material-ui
6 changes: 6 additions & 0 deletions www/content/posts/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: test
slug: test
date: 2019-05-12T18:01:23.120Z
---
testhelllollorrrrr
20 changes: 5 additions & 15 deletions www/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const fsExpressAPI = require('netlify-cms-backend-fs/dist/fs');

module.exports = {
siteMetadata: {
lang: `en`,
Expand Down Expand Up @@ -42,6 +40,10 @@ module.exports = {
options: {
docsPath: '/docs'
}
},
{
resolve: `gatsby-theme-netlify-cms`,
options: {}
}
],
plugins: [
Expand All @@ -63,17 +65,6 @@ module.exports = {
useGoogleAnalytics: true
}
},
{
resolve: 'gatsby-plugin-netlify-cms',
options: {
modulePath: `${__dirname}/src/cms/cms.js`,
enableIdentityWidget: false,
publicPath: 'admin',
htmlTitle: 'Content Manager',
manualInit: true
}
},
`gatsby-plugin-netlify`,
{
resolve: `gatsby-plugin-manifest`,
options: {
Expand All @@ -87,6 +78,5 @@ module.exports = {
}
},
`gatsby-plugin-offline`
],
developMiddleware: fsExpressAPI
]
};
20 changes: 8 additions & 12 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,21 @@
"version": "1.0.8",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/icons": "next",
"@material-ui/styles": "next",
"@material-ui/core": "4.0.0",
"@material-ui/icons": "4.0.0",
"@material-ui/styles": "4.0.0",
"classnames": "^2.2.6",
"gatsby": "2.4.2",
"gatsby-plugin-google-analytics": "^2.0.19",
"gatsby": "2.7.1",
"gatsby-plugin-google-analytics": "^2.0.20",
"gatsby-plugin-manifest": "^2.1.1",
"gatsby-plugin-netlify": "^2.0.16",
"gatsby-plugin-netlify-cms": "^4.0.0",
"gatsby-plugin-offline": "^2.1.0",
"gatsby-plugin-performance-metrics": "^1.0.0",
"gatsby-plugin-offline": "^2.1.1",
"gatsby-plugin-performance-metrics": "^1.0.1",
"gatsby-theme-material-ui": "^0.0.22",
"gatsby-theme-material-ui-blog": "^0.0.15",
"gatsby-theme-material-ui-docs": "^0.0.9",
"gatsby-theme-material-ui-landing-page": "^0.0.14",
"gatsby-theme-material-ui-layout": "^0.0.5",
"netlify-cms-app": "^2.9.1",
"netlify-cms-backend-fs": "^0.4.4",
"netlify-cms-widget-mdx": "^0.4.0",
"gatsby-theme-netlify-cms": "^0.0.8",
"react": "latest",
"react-dom": "latest",
"react-helmet": "5.2.1"
Expand Down
17 changes: 0 additions & 17 deletions www/src/cms/cms.js

This file was deleted.

8 changes: 0 additions & 8 deletions www/src/cms/preview-templates/blog-post-preview.js

This file was deleted.

Loading

0 comments on commit 602d699

Please sign in to comment.