Skip to content

Commit

Permalink
Set required title for content
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Dec 13, 2023
1 parent 3f7b932 commit 575abad
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion admin/app/content/casestudies.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { draft } from '../fields/draft.js';
import { date } from '../fields/date.js';
import { description } from '../fields/description.js';
import { featured_image } from '../fields/featured-image.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { hero } from '../fields/hero.js';
import { blocks } from '../blocks/blocks.js';
import { t } from '../i18n/translater.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/categories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const categories = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/expertises.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { body } from '../fields/body.js';
import { featured_image } from '../fields/featured-image.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/indexes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isIndex } from '../fields/is-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { hero } from '../fields/hero.js';
import { blocks } from '../blocks/blocks.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isPage } from '../fields/is-page.js';
import { draft } from '../fields/draft.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { hero } from '../fields/hero.js';
import { featured_image } from '../fields/featured-image.js';
import { description } from '../fields/description.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/persons.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { featured_image } from '../fields/featured-image.js';
import { contact } from '../fields/contact.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/persons_statutes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { weight } from '../fields/weight.js';
import { t } from '../i18n/translater.js';

Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/places.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { featured_image } from '../fields/featured-image.js';
import { address } from '../fields/address.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/posts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { date } from '../fields/date.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { featured_image } from '../fields/featured-image.js';
import { body } from '../fields/body.js';
Expand Down
4 changes: 2 additions & 2 deletions admin/app/content/projects.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { date } from '../fields/date.js';
import { projects_types } from '../fields/projects_types.js';
import { projects_tags } from '../fields/projects_tags.js';
import { title } from '../fields/title.js';
import { description } from '../fields/description.js';
import { featured_image } from '../fields/featured-image.js';
import { datas } from '../fields/datas.js';
import { body } from '../fields/body.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/projects_tags.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const projects_tags = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/projects_types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const projects_types = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/publications.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { date } from '../fields/date.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { press } from '../fields/press.js';
import { publications_persons } from '../fields/publications_persons.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/publications_categories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const publications_categories = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/realestates.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { isNotIndex } from '../fields/is-not-index.js';
import { draft } from '../fields/draft.js';
import { date } from '../fields/date.js';
import { reference } from '../fields/reference.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { description } from '../fields/description.js';
import { realestates_persons } from '../fields/realestates_persons.js';
import { realestates_categories } from '../fields/realestates_categories.js';
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/realestates_categories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const realestates_categories = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/realestates_sellers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const realestates_sellers = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { featured_image } from '../fields/featured-image.js';
import { isNotIndex } from '../fields/is-not-index.js';
import { services_categories } from '../fields/services_categories.js';
import { services_persons } from '../fields/services_persons.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const services = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/services_categories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const services_categories = {
Expand Down
2 changes: 1 addition & 1 deletion admin/app/content/tags.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotIndex } from '../fields/is-not-index.js';
import { title } from '../fields/title.js';
import { title } from '../fields/title-required.js';
import { t } from '../i18n/translater.js';

const tags = {
Expand Down
9 changes: 9 additions & 0 deletions admin/app/fields/title-required.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { t } from '../i18n/translater.js';

export const title = {
name: 'title',
label: t.fields.title,
widget: 'string',
required: true,
i18n: true
};

0 comments on commit 575abad

Please sign in to comment.