From 8d7615fb37e78ecd51b286d515a4f1d56a2534de Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 14 Jul 2025 13:40:00 +0200 Subject: [PATCH] refactor(./api): umbenennen in ./services --- src/client/dd-hub-react/src/_mock/_data.ts | 6 +++--- src/client/dd-hub-react/src/pages/doc-search.tsx | 2 +- src/client/dd-hub-react/src/sections/document/doc-item.tsx | 2 +- .../dd-hub-react/src/sections/document/doc-search.tsx | 2 +- .../src/sections/document/view/create-filter-modal.tsx | 2 +- .../src/sections/document/view/doc-full-view.tsx | 2 +- .../src/sections/document/view/doc-search-view.tsx | 4 ++-- .../dd-hub-react/src/sections/product/product-item.tsx | 2 +- .../src/sections/product/view/products-view.tsx | 2 +- .../dd-hub-react/src/{api => services}/attribute-service.ts | 0 .../dd-hub-react/src/{api => services}/document-service.ts | 0 .../dd-hub-react/src/{api => services}/product-service.ts | 0 12 files changed, 12 insertions(+), 12 deletions(-) rename src/client/dd-hub-react/src/{api => services}/attribute-service.ts (100%) rename src/client/dd-hub-react/src/{api => services}/document-service.ts (100%) rename src/client/dd-hub-react/src/{api => services}/product-service.ts (100%) diff --git a/src/client/dd-hub-react/src/_mock/_data.ts b/src/client/dd-hub-react/src/_mock/_data.ts index 9afd731..c660b27 100644 --- a/src/client/dd-hub-react/src/_mock/_data.ts +++ b/src/client/dd-hub-react/src/_mock/_data.ts @@ -1,7 +1,7 @@ -import { Doc } from 'src/api/document-service'; -import { Product } from 'src/api/product-service'; -import { Attribute } from 'src/api/attribute-service'; +import { Doc } from 'src/services/document-service'; +import { Product } from 'src/services/product-service'; +import { Attribute } from 'src/services/attribute-service'; import { _id, diff --git a/src/client/dd-hub-react/src/pages/doc-search.tsx b/src/client/dd-hub-react/src/pages/doc-search.tsx index 0fa4e59..651888c 100644 --- a/src/client/dd-hub-react/src/pages/doc-search.tsx +++ b/src/client/dd-hub-react/src/pages/doc-search.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { _posts } from 'src/_mock'; import { CONFIG } from 'src/config-global'; -import { Doc, getDocuments } from 'src/api/document-service'; +import { Doc, getDocuments } from 'src/services/document-service'; import { DocSearchView } from 'src/sections/document/view'; diff --git a/src/client/dd-hub-react/src/sections/document/doc-item.tsx b/src/client/dd-hub-react/src/sections/document/doc-item.tsx index e8fddc0..9610648 100644 --- a/src/client/dd-hub-react/src/sections/document/doc-item.tsx +++ b/src/client/dd-hub-react/src/sections/document/doc-item.tsx @@ -9,7 +9,7 @@ import Link from '@mui/material/Link'; import Card from '@mui/material/Card'; import Typography from '@mui/material/Typography'; -import { Doc } from 'src/api/document-service'; +import { Doc } from 'src/services/document-service'; import { Iconify } from 'src/components/iconify'; import { SvgColor } from 'src/components/svg-color'; diff --git a/src/client/dd-hub-react/src/sections/document/doc-search.tsx b/src/client/dd-hub-react/src/sections/document/doc-search.tsx index 019695e..afa6566 100644 --- a/src/client/dd-hub-react/src/sections/document/doc-search.tsx +++ b/src/client/dd-hub-react/src/sections/document/doc-search.tsx @@ -4,7 +4,7 @@ import TextField from '@mui/material/TextField'; import InputAdornment from '@mui/material/InputAdornment'; import Autocomplete, { autocompleteClasses } from '@mui/material/Autocomplete'; -import { Doc } from 'src/api/document-service'; +import { Doc } from 'src/services/document-service'; import { Iconify } from 'src/components/iconify'; diff --git a/src/client/dd-hub-react/src/sections/document/view/create-filter-modal.tsx b/src/client/dd-hub-react/src/sections/document/view/create-filter-modal.tsx index 964a11e..9acc260 100644 --- a/src/client/dd-hub-react/src/sections/document/view/create-filter-modal.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/create-filter-modal.tsx @@ -8,7 +8,7 @@ import Autocomplete from '@mui/material/Autocomplete'; import { Iconify } from 'src/components/iconify/iconify'; -import { createAttributes, filterTypes, Type } from '../../../api/attribute-service'; +import { createAttributes, filterTypes, Type } from '../../../services/attribute-service'; const style = { position: 'absolute', diff --git a/src/client/dd-hub-react/src/sections/document/view/doc-full-view.tsx b/src/client/dd-hub-react/src/sections/document/view/doc-full-view.tsx index 984c370..0b73b23 100644 --- a/src/client/dd-hub-react/src/sections/document/view/doc-full-view.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/doc-full-view.tsx @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react'; import Box from '@mui/material/Box'; import Modal from '@mui/material/Modal'; -import { FileFormat } from 'src/api/document-service'; +import { FileFormat } from 'src/services/document-service'; const getMimeType = (format: FileFormat): string => { switch (format) { diff --git a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx index 049a6cf..f1a4915 100644 --- a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx @@ -6,9 +6,9 @@ import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import Pagination from '@mui/material/Pagination'; -import { Doc } from 'src/api/document-service'; +import { Doc } from 'src/services/document-service'; import { DashboardContent } from 'src/layouts/dashboard'; -import { Attribute, getAttributes } from 'src/api/attribute-service'; +import { Attribute, getAttributes } from 'src/services/attribute-service'; import { Iconify } from 'src/components/iconify'; diff --git a/src/client/dd-hub-react/src/sections/product/product-item.tsx b/src/client/dd-hub-react/src/sections/product/product-item.tsx index 2415e0a..15fec3d 100644 --- a/src/client/dd-hub-react/src/sections/product/product-item.tsx +++ b/src/client/dd-hub-react/src/sections/product/product-item.tsx @@ -8,7 +8,7 @@ import Typography from '@mui/material/Typography'; import { fCurrency } from 'src/utils/format-number'; -import { Product } from 'src/api/product-service'; +import { Product } from 'src/services/product-service'; import { Label } from 'src/components/label'; import { ColorPreview } from 'src/components/color-utils'; diff --git a/src/client/dd-hub-react/src/sections/product/view/products-view.tsx b/src/client/dd-hub-react/src/sections/product/view/products-view.tsx index aaa6f4a..ef456b1 100644 --- a/src/client/dd-hub-react/src/sections/product/view/products-view.tsx +++ b/src/client/dd-hub-react/src/sections/product/view/products-view.tsx @@ -7,7 +7,7 @@ import Typography from '@mui/material/Typography'; import { _products } from 'src/_mock'; import { DashboardContent } from 'src/layouts/dashboard'; -import { getProductsAsync, Product } from 'src/api/product-service'; +import { getProductsAsync, Product } from 'src/services/product-service'; import { ProductSort } from '../product-sort'; import { ProductItem } from '../product-item'; diff --git a/src/client/dd-hub-react/src/api/attribute-service.ts b/src/client/dd-hub-react/src/services/attribute-service.ts similarity index 100% rename from src/client/dd-hub-react/src/api/attribute-service.ts rename to src/client/dd-hub-react/src/services/attribute-service.ts diff --git a/src/client/dd-hub-react/src/api/document-service.ts b/src/client/dd-hub-react/src/services/document-service.ts similarity index 100% rename from src/client/dd-hub-react/src/api/document-service.ts rename to src/client/dd-hub-react/src/services/document-service.ts diff --git a/src/client/dd-hub-react/src/api/product-service.ts b/src/client/dd-hub-react/src/services/product-service.ts similarity index 100% rename from src/client/dd-hub-react/src/api/product-service.ts rename to src/client/dd-hub-react/src/services/product-service.ts