Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 993b64bd
authored
2022-09-09 18:03:42 +0530
by
Harish Patel
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added content types for storing project information
1 parent
1cd21b98
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
45 deletions
src/api/home-banner/content-types/home-banner/schema.json
src/api/home-content/content-types/home-content/schema.json
src/api/project/content-types/project/schema.json
src/components/layout/project-image.json
src/api/home-banner/content-types/home-banner/schema.json
View file @
993b64b
...
...
@@ -4,7 +4,8 @@
"info"
:
{
"singularName"
:
"home-banner"
,
"pluralName"
:
"home-banners"
,
"displayName"
:
"Home Banner"
"displayName"
:
"Home Banner"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
false
...
...
@@ -19,11 +20,17 @@
"type"
:
"string"
},
"image"
:
{
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
],
"type"
:
"media"
,
"multiple"
:
false
]
},
"serialNumber"
:
{
"type"
:
"integer"
,
"default"
:
1
,
"required"
:
true
}
}
}
src/api/home-content/content-types/home-content/schema.json
View file @
993b64b
...
...
@@ -41,13 +41,13 @@
]
},
"title1"
:
{
"type"
:
"text"
"type"
:
"
rich
text"
},
"title2"
:
{
"type"
:
"text"
"type"
:
"
rich
text"
},
"title3"
:
{
"type"
:
"text"
"type"
:
"
rich
text"
}
}
}
src/api/project/content-types/project/schema.json
View file @
993b64b
...
...
@@ -12,14 +12,6 @@
},
"pluginOptions"
:
{},
"attributes"
:
{
"images"
:
{
"type"
:
"media"
,
"multiple"
:
true
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
]
},
"projectName"
:
{
"type"
:
"string"
,
"required"
:
true
...
...
@@ -55,12 +47,6 @@
"type"
:
"integer"
,
"required"
:
true
},
"heroText1"
:
{
"type"
:
"text"
},
"heroText2"
:
{
"type"
:
"text"
},
"description"
:
{
"type"
:
"richtext"
,
"required"
:
true
...
...
@@ -73,30 +59,6 @@
"videos"
]
},
"floorPlans"
:
{
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
]
},
"unitPlans"
:
{
"type"
:
"media"
,
"multiple"
:
true
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
]
},
"masterLayoutPlans"
:
{
"type"
:
"media"
,
"multiple"
:
true
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
]
},
"details"
:
{
"type"
:
"richtext"
,
"required"
:
true
...
...
@@ -105,6 +67,18 @@
"type"
:
"boolean"
,
"default"
:
false
,
"required"
:
true
},
"heroText1"
:
{
"type"
:
"richtext"
},
"heroText2"
:
{
"type"
:
"richtext"
},
"projectImages"
:
{
"displayName"
:
"Project Image"
,
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"layout.project-image"
}
}
}
src/components/layout/project-image.json
0 → 100644
View file @
993b64b
{
"collectionName"
:
"components_layout_project_images"
,
"info"
:
{
"displayName"
:
"Project Image"
,
"icon"
:
"images"
},
"options"
:
{},
"attributes"
:
{
"image"
:
{
"allowedTypes"
:
[
"images"
],
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
true
},
"featuredOnHome"
:
{
"type"
:
"boolean"
,
"default"
:
false
,
"required"
:
true
},
"caption"
:
{
"type"
:
"string"
,
"required"
:
true
}
}
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment