Skip to content

Commit

Permalink
feature:filter 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Mar 30, 2023
1 parent 7d4ea82 commit 3815caf
Show file tree
Hide file tree
Showing 13 changed files with 849 additions and 952 deletions.
4 changes: 4 additions & 0 deletions src/GlobalStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ const GlobalStyle = createGlobalStyle`
font-size: 1.5rem;
line-height: 2.8rem;
}
.filter-xs {
font-size: 1rem;
line-height: 2.8rem;
}
.text-gray {
color : #AFB1B6;
Expand Down
32 changes: 15 additions & 17 deletions src/api/gql.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */
import * as types from './graphql'
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'
import * as types from './graphql';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';

/**
* Map of all GraphQL operations in the project.
Expand All @@ -13,11 +13,10 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
* Therefore it is highly recommended to use the babel or swc plugin for production.
*/
const documents = {
'\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n':
types.PlaceInfoFragmentDoc,
'\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n':
types.GetSearchListDocument,
}
"\n query getCount($PlaceCountInput: PlaceCountInput!) {\n placeCount(input: $PlaceCountInput)\n }\n": types.GetCountDocument,
"\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n": types.PlaceInfoFragmentDoc,
"\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n": types.GetSearchListDocument,
};

/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
Expand All @@ -31,24 +30,23 @@ const documents = {
* The query argument is unknown!
* Please regenerate the types.
*/
export function graphql(source: string): unknown
export function graphql(source: string): unknown;

/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n',
): (typeof documents)['\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n']
export function graphql(source: "\n query getCount($PlaceCountInput: PlaceCountInput!) {\n placeCount(input: $PlaceCountInput)\n }\n"): (typeof documents)["\n query getCount($PlaceCountInput: PlaceCountInput!) {\n placeCount(input: $PlaceCountInput)\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n"): (typeof documents)["\n fragment PlaceInfo on Place {\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n etc\n basicInfo\n category\n id\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n',
): (typeof documents)['\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n']
export function graphql(source: "\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n"): (typeof documents)["\n query GetSearchList(\n $before: String\n $after: String\n $first: Int\n $last: Int\n $categories: [String!]\n $parkingAvailable: Boolean\n $wheelChairRentable: Boolean\n $elevatorAvailable: Boolean\n $toiletAvailable: Boolean\n $pathExists: Boolean\n $needCompanion: Boolean!\n $coordinates: CoordinateInput\n ) {\n places(\n before: $before\n after: $after\n first: $first\n last: $last\n categories: $categories\n parkingAvailable: $parkingAvailable\n wheelChairRentable: $wheelChairRentable\n elevatorAvailable: $elevatorAvailable\n toiletAvailable: $toiletAvailable\n pathExists: $pathExists\n needCompanion: $needCompanion\n coordinates: $coordinates\n ) {\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasNextPage\n }\n edges {\n node {\n id\n name\n address\n thumbnails\n parkingAvailable\n parkingCount\n wheelChairRentable\n elevatorAvailable\n toiletAvailable\n pathExists\n pathDescription\n latitude\n longitude\n category\n needCompanion\n distance\n tel\n }\n cursor\n }\n totalCount\n }\n }\n"];

export function graphql(source: string) {
return (documents as any)[source] ?? {}
return (documents as any)[source] ?? {};
}

export type DocumentType<TDocumentNode extends DocumentNode<any, any>> =
TDocumentNode extends DocumentNode<infer TType, any> ? TType : never
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
Loading

0 comments on commit 3815caf

Please sign in to comment.