Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create component Userfeedback #286

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"form-elements.dropdown",
"page.inline-notice",
"page.link-list-box",
"page.list"
"page.list",
"page.user-feedback"
],
"required": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
"page.box",
"page.info-box",
"page.link-list-box",
"page.list"
"page.list",
"page.user-feedback"
],
"pluginOptions": {
"i18n": {
Expand Down
3 changes: 2 additions & 1 deletion src/api/page/content-types/page/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"page.link-list-box",
"page.box-with-image",
"page.list",
"page.inline-notice"
"page.inline-notice",
"page.user-feedback"
],
"required": true
}
Expand Down
3 changes: 2 additions & 1 deletion src/api/result-page/content-types/result-page/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"page.list",
"page.inline-notice",
"page.details-summary",
"page.box"
"page.box",
"page.user-feedback"
]
},
"pageType": {
Expand Down
13 changes: 13 additions & 0 deletions src/components/page/user-feedback.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"collectionName": "components_page_user_feedbacks",
"info": {
"displayName": "UserFeedback"
},
"options": {},
"attributes": {
"headingRating": {
"type": "string",
"required": true
}
}
}
11 changes: 11 additions & 0 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,16 @@ export interface PageNavigationItem extends Schema.Component {
};
}

export interface PageUserFeedback extends Schema.Component {
collectionName: 'components_page_user_feedbacks';
info: {
displayName: 'UserFeedback';
};
attributes: {
headingRating: Attribute.String & Attribute.Required;
};
}

declare module '@strapi/types' {
export module Shared {
export interface Components {
Expand Down Expand Up @@ -685,6 +695,7 @@ declare module '@strapi/types' {
'page.list': PageList;
'page.meta-page-info': PageMetaPageInfo;
'page.navigation-item': PageNavigationItem;
'page.user-feedback': PageUserFeedback;
}
}
}
12 changes: 8 additions & 4 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@ export interface ApiElementWithIdElementWithId extends Schema.CollectionType {
'form-elements.dropdown',
'page.inline-notice',
'page.link-list-box',
'page.list'
'page.list',
'page.user-feedback'
]
> &
Attribute.Required &
Expand Down Expand Up @@ -1253,7 +1254,8 @@ export interface ApiFormFlowPageFormFlowPage extends Schema.CollectionType {
'page.box',
'page.info-box',
'page.link-list-box',
'page.list'
'page.list',
'page.user-feedback'
]
> &
Attribute.SetPluginOptions<{
Expand Down Expand Up @@ -1376,7 +1378,8 @@ export interface ApiPagePage extends Schema.CollectionType {
'page.link-list-box',
'page.box-with-image',
'page.list',
'page.inline-notice'
'page.inline-notice',
'page.user-feedback'
]
> &
Attribute.Required &
Expand Down Expand Up @@ -1510,7 +1513,8 @@ export interface ApiResultPageResultPage extends Schema.CollectionType {
'page.list',
'page.inline-notice',
'page.details-summary',
'page.box'
'page.box',
'page.user-feedback'
]
> &
Attribute.SetPluginOptions<{
Expand Down
Loading