@paris-ias/trees 1.8.56
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.
- package/LICENSE +679 -0
- package/dist/form/action.js +83 -0
- package/dist/form/affiliation.js +178 -0
- package/dist/form/apps.js +132 -0
- package/dist/form/disciplines.js +30 -0
- package/dist/form/events.js +836 -0
- package/dist/form/fellowships.js +1307 -0
- package/dist/form/files.js +30 -0
- package/dist/form/mailing.js +43 -0
- package/dist/form/news.js +252 -0
- package/dist/form/people.js +658 -0
- package/dist/form/projects.js +338 -0
- package/dist/form/publications.js +364 -0
- package/dist/form/tags.js +38 -0
- package/dist/form/users.js +576 -0
- package/dist/graphql/client/action/query.get.action.gql +22 -0
- package/dist/graphql/client/action/query.list.action.gql +32 -0
- package/dist/graphql/client/affiliation/query.get.affiliations.gql +37 -0
- package/dist/graphql/client/affiliation/query.list.affiliations.gql +43 -0
- package/dist/graphql/client/apps/query.get.apps.gql +33 -0
- package/dist/graphql/client/apps/query.list.apps.gql +43 -0
- package/dist/graphql/client/events/query.get.events.gql +119 -0
- package/dist/graphql/client/events/query.list.events.gql +40 -0
- package/dist/graphql/client/fellowships/query.get.fellowships.gql +163 -0
- package/dist/graphql/client/fellowships/query.list.fellowships.gql +49 -0
- package/dist/graphql/client/files/query.get.files.gql +24 -0
- package/dist/graphql/client/files/query.list.files.gql +37 -0
- package/dist/graphql/client/mailing/query.get.mailing.gql +24 -0
- package/dist/graphql/client/mailing/query.list.mailing.gql +23 -0
- package/dist/graphql/client/misc/apex.mutations.delete.gql +0 -0
- package/dist/graphql/client/misc/apex.mutations.upsert.gql +0 -0
- package/dist/graphql/client/misc/apex.queries.login.gql +0 -0
- package/dist/graphql/client/misc/query.get.disciplines.gql +17 -0
- package/dist/graphql/client/misc/query.get.tags.gql +13 -0
- package/dist/graphql/client/misc/query.list.disciplines.gql +23 -0
- package/dist/graphql/client/misc/query.list.tags.gql +23 -0
- package/dist/graphql/client/news/query.get.news.gql +128 -0
- package/dist/graphql/client/news/query.list.news.gql +35 -0
- package/dist/graphql/client/people/query.get.people.gql +173 -0
- package/dist/graphql/client/people/query.get.users.gql +0 -0
- package/dist/graphql/client/people/query.list.people.gql +55 -0
- package/dist/graphql/client/people/query.list.users.gql +31 -0
- package/dist/graphql/client/projects/query.get.projects.gql +166 -0
- package/dist/graphql/client/projects/query.list.projects.gql +33 -0
- package/dist/graphql/client/publications/query.get.publications.gql +169 -0
- package/dist/graphql/client/publications/query.list.publications.gql +35 -0
- package/dist/graphql/schemas/apex-resolvers-list.json +45 -0
- package/dist/graphql/schemas/schema.apex.graphql +946 -0
- package/dist/graphql/schemas/schema.website.graphql +794 -0
- package/dist/graphql/schemas/website-resolvers-list.json +22 -0
- package/dist/list/action.js +133 -0
- package/dist/list/affiliation.js +133 -0
- package/dist/list/apps.js +133 -0
- package/dist/list/disciplines.js +132 -0
- package/dist/list/events.js +186 -0
- package/dist/list/fellowships.js +149 -0
- package/dist/list/files.js +132 -0
- package/dist/list/mailing.js +132 -0
- package/dist/list/news.js +135 -0
- package/dist/list/people.js +176 -0
- package/dist/list/projects.js +135 -0
- package/dist/list/publications.js +152 -0
- package/dist/list/tags.js +133 -0
- package/dist/list/users.js +176 -0
- package/index.ts +63 -0
- package/lib/README.md +206 -0
- package/lib/buildClientGraphQL.ts +342 -0
- package/lib/buildDefaults.ts +0 -0
- package/lib/buildSchemas.ts +109 -0
- package/lib/generate.ts +505 -0
- package/lib/generateAll.ts +231 -0
- package/lib/utils.ts +24 -0
- package/package.json +34 -0
- package/readme.md +116 -0
- package/src/LICENSE +661 -0
- package/src/action/graphql/client/query.get.action.gql +22 -0
- package/src/action/graphql/client/query.list.action.gql +32 -0
- package/src/action/graphql/server/apex.types.action.graphql +15 -0
- package/src/action/models/action.ts +147 -0
- package/src/affiliation/graphql/client/query.get.affiliations.gql +37 -0
- package/src/affiliation/graphql/client/query.list.affiliations.gql +43 -0
- package/src/affiliation/graphql/server/shared.types.affiliations.graphql +20 -0
- package/src/affiliation/models/affiliation.ts +130 -0
- package/src/affiliation/models/member.ts +11 -0
- package/src/affiliation/models/partner.ts +9 -0
- package/src/apps/graphql/client/query.get.apps.gql +33 -0
- package/src/apps/graphql/client/query.list.apps.gql +43 -0
- package/src/apps/models/apps.ts +195 -0
- package/src/events/graphql/client/query.get.events.gql +119 -0
- package/src/events/graphql/client/query.list.events.gql +40 -0
- package/src/events/graphql/server/shared.inputs.events.graphql +24 -0
- package/src/events/models/eventSlot.ts +73 -0
- package/src/events/models/events.ts +569 -0
- package/src/fellowships/graphql/client/query.get.fellowships.gql +163 -0
- package/src/fellowships/graphql/client/query.list.fellowships.gql +49 -0
- package/src/fellowships/graphql/server/apex.inputs.fellowshipDetails.graphql +13 -0
- package/src/fellowships/graphql/server/shared.types.fellowshipDetails.graphql +13 -0
- package/src/fellowships/graphql/server/shared.types.fellowships.graphql +38 -0
- package/src/fellowships/models/fellowshipDetails.ts +145 -0
- package/src/fellowships/models/fellowships.ts +341 -0
- package/src/files/graphql/client/query.get.files.gql +24 -0
- package/src/files/graphql/client/query.list.files.gql +37 -0
- package/src/files/graphql/server/apex.inputs.files.graphql +7 -0
- package/src/files/graphql/server/apex.inputs.video.graphql +9 -0
- package/src/files/graphql/server/apex.types.files.graphql +4 -0
- package/src/files/graphql/server/shared.inputs.image.graphql +9 -0
- package/src/files/graphql/server/shared.types.files.graphql +15 -0
- package/src/files/graphql/server/shared.types.image.graphql +9 -0
- package/src/files/graphql/server/shared.types.video.graphql +9 -0
- package/src/files/models/files.ts +113 -0
- package/src/files/models/gallery.ts +11 -0
- package/src/files/models/image.ts +159 -0
- package/src/files/models/video.ts +166 -0
- package/src/form.ts +52 -0
- package/src/index.ts +98 -0
- package/src/list.ts +34 -0
- package/src/mailing/graphql/client/query.get.mailing.gql +24 -0
- package/src/mailing/graphql/client/query.list.mailing.gql +23 -0
- package/src/mailing/graphql/server/apex.types.mailing.graphql +13 -0
- package/src/mailing/models/mailing.ts +123 -0
- package/src/misc/graphql/client/apex.mutations.delete.gql +0 -0
- package/src/misc/graphql/client/apex.mutations.upsert.gql +0 -0
- package/src/misc/graphql/client/apex.queries.login.gql +0 -0
- package/src/misc/graphql/client/query.get.disciplines.gql +17 -0
- package/src/misc/graphql/client/query.get.tags.gql +13 -0
- package/src/misc/graphql/client/query.list.disciplines.gql +23 -0
- package/src/misc/graphql/client/query.list.tags.gql +23 -0
- package/src/misc/graphql/server/apex.inputs.misc.graphql +13 -0
- package/src/misc/graphql/server/apex.inputs.socials.graphql +12 -0
- package/src/misc/graphql/server/apex.mutations.graphql +23 -0
- package/src/misc/graphql/server/apex.queries.graphql +36 -0
- package/src/misc/graphql/server/apex.types.disciplines.graphql +4 -0
- package/src/misc/graphql/server/apex.types.tags.graphql +4 -0
- package/src/misc/graphql/server/shared.enums.graphql +112 -0
- package/src/misc/graphql/server/shared.inputs.misc.graphql +101 -0
- package/src/misc/graphql/server/shared.queries.graphql +35 -0
- package/src/misc/graphql/server/shared.types.disciplines.graphql +8 -0
- package/src/misc/graphql/server/shared.types.events.graphql +39 -0
- package/src/misc/graphql/server/shared.types.location.graphql +17 -0
- package/src/misc/graphql/server/shared.types.misc.graphql +120 -0
- package/src/misc/graphql/server/shared.types.related.graphql +10 -0
- package/src/misc/graphql/server/shared.types.relatedAffiliation.graphql +7 -0
- package/src/misc/graphql/server/shared.types.relatedEvent.graphql +7 -0
- package/src/misc/graphql/server/shared.types.relatedFellowships.graphql +7 -0
- package/src/misc/graphql/server/shared.types.relatedNews.graphql +7 -0
- package/src/misc/graphql/server/shared.types.relatedPeople.graphql +6 -0
- package/src/misc/graphql/server/shared.types.relatedProject.graphql +7 -0
- package/src/misc/graphql/server/shared.types.relatedPublications.graphql +6 -0
- package/src/misc/graphql/server/shared.types.socials.graphql +22 -0
- package/src/misc/graphql/server/shared.types.tags.graphql +11 -0
- package/src/misc/graphql/server/website.mutations.graphql +4 -0
- package/src/misc/models/disciplines.ts +116 -0
- package/src/misc/models/location.ts +136 -0
- package/src/misc/models/organizers.ts +13 -0
- package/src/misc/models/related.ts +123 -0
- package/src/misc/models/relatedEvents.ts +16 -0
- package/src/misc/models/relatedFellowships.ts +7 -0
- package/src/misc/models/relatedNews.ts +13 -0
- package/src/misc/models/relatedPeople.ts +8 -0
- package/src/misc/models/relatedProject.ts +14 -0
- package/src/misc/models/relatedPublications.ts +14 -0
- package/src/misc/models/socials.ts +133 -0
- package/src/misc/models/sponsor.ts +13 -0
- package/src/misc/models/tags.ts +116 -0
- package/src/misc/models/taxonomy.ts +1 -0
- package/src/model.ts +7 -0
- package/src/news/graphql/client/query.get.news.gql +128 -0
- package/src/news/graphql/client/query.list.news.gql +35 -0
- package/src/news/graphql/server/share.types.news.graphql +27 -0
- package/src/news/models/news.ts +257 -0
- package/src/people/graphql/client/query.get.people.gql +173 -0
- package/src/people/graphql/client/query.get.users.gql +0 -0
- package/src/people/graphql/client/query.list.people.gql +55 -0
- package/src/people/graphql/client/query.list.users.gql +31 -0
- package/src/people/graphql/server/apex.inputs.consent.graphql +9 -0
- package/src/people/graphql/server/apex.inputs.groups.graphql +8 -0
- package/src/people/graphql/server/apex.inputs.vintage.graphql +6 -0
- package/src/people/graphql/server/shared.types.consent.graphql +9 -0
- package/src/people/graphql/server/shared.types.groups.graphql +8 -0
- package/src/people/graphql/server/shared.types.people.graphql +29 -0
- package/src/people/graphql/server/shared.types.position.graphql +6 -0
- package/src/people/graphql/server/shared.types.users.graphql +17 -0
- package/src/people/graphql/server/shared.types.vintage.graphql +6 -0
- package/src/people/models/consent.ts +82 -0
- package/src/people/models/discussants.ts +9 -0
- package/src/people/models/experiences.ts +38 -0
- package/src/people/models/fellows.ts +12 -0
- package/src/people/models/groups.ts +58 -0
- package/src/people/models/people.ts +244 -0
- package/src/people/models/position.ts +62 -0
- package/src/people/models/speakers.ts +9 -0
- package/src/people/models/users.ts +252 -0
- package/src/people/models/vintage.ts +124 -0
- package/src/projects/graphql/client/query.get.projects.gql +166 -0
- package/src/projects/graphql/client/query.list.projects.gql +33 -0
- package/src/projects/graphql/server/shared.types.projects.graphql +29 -0
- package/src/projects/models/projects.ts +249 -0
- package/src/publications/graphql/client/query.get.publications.gql +169 -0
- package/src/publications/graphql/client/query.list.publications.gql +35 -0
- package/src/publications/graphql/server/shared.types.publications.graphql +34 -0
- package/src/publications/models/article.ts +262 -0
- package/src/publications/models/publications.ts +306 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
query listActions(
|
|
2
|
+
$options: ListInput = {
|
|
3
|
+
skip: 0
|
|
4
|
+
limit: 9
|
|
5
|
+
sortBy: ["start"]
|
|
6
|
+
sortDesc: false
|
|
7
|
+
filters: "{}"
|
|
8
|
+
}
|
|
9
|
+
$appId: ID = "iea"
|
|
10
|
+
$lang: String = "en"
|
|
11
|
+
) {
|
|
12
|
+
listActions(options: $options, appId: $appId, lang: $lang) {
|
|
13
|
+
items {
|
|
14
|
+
color
|
|
15
|
+
image {
|
|
16
|
+
alt
|
|
17
|
+
backgroundColor
|
|
18
|
+
caption
|
|
19
|
+
copyright
|
|
20
|
+
license
|
|
21
|
+
licenseUrl
|
|
22
|
+
url
|
|
23
|
+
}
|
|
24
|
+
link
|
|
25
|
+
name
|
|
26
|
+
slots
|
|
27
|
+
video
|
|
28
|
+
slug
|
|
29
|
+
}
|
|
30
|
+
total
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Image } from "../../files/models/image"
|
|
2
|
+
import Model from "../../model"
|
|
3
|
+
import { formType } from "../../form"
|
|
4
|
+
export interface Action {
|
|
5
|
+
color?: string
|
|
6
|
+
link: string
|
|
7
|
+
image: Image
|
|
8
|
+
name: string
|
|
9
|
+
video?: URL
|
|
10
|
+
slots: string[]
|
|
11
|
+
start: Date
|
|
12
|
+
stop: Date
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const defaultConfig: Model = {
|
|
16
|
+
list: {
|
|
17
|
+
create: true, // allow to create new items
|
|
18
|
+
filters: {
|
|
19
|
+
year: {
|
|
20
|
+
type: "Select",
|
|
21
|
+
items: "",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
sort: {
|
|
25
|
+
// sort options
|
|
26
|
+
nameasc: {
|
|
27
|
+
// by name from a to z
|
|
28
|
+
icon: "sort-alphabetical-ascending",
|
|
29
|
+
text: "by-name-from-a-to-z",
|
|
30
|
+
value: ["name", 1],
|
|
31
|
+
},
|
|
32
|
+
namedesc: {
|
|
33
|
+
// by name from z to a
|
|
34
|
+
icon: "sort-alphabetical-descending",
|
|
35
|
+
text: "by-name-from-z-to-a",
|
|
36
|
+
value: ["name", -1],
|
|
37
|
+
},
|
|
38
|
+
dateasc: {
|
|
39
|
+
// by date from most recent to oldest
|
|
40
|
+
icon: "sort-calendar-descending",
|
|
41
|
+
text: "by-date-most-recent-first",
|
|
42
|
+
value: ["date", -1],
|
|
43
|
+
default: true,
|
|
44
|
+
},
|
|
45
|
+
datedesc: {
|
|
46
|
+
// by date from oldest to most recent
|
|
47
|
+
icon: "sort-calendar-ascending",
|
|
48
|
+
text: "by-date-oldest-first",
|
|
49
|
+
value: ["date", 1],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
views: {
|
|
53
|
+
rows: {
|
|
54
|
+
name: "rows",
|
|
55
|
+
icon: "view-list",
|
|
56
|
+
perPage: {
|
|
57
|
+
options: [9, 12, 16],
|
|
58
|
+
default: 9,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
dense: {
|
|
62
|
+
default: true,
|
|
63
|
+
name: "dense",
|
|
64
|
+
icon: "land-rows-horizontal",
|
|
65
|
+
perPage: {
|
|
66
|
+
options: [20, 40, 60, 80, 100],
|
|
67
|
+
default: 20,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
tiles: {
|
|
71
|
+
name: "tiles",
|
|
72
|
+
icon: "view-quilt",
|
|
73
|
+
},
|
|
74
|
+
grid: {
|
|
75
|
+
name: "grid",
|
|
76
|
+
icon: "view-day",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
form: {
|
|
81
|
+
name: {
|
|
82
|
+
label: "name",
|
|
83
|
+
type: formType.Primitive,
|
|
84
|
+
component: "TextField",
|
|
85
|
+
description: "The name of the ad",
|
|
86
|
+
rules: {
|
|
87
|
+
required: true,
|
|
88
|
+
min: 2,
|
|
89
|
+
max: 4,
|
|
90
|
+
},
|
|
91
|
+
meta: "name", // item type on schema.org
|
|
92
|
+
},
|
|
93
|
+
image: {
|
|
94
|
+
label: "image",
|
|
95
|
+
type: formType.Document,
|
|
96
|
+
component: "ImagePicker",
|
|
97
|
+
description: "The logo of the app",
|
|
98
|
+
rules: {
|
|
99
|
+
required: true,
|
|
100
|
+
},
|
|
101
|
+
default: { url: "", licence: "" }, // default value
|
|
102
|
+
},
|
|
103
|
+
link: {
|
|
104
|
+
label: "url",
|
|
105
|
+
type: formType.Primitive,
|
|
106
|
+
component: "TextField",
|
|
107
|
+
description: "The url of the app",
|
|
108
|
+
rules: {
|
|
109
|
+
required: true,
|
|
110
|
+
url: true,
|
|
111
|
+
},
|
|
112
|
+
meta: "link", // item type on schema.org
|
|
113
|
+
},
|
|
114
|
+
color: {
|
|
115
|
+
label: "background_color",
|
|
116
|
+
type: formType.Primitive,
|
|
117
|
+
component: "ColorPicker",
|
|
118
|
+
default: "#FFFFFF",
|
|
119
|
+
description: "The background color of the content",
|
|
120
|
+
rules: {
|
|
121
|
+
color: true,
|
|
122
|
+
},
|
|
123
|
+
meta: "color", // item type on schema.org
|
|
124
|
+
},
|
|
125
|
+
video: {
|
|
126
|
+
label: "video",
|
|
127
|
+
component: "TextField",
|
|
128
|
+
type: formType.Document,
|
|
129
|
+
rules: {
|
|
130
|
+
url: true,
|
|
131
|
+
},
|
|
132
|
+
meta: "video",
|
|
133
|
+
},
|
|
134
|
+
slots: {
|
|
135
|
+
label: "slots",
|
|
136
|
+
component: "TextField",
|
|
137
|
+
type: formType.Primitive,
|
|
138
|
+
rules: {
|
|
139
|
+
required: true,
|
|
140
|
+
min: 5,
|
|
141
|
+
max: 200,
|
|
142
|
+
},
|
|
143
|
+
meta: "slots",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
}
|
|
147
|
+
export default defaultConfig
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
query getAffiliation(
|
|
2
|
+
$appId: ID = "iea"
|
|
3
|
+
$itemId: ID = ""
|
|
4
|
+
$lang: String = "en"
|
|
5
|
+
) {
|
|
6
|
+
getAffiliation(appId: $appId, itemId: $itemId, lang: $lang) {
|
|
7
|
+
image {
|
|
8
|
+
alt
|
|
9
|
+
backgroundColor
|
|
10
|
+
caption
|
|
11
|
+
copyright
|
|
12
|
+
license
|
|
13
|
+
licenseUrl
|
|
14
|
+
url
|
|
15
|
+
}
|
|
16
|
+
location {
|
|
17
|
+
alt
|
|
18
|
+
city
|
|
19
|
+
country
|
|
20
|
+
details
|
|
21
|
+
geocode {
|
|
22
|
+
lat
|
|
23
|
+
lng
|
|
24
|
+
}
|
|
25
|
+
name
|
|
26
|
+
street
|
|
27
|
+
zip
|
|
28
|
+
}
|
|
29
|
+
name
|
|
30
|
+
ror
|
|
31
|
+
url
|
|
32
|
+
slug {
|
|
33
|
+
fr
|
|
34
|
+
en
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
query listAffiliations(
|
|
2
|
+
$options: ListInput = {
|
|
3
|
+
skip: 0
|
|
4
|
+
limit: 9
|
|
5
|
+
sortBy: ["start"]
|
|
6
|
+
sortDesc: false
|
|
7
|
+
filters: "{}"
|
|
8
|
+
}
|
|
9
|
+
$lang: String = "en"
|
|
10
|
+
$appId: ID = "iea"
|
|
11
|
+
) {
|
|
12
|
+
listAffiliations(options: $options, appId: $appId, lang: $lang) {
|
|
13
|
+
items {
|
|
14
|
+
image {
|
|
15
|
+
alt
|
|
16
|
+
backgroundColor
|
|
17
|
+
caption
|
|
18
|
+
copyright
|
|
19
|
+
license
|
|
20
|
+
licenseUrl
|
|
21
|
+
url
|
|
22
|
+
}
|
|
23
|
+
location {
|
|
24
|
+
alt
|
|
25
|
+
city
|
|
26
|
+
country
|
|
27
|
+
details
|
|
28
|
+
geocode {
|
|
29
|
+
lat
|
|
30
|
+
lng
|
|
31
|
+
}
|
|
32
|
+
name
|
|
33
|
+
street
|
|
34
|
+
zip
|
|
35
|
+
}
|
|
36
|
+
name
|
|
37
|
+
ror
|
|
38
|
+
url
|
|
39
|
+
slug
|
|
40
|
+
}
|
|
41
|
+
total
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type AffiliationList {
|
|
2
|
+
total: Int!
|
|
3
|
+
items: [Affiliation]
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
type Affiliation {
|
|
8
|
+
location: Location
|
|
9
|
+
image: Image
|
|
10
|
+
name: String
|
|
11
|
+
ror: String
|
|
12
|
+
url: AWSURL
|
|
13
|
+
appId: String
|
|
14
|
+
slug: AWSJSON
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type AffiliationWithPositions {
|
|
18
|
+
affiliation: Affiliation
|
|
19
|
+
positions: [Position]
|
|
20
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Image } from "../../files/models/image"
|
|
2
|
+
import { Location } from "../../misc/models/location"
|
|
3
|
+
import Model from "../../model"
|
|
4
|
+
import { formType } from "../../form"
|
|
5
|
+
|
|
6
|
+
export interface Affiliation {
|
|
7
|
+
location?: Location
|
|
8
|
+
image?: Image
|
|
9
|
+
name: string
|
|
10
|
+
ror?: string
|
|
11
|
+
url?: string
|
|
12
|
+
}
|
|
13
|
+
const defaultConfig: Model = {
|
|
14
|
+
list: {
|
|
15
|
+
create: true, // allow to create new items
|
|
16
|
+
filters: {
|
|
17
|
+
year: {
|
|
18
|
+
type: "Select",
|
|
19
|
+
items: "",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
sort: {
|
|
23
|
+
// sort options
|
|
24
|
+
nameasc: {
|
|
25
|
+
// by name from a to z
|
|
26
|
+
icon: "sort-alphabetical-ascending",
|
|
27
|
+
text: "by-name-from-a-to-z",
|
|
28
|
+
value: ["name", 1],
|
|
29
|
+
},
|
|
30
|
+
namedesc: {
|
|
31
|
+
// by name from z to a
|
|
32
|
+
icon: "sort-alphabetical-descending",
|
|
33
|
+
text: "by-name-from-z-to-a",
|
|
34
|
+
value: ["name", -1],
|
|
35
|
+
},
|
|
36
|
+
dateasc: {
|
|
37
|
+
// by date from most recent to oldest
|
|
38
|
+
icon: "sort-calendar-descending",
|
|
39
|
+
text: "by-date-most-recent-first",
|
|
40
|
+
value: ["date", -1],
|
|
41
|
+
default: true,
|
|
42
|
+
},
|
|
43
|
+
datedesc: {
|
|
44
|
+
// by date from oldest to most recent
|
|
45
|
+
icon: "sort-calendar-ascending",
|
|
46
|
+
text: "by-date-oldest-first",
|
|
47
|
+
value: ["date", 1],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
views: {
|
|
51
|
+
rows: {
|
|
52
|
+
name: "rows",
|
|
53
|
+
icon: "view-list",
|
|
54
|
+
perPage: {
|
|
55
|
+
options: [9, 12, 16],
|
|
56
|
+
default: 9,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
dense: {
|
|
60
|
+
default: true,
|
|
61
|
+
name: "dense",
|
|
62
|
+
icon: "land-rows-horizontal",
|
|
63
|
+
perPage: {
|
|
64
|
+
options: [20, 40, 60, 80, 100],
|
|
65
|
+
default: 20,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
tiles: {
|
|
69
|
+
name: "tiles",
|
|
70
|
+
icon: "view-quilt",
|
|
71
|
+
},
|
|
72
|
+
grid: {
|
|
73
|
+
name: "grid",
|
|
74
|
+
icon: "view-day",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
form: {
|
|
79
|
+
name: {
|
|
80
|
+
label: "name",
|
|
81
|
+
component: "TextField",
|
|
82
|
+
type: formType.Primitive,
|
|
83
|
+
i18n: true,
|
|
84
|
+
rules: {
|
|
85
|
+
required: true,
|
|
86
|
+
min: 5,
|
|
87
|
+
max: 200,
|
|
88
|
+
},
|
|
89
|
+
meta: "name",
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
image: {
|
|
93
|
+
label: "image",
|
|
94
|
+
component: "ImagePicker",
|
|
95
|
+
type: formType.Document,
|
|
96
|
+
|
|
97
|
+
meta: "image",
|
|
98
|
+
},
|
|
99
|
+
location: {
|
|
100
|
+
label: "location",
|
|
101
|
+
component: "ObjectContainerPanel",
|
|
102
|
+
type: formType.Template,
|
|
103
|
+
meta: "location",
|
|
104
|
+
},
|
|
105
|
+
ror: {
|
|
106
|
+
label: "ror",
|
|
107
|
+
component: "TextField", // TODO, ROR picker
|
|
108
|
+
type: formType.Primitive,
|
|
109
|
+
|
|
110
|
+
rules: {
|
|
111
|
+
required: true,
|
|
112
|
+
ror: true,
|
|
113
|
+
},
|
|
114
|
+
meta: "ror",
|
|
115
|
+
},
|
|
116
|
+
url: {
|
|
117
|
+
label: "url",
|
|
118
|
+
component: "TextField",
|
|
119
|
+
type: formType.Primitive,
|
|
120
|
+
|
|
121
|
+
rules: {
|
|
122
|
+
required: true,
|
|
123
|
+
url: true,
|
|
124
|
+
},
|
|
125
|
+
meta: "url",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export default defaultConfig
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
query getApp($appId: ID = "iea", $lang: String = "en") {
|
|
2
|
+
getApp(appId: $appId, lang: $lang) {
|
|
3
|
+
appId
|
|
4
|
+
color
|
|
5
|
+
date
|
|
6
|
+
description
|
|
7
|
+
logo {
|
|
8
|
+
alt
|
|
9
|
+
backgroundColor
|
|
10
|
+
caption
|
|
11
|
+
copyright
|
|
12
|
+
license
|
|
13
|
+
licenseUrl
|
|
14
|
+
url
|
|
15
|
+
}
|
|
16
|
+
name
|
|
17
|
+
state
|
|
18
|
+
subtitle
|
|
19
|
+
summary
|
|
20
|
+
tags {
|
|
21
|
+
createdAt
|
|
22
|
+
description
|
|
23
|
+
icon
|
|
24
|
+
name
|
|
25
|
+
updatedAt
|
|
26
|
+
}
|
|
27
|
+
url
|
|
28
|
+
slug {
|
|
29
|
+
fr
|
|
30
|
+
en
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
query listApps(
|
|
2
|
+
$options: ListInput = {
|
|
3
|
+
skip: 0
|
|
4
|
+
limit: 9
|
|
5
|
+
sortBy: ["start"]
|
|
6
|
+
sortDesc: false
|
|
7
|
+
filters: "{}"
|
|
8
|
+
}
|
|
9
|
+
$lang: String = "en"
|
|
10
|
+
$appId: ID = "iea"
|
|
11
|
+
) {
|
|
12
|
+
listApps(options: $options, appId: $appId, lang: $lang) {
|
|
13
|
+
items {
|
|
14
|
+
appId
|
|
15
|
+
color
|
|
16
|
+
date
|
|
17
|
+
description
|
|
18
|
+
logo {
|
|
19
|
+
alt
|
|
20
|
+
backgroundColor
|
|
21
|
+
caption
|
|
22
|
+
copyright
|
|
23
|
+
license
|
|
24
|
+
licenseUrl
|
|
25
|
+
url
|
|
26
|
+
}
|
|
27
|
+
name
|
|
28
|
+
state
|
|
29
|
+
subtitle
|
|
30
|
+
summary
|
|
31
|
+
slug
|
|
32
|
+
tags {
|
|
33
|
+
createdAt
|
|
34
|
+
description
|
|
35
|
+
icon
|
|
36
|
+
name
|
|
37
|
+
updatedAt
|
|
38
|
+
}
|
|
39
|
+
url
|
|
40
|
+
}
|
|
41
|
+
total
|
|
42
|
+
}
|
|
43
|
+
}
|