-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from avored/dev
Dev to master
- Loading branch information
Showing
45 changed files
with
2,080 additions
and
153 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
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 |
---|---|---|
@@ -1,11 +1,29 @@ | ||
|
||
<script> | ||
import gql from 'graphql-tag' | ||
export default { | ||
data() { | ||
return { | ||
collapsed: false, | ||
} | ||
}, | ||
mounted() { | ||
// let data = this.$apollo.query({ | ||
// query: gql `query AllCategories { | ||
// allCategory { | ||
// id | ||
// name | ||
// slug | ||
// meta_title | ||
// meta_description | ||
// } | ||
// }` | ||
// }).then(res => { | ||
// console.log(res.data.allCategory); | ||
// }); | ||
} | ||
} | ||
</script> |
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,9 @@ | ||
import Vue from 'vue' | ||
import Vuei18n from 'vue-i18n' | ||
Vue.use(Vuei18n) | ||
|
||
export const i18n = new Vuei18n({ | ||
locale: 'en', | ||
fallbackLocale: 'en', | ||
messages: {} | ||
}) |
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,15 @@ | ||
import Vue from 'vue' | ||
import VueRouter from 'vue-router' | ||
|
||
Vue.use(VueRouter) | ||
|
||
const routes = [ | ||
|
||
] | ||
|
||
const router = new VueRouter({ | ||
routes | ||
}) | ||
|
||
|
||
export default router; |
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,31 @@ | ||
|
||
import Vue from 'vue' | ||
import VueApollo from 'vue-apollo' | ||
|
||
import { ApolloClient } from 'apollo-client' | ||
import { createHttpLink } from 'apollo-link-http' | ||
import { InMemoryCache } from 'apollo-cache-inmemory' | ||
|
||
Vue.use(VueApollo) | ||
|
||
|
||
// HTTP connection to the API | ||
const httpLink = createHttpLink({ | ||
// You should use an absolute URL here | ||
uri: 'https://ecommerce.test/graphql', | ||
}) | ||
|
||
// Cache implementation | ||
const cache = new InMemoryCache() | ||
|
||
// Create the apollo client | ||
const apolloClient = new ApolloClient({ | ||
link: httpLink, | ||
cache, | ||
}) | ||
|
||
const apolloProvider = new VueApollo({ | ||
defaultClient: apolloClient, | ||
}) | ||
|
||
export default apolloProvider |
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
Oops, something went wrong.