blog (#4)
Some checks failed
Deployment / Deploy website (push) Failing after 58s
Deployment / Deploy strapi (push) Successful in 3m0s

Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #4
This commit is contained in:
Benjamin Palko 2025-05-05 13:02:22 -04:00
parent b2844e8d76
commit 14fe55bb31
18 changed files with 3164 additions and 30 deletions

View file

@ -50,6 +50,17 @@ export interface SharedSeo extends Struct.ComponentSchema {
};
}
export interface SharedTag extends Struct.ComponentSchema {
collectionName: 'components_shared_tags';
info: {
displayName: 'Tag';
icon: 'priceTag';
};
attributes: {
Topic: Schema.Attribute.Enumeration<['development', 'work', 'life']>;
};
}
declare module '@strapi/strapi' {
export module Public {
export interface ComponentSchemas {
@ -57,6 +68,7 @@ declare module '@strapi/strapi' {
'shared.quote': SharedQuote;
'shared.rich-text': SharedRichText;
'shared.seo': SharedSeo;
'shared.tag': SharedTag;
}
}
}

View file

@ -336,6 +336,33 @@ export interface AdminUser extends Struct.CollectionTypeSchema {
};
}
export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
collectionName: 'blogs';
info: {
description: '';
displayName: 'Blog';
pluralName: 'blogs';
singularName: 'blog';
};
options: {
draftAndPublish: true;
};
attributes: {
Body: Schema.Attribute.RichText & Schema.Attribute.Required;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
Header: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<'oneToMany', 'api::blog.blog'> &
Schema.Attribute.Private;
publishedAt: Schema.Attribute.DateTime;
Title: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique;
Topics: Schema.Attribute.Component<'shared.tag', true>;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
};
}
export interface PluginContentReleasesRelease extends Struct.CollectionTypeSchema {
collectionName: 'strapi_releases';
info: {
@ -763,6 +790,7 @@ declare module '@strapi/strapi' {
'admin::transfer-token': AdminTransferToken;
'admin::transfer-token-permission': AdminTransferTokenPermission;
'admin::user': AdminUser;
'api::blog.blog': ApiBlogBlog;
'plugin::content-releases.release': PluginContentReleasesRelease;
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
'plugin::i18n.locale': PluginI18NLocale;