Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
central-star-backend
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 644a271b
authored
2024-06-12 16:05:03 +0530
by
Gaurav Dev
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added model
1 parent
056b9142
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
110 additions
and
3 deletions
src/admin/app.js
src/api/mercedesmodel/content-types/mercedesmodel/schema.json
src/api/mercedesmodel/controllers/mercedesmodel.js
src/api/mercedesmodel/routes/mercedesmodel.js
src/api/mercedesmodel/services/mercedesmodel.js
src/components/layout/car-model-list.json
src/admin/app.js
View file @
644a271
...
...
@@ -18,10 +18,10 @@ const config = {
notifications
:
{
releases
:
false
},
translations
:
{
en
:
{
"app.components.LeftMenu.navbrand.title"
:
"
Offers
"
,
"app.components.LeftMenu.navbrand.title"
:
"
Offers"
,
"app.components.LeftMenu.navbrand.title"
:
"
Centerl Star
"
,
"app.components.LeftMenu.navbrand.title"
:
"
Centerl Star"
,
"app.components.LeftMenu.navbrand.subtitle"
:
""
,
"Auth.form.welcome.title"
:
"Welcome to
Offers
"
,
"Auth.form.welcome.title"
:
"Welcome to
Centerl Star
"
,
"Auth.form.welcome.subtitle"
:
"Log in to your App"
}
},
...
...
src/api/mercedesmodel/content-types/mercedesmodel/schema.json
0 → 100644
View file @
644a271
{
"kind"
:
"collectionType"
,
"collectionName"
:
"mercedesmodels"
,
"info"
:
{
"singularName"
:
"mercedesmodel"
,
"pluralName"
:
"mercedesmodels"
,
"displayName"
:
"mercedesmodel"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
true
},
"pluginOptions"
:
{},
"attributes"
:
{
"title"
:
{
"type"
:
"string"
},
"price"
:
{
"type"
:
"string"
},
"carImages"
:
{
"allowedTypes"
:
[
"images"
,
"files"
,
"videos"
,
"audios"
],
"type"
:
"media"
,
"multiple"
:
true
},
"model"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"AMG"
,
"MAYBACH"
]
},
"fuleType"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"Electric"
,
"Plug-in Hybrid"
]
},
"bodytype"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"Limousine"
,
"SUV Range"
,
"Hatchback"
,
"Coupes"
,
"Cabriolets / Roadsters"
]
}
}
}
src/api/mercedesmodel/controllers/mercedesmodel.js
0 → 100644
View file @
644a271
'use strict'
;
/**
* mercedesmodel controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::mercedesmodel.mercedesmodel'
);
src/api/mercedesmodel/routes/mercedesmodel.js
0 → 100644
View file @
644a271
'use strict'
;
/**
* mercedesmodel router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::mercedesmodel.mercedesmodel'
);
src/api/mercedesmodel/services/mercedesmodel.js
0 → 100644
View file @
644a271
'use strict'
;
/**
* mercedesmodel service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::mercedesmodel.mercedesmodel'
);
src/components/layout/car-model-list.json
View file @
644a271
...
...
@@ -18,6 +18,30 @@
"repeatable"
:
true
,
"component"
:
"layout.car-image"
,
"required"
:
false
},
"model"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"AMG"
,
"MAYBACH"
]
},
"fuletype"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"Electric"
,
"Plug-in Hybrid"
]
},
"bodytype"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"Limousine"
,
"SUV Range"
,
"Hatchback"
,
"Coupes"
,
"Cabriolets / Roadsters"
]
}
}
}
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