Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Update example sites to use Link from gatsby #3942

Merged
merged 2 commits into from
Feb 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/client-only-paths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-plugin-offline": "latest",
"gatsby-source-drupal": "latest",
Expand All @@ -17,11 +16,13 @@
"typography": "^0.15.8",
"typography-breakpoint-constants": "^0.14.0"
},
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/client-only-paths/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import { rhythm } from "../utils/typography"

Expand Down
2 changes: 1 addition & 1 deletion examples/client-only-paths/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import ReactCSSTransitionGroup from "react-addons-css-transition-group"
import { Route, Redirect } from "react-router-dom"

Expand Down
5 changes: 2 additions & 3 deletions examples/gatsbygram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"version": "1.0.0",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"gatsby": "^1.9.52",
"gatsby": "latest",
"gatsby-image": "^1.0.5",
"gatsby-link": "^1.6.20",
"gatsby-plugin-glamor": "^1.6.8",
"gatsby-plugin-google-analytics": "^1.0.8",
"gatsby-plugin-manifest": "^1.0.8",
Expand Down Expand Up @@ -44,4 +43,4 @@
"build": "gatsby build",
"deploy": "gatsby build --prefix-paths && gh-pages -d public"
}
}
}
2 changes: 1 addition & 1 deletion examples/gatsbygram/src/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Close from "react-icons/lib/md/close"
import findIndex from "lodash/findIndex"
import mousetrap from "mousetrap"
import * as PropTypes from "prop-types"
import { navigateTo } from "gatsby-link"
import { navigateTo } from "gatsby"

import { rhythm } from "../utils/typography"

Expand Down
2 changes: 1 addition & 1 deletion examples/gatsbygram/src/components/post.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as PropTypes from "prop-types"
import React from "react"
import HeartIcon from "react-icons/lib/fa/heart"
import Link from "gatsby-link"
import { Link } from "gatsby"

import { rhythm, scale } from "../utils/typography"
import presets from "../utils/presets"
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsbygram/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as PropTypes from "prop-types"
import React from "react"
import CameraIcon from "react-icons/lib/fa/camera-retro"
import Link from "gatsby-link"
import { Link } from "gatsby"

// Load the css for the Space Mono font.
import "typeface-space-mono"
Expand Down
7 changes: 4 additions & 3 deletions examples/hn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@
"dependencies": {
"flat": "^2.0.1",
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-plugin-manifest": "latest",
"gatsby-plugin-offline": "latest",
"gatsby-source-hacker-news": "latest",
"lodash": "^4.16.4",
"slash": "^1.0.0"
},
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/hn/src/components/story-item.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

class StoryItem extends React.Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion examples/hn/src/layouts/default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import "../css/news.css"
import y18Gif from "../images/y18.gif"
Expand Down
2 changes: 1 addition & 1 deletion examples/hn/src/templates/story.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import StoryComment from "../components/story-comment"

Expand Down
10 changes: 6 additions & 4 deletions examples/image-processing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"version": "1.0.0",
"author": "Florian Kissling <sechskilo@gmail.com>",
"dependencies": {
"gatsby": "^1.9.112",
"gatsby": "latest",
"gatsby-image": "^1.0.24",
"gatsby-link": "^1.6.27",
"gatsby-plugin-google-analytics": "^1.0.12",
"gatsby-plugin-offline": "latest",
"gatsby-plugin-sharp": "^1.6.20",
Expand All @@ -18,11 +17,14 @@
"typography": "^0.15.8",
"typography-theme-bootstrap": "^0.15.10"
},
"keywords": ["gatsby", "sharp"],
"keywords": [
"gatsby",
"sharp"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
7 changes: 4 additions & 3 deletions examples/no-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
"author": "Scotty Eckenthal <scott.eckenthal@gmail.com>",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest",
"lodash": "^4.16.4",
"slash": "^1.0.0"
},
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/no-plugins/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

class DefaultLayout extends React.Component {
render() {
Expand Down
7 changes: 4 additions & 3 deletions examples/no-trailing-slashes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
"author": "Scotty Eckenthal <scott.eckenthal@gmail.com>",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-plugin-offline": "latest",
"lodash": "^4.16.4",
"slash": "^1.0.0"
},
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/no-trailing-slashes/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

class DefaultLayout extends React.Component {
render() {
Expand Down
7 changes: 4 additions & 3 deletions examples/using-asciidoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"asciidoctor.js": "^1.5.6-preview.1",
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-plugin-offline": "latest",
"gatsby-source-filesystem": "latest",
Expand All @@ -17,11 +16,13 @@
"typography": "^0.15.8",
"typography-breakpoint-constants": "^0.14.0"
},
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"license": "MIT",
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/using-asciidoc/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import { rhythm } from "../utils/typography"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-asciidoc/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

class IndexPage extends React.Component {
render() {
Expand Down
3 changes: 1 addition & 2 deletions examples/using-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"gatsby": "latest",
"gatsby-image": "^1.0.5",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-plugin-offline": "latest",
"gatsby-source-contentful": "latest",
Expand All @@ -28,4 +27,4 @@
"build": "gatsby build",
"start": "gatsby serve"
}
}
}
2 changes: 1 addition & 1 deletion examples/using-contentful/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import * as PropTypes from "prop-types"

import { rhythm } from "../utils/typography"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-contentful/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import * as PropTypes from "prop-types"
import { rhythm } from "../utils/typography"
import Img from "gatsby-image"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-contentful/src/templates/category.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import * as PropTypes from "prop-types"
import Img from "gatsby-image"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-contentful/src/templates/product.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import * as PropTypes from "prop-types"
import Img from "gatsby-image"

Expand Down
3 changes: 1 addition & 2 deletions examples/using-css-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-sass": "latest"
},
"license": "MIT",
Expand All @@ -14,4 +13,4 @@
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/using-css-modules/src/pages/another-page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import styles from "../styles/another-page.module.css"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-css-modules/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import indexStyles from "../styles/index.module.css"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-css-modules/src/pages/sassy-page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import styles from "../styles/sass.module.scss"

Expand Down
3 changes: 1 addition & 2 deletions examples/using-csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"author": "Sonal Saldanha <sonal.saldanha@gmail.com>",
"dependencies": {
"gatsby": "latest",
"gatsby-link": "latest",
"gatsby-plugin-google-analytics": "latest",
"gatsby-source-filesystem": "latest",
"gatsby-transformer-csv": "latest"
Expand All @@ -16,4 +15,4 @@
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
5 changes: 2 additions & 3 deletions examples/using-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"version": "1.0.0",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"gatsby": "^1.9.76",
"gatsby": "latest",
"gatsby-image": "^1.0.16",
"gatsby-link": "^1.6.23",
"gatsby-plugin-glamor": "^1.6.8",
"gatsby-plugin-google-analytics": "^1.0.11",
"gatsby-plugin-offline": "latest",
Expand All @@ -34,4 +33,4 @@
"develop": "gatsby develop",
"build": "gatsby build"
}
}
}
2 changes: 1 addition & 1 deletion examples/using-drupal/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import gray from "gray-percentage"
import SearchIcon from "react-icons/lib/md/search"
import "typeface-rochester"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-drupal/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"
import gray from "gray-percentage"
import Img from "gatsby-image"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-drupal/src/pages/recipes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Link from "gatsby-link"
import { Link } from "gatsby"

import Container from "../components/container"
import { rhythm } from "../utils/typography"
Expand Down
Loading