Skip to content

Commit

Permalink
chore(strapi):upgrade to latest admin version
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Sep 11, 2024
1 parent a4da6a1 commit e1fa361
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 32 deletions.
1 change: 1 addition & 0 deletions infra/strapi/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ exports
dist
build
.strapi-updater.json
.strapi
2 changes: 1 addition & 1 deletion infra/strapi/config/middlewares.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default [
'strapi::logger',
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
Expand Down
16 changes: 10 additions & 6 deletions infra/strapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@
},
"devDependencies": {},
"dependencies": {
"@ckeditor/strapi-plugin-ckeditor": "^0.0.9",
"@strapi/plugin-graphql": "4.14.4",
"@strapi/plugin-i18n": "4.14.4",
"@strapi/plugin-users-permissions": "4.14.4",
"@strapi/strapi": "4.14.4",
"@ckeditor/strapi-plugin-ckeditor": "^0.0.13",
"@strapi/plugin-graphql": "4.25.10",
"@strapi/plugin-i18n": "4.25.10",
"@strapi/plugin-users-permissions": "4.25.10",
"@strapi/strapi": "4.25.10",
"better-sqlite3": "8.6.0",
"strapi-plugin-preview-button": "^2.2.2"
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^5.2.0",
"strapi-plugin-preview-button": "^2.2.2",
"styled-components": "^5.2.1"
},
"author": {
"name": "A Strapi developer"
Expand Down
157 changes: 132 additions & 25 deletions infra/strapi/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,12 @@ export interface PluginUploadFile extends Schema.CollectionType {
folderPath: Attribute.String &
Attribute.Required &
Attribute.Private &
Attribute.SetMinMax<{
min: 1;
}>;
Attribute.SetMinMax<
{
min: 1;
},
number
>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
Expand Down Expand Up @@ -441,9 +444,12 @@ export interface PluginUploadFolder extends Schema.CollectionType {
attributes: {
name: Attribute.String &
Attribute.Required &
Attribute.SetMinMax<{
min: 1;
}>;
Attribute.SetMinMax<
{
min: 1;
},
number
>;
pathId: Attribute.Integer & Attribute.Required & Attribute.Unique;
parent: Attribute.Relation<
"plugin::upload.folder",
Expand All @@ -462,9 +468,12 @@ export interface PluginUploadFolder extends Schema.CollectionType {
>;
path: Attribute.String &
Attribute.Required &
Attribute.SetMinMax<{
min: 1;
}>;
Attribute.SetMinMax<
{
min: 1;
},
number
>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
Expand All @@ -482,6 +491,105 @@ export interface PluginUploadFolder extends Schema.CollectionType {
};
}

export interface PluginContentReleasesRelease extends Schema.CollectionType {
collectionName: "strapi_releases";
info: {
singularName: "release";
pluralName: "releases";
displayName: "Release";
};
options: {
draftAndPublish: false;
};
pluginOptions: {
"content-manager": {
visible: false;
};
"content-type-builder": {
visible: false;
};
};
attributes: {
name: Attribute.String & Attribute.Required;
releasedAt: Attribute.DateTime;
scheduledAt: Attribute.DateTime;
timezone: Attribute.String;
status: Attribute.Enumeration<
["ready", "blocked", "failed", "done", "empty"]
> &
Attribute.Required;
actions: Attribute.Relation<
"plugin::content-releases.release",
"oneToMany",
"plugin::content-releases.release-action"
>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
"plugin::content-releases.release",
"oneToOne",
"admin::user"
> &
Attribute.Private;
updatedBy: Attribute.Relation<
"plugin::content-releases.release",
"oneToOne",
"admin::user"
> &
Attribute.Private;
};
}

export interface PluginContentReleasesReleaseAction
extends Schema.CollectionType {
collectionName: "strapi_release_actions";
info: {
singularName: "release-action";
pluralName: "release-actions";
displayName: "Release Action";
};
options: {
draftAndPublish: false;
};
pluginOptions: {
"content-manager": {
visible: false;
};
"content-type-builder": {
visible: false;
};
};
attributes: {
type: Attribute.Enumeration<["publish", "unpublish"]> & Attribute.Required;
entry: Attribute.Relation<
"plugin::content-releases.release-action",
"morphToOne"
>;
contentType: Attribute.String & Attribute.Required;
locale: Attribute.String;
release: Attribute.Relation<
"plugin::content-releases.release-action",
"manyToOne",
"plugin::content-releases.release"
>;
isEntryValid: Attribute.Boolean;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
"plugin::content-releases.release-action",
"oneToOne",
"admin::user"
> &
Attribute.Private;
updatedBy: Attribute.Relation<
"plugin::content-releases.release-action",
"oneToOne",
"admin::user"
> &
Attribute.Private;
};
}

export interface PluginI18NLocale extends Schema.CollectionType {
collectionName: "i18n_locale";
info: {
Expand All @@ -504,10 +612,13 @@ export interface PluginI18NLocale extends Schema.CollectionType {
};
attributes: {
name: Attribute.String &
Attribute.SetMinMax<{
min: 1;
max: 50;
}>;
Attribute.SetMinMax<
{
min: 1;
max: 50;
},
number
>;
code: Attribute.String & Attribute.Unique;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
Expand Down Expand Up @@ -683,22 +794,16 @@ export interface ApiArticleAapArticleAap extends Schema.CollectionType {
singularName: "article-aap";
pluralName: "article-aaps";
displayName: "Article AAP";
description: "";
};
options: {
draftAndPublish: true;
};
attributes: {
titre: Attribute.String;
slug: Attribute.String;
contenu: Attribute.Blocks;
richcontent: Attribute.RichText &
Attribute.CustomField<
"plugin::ckeditor.CKEditor",
{
output: "HTML";
preset: "rich";
}
>;
contenu: Attribute.Blocks & Attribute.Required;
pj: Attribute.Media<"images" | "files" | "videos" | "audios", true>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down Expand Up @@ -730,7 +835,7 @@ export interface ApiArticleDAideArticleDAide extends Schema.CollectionType {
};
attributes: {
titre: Attribute.String & Attribute.Required;
vignette: Attribute.Media & Attribute.Required;
vignette: Attribute.Media<"images"> & Attribute.Required;
section_d_aides: Attribute.Relation<
"api::article-d-aide.article-d-aide",
"manyToMany",
Expand Down Expand Up @@ -833,7 +938,7 @@ export interface ApiArticleRegionArticleRegion extends Schema.CollectionType {
preset: "rich";
}
>;
vignette: Attribute.Media & Attribute.Required;
vignette: Attribute.Media<"images"> & Attribute.Required;
ordre: Attribute.Integer;
regions: Attribute.Relation<
"api::article-region.article-region",
Expand Down Expand Up @@ -947,7 +1052,7 @@ export interface ApiRegionRegion extends Schema.CollectionType {
attributes: {
nom: Attribute.String & Attribute.Required;
slug: Attribute.String & Attribute.Required;
vignette: Attribute.Media & Attribute.Required;
vignette: Attribute.Media<"images"> & Attribute.Required;
urlExternePRCs: Attribute.String;
prcs: Attribute.JSON;
ordre: Attribute.Integer;
Expand Down Expand Up @@ -1169,6 +1274,8 @@ declare module "@strapi/types" {
"admin::transfer-token-permission": AdminTransferTokenPermission;
"plugin::upload.file": PluginUploadFile;
"plugin::upload.folder": PluginUploadFolder;
"plugin::content-releases.release": PluginContentReleasesRelease;
"plugin::content-releases.release-action": PluginContentReleasesReleaseAction;
"plugin::i18n.locale": PluginI18NLocale;
"plugin::users-permissions.permission": PluginUsersPermissionsPermission;
"plugin::users-permissions.role": PluginUsersPermissionsRole;
Expand Down

0 comments on commit e1fa361

Please sign in to comment.