Skip to content

Commit 660243e

Browse files
authored
Merge pull request #268 from terrestris/textual-contents
feat: introduce textual contents
2 parents 457f1f4 + 829c4ce commit 660243e

File tree

2 files changed

+133
-1
lines changed

2 files changed

+133
-1
lines changed

shogun-admin/config/admin-client-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var shogunApplicationConfig = {
2929
'Layer',
3030
'User',
3131
'Group',
32-
'Role'
32+
'Role',
33+
'TextualContent'
3334
],
3435
dashboard: {
3536
news: {
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"i18n": {
3+
"de": {
4+
"entityName": "Textinhalt",
5+
"navigationTitle": "Textinhalte",
6+
"labelId": "ID",
7+
"labelEstabl": "Erstellt am",
8+
"labelEdit": "Zuletzt editiert am",
9+
"labelTitle": "Title",
10+
"labelCategory": "Kategorie",
11+
"labelSubject": "Inhalt",
12+
"titleId": "ID",
13+
"titleName": "Titel",
14+
"titleCategory": "Kategorie"
15+
},
16+
"en": {
17+
"entityName": "Textual content",
18+
"navigationTitle": "Textual contents",
19+
"labelId": "ID",
20+
"labelEstabl": "Created at",
21+
"labelEdit": "Last edited on",
22+
"labelTitle": "Titel",
23+
"labelCategory": "Category",
24+
"labelSubject": "Content",
25+
"titleId": "ID",
26+
"titleName": "Title",
27+
"titleCategory": "Category"
28+
}
29+
},
30+
"endpoint": "/textualcontents",
31+
"entityType": "textualContent",
32+
"entityName": "#i18n.entityName",
33+
"navigationTitle": "#i18n.navigationTitle",
34+
"subTitle": "",
35+
"defaultEntity": {
36+
"category": "NEWS"
37+
},
38+
"formConfig": {
39+
"name": "textualContent",
40+
"fields": [
41+
{
42+
"dataType": "number",
43+
"dataField": "id",
44+
"label": "#i18n.labelId",
45+
"readOnly": "true"
46+
},
47+
{
48+
"dataField": "created",
49+
"dataType": "date",
50+
"readOnly": "true",
51+
"component": "DateField",
52+
"label": "#i18n.labelEstabl",
53+
"fieldProps": {
54+
"dateFormat": "DD.MM.YYYY HH:mm"
55+
}
56+
},
57+
{
58+
"dataField": "modified",
59+
"dataType": "date",
60+
"readOnly": "true",
61+
"label": "#i18n.labelEdit",
62+
"component": "DateField",
63+
"fieldProps": {
64+
"dateFormat": "DD.MM.YYYY HH:mm"
65+
}
66+
},
67+
{
68+
"component": "Input",
69+
"dataField": "title",
70+
"label": "#i18n.labelTitle"
71+
},
72+
{
73+
"component": "Select",
74+
"dataField": "category",
75+
"label": "#i18n.labelCategory",
76+
"fieldProps": {
77+
"options": [
78+
{
79+
"value": "NEWS",
80+
"label": "Neuigkeiten"
81+
}
82+
]
83+
}
84+
},
85+
{
86+
"component": "MarkdownEditor",
87+
"dataField": "markdown",
88+
"label": "#i18n.labelSubject"
89+
}
90+
]
91+
},
92+
"tableConfig": {
93+
"dataMapping": {
94+
"category": {
95+
"NEWS": "Neuigkeiten"
96+
}
97+
},
98+
"columnDefinition": [
99+
{
100+
"title": "#i18n.titleId",
101+
"dataIndex": "id",
102+
"sortConfig": {
103+
"isSortable": true,
104+
"defaultSortOrder": "descend"
105+
}
106+
},
107+
{
108+
"title": "#i18n.titleName",
109+
"dataIndex": "title",
110+
"key": "title",
111+
"sortConfig": {
112+
"isSortable": true
113+
},
114+
"filterConfig": {
115+
"isFilterable": true
116+
}
117+
},
118+
{
119+
"title": "#i18n.titleCategory",
120+
"dataIndex": "category",
121+
"key": "category",
122+
"sortConfig": {
123+
"isSortable": true
124+
},
125+
"filterConfig": {
126+
"isFilterable": true
127+
}
128+
}
129+
]
130+
}
131+
}

0 commit comments

Comments
 (0)