@paris-ias/trees 1.8.56 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/form/actions.d.ts +130 -0
  2. package/dist/form/affiliations.d.ts +293 -0
  3. package/dist/form/apps.d.ts +210 -0
  4. package/dist/form/disciplines.d.ts +41 -0
  5. package/dist/form/events.d.ts +1398 -0
  6. package/dist/form/fellowships.d.ts +2123 -0
  7. package/dist/form/fellowships.js +4 -4
  8. package/dist/form/files.d.ts +41 -0
  9. package/dist/form/mailing.d.ts +63 -0
  10. package/dist/form/news.d.ts +406 -0
  11. package/dist/form/people.d.ts +1063 -0
  12. package/dist/form/people.js +4 -4
  13. package/dist/form/projects.d.ts +565 -0
  14. package/dist/form/publications.d.ts +616 -0
  15. package/dist/form/tags.d.ts +55 -0
  16. package/dist/form/users.d.ts +947 -0
  17. package/dist/graphql/client/events/query.list.events.gql +0 -1
  18. package/dist/graphql/schemas/schema.apex.graphql +37 -9
  19. package/dist/graphql/schemas/schema.website.graphql +31 -4
  20. package/dist/graphql/schemas/website-resolvers-list.json +3 -4
  21. package/dist/list/actions.d.ts +104 -0
  22. package/dist/list/affiliations.d.ts +104 -0
  23. package/dist/list/apps.d.ts +104 -0
  24. package/dist/list/disciplines.d.ts +102 -0
  25. package/dist/list/events.d.ts +173 -0
  26. package/dist/list/fellowships.d.ts +124 -0
  27. package/dist/list/files.d.ts +102 -0
  28. package/dist/list/mailing.d.ts +102 -0
  29. package/dist/list/news.d.ts +104 -0
  30. package/dist/list/people.d.ts +154 -0
  31. package/dist/list/projects.d.ts +104 -0
  32. package/dist/list/publications.d.ts +128 -0
  33. package/dist/list/tags.d.ts +104 -0
  34. package/dist/list/users.d.ts +154 -0
  35. package/index.d.ts +31 -0
  36. package/package.json +173 -14
  37. package/readme.md +609 -74
  38. package/index.ts +0 -63
  39. package/lib/README.md +0 -206
  40. package/lib/buildClientGraphQL.ts +0 -342
  41. package/lib/buildDefaults.ts +0 -0
  42. package/lib/buildSchemas.ts +0 -109
  43. package/lib/generate.ts +0 -505
  44. package/lib/generateAll.ts +0 -231
  45. package/lib/utils.ts +0 -24
  46. package/src/LICENSE +0 -661
  47. package/src/action/graphql/client/query.get.action.gql +0 -22
  48. package/src/action/graphql/client/query.list.action.gql +0 -32
  49. package/src/action/graphql/server/apex.types.action.graphql +0 -15
  50. package/src/action/models/action.ts +0 -147
  51. package/src/affiliation/graphql/client/query.get.affiliations.gql +0 -37
  52. package/src/affiliation/graphql/client/query.list.affiliations.gql +0 -43
  53. package/src/affiliation/graphql/server/shared.types.affiliations.graphql +0 -20
  54. package/src/affiliation/models/affiliation.ts +0 -130
  55. package/src/affiliation/models/member.ts +0 -11
  56. package/src/affiliation/models/partner.ts +0 -9
  57. package/src/apps/graphql/client/query.get.apps.gql +0 -33
  58. package/src/apps/graphql/client/query.list.apps.gql +0 -43
  59. package/src/apps/models/apps.ts +0 -195
  60. package/src/events/graphql/client/query.get.events.gql +0 -119
  61. package/src/events/graphql/client/query.list.events.gql +0 -40
  62. package/src/events/graphql/server/shared.inputs.events.graphql +0 -24
  63. package/src/events/models/eventSlot.ts +0 -73
  64. package/src/events/models/events.ts +0 -569
  65. package/src/fellowships/graphql/client/query.get.fellowships.gql +0 -163
  66. package/src/fellowships/graphql/client/query.list.fellowships.gql +0 -49
  67. package/src/fellowships/graphql/server/apex.inputs.fellowshipDetails.graphql +0 -13
  68. package/src/fellowships/graphql/server/shared.types.fellowshipDetails.graphql +0 -13
  69. package/src/fellowships/graphql/server/shared.types.fellowships.graphql +0 -38
  70. package/src/fellowships/models/fellowshipDetails.ts +0 -145
  71. package/src/fellowships/models/fellowships.ts +0 -341
  72. package/src/files/graphql/client/query.get.files.gql +0 -24
  73. package/src/files/graphql/client/query.list.files.gql +0 -37
  74. package/src/files/graphql/server/apex.inputs.files.graphql +0 -7
  75. package/src/files/graphql/server/apex.inputs.video.graphql +0 -9
  76. package/src/files/graphql/server/apex.types.files.graphql +0 -4
  77. package/src/files/graphql/server/shared.inputs.image.graphql +0 -9
  78. package/src/files/graphql/server/shared.types.files.graphql +0 -15
  79. package/src/files/graphql/server/shared.types.image.graphql +0 -9
  80. package/src/files/graphql/server/shared.types.video.graphql +0 -9
  81. package/src/files/models/files.ts +0 -113
  82. package/src/files/models/gallery.ts +0 -11
  83. package/src/files/models/image.ts +0 -159
  84. package/src/files/models/video.ts +0 -166
  85. package/src/form.ts +0 -52
  86. package/src/index.ts +0 -98
  87. package/src/list.ts +0 -34
  88. package/src/mailing/graphql/client/query.get.mailing.gql +0 -24
  89. package/src/mailing/graphql/client/query.list.mailing.gql +0 -23
  90. package/src/mailing/graphql/server/apex.types.mailing.graphql +0 -13
  91. package/src/mailing/models/mailing.ts +0 -123
  92. package/src/misc/graphql/client/apex.mutations.delete.gql +0 -0
  93. package/src/misc/graphql/client/apex.mutations.upsert.gql +0 -0
  94. package/src/misc/graphql/client/apex.queries.login.gql +0 -0
  95. package/src/misc/graphql/client/query.get.disciplines.gql +0 -17
  96. package/src/misc/graphql/client/query.get.tags.gql +0 -13
  97. package/src/misc/graphql/client/query.list.disciplines.gql +0 -23
  98. package/src/misc/graphql/client/query.list.tags.gql +0 -23
  99. package/src/misc/graphql/server/apex.inputs.misc.graphql +0 -13
  100. package/src/misc/graphql/server/apex.inputs.socials.graphql +0 -12
  101. package/src/misc/graphql/server/apex.mutations.graphql +0 -23
  102. package/src/misc/graphql/server/apex.queries.graphql +0 -36
  103. package/src/misc/graphql/server/apex.types.disciplines.graphql +0 -4
  104. package/src/misc/graphql/server/apex.types.tags.graphql +0 -4
  105. package/src/misc/graphql/server/shared.enums.graphql +0 -112
  106. package/src/misc/graphql/server/shared.inputs.misc.graphql +0 -101
  107. package/src/misc/graphql/server/shared.queries.graphql +0 -35
  108. package/src/misc/graphql/server/shared.types.disciplines.graphql +0 -8
  109. package/src/misc/graphql/server/shared.types.events.graphql +0 -39
  110. package/src/misc/graphql/server/shared.types.location.graphql +0 -17
  111. package/src/misc/graphql/server/shared.types.misc.graphql +0 -120
  112. package/src/misc/graphql/server/shared.types.related.graphql +0 -10
  113. package/src/misc/graphql/server/shared.types.relatedAffiliation.graphql +0 -7
  114. package/src/misc/graphql/server/shared.types.relatedEvent.graphql +0 -7
  115. package/src/misc/graphql/server/shared.types.relatedFellowships.graphql +0 -7
  116. package/src/misc/graphql/server/shared.types.relatedNews.graphql +0 -7
  117. package/src/misc/graphql/server/shared.types.relatedPeople.graphql +0 -6
  118. package/src/misc/graphql/server/shared.types.relatedProject.graphql +0 -7
  119. package/src/misc/graphql/server/shared.types.relatedPublications.graphql +0 -6
  120. package/src/misc/graphql/server/shared.types.socials.graphql +0 -22
  121. package/src/misc/graphql/server/shared.types.tags.graphql +0 -11
  122. package/src/misc/graphql/server/website.mutations.graphql +0 -4
  123. package/src/misc/models/disciplines.ts +0 -116
  124. package/src/misc/models/location.ts +0 -136
  125. package/src/misc/models/organizers.ts +0 -13
  126. package/src/misc/models/related.ts +0 -123
  127. package/src/misc/models/relatedEvents.ts +0 -16
  128. package/src/misc/models/relatedFellowships.ts +0 -7
  129. package/src/misc/models/relatedNews.ts +0 -13
  130. package/src/misc/models/relatedPeople.ts +0 -8
  131. package/src/misc/models/relatedProject.ts +0 -14
  132. package/src/misc/models/relatedPublications.ts +0 -14
  133. package/src/misc/models/socials.ts +0 -133
  134. package/src/misc/models/sponsor.ts +0 -13
  135. package/src/misc/models/tags.ts +0 -116
  136. package/src/misc/models/taxonomy.ts +0 -1
  137. package/src/model.ts +0 -7
  138. package/src/news/graphql/client/query.get.news.gql +0 -128
  139. package/src/news/graphql/client/query.list.news.gql +0 -35
  140. package/src/news/graphql/server/share.types.news.graphql +0 -27
  141. package/src/news/models/news.ts +0 -257
  142. package/src/people/graphql/client/query.get.people.gql +0 -173
  143. package/src/people/graphql/client/query.get.users.gql +0 -0
  144. package/src/people/graphql/client/query.list.people.gql +0 -55
  145. package/src/people/graphql/client/query.list.users.gql +0 -31
  146. package/src/people/graphql/server/apex.inputs.consent.graphql +0 -9
  147. package/src/people/graphql/server/apex.inputs.groups.graphql +0 -8
  148. package/src/people/graphql/server/apex.inputs.vintage.graphql +0 -6
  149. package/src/people/graphql/server/shared.types.consent.graphql +0 -9
  150. package/src/people/graphql/server/shared.types.groups.graphql +0 -8
  151. package/src/people/graphql/server/shared.types.people.graphql +0 -29
  152. package/src/people/graphql/server/shared.types.position.graphql +0 -6
  153. package/src/people/graphql/server/shared.types.users.graphql +0 -17
  154. package/src/people/graphql/server/shared.types.vintage.graphql +0 -6
  155. package/src/people/models/consent.ts +0 -82
  156. package/src/people/models/discussants.ts +0 -9
  157. package/src/people/models/experiences.ts +0 -38
  158. package/src/people/models/fellows.ts +0 -12
  159. package/src/people/models/groups.ts +0 -58
  160. package/src/people/models/people.ts +0 -244
  161. package/src/people/models/position.ts +0 -62
  162. package/src/people/models/speakers.ts +0 -9
  163. package/src/people/models/users.ts +0 -252
  164. package/src/people/models/vintage.ts +0 -124
  165. package/src/projects/graphql/client/query.get.projects.gql +0 -166
  166. package/src/projects/graphql/client/query.list.projects.gql +0 -33
  167. package/src/projects/graphql/server/shared.types.projects.graphql +0 -29
  168. package/src/projects/models/projects.ts +0 -249
  169. package/src/publications/graphql/client/query.get.publications.gql +0 -169
  170. package/src/publications/graphql/client/query.list.publications.gql +0 -35
  171. package/src/publications/graphql/server/shared.types.publications.graphql +0 -34
  172. package/src/publications/models/article.ts +0 -262
  173. package/src/publications/models/publications.ts +0 -306
  174. /package/dist/form/{action.js → actions.js} +0 -0
  175. /package/dist/form/{affiliation.js → affiliations.js} +0 -0
  176. /package/dist/graphql/client/{action/query.get.action.gql → actions/query.get.actions.gql} +0 -0
  177. /package/dist/graphql/client/{action/query.list.action.gql → actions/query.list.actions.gql} +0 -0
  178. /package/dist/graphql/client/{affiliation → affiliations}/query.get.affiliations.gql +0 -0
  179. /package/dist/graphql/client/{affiliation → affiliations}/query.list.affiliations.gql +0 -0
  180. /package/dist/list/{action.js → actions.js} +0 -0
  181. /package/dist/list/{affiliation.js → affiliations.js} +0 -0
@@ -1,120 +0,0 @@
1
-
2
-
3
- type App {
4
- appId: String
5
- name: String!
6
- description: String
7
- summary: String
8
- subtitle: String
9
- logo: Image
10
- url: AWSURL
11
- state: appState
12
- tags: [Tag]
13
- date: AWSDateTime
14
- color: String
15
- slug: String
16
- }
17
-
18
- type AppList {
19
- total: Int!
20
- items: [App]
21
- }
22
-
23
- type AppRole {
24
- appId: String
25
- roles: [Int!]!
26
- }
27
-
28
-
29
- type Entity_sm {
30
- name: String!
31
- description: String
32
- logo: String
33
- place: Place
34
- }
35
-
36
-
37
- type Filters {
38
- events: EventFilters
39
- fellowships: FellowshipFilters
40
- news: NewsFilters
41
- projects: ProjectFilters
42
- people: PeopleFilters
43
- publications: PublicationFilters
44
- }
45
-
46
-
47
-
48
- type Nomenclature {
49
- version: String!
50
- settings: NomenclatureSettings!
51
- data: [Wikipedia!]!
52
- }
53
-
54
- type NomenclatureSettings {
55
- lang: [String!]
56
- defaultLang: String
57
- extended: Boolean
58
- }
59
-
60
- type Place {
61
- name: String!
62
- address: String
63
- url: AWSURL
64
- }
65
-
66
- type Profile {
67
- country: Int
68
- firstname: String!
69
- lastname: String!
70
- position: String
71
- image: Image
72
- references: [String]
73
- presentation: String
74
- twitter: String
75
- linkedin: String
76
- wikipedia: String
77
- }
78
-
79
-
80
- type SearchList {
81
- news: NewsList
82
- projects: ProjectsList
83
- events: EventsList
84
- people: PeopleList
85
- publications: PublicationsList
86
- fellowships: FellowshipList
87
- }
88
-
89
- type Settings {
90
- lang: String
91
- }
92
-
93
- type Slot {
94
- firstname: String!
95
- lastname: String!
96
- email: AWSEmail!
97
- institution: String
98
- lang: String!
99
- }
100
-
101
- # type Slug {
102
- # fr: String
103
- # en: String
104
- # }
105
-
106
-
107
- type Token {
108
- accessToken: String!
109
- }
110
-
111
- type TokenAndUser {
112
- accessToken: String
113
- user: User
114
- }
115
-
116
-
117
-
118
-
119
-
120
-
@@ -1,10 +0,0 @@
1
-
2
- type Related {
3
- events: [RelatedEvent]
4
- news: [RelatedNews]
5
- people: [RelatedPeople]
6
- projects: [RelatedProject]
7
- publications: [RelatedPublication]
8
- fellowships: [RelatedFellowship]
9
- affiliations: [RelatedAffiliation]
10
- }
@@ -1,7 +0,0 @@
1
- type RelatedAffiliation {
2
- name: String
3
- url: AWSURL
4
- image: Image
5
- description: String
6
- slug: AWSJSON
7
- }
@@ -1,7 +0,0 @@
1
- type RelatedEvent {
2
- name: String
3
- url: AWSURL
4
- image: Image
5
- description: String
6
- slug: AWSJSON
7
- }
@@ -1,7 +0,0 @@
1
- type RelatedFellowship {
2
- name: String
3
- url: AWSURL
4
- image: Image
5
- description: String
6
- slug: AWSJSON
7
- }
@@ -1,7 +0,0 @@
1
- type RelatedNews {
2
- name: String
3
- url: AWSURL
4
- image: Image
5
- description: String
6
- slug: AWSJSON
7
- }
@@ -1,6 +0,0 @@
1
- type RelatedPeople {
2
- firstname: String
3
- lastname: String
4
- image: Image
5
- slug: AWSJSON
6
- }
@@ -1,7 +0,0 @@
1
- type RelatedProject {
2
- name: String
3
- url: AWSURL
4
- image: Image
5
- description: String
6
- slug: AWSJSON
7
- }
@@ -1,6 +0,0 @@
1
-
2
- type RelatedPublication {
3
- name: String!
4
- url: AWSURL!
5
- slug: AWSJSON
6
- }
@@ -1,22 +0,0 @@
1
- type Socials {
2
- website: AWSURL
3
- wikipedia: AWSURL
4
- orcid: AWSURL
5
- linkedin: AWSURL
6
- twitter: AWSURL
7
- instagram: AWSURL
8
- scholar: AWSURL
9
- researchgate: AWSURL
10
- mendeley: AWSURL
11
- idRef: Int
12
- }
13
-
14
-
15
- type Wikipedia {
16
- lang: String!
17
- disciplines: AWSJSON
18
- thematics: AWSJSON
19
- types: AWSJSON
20
- tags: AWSJSON
21
- }
22
-
@@ -1,11 +0,0 @@
1
- type Tag {
2
- name: String
3
- description: String
4
- icon: String
5
- createdAt: AWSDateTime
6
- updatedAt: AWSDateTime
7
- appId: String
8
- slug: AWSJSON
9
- }
10
-
11
-
@@ -1,4 +0,0 @@
1
- type Mutation {
2
- # Public event booking
3
- bookEvent(itemId: ID!, slot: SlotInput!): Boolean
4
- }
@@ -1,116 +0,0 @@
1
- import Model from "../../model"
2
- import { formType } from "../../form"
3
-
4
- export interface Disciplines {
5
- createdAt: Date
6
- description: string
7
- icon: string
8
- name: string
9
- updatedAt: Date
10
- }
11
-
12
- const configDefault: Model = {
13
- list: {
14
- create: true, // allow to create new items
15
- filters: {
16
- year: {
17
- type: "Select",
18
- },
19
- },
20
- sort: {
21
- // sort options
22
- nameasc: {
23
- // by name from a to z
24
- icon: "sort-alphabetical-ascending",
25
- text: "by-name-from-a-to-z",
26
- value: ["article_title", 1],
27
- },
28
- namedesc: {
29
- // by name from z to a
30
- icon: "sort-alphabetical-descending",
31
- text: "by-name-from-z-to-a",
32
- value: ["article_title", -1],
33
- },
34
- dateasc: {
35
- // by date from most recent to oldest
36
- icon: "sort-calendar-descending",
37
- text: "by-date-most-recent-first",
38
- value: ["date", -1],
39
- default: true,
40
- },
41
- datedesc: {
42
- // by date from oldest to most recent
43
- icon: "sort-calendar-ascending",
44
- text: "by-date-oldest-first",
45
- value: ["date", 1],
46
- },
47
- },
48
- views: {
49
- rows: {
50
- name: "rows",
51
- icon: "view-list",
52
- perPage: {
53
- options: [9, 12, 16],
54
- default: 9,
55
- },
56
- },
57
- dense: {
58
- default: true,
59
- name: "dense",
60
- icon: "land-rows-horizontal",
61
- perPage: {
62
- options: [20, 40, 60, 80, 100],
63
- default: 20,
64
- },
65
- },
66
- tiles: {
67
- name: "tiles",
68
- icon: "view-quilt",
69
- },
70
- grid: {
71
- name: "grid",
72
- icon: "view-day",
73
- },
74
- },
75
- },
76
- form: {
77
- name: {
78
- label: "name",
79
- component: "TextField",
80
- type: formType.Primitive,
81
-
82
- rules: {
83
- required: true,
84
- min: 5,
85
- max: 200,
86
- },
87
- meta: "name",
88
- },
89
- description: {
90
- label: "description",
91
- component: "TextField",
92
- type: formType.Primitive,
93
-
94
- rules: {
95
- required: true,
96
- min: 5,
97
- max: 200,
98
- },
99
- meta: "description",
100
- },
101
- // TODO: add discipline picker based on the complete list of disciplines
102
- /* icon: {
103
- label: "icon",
104
- component: "TextField",
105
- type: formType.Primitive,
106
- rules: {
107
- required: true,
108
- min: 5,
109
- max: 200,
110
- },
111
- meta: "icon",
112
- }, */
113
- },
114
- }
115
-
116
- export default configDefault
@@ -1,136 +0,0 @@
1
- import { Form, formType } from "../../form"
2
-
3
- export interface Location {
4
- name: string
5
- details?: string // natural language description of the location
6
- alt?: string
7
- street?: string
8
- city?: string
9
- country?: string
10
- zip?: number
11
- geocode?: {
12
- lat: number
13
- lng: number
14
- }
15
- }
16
-
17
- export interface LocationForm {
18
- form: Record<string, Form>
19
- }
20
- const defaultConfig: LocationForm = {
21
- form: {
22
- name: {
23
- label: "name",
24
- component: "TextField",
25
- type: formType.Primitive,
26
-
27
- rules: {
28
- required: true,
29
- min: 5,
30
- max: 200,
31
- },
32
- meta: "name",
33
- },
34
- details: {
35
- label: "details",
36
- component: "TextArea",
37
- type: formType.Primitive,
38
-
39
- rules: {
40
- required: true,
41
- min: 5,
42
- max: 200,
43
- },
44
- meta: "details",
45
- },
46
- alt: {
47
- label: "alt",
48
- component: "TextArea",
49
- type: formType.Primitive,
50
-
51
- rules: {
52
- required: true,
53
- min: 5,
54
- max: 200,
55
- },
56
- meta: "alt",
57
- },
58
- street: {
59
- label: "street",
60
- component: "TextField",
61
- type: formType.Primitive,
62
-
63
- rules: {
64
- required: true,
65
- max: 200,
66
- },
67
- meta: "street",
68
- },
69
- city: {
70
- label: "city",
71
- component: "TextField",
72
- type: formType.Primitive,
73
-
74
- rules: {
75
- required: true,
76
- max: 200,
77
- },
78
- meta: "city",
79
- },
80
- country: {
81
- label: "country",
82
- component: "AutoComplete",
83
- type: formType.Primitive,
84
-
85
- meta: "country",
86
- },
87
- zip: {
88
- label: "zip",
89
- component: "TextField",
90
- type: formType.Primitive,
91
- rules: {
92
- required: true,
93
- min: 5,
94
- max: 200,
95
- },
96
- meta: "zip",
97
- },
98
- geocode: {
99
- label: "geocode",
100
- component: "LocationPicker",
101
- type: formType.Object,
102
- rules: {
103
- required: true,
104
- min: 5,
105
- max: 200,
106
- },
107
- items: {
108
- lat: {
109
- label: "latitude",
110
- component: "TextField",
111
- type: formType.Primitive,
112
- rules: {
113
- required: true,
114
- min: 5,
115
- max: 200,
116
- },
117
- meta: "latitude",
118
- },
119
- lng: {
120
- label: "longitude",
121
- component: "TextField",
122
- type: formType.Primitive,
123
- rules: {
124
- required: true,
125
- min: 5,
126
- max: 200,
127
- },
128
- meta: "longitude",
129
- },
130
- },
131
- meta: "geocode",
132
- },
133
- },
134
- }
135
-
136
- export default defaultConfig
@@ -1,13 +0,0 @@
1
- import configPeople, { People } from "../../people/models/people"
2
- import configAffiliation, {
3
- Affiliation,
4
- } from "../../affiliation/models/affiliation"
5
- import Model from "../../model"
6
-
7
- export interface Organizer extends People, Affiliation {}
8
- const defaultConfig: Model = {
9
- aliases: ["people", "affiliations"],
10
- ...configPeople,
11
- ...configAffiliation,
12
- }
13
- export default defaultConfig
@@ -1,123 +0,0 @@
1
- import Model from "../../model"
2
- import { RelatedEvent } from "./relatedEvents"
3
- import { RelatedNews } from "./relatedNews"
4
- import { RelatedProject } from "./relatedProject"
5
- import { RelatedPeople } from "./relatedPeople"
6
- import { RelatedPublications } from "./relatedPublications"
7
- import { RelatedFellowships } from "./relatedFellowships"
8
- import { formType } from "../../form"
9
- export interface Related {
10
- events: RelatedEvent[]
11
- news: RelatedNews[]
12
- projects: RelatedProject[]
13
- people: RelatedPeople[]
14
- publications: RelatedPublications[]
15
- fellowships: RelatedFellowships[]
16
- }
17
-
18
- const defaultConfig: Model = {
19
- list: {
20
- create: true, // allow to create new items
21
- filters: {
22
- year: {
23
- type: "Select",
24
- items: "",
25
- },
26
- },
27
- sort: {
28
- // sort options
29
- nameasc: {
30
- // by name from a to z
31
- icon: "sort-alphabetical-ascending",
32
- text: "by-name-from-a-to-z",
33
- value: ["article_title", 1],
34
- },
35
- namedesc: {
36
- // by name from z to a
37
- icon: "sort-alphabetical-descending",
38
- text: "by-name-from-z-to-a",
39
- value: ["article_title", -1],
40
- },
41
- dateasc: {
42
- // by date from most recent to oldest
43
- icon: "sort-calendar-descending",
44
- text: "by-date-most-recent-first",
45
- value: ["date", -1],
46
- default: true,
47
- },
48
- datedesc: {
49
- // by date from oldest to most recent
50
- icon: "sort-calendar-ascending",
51
- text: "by-date-oldest-first",
52
- value: ["date", 1],
53
- },
54
- },
55
- views: {
56
- rows: {
57
- name: "rows",
58
- icon: "view-list",
59
- perPage: {
60
- options: [9, 12, 16],
61
- default: 9,
62
- },
63
- },
64
- dense: {
65
- default: true,
66
- name: "dense",
67
- icon: "land-rows-horizontal",
68
- perPage: {
69
- options: [20, 40, 60, 80, 100],
70
- default: 20,
71
- },
72
- },
73
- tiles: {
74
- name: "tiles",
75
- icon: "view-quilt",
76
- },
77
- grid: {
78
- name: "grid",
79
- icon: "view-day",
80
- },
81
- },
82
- },
83
- form: {
84
- events: {
85
- label: "relatedEvent",
86
- component: "DocumentPicker",
87
- type: formType.Document,
88
- meta: "event",
89
- },
90
- news: {
91
- label: "relatedNews",
92
- component: "DocumentPicker",
93
- type: formType.Document,
94
- meta: "news",
95
- },
96
- people: {
97
- label: "relatedPeople",
98
- component: "DocumentPicker",
99
- type: formType.Document,
100
- meta: "people",
101
- },
102
- publications: {
103
- label: "relatedPublication",
104
- component: "DocumentPicker",
105
- type: formType.Document,
106
- meta: "publication",
107
- },
108
- projects: {
109
- label: "relatedProject",
110
- component: "DocumentPicker",
111
- type: formType.Document,
112
- meta: "project",
113
- },
114
- fellowships: {
115
- label: "relatedFellowships",
116
- component: "DocumentPicker",
117
- type: formType.Document,
118
- meta: "fellowship",
119
- },
120
- },
121
- }
122
-
123
- export default defaultConfig
@@ -1,16 +0,0 @@
1
- import { Image } from "../../files/models/image"
2
-
3
- export interface RelatedEvent {
4
- bookingState: number // 0 - Server & Client -
5
- createdAt: Date // 0 - Server & Client -
6
- description?: string // 0 - Server & Client -
7
- image?: Image // 3 - Server & Client -
8
- name: string // 0 - Server & Client -
9
- outside?: boolean // 0 - Server & Client -
10
- start?: string // 0 - Server & Client -
11
- state: number // 0 - Server & Client -
12
- summary?: string // 0 - Server & Client -
13
- eventType: number // 0 : online, 1: physical, 2: hybrid// 0 - Server & Client -
14
- url: URL // 0 - Server & Client -
15
- slug: string
16
- }
@@ -1,7 +0,0 @@
1
- export interface RelatedFellowships {
2
- name: string
3
- description?: string
4
- url: URL
5
- date?: Date
6
- slug: string
7
- }
@@ -1,13 +0,0 @@
1
- import { Image } from "../../files/models/image"
2
-
3
- export interface RelatedNews {
4
- name: string
5
- description?: string
6
- image?: Image
7
- color?: string
8
- url: URL
9
- date?: Date
10
- // authors: People[];
11
- featured?: Date
12
- slug: string
13
- }
@@ -1,8 +0,0 @@
1
- import { Image } from "../../files/models/image"
2
-
3
- export interface RelatedPeople {
4
- firstname: string
5
- lastname: string
6
- image?: Image
7
- slug: string
8
- }
@@ -1,14 +0,0 @@
1
- import { Image } from "../../files/models/image"
2
- import { Video } from "../../files/models/video"
3
-
4
- export interface RelatedProject {
5
- name: string
6
- shortDescription?: string
7
- description?: string
8
- url: URL
9
- image?: Image
10
- video?: Video
11
- color?: string
12
- date?: Date
13
- slug: string
14
- }
@@ -1,14 +0,0 @@
1
- import { Image } from "../../files/models/image"
2
- import { Video } from "../../files/models/video"
3
-
4
- export interface RelatedPublications {
5
- name: string
6
- shortDescription?: string
7
- description?: string
8
- url: URL
9
- image?: Image
10
- video?: Video
11
- color?: string
12
- date?: Date
13
- slug: string
14
- }