From 6f143cdec6549b961d5860bb57b41a3e124bff4b Mon Sep 17 00:00:00 2001 From: Sly777 Date: Wed, 4 Oct 2017 13:00:31 +0200 Subject: [PATCH] - Updated Location of graphqlconfig and schema - Updated Code style after prettier version is updated - Added correct graphql version --- .graphqlconfig | 2 +- ...Graphcool-simplified.schema => Graphcool-simplified.schema | 0 components/Header/styles.js | 4 +++- components/PostList/styles.js | 4 +++- components/Theme.js | 4 +++- package.json | 1 + libraries/graphql_schemas/schema.graphql => schema.graphql | 0 7 files changed, 11 insertions(+), 4 deletions(-) rename libraries/graphql_schemas/Graphcool-simplified.schema => Graphcool-simplified.schema (100%) rename libraries/graphql_schemas/schema.graphql => schema.graphql (100%) diff --git a/.graphqlconfig b/.graphqlconfig index f6e46df5..34e76770 100644 --- a/.graphqlconfig +++ b/.graphqlconfig @@ -1,5 +1,5 @@ { - "schemaPath": "./libraries/graphql_schemas/schema.graphql", + "schemaPath": "./schema.graphql", "extensions": { "endpoints": { "default": "https://api.graph.cool/simple/v1/cj7ke77fv0e9i0122pflagbvx" diff --git a/libraries/graphql_schemas/Graphcool-simplified.schema b/Graphcool-simplified.schema similarity index 100% rename from libraries/graphql_schemas/Graphcool-simplified.schema rename to Graphcool-simplified.schema diff --git a/components/Header/styles.js b/components/Header/styles.js index ab59d125..dd9a55fa 100644 --- a/components/Header/styles.js +++ b/components/Header/styles.js @@ -1,4 +1,6 @@ import styled from 'styled-components'; // eslint-disable-next-line import/prefer-default-export -export const Header = styled.header`margin-bottom: 25px;`; +export const Header = styled.header` + margin-bottom: 25px; +`; diff --git a/components/PostList/styles.js b/components/PostList/styles.js index 9a0bd79c..4a2beafb 100644 --- a/components/PostList/styles.js +++ b/components/PostList/styles.js @@ -1,7 +1,9 @@ import styled from 'styled-components'; import * as T from '../Theme'; -export const Main = styled.section`padding-bottom: 20px;`; +export const Main = styled.section` + padding-bottom: 20px; +`; export const Item = styled.li` display: block; diff --git a/components/Theme.js b/components/Theme.js index 357d92b4..ef9c03f7 100644 --- a/components/Theme.js +++ b/components/Theme.js @@ -5,7 +5,9 @@ export const App = styled.div` color: ${props => props.theme.colors.text}; `; -export const A = styled.a`color: ${props => props.theme.colors.main};`; +export const A = styled.a` + color: ${props => props.theme.colors.main}; +`; export const P = styled.p` font-size: ${props => props.theme.font.sizes.normal}; diff --git a/package.json b/package.json index 0f3505b7..04377c2c 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "cors": "2.8.4", "dotenv": "4.0.0", "express": "4.16.1", + "graphql": "^0.10.5", "helmet": "3.8.2", "ip": "1.1.5", "isomorphic-fetch": "2.2.1", diff --git a/libraries/graphql_schemas/schema.graphql b/schema.graphql similarity index 100% rename from libraries/graphql_schemas/schema.graphql rename to schema.graphql