Refactor: begin reorganizing services dir.

- Renamed files and directories to reflect the new structure
- Moved comment-related services to the 'comments' directory
- Moved image-related services to the 'images' directory
- Moved like-related services to the 'likes' directory
- Moved post-related services to the 'posts' directory
- Moved user-related services to the 'users' directory
This commit is contained in:
Aaron William Po
2023-12-10 14:11:49 -05:00
parent 830e9dc845
commit fd641c36ab
163 changed files with 177 additions and 177 deletions

View File

@@ -3,8 +3,8 @@ import Head from 'next/head';
import React from 'react';
import withPageAuthRequired from '@/util/withPageAuthRequired';
import getBeerPostById from '@/services/BeerPost/getBeerPostById';
import BeerPostQueryResult from '@/services/BeerPost/schema/BeerPostQueryResult';
import getBeerPostById from '@/services/posts/BeerPost/getBeerPostById';
import BeerPostQueryResult from '@/services/posts/BeerPost/schema/BeerPostQueryResult';
import EditBeerPostForm from '@/components/EditBeerPostForm';
import FormPageLayout from '@/components/ui/forms/FormPageLayout';
import { BiBeer } from 'react-icons/bi';

View File

@@ -1,8 +1,8 @@
import { NextPage, GetServerSideProps } from 'next';
import Head from 'next/head';
import getBeerPostById from '@/services/BeerPost/getBeerPostById';
import getBeerPostById from '@/services/posts/BeerPost/getBeerPostById';
import BeerPostQueryResult from '@/services/BeerPost/schema/BeerPostQueryResult';
import BeerPostQueryResult from '@/services/posts/BeerPost/schema/BeerPostQueryResult';
import { z } from 'zod';

View File

@@ -5,9 +5,9 @@ import { z } from 'zod';
import useMediaQuery from '@/hooks/utilities/useMediaQuery';
import { Tab } from '@headlessui/react';
import getBeerStyleById from '@/services/BeerStyles/getBeerStyleById';
import getBeerStyleById from '@/services/posts/BeerStyles/getBeerStyleById';
import BeerStyleHeader from '@/components/BeerStyleById/BeerStyleHeader';
import BeerStyleQueryResult from '@/services/BeerStyles/schema/BeerStyleQueryResult';
import BeerStyleQueryResult from '@/services/posts/BeerStyles/schema/BeerStyleQueryResult';
import BeerStyleCommentSection from '@/components/BeerStyleById/BeerStyleCommentSection';
import BeerStyleBeerSection from '@/components/BeerStyleById/BeerStyleBeerSection';