crm -> api
continuous-integration/drone/push Build is passing Details

This commit is contained in:
user-penguin 2024-08-24 19:48:21 +07:00
parent e29f4ce4e6
commit 3e6fe8dada
2 changed files with 15 additions and 15 deletions

View File

@ -9,7 +9,7 @@ defineProps<{
<template> <template>
<div class="relative flex flex-col justify-between overflow-hidden"> <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"> <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"> <UBadge v-for="(label, index) in labels" :key="index" :ui="{ rounded: 'rounded-full' }" size="md">

View File

@ -51,7 +51,7 @@ export const cRMGetCart = (
): Promise<AxiosResponse<CrmCartRsp>> => { ): Promise<AxiosResponse<CrmCartRsp>> => {
crmOrderItem = unref(crmOrderItem); crmOrderItem = unref(crmOrderItem);
return axios.post( return axios.post(
`https://cake-crm.3crabs.ru/cart`, `https://cake-api.3crabs.ru/cart`,
crmOrderItem,options crmOrderItem,options
); );
} }
@ -99,13 +99,13 @@ const {mutation: mutationOptions, axios: axiosOptions} = options ?? {};
): Promise<AxiosResponse<CrmCatalogRsp>> => { ): Promise<AxiosResponse<CrmCatalogRsp>> => {
return axios.get( return axios.get(
`https://cake-crm.3crabs.ru/catalog`,options `https://cake-api.3crabs.ru/catalog`,options
); );
} }
export const getCRMGetCatalogQueryKey = () => { 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>> => { ): Promise<AxiosResponse<ApiHttpBody>> => {
name = unref(name); name = unref(name);
return axios.get( 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>,) => { 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>> => { ): Promise<AxiosResponse<CrmOrderRsp>> => {
crabscrmOrder = unref(crabscrmOrder); crabscrmOrder = unref(crabscrmOrder);
return axios.post( return axios.post(
`https://cake-crm.3crabs.ru/orders`, `https://cake-api.3crabs.ru/orders`,
crabscrmOrder,options crabscrmOrder,options
); );
} }
@ -251,13 +251,13 @@ const {mutation: mutationOptions, axios: axiosOptions} = options ?? {};
): Promise<AxiosResponse<CrmPositionsRsp>> => { ): Promise<AxiosResponse<CrmPositionsRsp>> => {
id = unref(id); id = unref(id);
return axios.get( 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>,) => { 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>> => { ): Promise<AxiosResponse<CrmProductRsp>> => {
id = unref(id); id = unref(id);
return axios.get( 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>,) => { 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>> => { ): Promise<AxiosResponse<CrmBreadcrumbsRsp>> => {
id = unref(id); id = unref(id);
return axios.get( 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>,) => { 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>> => { ): Promise<AxiosResponse<CrmPositionsRsp>> => {
params = unref(params); params = unref(params);
return axios.get( return axios.get(
`https://cake-crm.3crabs.ru/search`,{ `https://cake-api.3crabs.ru/search`,{
...options, ...options,
params: {...unref(params), ...options?.params},} params: {...unref(params), ...options?.params},}
); );
@ -415,7 +415,7 @@ export const cRMSearch = (
export const getCRMSearchQueryKey = (params?: MaybeRef<CRMSearchParams>,) => { 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;
} }