@paris-ias/trees 1.8.57 → 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.
- package/dist/form/actions.d.ts +130 -0
- package/dist/form/affiliations.d.ts +293 -0
- package/dist/form/apps.d.ts +210 -0
- package/dist/form/disciplines.d.ts +41 -0
- package/dist/form/events.d.ts +1398 -0
- package/dist/form/fellowships.d.ts +2123 -0
- package/dist/form/files.d.ts +41 -0
- package/dist/form/mailing.d.ts +63 -0
- package/dist/form/news.d.ts +406 -0
- package/dist/form/people.d.ts +1063 -0
- package/dist/form/projects.d.ts +565 -0
- package/dist/form/publications.d.ts +616 -0
- package/dist/form/tags.d.ts +55 -0
- package/dist/form/users.d.ts +947 -0
- package/dist/graphql/client/events/query.list.events.gql +0 -1
- package/dist/graphql/schemas/apex-resolvers-list.json +45 -0
- package/dist/graphql/schemas/schema.apex.graphql +34 -6
- package/dist/graphql/schemas/schema.website.graphql +31 -4
- package/dist/graphql/schemas/website-resolvers-list.json +21 -0
- package/dist/list/actions.d.ts +104 -0
- package/dist/list/affiliations.d.ts +104 -0
- package/dist/list/apps.d.ts +104 -0
- package/dist/list/disciplines.d.ts +102 -0
- package/dist/list/events.d.ts +173 -0
- package/dist/list/fellowships.d.ts +124 -0
- package/dist/list/files.d.ts +102 -0
- package/dist/list/mailing.d.ts +102 -0
- package/dist/list/news.d.ts +104 -0
- package/dist/list/people.d.ts +154 -0
- package/dist/list/projects.d.ts +104 -0
- package/dist/list/publications.d.ts +128 -0
- package/dist/list/tags.d.ts +104 -0
- package/dist/list/users.d.ts +154 -0
- package/index.d.ts +31 -0
- package/package.json +173 -14
- package/readme.md +1 -1
- package/index.ts +0 -63
- package/lib/README.md +0 -206
- package/lib/buildClientGraphQL.ts +0 -342
- package/lib/buildDefaults.ts +0 -0
- package/lib/buildSchemas.ts +0 -109
- package/lib/generate.ts +0 -505
- package/lib/generateAll.ts +0 -231
- package/lib/utils.ts +0 -24
- package/src/LICENSE +0 -661
- package/src/actions/graphql/client/query.get.actions.gql +0 -22
- package/src/actions/graphql/client/query.list.actions.gql +0 -32
- package/src/actions/graphql/server/apex.types.actions.graphql +0 -15
- package/src/actions/models/actions.ts +0 -147
- package/src/affiliations/graphql/client/query.get.affiliations.gql +0 -37
- package/src/affiliations/graphql/client/query.list.affiliations.gql +0 -43
- package/src/affiliations/graphql/server/shared.types.affiliations.graphql +0 -20
- package/src/affiliations/models/affiliations.ts +0 -130
- package/src/affiliations/models/members.ts +0 -11
- package/src/affiliations/models/partners.ts +0 -9
- package/src/apps/graphql/client/query.get.apps.gql +0 -33
- package/src/apps/graphql/client/query.list.apps.gql +0 -43
- package/src/apps/models/apps.ts +0 -195
- package/src/events/graphql/client/query.get.events.gql +0 -119
- package/src/events/graphql/client/query.list.events.gql +0 -40
- package/src/events/graphql/server/shared.inputs.events.graphql +0 -24
- package/src/events/models/eventSlot.ts +0 -73
- package/src/events/models/events.ts +0 -569
- package/src/fellowships/graphql/client/query.get.fellowships.gql +0 -163
- package/src/fellowships/graphql/client/query.list.fellowships.gql +0 -49
- package/src/fellowships/graphql/server/apex.inputs.fellowshipDetails.graphql +0 -13
- package/src/fellowships/graphql/server/shared.types.fellowshipDetails.graphql +0 -13
- package/src/fellowships/graphql/server/shared.types.fellowships.graphql +0 -38
- package/src/fellowships/models/fellowshipDetails.ts +0 -145
- package/src/fellowships/models/fellowships.ts +0 -341
- package/src/files/graphql/client/query.get.files.gql +0 -24
- package/src/files/graphql/client/query.list.files.gql +0 -37
- package/src/files/graphql/server/apex.inputs.files.graphql +0 -7
- package/src/files/graphql/server/apex.inputs.video.graphql +0 -9
- package/src/files/graphql/server/apex.types.files.graphql +0 -4
- package/src/files/graphql/server/shared.inputs.image.graphql +0 -9
- package/src/files/graphql/server/shared.types.files.graphql +0 -15
- package/src/files/graphql/server/shared.types.image.graphql +0 -9
- package/src/files/graphql/server/shared.types.video.graphql +0 -9
- package/src/files/models/files.ts +0 -113
- package/src/files/models/gallery.ts +0 -11
- package/src/files/models/image.ts +0 -159
- package/src/files/models/video.ts +0 -166
- package/src/form.ts +0 -52
- package/src/index.ts +0 -98
- package/src/list.ts +0 -34
- package/src/mailing/graphql/client/query.get.mailing.gql +0 -24
- package/src/mailing/graphql/client/query.list.mailing.gql +0 -23
- package/src/mailing/graphql/server/apex.types.mailing.graphql +0 -13
- package/src/mailing/models/mailing.ts +0 -123
- 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 +0 -17
- package/src/misc/graphql/client/query.get.tags.gql +0 -13
- package/src/misc/graphql/client/query.list.disciplines.gql +0 -23
- package/src/misc/graphql/client/query.list.tags.gql +0 -23
- package/src/misc/graphql/server/apex.inputs.misc.graphql +0 -13
- package/src/misc/graphql/server/apex.inputs.socials.graphql +0 -12
- package/src/misc/graphql/server/apex.mutations.graphql +0 -23
- package/src/misc/graphql/server/apex.queries.graphql +0 -36
- package/src/misc/graphql/server/apex.types.disciplines.graphql +0 -4
- package/src/misc/graphql/server/apex.types.tags.graphql +0 -4
- package/src/misc/graphql/server/shared.enums.graphql +0 -112
- package/src/misc/graphql/server/shared.inputs.misc.graphql +0 -101
- package/src/misc/graphql/server/shared.queries.graphql +0 -35
- package/src/misc/graphql/server/shared.types.disciplines.graphql +0 -8
- package/src/misc/graphql/server/shared.types.events.graphql +0 -39
- package/src/misc/graphql/server/shared.types.location.graphql +0 -17
- package/src/misc/graphql/server/shared.types.misc.graphql +0 -120
- package/src/misc/graphql/server/shared.types.related.graphql +0 -10
- package/src/misc/graphql/server/shared.types.relatedAffiliation.graphql +0 -7
- package/src/misc/graphql/server/shared.types.relatedEvent.graphql +0 -7
- package/src/misc/graphql/server/shared.types.relatedFellowships.graphql +0 -7
- package/src/misc/graphql/server/shared.types.relatedNews.graphql +0 -7
- package/src/misc/graphql/server/shared.types.relatedPeople.graphql +0 -6
- package/src/misc/graphql/server/shared.types.relatedProject.graphql +0 -7
- package/src/misc/graphql/server/shared.types.relatedPublications.graphql +0 -6
- package/src/misc/graphql/server/shared.types.socials.graphql +0 -22
- package/src/misc/graphql/server/shared.types.tags.graphql +0 -11
- package/src/misc/graphql/server/website.mutations.graphql +0 -4
- package/src/misc/models/disciplines.ts +0 -116
- package/src/misc/models/location.ts +0 -136
- package/src/misc/models/organizers.ts +0 -13
- package/src/misc/models/related.ts +0 -123
- package/src/misc/models/relatedEvents.ts +0 -16
- package/src/misc/models/relatedFellowships.ts +0 -7
- package/src/misc/models/relatedNews.ts +0 -13
- package/src/misc/models/relatedPeople.ts +0 -8
- package/src/misc/models/relatedProject.ts +0 -14
- package/src/misc/models/relatedPublications.ts +0 -14
- package/src/misc/models/socials.ts +0 -133
- package/src/misc/models/sponsor.ts +0 -13
- package/src/misc/models/tags.ts +0 -116
- package/src/misc/models/taxonomy.ts +0 -1
- package/src/model.ts +0 -7
- package/src/news/graphql/client/query.get.news.gql +0 -128
- package/src/news/graphql/client/query.list.news.gql +0 -35
- package/src/news/graphql/server/share.types.news.graphql +0 -27
- package/src/news/models/news.ts +0 -257
- package/src/people/graphql/client/query.get.people.gql +0 -173
- package/src/people/graphql/client/query.get.users.gql +0 -0
- package/src/people/graphql/client/query.list.people.gql +0 -55
- package/src/people/graphql/client/query.list.users.gql +0 -31
- package/src/people/graphql/server/apex.inputs.consent.graphql +0 -9
- package/src/people/graphql/server/apex.inputs.groups.graphql +0 -8
- package/src/people/graphql/server/apex.inputs.vintage.graphql +0 -6
- package/src/people/graphql/server/shared.types.consent.graphql +0 -9
- package/src/people/graphql/server/shared.types.groups.graphql +0 -8
- package/src/people/graphql/server/shared.types.people.graphql +0 -29
- package/src/people/graphql/server/shared.types.position.graphql +0 -6
- package/src/people/graphql/server/shared.types.users.graphql +0 -17
- package/src/people/graphql/server/shared.types.vintage.graphql +0 -6
- package/src/people/models/consent.ts +0 -82
- package/src/people/models/discussants.ts +0 -9
- package/src/people/models/experiences.ts +0 -38
- package/src/people/models/fellows.ts +0 -12
- package/src/people/models/groups.ts +0 -58
- package/src/people/models/people.ts +0 -243
- package/src/people/models/position.ts +0 -62
- package/src/people/models/speakers.ts +0 -9
- package/src/people/models/users.ts +0 -252
- package/src/people/models/vintage.ts +0 -124
- package/src/projects/graphql/client/query.get.projects.gql +0 -166
- package/src/projects/graphql/client/query.list.projects.gql +0 -33
- package/src/projects/graphql/server/shared.types.projects.graphql +0 -29
- package/src/projects/models/projects.ts +0 -249
- package/src/publications/graphql/client/query.get.publications.gql +0 -169
- package/src/publications/graphql/client/query.list.publications.gql +0 -35
- package/src/publications/graphql/server/shared.types.publications.graphql +0 -34
- package/src/publications/models/article.ts +0 -262
- package/src/publications/models/publications.ts +0 -306
|
@@ -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,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,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
|
-
Affiliations,
|
|
4
|
-
} from "../../affiliations/models/affiliations"
|
|
5
|
-
import Model from "../../model"
|
|
6
|
-
|
|
7
|
-
export interface Organizer extends People, Affiliations {}
|
|
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,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
|
-
}
|