Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit d00ad2e

Browse files
authored
Merge pull request #9 from joshwcorbett/rename-api-to-apollo
renamed folder from 'api' to 'apollo'
2 parents 0342a41 + 1bd30fe commit d00ad2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+12
-12
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/Navigation/Menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useQuery } from '@vue/apollo-composable'
3-
import { getMenu } from '@/api/shop/queries/menu'
3+
import { getMenu } from '@/apollo/shop/queries/menu'
44
import { Menu } from '@/types'
55
import { shopUrlToRelativePath } from '@/utilities/helpers'
66
import { useShop } from '@/stores/shop'

pages/account/register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import {} from '@/types'
33
import { useCustomer } from '@/stores'
4-
import {} from '@/api/customer/mutations'
4+
import {} from '@/apollo/customer/mutations'
55
66
const customer = reactive({
77
firstName: '',

pages/blogs/[handle]/[slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useQuery } from '@vue/apollo-composable'
33
import { Article } from '@/types'
4-
import { getArticle } from '@/api/blogs/queries/article'
4+
import { getArticle } from '@/apollo/blogs/queries/article'
55
66
interface ArticleResult {
77
blog: {

pages/blogs/[handle]/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useQuery } from '@vue/apollo-composable'
33
import { Blog } from '@/types'
4-
import { getBlog } from '@/api/blogs/queries/blog'
4+
import { getBlog } from '@/apollo/blogs/queries/blog'
55
66
interface BlogResult {
77
blog: Blog

pages/collections/[handle].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useShop } from '@/stores/shop'
33
import { useQuery } from '@vue/apollo-composable'
4-
import { collectionByHandle } from '@/api/products/queries/collection'
4+
import { collectionByHandle } from '@/apollo/products/queries/collection'
55
import { Collection } from '@/types'
66
77
interface CollectionResult {

pages/pages/[handle].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useQuery } from '@vue/apollo-composable'
3-
import { getPage } from '@/api/pages/queries/page'
3+
import { getPage } from '@/apollo/pages/queries/page'
44
import { Page } from '@/types'
55
66
interface PageResult {

pages/products/[handle].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useQuery } from '@vue/apollo-composable'
3-
import { getProduct } from '@/api/products/queries/product'
3+
import { getProduct } from '@/apollo/products/queries/product'
44
import { Product } from '@/types'
55
66
const { result, loading, error } = useQuery(getProduct, {

stores/cart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
cartLinesRemove,
1616
cartLinesUpdate,
1717
cartBuyerIdentityUpdate
18-
} from '@/api/cart/mutations'
18+
} from '@/apollo/cart/mutations'
1919

2020
type CartMutCreate = {
2121
cartCreate: {

stores/customer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import {
1414
customerAccessTokenCreate,
1515
customerAccessTokenDelete,
1616
customerCreate,
17-
} from '@/api/customer/mutations'
17+
} from '@/apollo/customer/mutations'
1818
import {
1919
getCustomer
20-
} from '@/api/customer/queries'
20+
} from '@/apollo/customer/queries'
2121
import { useCart } from './cart'
2222

2323
type CustomerMutTokenCreate = {

stores/shop.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineStore } from 'pinia'
2-
import { getShop } from '~~/api/shop/queries/shop'
3-
import { useClient } from '~~/utilities/apollo-client'
2+
import { getShop } from '@/apollo/shop/queries/shop'
3+
import { useClient } from '@/utilities/apollo-client'
44
import {
55
Shop,
66
Localization,

0 commit comments

Comments
 (0)