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 39102147
authored
2023-03-08 12:20:11 +0530
by
jay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
data models;
1 parent
57bb633f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
143 deletions
src/api/township/content-types/township/schema.json
src/api/township/controllers/township.js
src/api/township/routes/township.js
src/api/township/services/township.js
src/api/township/content-types/township/schema.json
deleted
100644 → 0
View file @
57bb633
{
"kind"
:
"collectionType"
,
"collectionName"
:
"townships"
,
"info"
:
{
"singularName"
:
"township"
,
"pluralName"
:
"townships"
,
"displayName"
:
"Township"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
true
},
"pluginOptions"
:
{},
"attributes"
:
{
"title"
:
{
"type"
:
"string"
,
"required"
:
true
,
"unique"
:
true
},
"address"
:
{
"type"
:
"text"
},
"latitude"
:
{
"type"
:
"float"
},
"longitude"
:
{
"type"
:
"float"
},
"description"
:
{
"type"
:
"richtext"
},
"phoneBanner"
:
{
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"layout.project-image"
},
"featuredImages"
:
{
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"layout.project-image"
},
"townshipImages"
:
{
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"layout.project-image"
},
"film"
:
{
"type"
:
"string"
},
"bedroomTitle"
:
{
"type"
:
"string"
},
"townshipContactEmail"
:
{
"type"
:
"string"
,
"required"
:
true
},
"townshipContactNumber"
:
{
"type"
:
"string"
,
"required"
:
true
},
"cpSubmitLeadEnabled"
:
{
"type"
:
"boolean"
,
"default"
:
false
},
"cpGuidelines"
:
{
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
,
"files"
,
"videos"
,
"audios"
]
},
"brochure"
:
{
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
false
,
"allowedTypes"
:
[
"images"
,
"files"
]
},
"keyDestinations"
:
{
"displayName"
:
"keyDestinations"
,
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"layout.key-destinations"
},
"contactNumber"
:
{
"type"
:
"string"
},
"facebook"
:
{
"type"
:
"text"
},
"twitter"
:
{
"type"
:
"text"
},
"instagram"
:
{
"type"
:
"text"
},
"linkedIn"
:
{
"type"
:
"text"
},
"youtube"
:
{
"type"
:
"text"
},
"serialNumber"
:
{
"type"
:
"integer"
,
"required"
:
true
}
}
}
src/api/township/controllers/township.js
deleted
100644 → 0
View file @
57bb633
'use strict'
;
/**
* township controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::township.township'
);
src/api/township/routes/township.js
deleted
100644 → 0
View file @
57bb633
'use strict'
;
/**
* township router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::township.township'
);
src/api/township/services/township.js
deleted
100644 → 0
View file @
57bb633
'use strict'
;
/**
* township service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::township.township'
);
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