crm -> api
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e29f4ce4e6
commit
3e6fe8dada
|
@ -9,7 +9,7 @@ defineProps<{
|
|||
|
||||
<template>
|
||||
<div class="relative flex flex-col justify-between overflow-hidden">
|
||||
<img alt="product_img" :src="`https://cake-crm.3crabs.ru${path}`">
|
||||
<img alt="product_img" :src="`https://cake-api.3crabs.ru${path}`">
|
||||
|
||||
<div class="flex gap-1 absolute top-3 left-3">
|
||||
<UBadge v-for="(label, index) in labels" :key="index" :ui="{ rounded: 'rounded-full' }" size="md">
|
||||
|
|
|
@ -51,7 +51,7 @@ export const cRMGetCart = (
|
|||
): Promise<AxiosResponse<CrmCartRsp>> => {
|
||||
crmOrderItem = unref(crmOrderItem);
|
||||
return axios.post(
|
||||
`https://cake-crm.3crabs.ru/cart`,
|
||||
`https://cake-api.3crabs.ru/cart`,
|
||||
crmOrderItem,options
|
||||
);
|
||||
}
|
||||
|
@ -99,13 +99,13 @@ const {mutation: mutationOptions, axios: axiosOptions} = options ?? {};
|
|||
): Promise<AxiosResponse<CrmCatalogRsp>> => {
|
||||
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/catalog`,options
|
||||
`https://cake-api.3crabs.ru/catalog`,options
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export const getCRMGetCatalogQueryKey = () => {
|
||||
return ['https:','cake-crm.3crabs.ru','catalog'] as const;
|
||||
return ['https:','cake-api.3crabs.ru','catalog'] as const;
|
||||
}
|
||||
|
||||
|
||||
|
@ -151,13 +151,13 @@ export const cRMGetImage = (
|
|||
): Promise<AxiosResponse<ApiHttpBody>> => {
|
||||
name = unref(name);
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/images/${name}`,options
|
||||
`https://cake-api.3crabs.ru/images/${name}`,options
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export const getCRMGetImageQueryKey = (name: MaybeRef<string>,) => {
|
||||
return ['https:','cake-crm.3crabs.ru','images',name] as const;
|
||||
return ['https:','cake-api.3crabs.ru','images',name] as const;
|
||||
}
|
||||
|
||||
|
||||
|
@ -203,7 +203,7 @@ export const cRMOrder = (
|
|||
): Promise<AxiosResponse<CrmOrderRsp>> => {
|
||||
crabscrmOrder = unref(crabscrmOrder);
|
||||
return axios.post(
|
||||
`https://cake-crm.3crabs.ru/orders`,
|
||||
`https://cake-api.3crabs.ru/orders`,
|
||||
crabscrmOrder,options
|
||||
);
|
||||
}
|
||||
|
@ -251,13 +251,13 @@ const {mutation: mutationOptions, axios: axiosOptions} = options ?? {};
|
|||
): Promise<AxiosResponse<CrmPositionsRsp>> => {
|
||||
id = unref(id);
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/positions/${id}`,options
|
||||
`https://cake-api.3crabs.ru/positions/${id}`,options
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export const getCRMGetPositionsQueryKey = (id: MaybeRef<string>,) => {
|
||||
return ['https:','cake-crm.3crabs.ru','positions',id] as const;
|
||||
return ['https:','cake-api.3crabs.ru','positions',id] as const;
|
||||
}
|
||||
|
||||
|
||||
|
@ -303,13 +303,13 @@ export const cRMGetProduct = (
|
|||
): Promise<AxiosResponse<CrmProductRsp>> => {
|
||||
id = unref(id);
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/products/${id}`,options
|
||||
`https://cake-api.3crabs.ru/products/${id}`,options
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export const getCRMGetProductQueryKey = (id: MaybeRef<string>,) => {
|
||||
return ['https:','cake-crm.3crabs.ru','products',id] as const;
|
||||
return ['https:','cake-api.3crabs.ru','products',id] as const;
|
||||
}
|
||||
|
||||
|
||||
|
@ -355,13 +355,13 @@ export const cRMGetBreadcrumbs = (
|
|||
): Promise<AxiosResponse<CrmBreadcrumbsRsp>> => {
|
||||
id = unref(id);
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/products/${id}/breadcrumbs`,options
|
||||
`https://cake-api.3crabs.ru/products/${id}/breadcrumbs`,options
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export const getCRMGetBreadcrumbsQueryKey = (id: MaybeRef<string>,) => {
|
||||
return ['https:','cake-crm.3crabs.ru','products',id,'breadcrumbs'] as const;
|
||||
return ['https:','cake-api.3crabs.ru','products',id,'breadcrumbs'] as const;
|
||||
}
|
||||
|
||||
|
||||
|
@ -407,7 +407,7 @@ export const cRMSearch = (
|
|||
): Promise<AxiosResponse<CrmPositionsRsp>> => {
|
||||
params = unref(params);
|
||||
return axios.get(
|
||||
`https://cake-crm.3crabs.ru/search`,{
|
||||
`https://cake-api.3crabs.ru/search`,{
|
||||
...options,
|
||||
params: {...unref(params), ...options?.params},}
|
||||
);
|
||||
|
@ -415,7 +415,7 @@ export const cRMSearch = (
|
|||
|
||||
|
||||
export const getCRMSearchQueryKey = (params?: MaybeRef<CRMSearchParams>,) => {
|
||||
return ['https:','cake-crm.3crabs.ru','search', ...(params ? [params]: [])] as const;
|
||||
return ['https:','cake-api.3crabs.ru','search', ...(params ? [params]: [])] as const;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue