From 8c354c085c5ef2fae043a027796802640e5c516f Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Thu, 27 Jul 2017 16:56:07 +0200 Subject: [PATCH] Remove with-apollo example, see vue-apollo now --- examples/with-apollo/README.md | 29 ------------ examples/with-apollo/layouts/default.vue | 19 -------- examples/with-apollo/layouts/error.vue | 13 ------ examples/with-apollo/package.json | 24 ---------- examples/with-apollo/pages/car/_id.vue | 54 ---------------------- examples/with-apollo/pages/index.vue | 59 ------------------------ examples/with-apollo/plugins/apollo.js | 15 ------ 7 files changed, 213 deletions(-) delete mode 100644 examples/with-apollo/README.md delete mode 100644 examples/with-apollo/layouts/default.vue delete mode 100644 examples/with-apollo/layouts/error.vue delete mode 100644 examples/with-apollo/package.json delete mode 100644 examples/with-apollo/pages/car/_id.vue delete mode 100644 examples/with-apollo/pages/index.vue delete mode 100644 examples/with-apollo/plugins/apollo.js diff --git a/examples/with-apollo/README.md b/examples/with-apollo/README.md deleted file mode 100644 index d4600552fb..0000000000 --- a/examples/with-apollo/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# nuxt-with-apollo - -> Nuxt.js with Apollo (GraphQL client) - -[DEMO](https://nuxt-apollo.now.sh/) - -## About - -This project uses [Apollo](http://www.apollodata.com/) as a GraphQL client and [Graphcool](https://www.graph.cool/) as a hosted GraphQL backend. - -## Getting Started - -Download this example [or clone the repo](https://github.com/nuxt/nuxt.js): - -```bash -curl https://codeload.github.com/nuxt/nuxt.js/tar.gz/master | tar -xz --strip=2 nuxt.js-master/examples/with-apollo -cd with-apollo -``` - -Install and run: - -```bash -npm install -npm run dev - -# or with Yarn -yarn -yarn dev -``` diff --git a/examples/with-apollo/layouts/default.vue b/examples/with-apollo/layouts/default.vue deleted file mode 100644 index 62147ffc78..0000000000 --- a/examples/with-apollo/layouts/default.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/examples/with-apollo/layouts/error.vue b/examples/with-apollo/layouts/error.vue deleted file mode 100644 index 192163dd31..0000000000 --- a/examples/with-apollo/layouts/error.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/examples/with-apollo/package.json b/examples/with-apollo/package.json deleted file mode 100644 index c3bb76f0f4..0000000000 --- a/examples/with-apollo/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "nuxt-apollo", - "version": "1.0.0", - "description": "Nuxt.js with Apollo", - "author": "Charlie Hield", - "license": "MIT", - "scripts": { - "dev": "nuxt", - "build": "nuxt build", - "start": "nuxt start" - }, - "keywords": [ - "nuxt", - "vue", - "apollo", - "graphql" - ], - "dependencies": { - "apollo-client": "^1.0.2", - "graphql-tag": "^2.0.0", - "isomorphic-fetch": "^2.2.1", - "nuxt": "^0.10.5" - } -} diff --git a/examples/with-apollo/pages/car/_id.vue b/examples/with-apollo/pages/car/_id.vue deleted file mode 100644 index 955b9475ec..0000000000 --- a/examples/with-apollo/pages/car/_id.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - diff --git a/examples/with-apollo/pages/index.vue b/examples/with-apollo/pages/index.vue deleted file mode 100644 index b8c6a7d7df..0000000000 --- a/examples/with-apollo/pages/index.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/examples/with-apollo/plugins/apollo.js b/examples/with-apollo/plugins/apollo.js deleted file mode 100644 index f328ff1fc7..0000000000 --- a/examples/with-apollo/plugins/apollo.js +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import { ApolloClient, createNetworkInterface } from 'apollo-client' -import 'isomorphic-fetch' - -// Created with Graphcool - https://www.graph.cool/ -const API_ENDPOINT = 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' - -const apolloClient = new ApolloClient({ - networkInterface: createNetworkInterface({ - uri: API_ENDPOINT, - transportBatching: true - }) -}) - -export default apolloClient