added shop page
This commit is contained in:
Generated
+1
-1
File diff suppressed because one or more lines are too long
Generated
+1
-1
@@ -1 +1 @@
|
||||
{"version":{"fullVersion":"1.4.27","major":"1","minor":"4","patch":"27"},"meta":{"flags":["experimentalData"]},"collections":[{"name":"post","label":"Posts","path":"content/posts","fields":[{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["post","title"],"searchable":true},{"type":"rich-text","name":"body","label":"Body","isBody":true,"namespace":["post","body"],"searchable":true,"parser":{"type":"markdown"}}],"namespace":["post"]},{"name":"products","label":"Products","path":"content/products","fields":[{"type":"string","name":"productName","title":"Product Name","isTitle":true,"required":true,"namespace":["products","productName"],"searchable":true},{"type":"rich-text","name":"description","label":"Description","isBody":true,"namespace":["products","description"],"searchable":true,"parser":{"type":"markdown"}}],"namespace":["products"]}],"config":{"media":{"tina":{"publicFolder":"static","mediaRoot":""}}}}
|
||||
{"version":{"fullVersion":"1.4.27","major":"1","minor":"4","patch":"27"},"meta":{"flags":["experimentalData"]},"collections":[{"name":"post","label":"Posts","path":"content/posts","fields":[{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["post","title"],"searchable":true},{"type":"rich-text","name":"body","label":"Body","isBody":true,"namespace":["post","body"],"searchable":true,"parser":{"type":"markdown"}}],"namespace":["post"]},{"name":"products","label":"Products","path":"content/products","fields":[{"type":"string","name":"title","label":"Product Name","isTitle":true,"required":true,"namespace":["products","title"],"searchable":true},{"type":"string","name":"code","label":"Code","required":true,"namespace":["products","code"],"searchable":true},{"type":"string","name":"image","label":"Image","required":false,"namespace":["products","image"],"searchable":true},{"type":"rich-text","name":"description","label":"Description","isBody":true,"namespace":["products","description"],"searchable":true,"parser":{"type":"markdown"}}],"namespace":["products"]}],"config":{"media":{"tina":{"publicFolder":"static","mediaRoot":""}},"search":{"tina":{"indexerToken":"3ad8991708087bb81af5aa2bd79586afd6d847fb","stopwordLanguages":["eng"]},"indexBatchSize":100,"maxSearchIndexFieldLength":100}}}
|
||||
Generated
+22
-2
@@ -46,11 +46,23 @@ var config_default = defineConfig({
|
||||
fields: [
|
||||
{
|
||||
type: "string",
|
||||
name: "productName",
|
||||
title: "Product Name",
|
||||
name: "title",
|
||||
label: "Product Name",
|
||||
isTitle: true,
|
||||
required: true
|
||||
},
|
||||
{
|
||||
type: "string",
|
||||
name: "code",
|
||||
label: "Code",
|
||||
required: true
|
||||
},
|
||||
{
|
||||
type: "string",
|
||||
name: "image",
|
||||
label: "Image",
|
||||
required: false
|
||||
},
|
||||
{
|
||||
type: "rich-text",
|
||||
name: "description",
|
||||
@@ -60,6 +72,14 @@ var config_default = defineConfig({
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
search: {
|
||||
tina: {
|
||||
indexerToken: "3ad8991708087bb81af5aa2bd79586afd6d847fb",
|
||||
stopwordLanguages: ["eng"]
|
||||
},
|
||||
indexBatchSize: 100,
|
||||
maxSearchIndexFieldLength: 100
|
||||
}
|
||||
});
|
||||
export {
|
||||
|
||||
Generated
+3
-1
@@ -6,6 +6,8 @@ fragment PostParts on Post {
|
||||
|
||||
fragment ProductsParts on Products {
|
||||
__typename
|
||||
productName
|
||||
title
|
||||
code
|
||||
image
|
||||
description
|
||||
}
|
||||
|
||||
Generated
+9
-3
@@ -127,7 +127,9 @@ type PostConnection implements Connection {
|
||||
}
|
||||
|
||||
type Products implements Node & Document {
|
||||
productName: String!
|
||||
title: String!
|
||||
code: String!
|
||||
image: String
|
||||
description: JSON
|
||||
id: ID!
|
||||
_sys: SystemInfo!
|
||||
@@ -135,7 +137,9 @@ type Products implements Node & Document {
|
||||
}
|
||||
|
||||
input ProductsFilter {
|
||||
productName: StringFilter
|
||||
title: StringFilter
|
||||
code: StringFilter
|
||||
image: StringFilter
|
||||
description: RichTextFilter
|
||||
}
|
||||
|
||||
@@ -178,7 +182,9 @@ input PostMutation {
|
||||
}
|
||||
|
||||
input ProductsMutation {
|
||||
productName: String
|
||||
title: String
|
||||
code: String
|
||||
image: String
|
||||
description: JSON
|
||||
}
|
||||
|
||||
|
||||
Generated
+15
-7
@@ -224,7 +224,9 @@ export type PostConnection = Connection & {
|
||||
|
||||
export type Products = Node & Document & {
|
||||
__typename?: 'Products';
|
||||
productName: Scalars['String']['output'];
|
||||
title: Scalars['String']['output'];
|
||||
code: Scalars['String']['output'];
|
||||
image?: Maybe<Scalars['String']['output']>;
|
||||
description?: Maybe<Scalars['JSON']['output']>;
|
||||
id: Scalars['ID']['output'];
|
||||
_sys: SystemInfo;
|
||||
@@ -232,7 +234,9 @@ export type Products = Node & Document & {
|
||||
};
|
||||
|
||||
export type ProductsFilter = {
|
||||
productName?: InputMaybe<StringFilter>;
|
||||
title?: InputMaybe<StringFilter>;
|
||||
code?: InputMaybe<StringFilter>;
|
||||
image?: InputMaybe<StringFilter>;
|
||||
description?: InputMaybe<RichTextFilter>;
|
||||
};
|
||||
|
||||
@@ -329,13 +333,15 @@ export type PostMutation = {
|
||||
};
|
||||
|
||||
export type ProductsMutation = {
|
||||
productName?: InputMaybe<Scalars['String']['input']>;
|
||||
title?: InputMaybe<Scalars['String']['input']>;
|
||||
code?: InputMaybe<Scalars['String']['input']>;
|
||||
image?: InputMaybe<Scalars['String']['input']>;
|
||||
description?: InputMaybe<Scalars['JSON']['input']>;
|
||||
};
|
||||
|
||||
export type PostPartsFragment = { __typename: 'Post', title: string, body?: any | null };
|
||||
|
||||
export type ProductsPartsFragment = { __typename: 'Products', productName: string, description?: any | null };
|
||||
export type ProductsPartsFragment = { __typename: 'Products', title: string, code: string, image?: string | null, description?: any | null };
|
||||
|
||||
export type PostQueryVariables = Exact<{
|
||||
relativePath: Scalars['String']['input'];
|
||||
@@ -361,7 +367,7 @@ export type ProductsQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type ProductsQuery = { __typename?: 'Query', products: { __typename: 'Products', id: string, productName: string, description?: any | null, _sys: { __typename?: 'SystemInfo', filename: string, basename: string, breadcrumbs: Array<string>, path: string, relativePath: string, extension: string } } };
|
||||
export type ProductsQuery = { __typename?: 'Query', products: { __typename: 'Products', id: string, title: string, code: string, image?: string | null, description?: any | null, _sys: { __typename?: 'SystemInfo', filename: string, basename: string, breadcrumbs: Array<string>, path: string, relativePath: string, extension: string } } };
|
||||
|
||||
export type ProductsConnectionQueryVariables = Exact<{
|
||||
before?: InputMaybe<Scalars['String']['input']>;
|
||||
@@ -373,7 +379,7 @@ export type ProductsConnectionQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type ProductsConnectionQuery = { __typename?: 'Query', productsConnection: { __typename?: 'ProductsConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string, endCursor: string }, edges?: Array<{ __typename?: 'ProductsConnectionEdges', cursor: string, node?: { __typename: 'Products', id: string, productName: string, description?: any | null, _sys: { __typename?: 'SystemInfo', filename: string, basename: string, breadcrumbs: Array<string>, path: string, relativePath: string, extension: string } } | null } | null> | null } };
|
||||
export type ProductsConnectionQuery = { __typename?: 'Query', productsConnection: { __typename?: 'ProductsConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string, endCursor: string }, edges?: Array<{ __typename?: 'ProductsConnectionEdges', cursor: string, node?: { __typename: 'Products', id: string, title: string, code: string, image?: string | null, description?: any | null, _sys: { __typename?: 'SystemInfo', filename: string, basename: string, breadcrumbs: Array<string>, path: string, relativePath: string, extension: string } } | null } | null> | null } };
|
||||
|
||||
export const PostPartsFragmentDoc = gql`
|
||||
fragment PostParts on Post {
|
||||
@@ -385,7 +391,9 @@ export const PostPartsFragmentDoc = gql`
|
||||
export const ProductsPartsFragmentDoc = gql`
|
||||
fragment ProductsParts on Products {
|
||||
__typename
|
||||
productName
|
||||
title
|
||||
code
|
||||
image
|
||||
description
|
||||
}
|
||||
`;
|
||||
|
||||
+23
-2
@@ -47,11 +47,23 @@ export default defineConfig({
|
||||
fields: [
|
||||
{
|
||||
type: "string",
|
||||
name: "productName",
|
||||
title: "Product Name",
|
||||
name: "title",
|
||||
label: "Product Name",
|
||||
isTitle: true,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
type: "string",
|
||||
name: "code",
|
||||
label: "Code",
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
type: "string",
|
||||
name: "image",
|
||||
label: "Image",
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
type: "rich-text",
|
||||
name: "description",
|
||||
@@ -62,4 +74,13 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
search: {
|
||||
tina: {
|
||||
indexerToken: '3ad8991708087bb81af5aa2bd79586afd6d847fb',
|
||||
stopwordLanguages: ['eng']
|
||||
},
|
||||
indexBatchSize: 100,
|
||||
maxSearchIndexFieldLength: 100
|
||||
},
|
||||
});
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user