Skip to content

Commit

Permalink
fix: localization and UI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BohdanK-W32 committed Oct 16, 2023
1 parent e5d794f commit d14fe19
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zapal/website-cms",
"description": "Zapal's website CMS",
"version": "1.1.1",
"version": "1.1.2",
"main": "dist/server.js",
"license": "MIT",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/collections/Locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const Locations: CollectionConfig = {
en: 'Name',
ua: 'Назва',
},
localized: true,
required: true,
},

Expand Down
4 changes: 4 additions & 0 deletions src/collections/Projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Projects: CollectionConfig = {
en: 'Name',
ua: 'Назва',
},
localized: true,
required: true,
},
{
Expand All @@ -57,6 +58,7 @@ const Projects: CollectionConfig = {
en: 'Description',
ua: 'Опис',
},
localized: true,
required: true,
},
{
Expand Down Expand Up @@ -85,6 +87,7 @@ const Projects: CollectionConfig = {
en: 'Name',
ua: 'Назва',
},
localized: true,
required: true,
},
{
Expand All @@ -94,6 +97,7 @@ const Projects: CollectionConfig = {
en: 'Description',
ua: 'Опис',
},
localized: true,
required: true,
},
],
Expand Down
35 changes: 14 additions & 21 deletions src/collections/blog/Blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,26 @@ const Blog: CollectionConfig = {
hasMany: true,
required: true,
},
{
name: 'author',
label: {
en: 'Author',
ua: 'Автор',
},
admin: {
position: 'sidebar',
},
type: 'relationship',
relationTo: Authors.slug,
hasMany: false,
required: true,
},
richTextField({ name: 'content' }),
],
},
// {
// name: 'seo',
// label: {
// en: 'SEO',
// ua: 'SEO',
// },
// }
],
},
slugField(),
{
name: 'author',
label: {
en: 'Author',
ua: 'Автор',
},
admin: {
position: 'sidebar',
},
type: 'relationship',
relationTo: Authors.slug,
hasMany: false,
required: true,
},
],
};

Expand Down
12 changes: 1 addition & 11 deletions src/globals/pages/AboutPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@ const AboutPage: GlobalConfig = {
tabs: [
{
name: 'content',
fields: [
{
type: 'tabs',
tabs: [
{
name: 'content',
fields: [translationField()],
},
],
},
],
fields: [translationField()],
},
],
},
Expand Down

0 comments on commit d14fe19

Please sign in to comment.