@paris-ias/list 1.0.111 → 1.0.113

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 (163) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/events/DenseItem.vue +24 -15
  3. package/dist/runtime/components/fellowships/DenseItem.vue +1 -1
  4. package/dist/runtime/components/list/atoms/SearchInput.vue +4 -2
  5. package/dist/runtime/components/list/molecules/Pagination.vue +2 -0
  6. package/dist/runtime/components/list/organisms/List.vue +16 -2
  7. package/dist/runtime/components/list/views/Dense.vue +0 -1
  8. package/dist/runtime/components/news/DenseItem.vue +24 -23
  9. package/dist/runtime/components/people/Badges.vue +74 -0
  10. package/dist/runtime/components/people/DenseItem.vue +11 -8
  11. package/dist/runtime/components/people/RowsItem.vue +2 -2
  12. package/dist/runtime/components/people/View.vue +1 -1
  13. package/dist/runtime/components/publications/DenseItem.vue +14 -7
  14. package/dist/runtime/graphql/list/publications.gql +2 -0
  15. package/dist/runtime/runtime/components/actions/ExpandedItem.vue +14 -0
  16. package/dist/runtime/runtime/components/actions/RowsItem.vue +12 -0
  17. package/dist/runtime/runtime/components/actions/View.vue +20 -0
  18. package/dist/runtime/runtime/components/affiliations/ExpandedItem.vue +14 -0
  19. package/dist/runtime/runtime/components/affiliations/RowsItem.vue +12 -0
  20. package/dist/runtime/runtime/components/affiliations/View.vue +20 -0
  21. package/dist/runtime/runtime/components/apps/ExpandedItem.vue +14 -0
  22. package/dist/runtime/runtime/components/apps/RowsItem.vue +12 -0
  23. package/dist/runtime/runtime/components/apps/View.vue +20 -0
  24. package/dist/runtime/runtime/components/disciplines/ExpandedItem.vue +14 -0
  25. package/dist/runtime/runtime/components/disciplines/RowsItem.vue +12 -0
  26. package/dist/runtime/runtime/components/disciplines/View.vue +20 -0
  27. package/dist/runtime/runtime/components/events/Badges.vue +73 -0
  28. package/dist/runtime/runtime/components/events/DateTimePlace.vue +77 -0
  29. package/dist/runtime/runtime/components/events/DenseItem.vue +60 -0
  30. package/dist/runtime/runtime/components/events/ExpandedItem.vue +9 -0
  31. package/dist/runtime/runtime/components/events/RegisterModal.vue +50 -0
  32. package/dist/runtime/runtime/components/events/RelatedItem.vue +44 -0
  33. package/dist/runtime/runtime/components/events/RowsItem.vue +118 -0
  34. package/dist/runtime/runtime/components/events/SlidingItem.vue +63 -0
  35. package/dist/runtime/runtime/components/events/View.vue +333 -0
  36. package/dist/runtime/runtime/components/fellowships/Badges.vue +47 -0
  37. package/dist/runtime/runtime/components/fellowships/DenseItem.vue +42 -0
  38. package/dist/runtime/runtime/components/fellowships/ExpandedItem.vue +7 -0
  39. package/dist/runtime/runtime/components/fellowships/RegisterModal.vue +41 -0
  40. package/dist/runtime/runtime/components/fellowships/RowsItem.vue +58 -0
  41. package/dist/runtime/runtime/components/fellowships/View.vue +203 -0
  42. package/dist/runtime/runtime/components/files/ExpandedItem.vue +14 -0
  43. package/dist/runtime/runtime/components/files/RowsItem.vue +12 -0
  44. package/dist/runtime/runtime/components/files/View.vue +20 -0
  45. package/dist/runtime/runtime/components/list/atoms/FiltersMenu.vue +44 -0
  46. package/dist/runtime/runtime/components/list/atoms/ResetButton.vue +33 -0
  47. package/dist/runtime/runtime/components/list/atoms/ResultsList.vue +27 -0
  48. package/dist/runtime/runtime/components/list/atoms/SearchInput.vue +59 -0
  49. package/dist/runtime/runtime/components/list/atoms/SearchItem.vue +65 -0
  50. package/dist/runtime/runtime/components/list/atoms/SearchString.vue +160 -0
  51. package/dist/runtime/runtime/components/list/atoms/SortMenu.vue +80 -0
  52. package/dist/runtime/runtime/components/list/atoms/ViewMenu.vue +63 -0
  53. package/dist/runtime/runtime/components/list/atoms/itemsPerPage.vue +33 -0
  54. package/dist/runtime/runtime/components/list/inputs/AutoComplete.vue +24 -0
  55. package/dist/runtime/runtime/components/list/inputs/BooleanSwitch.vue +20 -0
  56. package/dist/runtime/runtime/components/list/inputs/Checkbox.vue +20 -0
  57. package/dist/runtime/runtime/components/list/inputs/Select.vue +28 -0
  58. package/dist/runtime/runtime/components/list/molecules/Filters.vue +98 -0
  59. package/dist/runtime/runtime/components/list/molecules/GlobalSearchInput.vue +131 -0
  60. package/dist/runtime/runtime/components/list/molecules/Header.vue +51 -0
  61. package/dist/runtime/runtime/components/list/molecules/Pagination.vue +194 -0
  62. package/dist/runtime/runtime/components/list/molecules/ResultsContainer.vue +78 -0
  63. package/dist/runtime/runtime/components/list/organisms/List.vue +110 -0
  64. package/dist/runtime/runtime/components/list/organisms/Results.vue +72 -0
  65. package/dist/runtime/runtime/components/list/organisms/Slider.vue +180 -0
  66. package/dist/runtime/runtime/components/list/views/Dense.vue +12 -0
  67. package/dist/runtime/runtime/components/list/views/Expanded.vue +10 -0
  68. package/dist/runtime/runtime/components/list/views/Grid.vue +13 -0
  69. package/dist/runtime/runtime/components/list/views/Rows.vue +12 -0
  70. package/dist/runtime/runtime/components/list/views/Slider.vue +147 -0
  71. package/dist/runtime/runtime/components/list/views/Table.vue +13 -0
  72. package/dist/runtime/runtime/components/mailing/ExpandedItem.vue +14 -0
  73. package/dist/runtime/runtime/components/mailing/RowsItem.vue +12 -0
  74. package/dist/runtime/runtime/components/mailing/View.vue +20 -0
  75. package/dist/runtime/runtime/components/misc/atoms/DateStamp.vue +101 -0
  76. package/dist/runtime/runtime/components/misc/atoms/ImageContainer.vue +127 -0
  77. package/dist/runtime/runtime/components/misc/atoms/ShareMenu.vue +61 -0
  78. package/dist/runtime/runtime/components/misc/atoms/Socials.vue +120 -0
  79. package/dist/runtime/runtime/components/misc/molecules/ChipContainer.vue +31 -0
  80. package/dist/runtime/runtime/components/misc/molecules/Related.vue +28 -0
  81. package/dist/runtime/runtime/components/misc/molecules/RelatedItems.vue +27 -0
  82. package/dist/runtime/runtime/components/misc/molecules/SearchItem.vue +26 -0
  83. package/dist/runtime/runtime/components/news/DenseItem.vue +73 -0
  84. package/dist/runtime/runtime/components/news/ExpandedItem.vue +145 -0
  85. package/dist/runtime/runtime/components/news/Header.vue +7 -0
  86. package/dist/runtime/runtime/components/news/RelatedItem.vue +44 -0
  87. package/dist/runtime/runtime/components/news/RowsItem.vue +182 -0
  88. package/dist/runtime/runtime/components/news/View.vue +174 -0
  89. package/dist/runtime/runtime/components/people/DenseItem.vue +60 -0
  90. package/dist/runtime/runtime/components/people/ExpandedItem.vue +14 -0
  91. package/dist/runtime/runtime/components/people/RelatedItem.vue +41 -0
  92. package/dist/runtime/runtime/components/people/RowsItem.vue +93 -0
  93. package/dist/runtime/runtime/components/people/View.vue +172 -0
  94. package/dist/runtime/runtime/components/projects/DenseItem.vue +77 -0
  95. package/dist/runtime/runtime/components/projects/ExpandedItem.vue +12 -0
  96. package/dist/runtime/runtime/components/projects/RelatedItem.vue +44 -0
  97. package/dist/runtime/runtime/components/projects/RowsItem.vue +103 -0
  98. package/dist/runtime/runtime/components/projects/View.vue +130 -0
  99. package/dist/runtime/runtime/components/publications/DenseItem.vue +89 -0
  100. package/dist/runtime/runtime/components/publications/RelatedItem.vue +44 -0
  101. package/dist/runtime/runtime/components/publications/RowsItem.vue +105 -0
  102. package/dist/runtime/runtime/components/publications/View.vue +132 -0
  103. package/dist/runtime/runtime/components/tags/ExpandedItem.vue +14 -0
  104. package/dist/runtime/runtime/components/tags/RowsItem.vue +12 -0
  105. package/dist/runtime/runtime/components/tags/View.vue +20 -0
  106. package/dist/runtime/runtime/components/users/ExpandedItem.vue +14 -0
  107. package/dist/runtime/runtime/components/users/RowsItem.vue +12 -0
  108. package/dist/runtime/runtime/components/users/View.vue +20 -0
  109. package/dist/runtime/runtime/composables/useFetchItem.d.ts +6 -0
  110. package/dist/runtime/runtime/composables/useFetchItem.js +49 -0
  111. package/dist/runtime/runtime/composables/useIcons.d.ts +1 -0
  112. package/dist/runtime/runtime/composables/useIcons.js +30 -0
  113. package/dist/runtime/runtime/composables/useUtils.d.ts +12 -0
  114. package/dist/runtime/runtime/composables/useUtils.js +48 -0
  115. package/dist/runtime/runtime/graphql/buildFiltersValues.gql +35 -0
  116. package/dist/runtime/runtime/graphql/item/action.gql +22 -0
  117. package/dist/runtime/runtime/graphql/item/affiliations.gql +37 -0
  118. package/dist/runtime/runtime/graphql/item/apps.gql +34 -0
  119. package/dist/runtime/runtime/graphql/item/disciplines.gql +17 -0
  120. package/dist/runtime/runtime/graphql/item/events.gql +120 -0
  121. package/dist/runtime/runtime/graphql/item/fellowships.gql +164 -0
  122. package/dist/runtime/runtime/graphql/item/files.gql +25 -0
  123. package/dist/runtime/runtime/graphql/item/mailing.gql +10 -0
  124. package/dist/runtime/runtime/graphql/item/news.gql +129 -0
  125. package/dist/runtime/runtime/graphql/item/people.gql +174 -0
  126. package/dist/runtime/runtime/graphql/item/projects.gql +171 -0
  127. package/dist/runtime/runtime/graphql/item/publications.gql +169 -0
  128. package/dist/runtime/runtime/graphql/item/tags.gql +13 -0
  129. package/dist/runtime/runtime/graphql/item/users.gql +14 -0
  130. package/dist/runtime/runtime/graphql/list/action.gql +31 -0
  131. package/dist/runtime/runtime/graphql/list/affiliations.gql +42 -0
  132. package/dist/runtime/runtime/graphql/list/apps.gql +42 -0
  133. package/dist/runtime/runtime/graphql/list/disciplines.gql +22 -0
  134. package/dist/runtime/runtime/graphql/list/events.gql +44 -0
  135. package/dist/runtime/runtime/graphql/list/fellowships.gql +53 -0
  136. package/dist/runtime/runtime/graphql/list/files.gql +37 -0
  137. package/dist/runtime/runtime/graphql/list/mailing.gql +22 -0
  138. package/dist/runtime/runtime/graphql/list/news.gql +40 -0
  139. package/dist/runtime/runtime/graphql/list/people.gql +50 -0
  140. package/dist/runtime/runtime/graphql/list/projects.gql +37 -0
  141. package/dist/runtime/runtime/graphql/list/publications.gql +38 -0
  142. package/dist/runtime/runtime/graphql/list/search.gql +161 -0
  143. package/dist/runtime/runtime/graphql/list/tags.gql +22 -0
  144. package/dist/runtime/runtime/graphql/list/users.gql +38 -0
  145. package/dist/runtime/runtime/graphql/login.gql +0 -0
  146. package/dist/runtime/runtime/plugins/pinia.d.ts +2 -0
  147. package/dist/runtime/runtime/plugins/pinia.js +134 -0
  148. package/dist/runtime/runtime/plugins/vuetify.d.ts +2 -0
  149. package/dist/runtime/runtime/plugins/vuetify.js +21 -0
  150. package/dist/runtime/runtime/public/default.png +0 -0
  151. package/dist/runtime/runtime/public/filters.json +72 -0
  152. package/dist/runtime/runtime/server/tsconfig.json +3 -0
  153. package/dist/runtime/runtime/stores/factory.d.ts +25 -0
  154. package/dist/runtime/runtime/stores/factory.js +19 -0
  155. package/dist/runtime/runtime/stores/root.d.ts +60 -0
  156. package/dist/runtime/runtime/stores/root.js +315 -0
  157. package/dist/runtime/runtime/translations/en.json +350 -0
  158. package/dist/runtime/runtime/translations/fr.json +349 -0
  159. package/dist/runtime/runtime/types/imports.d.ts +13 -0
  160. package/dist/runtime/runtime/types/stores.d.ts +11 -0
  161. package/dist/runtime/translations/en.json +1 -1
  162. package/package.json +2 -2
  163. /package/dist/runtime/{components → runtime/components}/people/GroupBadges.vue +0 -0
@@ -0,0 +1,53 @@
1
+ query listFellowships(
2
+ $options: ListInput = {}
3
+ $appId: ID = "iea"
4
+ $lang: String = "en"
5
+ ) {
6
+ listFellowships(options: $options, appId: $appId, lang: $lang) {
7
+ items {
8
+ id
9
+ slug {
10
+ fr
11
+ en
12
+ }
13
+ applicationStart
14
+ applicationStop
15
+ fellowshipType
16
+ disciplines {
17
+ createdAt
18
+ description
19
+ icon
20
+ name
21
+ updatedAt
22
+ }
23
+ image {
24
+ alt
25
+ backgroundColor
26
+ caption
27
+ copyright
28
+ license
29
+ licenseUrl
30
+ url
31
+ }
32
+ member {
33
+ name
34
+ url
35
+ image {
36
+ url
37
+ licenseUrl
38
+ license
39
+ copyright
40
+ caption
41
+ backgroundColor
42
+ alt
43
+ }
44
+ }
45
+ summary
46
+ name
47
+ url
48
+ publicationDate
49
+ status
50
+ }
51
+ total
52
+ }
53
+ }
@@ -0,0 +1,37 @@
1
+ query listFiles(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {
5
+ skip: 0
6
+ limit: 9
7
+ sortBy: ["start"]
8
+ sortDesc: false
9
+ filters: "{}"
10
+ }
11
+ ) {
12
+ listFiles(options: $options, appId: $appId, lang: $lang) {
13
+ items {
14
+ createdAt
15
+ file
16
+ fileType
17
+ hash
18
+ id
19
+ image {
20
+ alt
21
+ backgroundColor
22
+ caption
23
+ copyright
24
+ license
25
+ licenseUrl
26
+ url
27
+ }
28
+ name
29
+ path
30
+ size
31
+ thumb
32
+ updatedAt
33
+ url
34
+ }
35
+ total
36
+ }
37
+ }
@@ -0,0 +1,22 @@
1
+ query listMailing(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {
5
+ skip: 0
6
+ limit: 9
7
+ sortBy: ["start"]
8
+ sortDesc: false
9
+ filters: "{}"
10
+ }
11
+ ) {
12
+ listMailing(options: $options, appId: $appId, lang: $lang) {
13
+ items {
14
+ createdAt
15
+ date
16
+ description
17
+ name
18
+ updatedAt
19
+ }
20
+ total
21
+ }
22
+ }
@@ -0,0 +1,40 @@
1
+ query listNews(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listNews(options: $options, appId: $appId, lang: $lang) {
7
+ total
8
+ items {
9
+ slug {
10
+ fr
11
+ en
12
+ }
13
+ id
14
+ category
15
+ color
16
+ date
17
+ description
18
+ featured
19
+ summary
20
+ image {
21
+ alt
22
+ backgroundColor
23
+ caption
24
+ copyright
25
+ license
26
+ licenseUrl
27
+ url
28
+ }
29
+ tags {
30
+ createdAt
31
+ description
32
+ icon
33
+ name
34
+ updatedAt
35
+ }
36
+ name
37
+ url
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,50 @@
1
+ query listPeople(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listPeople(options: $options, appId: $appId, lang: $lang) {
7
+ items {
8
+ id
9
+ slug
10
+ biography
11
+ firstname
12
+ summary
13
+ groups {
14
+ board
15
+ fellows
16
+ sab
17
+ sponsor
18
+ team
19
+ vintage {
20
+ name
21
+ theme
22
+ url
23
+ year
24
+ }
25
+ }
26
+ image {
27
+ url
28
+ license
29
+ copyright
30
+ caption
31
+ backgroundColor
32
+ alt
33
+ }
34
+ lastname
35
+ socials {
36
+ idRef
37
+ instagram
38
+ linkedin
39
+ mendeley
40
+ orcid
41
+ researchgate
42
+ scholar
43
+ twitter
44
+ website
45
+ wikipedia
46
+ }
47
+ }
48
+ total
49
+ }
50
+ }
@@ -0,0 +1,37 @@
1
+ query listProjects(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listProjects(options: $options, appId: $appId, lang: $lang) {
7
+ total
8
+ items {
9
+ date
10
+ featured
11
+ id
12
+ image {
13
+ alt
14
+ backgroundColor
15
+ caption
16
+ license
17
+ copyright
18
+ licenseUrl
19
+ url
20
+ }
21
+ name
22
+ summary
23
+ url
24
+ tags {
25
+ createdAt
26
+ description
27
+ icon
28
+ name
29
+ updatedAt
30
+ }
31
+ slug {
32
+ fr
33
+ en
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,38 @@
1
+ query listPublications(
2
+ $appId: ID = "iea"
3
+ $lang: String = "en"
4
+ $options: ListInput = {}
5
+ ) {
6
+ listPublications(options: $options, appId: $appId, lang: $lang) {
7
+ items {
8
+ date
9
+ id
10
+ image {
11
+ alt
12
+ backgroundColor
13
+ caption
14
+ copyright
15
+ license
16
+ url
17
+ licenseUrl
18
+ }
19
+ summary
20
+ description
21
+ name
22
+ type
23
+ url
24
+ tags {
25
+ createdAt
26
+ description
27
+ name
28
+ icon
29
+ updatedAt
30
+ }
31
+ slug {
32
+ fr
33
+ en
34
+ }
35
+ }
36
+ total
37
+ }
38
+ }
@@ -0,0 +1,161 @@
1
+ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
2
+ search(appId: $appId, search: $search, lang: $lang) {
3
+ people {
4
+ items {
5
+ firstname
6
+ id
7
+ groups {
8
+ board
9
+ fellows
10
+ sab
11
+ sponsor
12
+ team
13
+ vintage {
14
+ name
15
+ theme
16
+ url
17
+ year
18
+ }
19
+ }
20
+ image {
21
+ alt
22
+ backgroundColor
23
+ caption
24
+ copyright
25
+ license
26
+ licenseUrl
27
+ url
28
+ }
29
+ lastname
30
+ slug
31
+ }
32
+ total
33
+ }
34
+ projects {
35
+ items {
36
+ date
37
+ id
38
+ featured
39
+ name
40
+ image {
41
+ alt
42
+ backgroundColor
43
+ caption
44
+ copyright
45
+ license
46
+ licenseUrl
47
+ url
48
+ }
49
+ subtitle
50
+ tags {
51
+ name
52
+ }
53
+ slug {
54
+ fr
55
+ en
56
+ }
57
+ }
58
+ total
59
+ }
60
+ publications {
61
+ items {
62
+ subtitle
63
+ name
64
+ image {
65
+ alt
66
+ backgroundColor
67
+ caption
68
+ copyright
69
+ licenseUrl
70
+ license
71
+ url
72
+ }
73
+ id
74
+ date
75
+ slug {
76
+ fr
77
+ en
78
+ }
79
+ }
80
+ total
81
+ }
82
+ events {
83
+ items {
84
+ availableSlots
85
+ bookingState
86
+ category
87
+ start
88
+ state
89
+ summary
90
+ eventType
91
+ slug {
92
+ fr
93
+ en
94
+ }
95
+ name
96
+ image {
97
+ alt
98
+ backgroundColor
99
+ caption
100
+ copyright
101
+ licenseUrl
102
+ license
103
+ url
104
+ }
105
+ }
106
+ total
107
+ }
108
+ fellowships {
109
+ total
110
+ items {
111
+ applicationStart
112
+ applicationStop
113
+ disciplines {
114
+ name
115
+ }
116
+ fellowshipStart
117
+ fellowshipType
118
+ fellowshipStop
119
+ id
120
+ image {
121
+ alt
122
+ backgroundColor
123
+ caption
124
+ copyright
125
+ license
126
+ licenseUrl
127
+ url
128
+ }
129
+ name
130
+ summary
131
+ slug {
132
+ fr
133
+ en
134
+ }
135
+ }
136
+ }
137
+ news {
138
+ total
139
+ items {
140
+ category
141
+ date
142
+ featured
143
+ id
144
+ image {
145
+ alt
146
+ backgroundColor
147
+ caption
148
+ copyright
149
+ license
150
+ licenseUrl
151
+ url
152
+ }
153
+ name
154
+ slug {
155
+ fr
156
+ en
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,22 @@
1
+ query listTags(
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
+ listTags(options: $options, appId: $appId, lang: $lang) {
13
+ items {
14
+ createdAt
15
+ description
16
+ icon
17
+ name
18
+ updatedAt
19
+ }
20
+ total
21
+ }
22
+ }
@@ -0,0 +1,38 @@
1
+ query listUsers(
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
+ listUsers(options: $options, appId: $appId, lang: $lang) {
13
+ items {
14
+ admin
15
+ branch
16
+ createdAt
17
+ email
18
+ profile {
19
+ country
20
+ firstname
21
+ image
22
+ lastname
23
+ linkedin
24
+ position
25
+ presentation
26
+ references
27
+ twitter
28
+ wikipedia
29
+ }
30
+ role
31
+ settings {
32
+ lang
33
+ }
34
+ status
35
+ }
36
+ total
37
+ }
38
+ }
File without changes
@@ -0,0 +1,2 @@
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,134 @@
1
+ import { createDynamicStore } from "../stores/factory.js";
2
+ import { useRootStore } from "../stores/root.js";
3
+ import { defineNuxtPlugin, useAppConfig } from "#app";
4
+ export default defineNuxtPlugin(async (nuxtApp) => {
5
+ const appConfig = useAppConfig();
6
+ const moduleImports = {
7
+ events: () => ({
8
+ model: import("@paris-ias/data/dist/list/events.js"),
9
+ queries: {
10
+ list: import("../graphql/list/events.gql"),
11
+ get: import("../graphql/item/events.gql")
12
+ }
13
+ }),
14
+ news: () => ({
15
+ model: import("@paris-ias/data/dist/list/news.js"),
16
+ queries: {
17
+ list: import("../graphql/list/news.gql"),
18
+ get: import("../graphql/item/news.gql")
19
+ }
20
+ }),
21
+ people: () => ({
22
+ model: import("@paris-ias/data/dist/list/people.js"),
23
+ queries: {
24
+ list: import("../graphql/list/people.gql"),
25
+ get: import("../graphql/item/people.gql")
26
+ }
27
+ }),
28
+ projects: () => ({
29
+ model: import("@paris-ias/data/dist/list/projects.js"),
30
+ queries: {
31
+ list: import("../graphql/list/projects.gql"),
32
+ get: import("../graphql/item/projects.gql")
33
+ }
34
+ }),
35
+ fellowships: () => ({
36
+ model: import("@paris-ias/data/dist/list/fellowships.js"),
37
+ queries: {
38
+ list: import("../graphql/list/fellowships.gql"),
39
+ get: import("../graphql/item/fellowships.gql")
40
+ }
41
+ }),
42
+ publications: () => ({
43
+ model: import("@paris-ias/data/dist/list/publications.js"),
44
+ queries: {
45
+ list: import("../graphql/list/publications.gql"),
46
+ get: import("../graphql/item/publications.gql")
47
+ }
48
+ }),
49
+ actions: () => ({
50
+ model: import("@paris-ias/data/dist/list/action.js"),
51
+ queries: {
52
+ list: import("../graphql/list/action.gql"),
53
+ get: import("../graphql/item/action.gql")
54
+ }
55
+ }),
56
+ affiliations: () => ({
57
+ model: import("@paris-ias/data/dist/list/affiliations.js"),
58
+ queries: {
59
+ list: import("../graphql/list/affiliations.gql"),
60
+ get: import("../graphql/item/affiliations.gql")
61
+ }
62
+ }),
63
+ disciplines: () => ({
64
+ model: import("@paris-ias/data/dist/list/disciplines.js"),
65
+ queries: {
66
+ list: import("../graphql/list/disciplines.gql"),
67
+ get: import("../graphql/item/disciplines.gql")
68
+ }
69
+ }),
70
+ files: () => ({
71
+ model: import("@paris-ias/data/dist/list/files.js"),
72
+ queries: {
73
+ list: import("../graphql/list/files.gql"),
74
+ get: import("../graphql/item/files.gql")
75
+ }
76
+ }),
77
+ mailing: () => ({
78
+ model: import("@paris-ias/data/dist/list/mailing.js"),
79
+ queries: {
80
+ list: import("../graphql/list/mailing.gql"),
81
+ get: import("../graphql/item/mailing.gql")
82
+ }
83
+ }),
84
+ tags: () => ({
85
+ model: import("@paris-ias/data/dist/list/tags.js"),
86
+ queries: {
87
+ list: import("../graphql/list/tags.gql"),
88
+ get: import("../graphql/item/tags.gql")
89
+ }
90
+ }),
91
+ apps: () => ({
92
+ model: import("@paris-ias/data/dist/list/apps.js"),
93
+ queries: {
94
+ list: import("../graphql/list/apps.gql"),
95
+ get: import("../graphql/item/apps.gql")
96
+ }
97
+ }),
98
+ users: () => ({
99
+ model: import("@paris-ias/data/dist/list/users.js"),
100
+ queries: {
101
+ list: import("../graphql/list/users.gql"),
102
+ get: import("../graphql/item/users.gql")
103
+ }
104
+ })
105
+ // Add other modules similarly...
106
+ };
107
+ const stores = {};
108
+ const queries = {};
109
+ const models = {};
110
+ const builtFilters = await import("../public/filters.json");
111
+ console.log("INITIALIZING STORES");
112
+ await Promise.all(
113
+ appConfig.list.modules.map(async (type) => {
114
+ try {
115
+ const imports = await moduleImports[type]();
116
+ const model = (await imports.model).default;
117
+ queries[type] = {
118
+ list: (await imports.queries.list).default,
119
+ get: (await imports.queries.get).default
120
+ };
121
+ models[type] = model;
122
+ stores[type] = createDynamicStore(type, model)();
123
+ } catch (error) {
124
+ console.error(`Failed to initialize ${type} store:`, error);
125
+ }
126
+ })
127
+ );
128
+ const rootStore = useRootStore();
129
+ nuxtApp.provide("models", models);
130
+ nuxtApp.provide("rootStore", rootStore);
131
+ nuxtApp.provide("stores", stores);
132
+ nuxtApp.provide("queries", queries);
133
+ nuxtApp.provide("filters", builtFilters);
134
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { createVuetify } from "vuetify";
2
+ import * as components from "vuetify/components";
3
+ import * as directives from "vuetify/directives";
4
+ import { defineNuxtPlugin } from "nuxt/app";
5
+ export default defineNuxtPlugin((nuxtApp) => {
6
+ const vuetify = createVuetify({
7
+ ssr: true,
8
+ components,
9
+ directives,
10
+ mobileBreakpoint: "sm",
11
+ /* thresholds: {
12
+ xs: 0,
13
+ sm: 340,
14
+ md: 540,
15
+ lg: 800,
16
+ xl: 1280,
17
+ }, */
18
+ });
19
+
20
+ nuxtApp.vueApp.use(vuetify);
21
+ });