Skip to content

Commit

Permalink
refactor: remove global single type
Browse files Browse the repository at this point in the history
  • Loading branch information
chohner committed Jul 15, 2024
1 parent 2918b74 commit 3c00dd8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 103 deletions.
23 changes: 0 additions & 23 deletions src/api/global/content-types/global/schema.json

This file was deleted.

9 changes: 0 additions & 9 deletions src/api/global/controllers/global.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/api/global/routes/global.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/api/global/services/global.js

This file was deleted.

53 changes: 0 additions & 53 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1287,58 +1287,6 @@ export interface ApiFormFlowPageFormFlowPage extends Schema.CollectionType {
};
}

export interface ApiGlobalGlobal extends Schema.SingleType {
collectionName: 'globals';
info: {
singularName: 'global';
pluralName: 'globals';
displayName: 'GlobalVariables';
};
options: {
draftAndPublish: true;
};
pluginOptions: {
i18n: {
localized: true;
};
};
attributes: {
feedbackHeading: Attribute.String &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
feedbackContent: Attribute.Text &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
'api::global.global',
'oneToOne',
'admin::user'
> &
Attribute.Private;
updatedBy: Attribute.Relation<
'api::global.global',
'oneToOne',
'admin::user'
> &
Attribute.Private;
localizations: Attribute.Relation<
'api::global.global',
'oneToMany',
'api::global.global'
>;
locale: Attribute.String;
};
}

export interface ApiPagePage extends Schema.CollectionType {
collectionName: 'pages';
info: {
Expand Down Expand Up @@ -1820,7 +1768,6 @@ declare module '@strapi/types' {
'api::error.error': ApiErrorError;
'api::footer.footer': ApiFooterFooter;
'api::form-flow-page.form-flow-page': ApiFormFlowPageFormFlowPage;
'api::global.global': ApiGlobalGlobal;
'api::page.page': ApiPagePage;
'api::page-header.page-header': ApiPageHeaderPageHeader;
'api::result-page.result-page': ApiResultPageResultPage;
Expand Down

0 comments on commit 3c00dd8

Please sign in to comment.