-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sliitsesc/feat/add-navbar-homepage
feat: add navbar + landingpage structure
- Loading branch information
Showing
12 changed files
with
274 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "categories", | ||
"info": { | ||
"singularName": "category", | ||
"pluralName": "categories", | ||
"displayName": "Categories" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"attributes": { | ||
"name": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string", | ||
"required": true | ||
}, | ||
"slug": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"required": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* category controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::category.category'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* category router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::category.category'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* category service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::category.category'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"collectionName": "components_common_buttons", | ||
"info": { | ||
"displayName": "Button", | ||
"description": "" | ||
}, | ||
"options": {}, | ||
"attributes": { | ||
"buttonText": { | ||
"type": "string", | ||
"required": true | ||
}, | ||
"buttonLink": { | ||
"type": "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"collectionName": "components_common_images", | ||
"info": { | ||
"displayName": "Image", | ||
"icon": "picture" | ||
}, | ||
"options": {}, | ||
"attributes": { | ||
"imageUrl": { | ||
"type": "string" | ||
}, | ||
"imageAlt": { | ||
"type": "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,48 @@ | ||
import type { Schema, Struct } from '@strapi/strapi'; | ||
|
||
export interface CommonLink extends Struct.ComponentSchema { | ||
collectionName: 'components_common_links'; | ||
export interface CommonButton extends Struct.ComponentSchema { | ||
collectionName: 'components_common_buttons'; | ||
info: { | ||
displayName: 'Link'; | ||
icon: 'link'; | ||
description: ''; | ||
displayName: 'Button'; | ||
}; | ||
attributes: { | ||
linkText: Schema.Attribute.String; | ||
linkUrl: Schema.Attribute.String; | ||
buttonLink: Schema.Attribute.String; | ||
buttonText: Schema.Attribute.String & Schema.Attribute.Required; | ||
}; | ||
} | ||
|
||
export interface CommonImage extends Struct.ComponentSchema { | ||
collectionName: 'components_common_images'; | ||
info: { | ||
displayName: 'Image'; | ||
icon: 'picture'; | ||
}; | ||
attributes: { | ||
imageAlt: Schema.Attribute.String; | ||
imageUrl: Schema.Attribute.String; | ||
}; | ||
} | ||
|
||
export interface LandingPageHeroSection extends Struct.ComponentSchema { | ||
collectionName: 'components_landing_page_hero_sections'; | ||
export interface CommonLink extends Struct.ComponentSchema { | ||
collectionName: 'components_common_links'; | ||
info: { | ||
displayName: 'Hero Section'; | ||
description: ''; | ||
displayName: 'Link'; | ||
icon: 'link'; | ||
}; | ||
attributes: { | ||
mainTitle: Schema.Attribute.String; | ||
linkText: Schema.Attribute.String; | ||
linkUrl: Schema.Attribute.String; | ||
}; | ||
} | ||
|
||
declare module '@strapi/strapi' { | ||
export module Public { | ||
export interface ComponentSchemas { | ||
'common.button': CommonButton; | ||
'common.image': CommonImage; | ||
'common.link': CommonLink; | ||
'landing-page.hero-section': LandingPageHeroSection; | ||
} | ||
} | ||
} |
Oops, something went wrong.