Skip to content

Commit 76bfc81

Browse files
committed
Add press releases as files
1 parent 07ea066 commit 76bfc81

13 files changed

Lines changed: 4737 additions & 10145 deletions

File tree

backend/package-lock.json

Lines changed: 788 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@
3636
"react-router-dom": "^6.0.0",
3737
"sharp": "^0.34.4",
3838
"strapi-plugin-multi-select": "^2.1.1",
39-
"strapi-v5-redirects": "^1.0.4",
4039
"strapi-plugin-tagsinput": "^2.0.2",
4140
"strapi-provider-email-brevo": "^1.0.4",
41+
"strapi-v5-redirects": "^1.0.4",
4242
"styled-components": "^6.0.0"
4343
},
4444
"strapi": {
4545
"uuid": "23578308-9b2f-4525-aca3-db1c4f9e3b2d"
4646
},
4747
"devDependencies": {
48-
"@types/qs": "^6.9.16"
48+
"@types/qs": "^6.9.16",
49+
"baseline-browser-mapping": "^2.10.23"
4950
}
5051
}

backend/src/api/press-release/content-types/press-release/schema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,33 @@
9797
"type": "relation",
9898
"relation": "oneToMany",
9999
"target": "api::tag.tag"
100+
},
101+
"press_release_type": {
102+
"type": "enumeration",
103+
"pluginOptions": {
104+
"i18n": {
105+
"localized": true
106+
}
107+
},
108+
"enum": [
109+
"link",
110+
"file"
111+
]
112+
},
113+
"article_file": {
114+
"type": "media",
115+
"pluginOptions": {
116+
"i18n": {
117+
"localized": true
118+
}
119+
},
120+
"multiple": false,
121+
"allowedTypes": [
122+
"images",
123+
"files",
124+
"videos",
125+
"audios"
126+
]
100127
}
101128
}
102129
}

backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json

Lines changed: 2603 additions & 1 deletion
Large diffs are not rendered by default.

backend/types/generated/contentTypes.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,14 @@ export interface ApiPressReleasePressRelease
11901190
};
11911191
};
11921192
attributes: {
1193+
article_file: Schema.Attribute.Media<
1194+
'images' | 'files' | 'videos' | 'audios'
1195+
> &
1196+
Schema.Attribute.SetPluginOptions<{
1197+
i18n: {
1198+
localized: true;
1199+
};
1200+
}>;
11931201
article_link: Schema.Attribute.String &
11941202
Schema.Attribute.SetPluginOptions<{
11951203
i18n: {
@@ -1228,6 +1236,12 @@ export interface ApiPressReleasePressRelease
12281236
localized: true;
12291237
};
12301238
}>;
1239+
press_release_type: Schema.Attribute.Enumeration<['link', 'file']> &
1240+
Schema.Attribute.SetPluginOptions<{
1241+
i18n: {
1242+
localized: true;
1243+
};
1244+
}>;
12311245
published_date: Schema.Attribute.Date &
12321246
Schema.Attribute.SetPluginOptions<{
12331247
i18n: {

0 commit comments

Comments
 (0)