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

renamed folder from 'api' to 'apollo' #9

Merged
merged 1 commit into from
Jun 14, 2022
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/Navigation/Menu.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useQuery } from '@vue/apollo-composable'
import { getMenu } from '@/api/shop/queries/menu'
import { getMenu } from '@/apollo/shop/queries/menu'
import { Menu } from '@/types'
import { shopUrlToRelativePath } from '@/utilities/helpers'
import { useShop } from '@/stores/shop'
Expand Down
2 changes: 1 addition & 1 deletion pages/account/register.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import {} from '@/types'
import { useCustomer } from '@/stores'
import {} from '@/api/customer/mutations'
import {} from '@/apollo/customer/mutations'

const customer = reactive({
firstName: '',
Expand Down
2 changes: 1 addition & 1 deletion pages/blogs/[handle]/[slug].vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useQuery } from '@vue/apollo-composable'
import { Article } from '@/types'
import { getArticle } from '@/api/blogs/queries/article'
import { getArticle } from '@/apollo/blogs/queries/article'

interface ArticleResult {
blog: {
Expand Down
2 changes: 1 addition & 1 deletion pages/blogs/[handle]/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useQuery } from '@vue/apollo-composable'
import { Blog } from '@/types'
import { getBlog } from '@/api/blogs/queries/blog'
import { getBlog } from '@/apollo/blogs/queries/blog'

interface BlogResult {
blog: Blog
Expand Down
2 changes: 1 addition & 1 deletion pages/collections/[handle].vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useShop } from '@/stores/shop'
import { useQuery } from '@vue/apollo-composable'
import { collectionByHandle } from '@/api/products/queries/collection'
import { collectionByHandle } from '@/apollo/products/queries/collection'
import { Collection } from '@/types'

interface CollectionResult {
Expand Down
2 changes: 1 addition & 1 deletion pages/pages/[handle].vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useQuery } from '@vue/apollo-composable'
import { getPage } from '@/api/pages/queries/page'
import { getPage } from '@/apollo/pages/queries/page'
import { Page } from '@/types'

interface PageResult {
Expand Down
2 changes: 1 addition & 1 deletion pages/products/[handle].vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useQuery } from '@vue/apollo-composable'
import { getProduct } from '@/api/products/queries/product'
import { getProduct } from '@/apollo/products/queries/product'
import { Product } from '@/types'

const { result, loading, error } = useQuery(getProduct, {
Expand Down
2 changes: 1 addition & 1 deletion stores/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
cartLinesRemove,
cartLinesUpdate,
cartBuyerIdentityUpdate
} from '@/api/cart/mutations'
} from '@/apollo/cart/mutations'

type CartMutCreate = {
cartCreate: {
Expand Down
4 changes: 2 additions & 2 deletions stores/customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
customerAccessTokenCreate,
customerAccessTokenDelete,
customerCreate,
} from '@/api/customer/mutations'
} from '@/apollo/customer/mutations'
import {
getCustomer
} from '@/api/customer/queries'
} from '@/apollo/customer/queries'
import { useCart } from './cart'

type CustomerMutTokenCreate = {
Expand Down
4 changes: 2 additions & 2 deletions stores/shop.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import { getShop } from '~~/api/shop/queries/shop'
import { useClient } from '~~/utilities/apollo-client'
import { getShop } from '@/apollo/shop/queries/shop'
import { useClient } from '@/utilities/apollo-client'
import {
Shop,
Localization,
Expand Down