@fleetbase/solid-engine 0.0.2 → 0.0.4

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 (70) hide show
  1. package/LICENSE.md +651 -21
  2. package/README.md +89 -18
  3. package/addon/components/explorer-header.hbs +18 -0
  4. package/addon/components/explorer-header.js +25 -0
  5. package/addon/components/modals/backup-pod.hbs +3 -0
  6. package/addon/components/modals/create-pod.hbs +5 -0
  7. package/addon/components/modals/resync-pod.hbs +3 -0
  8. package/addon/components/table/cell/pod-content-actions.hbs +32 -0
  9. package/addon/components/table/cell/pod-content-actions.js +73 -0
  10. package/addon/components/table/cell/pod-content-name.hbs +8 -0
  11. package/addon/components/table/cell/pod-content-name.js +16 -0
  12. package/addon/controllers/account.js +130 -0
  13. package/addon/controllers/application.js +16 -13
  14. package/addon/controllers/home.js +23 -0
  15. package/addon/controllers/pods/explorer/content.js +12 -0
  16. package/addon/controllers/pods/explorer.js +149 -0
  17. package/addon/controllers/pods/index/pod.js +12 -0
  18. package/addon/controllers/pods/index.js +137 -0
  19. package/addon/routes/account.js +3 -0
  20. package/addon/routes/home.js +3 -0
  21. package/addon/routes/pods/explorer/content.js +10 -0
  22. package/addon/routes/pods/explorer.js +44 -0
  23. package/addon/routes/pods/index/pod.js +3 -0
  24. package/addon/routes/pods/index.js +21 -0
  25. package/addon/routes.js +12 -1
  26. package/addon/services/explorer-state.js +101 -0
  27. package/addon/styles/solid-engine.css +46 -0
  28. package/addon/templates/account.hbs +42 -0
  29. package/addon/templates/application.hbs +17 -12
  30. package/addon/templates/home.hbs +11 -0
  31. package/addon/templates/pods/explorer/content.hbs +19 -0
  32. package/addon/templates/pods/explorer.hbs +20 -0
  33. package/addon/templates/pods/index/pod.hbs +11 -0
  34. package/addon/templates/pods/index.hbs +19 -0
  35. package/app/components/explorer-header.js +1 -0
  36. package/app/components/modals/backup-pod.js +1 -0
  37. package/app/components/modals/create-pod.js +1 -0
  38. package/app/components/modals/resync-pod.js +1 -0
  39. package/app/components/table/cell/pod-content-actions.js +1 -0
  40. package/app/components/table/cell/pod-content-name.js +1 -0
  41. package/app/controllers/account.js +1 -0
  42. package/app/controllers/home.js +1 -0
  43. package/app/controllers/pods/explorer/content.js +1 -0
  44. package/app/controllers/pods/explorer.js +1 -0
  45. package/app/controllers/pods/index/pod.js +1 -0
  46. package/app/controllers/pods/index.js +1 -0
  47. package/app/routes/account.js +1 -0
  48. package/app/routes/home.js +1 -0
  49. package/app/routes/pods/explorer/content.js +1 -0
  50. package/app/routes/pods/explorer.js +1 -0
  51. package/app/routes/pods/index/pod.js +1 -0
  52. package/app/routes/pods/index.js +1 -0
  53. package/app/services/explorer-state.js +1 -0
  54. package/app/templates/account.js +1 -0
  55. package/app/templates/home.js +1 -0
  56. package/app/templates/pods/explorer/content.js +1 -0
  57. package/app/templates/pods/explorer.js +1 -0
  58. package/app/templates/pods/index/pod.js +1 -0
  59. package/app/templates/pods/index.js +1 -0
  60. package/composer.json +10 -4
  61. package/extension.json +2 -2
  62. package/package.json +5 -5
  63. package/server/data/pods.json +328 -0
  64. package/server/src/Client/OpenIDConnectClient.php +2 -2
  65. package/server/src/Client/SolidClient.php +1 -1
  66. package/server/src/Http/Controllers/SolidController.php +57 -4
  67. package/server/src/LegacyClient/OIDCClient.php +1 -1
  68. package/server/src/LegacyClient/SolidClient.php +2 -1
  69. package/server/src/Support/Utils.php +38 -0
  70. package/server/src/routes.php +1 -0
@@ -0,0 +1,20 @@
1
+ <ExplorerHeader @current={{@model.id}} @pod={{this.pod}} @onStateClicked={{this.viewContents}} @searchPlaceholder="Search Contents" @searchQuery={{this.query}} @onSearch={{perform this.search}}>
2
+ <Button @icon="arrow-left" @onClick={{this.back}} @helpText="Go Back" class="mr-2" />
3
+ <Button @icon="refresh" @onClick={{this.reload}} @helpText="Refresh" class="mr-2" />
4
+ {{#if (safe-has this.table "selectedRows")}}
5
+ <DropdownButton @icon="layer-group" @text="Bulk Action" @type="magic" @size="sm" @buttonWrapperClass="mr-2" @contentClass="dropdown-menu" as |dd|>
6
+ <div class="next-dd-menu mt-2 mx-0">
7
+ <div class="px-1">
8
+ <a href="#" class="text-red-500 next-dd-item" {{on "click" (dropdown-fn dd this.deleteSelected)}}>
9
+ Delete Selected Items
10
+ </a>
11
+ </div>
12
+ </div>
13
+ </DropdownButton>
14
+ {{/if}}
15
+ <Button @icon="plus" @iconPrefix="fas" @type="primary" @text="Create new Something" class="mr-2" @onClick={{this.createSomething}} />
16
+ </ExplorerHeader>
17
+ <Layout::Section::Body>
18
+ <Table @rows={{@model.contents}} @columns={{this.columns}} @selectable={{true}} @canSelectAll={{true}} @onSetup={{fn (mut this.table)}} @tfootVerticalOffset="53" @tfootVerticalOffsetElements=".next-view-section-subheader" />
19
+ </Layout::Section::Body>
20
+ {{outlet}}
@@ -0,0 +1,11 @@
1
+ <Overlay @isOpen={{true}} @onLoad={{this.setOverlayContext}} @position="right" @noBackdrop={{true}} @fullHeight={{true}} @width="600px" @isResizable={{true}}>
2
+ <Overlay::Header @title="Pod" @hideStatusDot={{true}} @titleWrapperClass="leading-5">
3
+ <div class="flex flex-1 justify-end">
4
+ <Button @type="default" @icon="times" @helpText={{t "common.close"}} @onClick={{this.onPressClose}} />
5
+ </div>
6
+ </Overlay::Header>
7
+
8
+ <Overlay::Body class="without-padding">
9
+
10
+ </Overlay::Body>
11
+ </Overlay>
@@ -0,0 +1,19 @@
1
+ <Layout::Section::Header @title="Pods" @searchPlaceholder="Search Pods by Keyword" @searchQuery={{this.query}} @onSearch={{perform this.search}}>
2
+ <Button @icon="refresh" @onClick={{this.reload}} @helpText="Refresh" class="mr-2" />
3
+ {{#if (safe-has this.table "selectedRows")}}
4
+ <DropdownButton @icon="layer-group" @text="Bulk Action" @type="magic" @size="sm" @buttonWrapperClass="mr-2" @contentClass="dropdown-menu" as |dd|>
5
+ <div class="next-dd-menu mt-2 mx-0">
6
+ <div class="px-1">
7
+ <a href="#" class="text-red-500 next-dd-item" {{on "click" (dropdown-fn dd this.deleteSelectedPods)}}>
8
+ Delete Selected Pods
9
+ </a>
10
+ </div>
11
+ </div>
12
+ </DropdownButton>
13
+ {{/if}}
14
+ <Button @icon="plus" @iconPrefix="fas" @type="primary" @text="Create new Pod" class="mr-2" @onClick={{this.createPod}} />
15
+ </Layout::Section::Header>
16
+ <Layout::Section::Body>
17
+ <Table @rows={{@model}} @columns={{this.columns}} @selectable={{true}} @canSelectAll={{true}} @onSetup={{fn (mut this.table)}} @tfootVerticalOffset="53" @tfootVerticalOffsetElements=".next-view-section-subheader" />
18
+ </Layout::Section::Body>
19
+ {{outlet}}
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/explorer-header';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/modals/backup-pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/modals/create-pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/modals/resync-pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/table/cell/pod-content-actions';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/components/table/cell/pod-content-name';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/account';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/home';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/pods/explorer/content';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/pods/explorer';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/pods/index/pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/controllers/pods/index';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/account';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/home';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/pods/explorer/content';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/pods/explorer';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/pods/index/pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/routes/pods/index';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/services/explorer-state';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/account';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/home';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/pods/explorer/content';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/pods/explorer';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/pods/index/pod';
@@ -0,0 +1 @@
1
+ export { default } from '@fleetbase/solid-engine/templates/pods/index';
package/composer.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbase/solid-api",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Solid Protocol Extension to Store and Share Data with Fleetbase",
5
5
  "keywords": [
6
6
  "fleetbase-extension",
@@ -15,7 +15,7 @@
15
15
  "ember-addon",
16
16
  "ember-engine"
17
17
  ],
18
- "license": "MIT",
18
+ "license": "AGPL-3.0-or-later",
19
19
  "authors": [
20
20
  {
21
21
  "name": "Fleetbase Pte Ltd.",
@@ -28,8 +28,8 @@
28
28
  ],
29
29
  "require": {
30
30
  "php": "^8.0",
31
- "fleetbase/core-api": "^1.4.16",
32
- "fleetbase/fleetops-api": "^0.4.25",
31
+ "fleetbase/core-api": "^1.4.27",
32
+ "fleetbase/fleetops-api": "^0.5.2",
33
33
  "php-http/guzzle7-adapter": "^1.0",
34
34
  "psr/http-factory-implementation": "*",
35
35
  "jumbojett/openid-connect-php": "^0.9.10",
@@ -50,6 +50,12 @@
50
50
  "phpstan/phpstan": "^1.10.38",
51
51
  "symfony/var-dumper": "^5.4.29"
52
52
  },
53
+ "repositories": [
54
+ {
55
+ "type": "vcs",
56
+ "url": "https://github.com/fleetbase/laravel-model-caching"
57
+ }
58
+ ],
53
59
  "autoload": {
54
60
  "psr-4": {
55
61
  "Fleetbase\\Solid\\": "server/src/",
package/extension.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "Solid",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "Solid Protocol Extension to Store and Share Data with Fleetbase",
5
5
  "repository": "https://github.com/fleetbase/solid",
6
- "license": "MIT",
6
+ "license": "AGPL-3.0-or-later",
7
7
  "author": "Fleetbase Pte Ltd <hello@fleetbase.io>"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/solid-engine",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Solid Protocol Extension to Store and Share Data with Fleetbase",
5
5
  "fleetbase": {
6
6
  "route": "solid-protocol"
@@ -19,7 +19,7 @@
19
19
  "ember-engine"
20
20
  ],
21
21
  "repository": "https://github.com/fleetbase/solid",
22
- "license": "MIT",
22
+ "license": "AGPL-3.0-or-later",
23
23
  "author": "Fleetbase Pte Ltd <hello@fleetbase.io>",
24
24
  "directories": {
25
25
  "app": "app",
@@ -45,9 +45,9 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@babel/core": "^7.23.2",
48
- "@fleetbase/ember-core": "^0.2.8",
49
- "@fleetbase/ember-ui": "^0.2.12",
50
- "@fleetbase/fleetops-data": "^0.1.14",
48
+ "@fleetbase/ember-core": "^0.2.12",
49
+ "@fleetbase/ember-ui": "^0.2.18",
50
+ "@fleetbase/fleetops-data": "^0.1.16",
51
51
  "@fortawesome/ember-fontawesome": "^0.4.1",
52
52
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
53
53
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
@@ -0,0 +1,328 @@
1
+ [
2
+ {
3
+ "id": "pod_x2y4bdc",
4
+ "name": "Fleetbase-Sync-2024-03-01",
5
+ "slug": "fleetbase-sync-2024-03-01",
6
+ "size": "346kb",
7
+ "updated_at": "May 07, 2024 13:25",
8
+ "created_at": "May 07, 2024 13:25",
9
+ "contents": [
10
+ {
11
+ "id": "content_wsyz38",
12
+ "name": "Orders-May-2024",
13
+ "slug": "orders-may-2024",
14
+ "size": "80kb",
15
+ "type": "folder",
16
+ "updated_at": "May 05, 2024 14:33",
17
+ "created_at": "May 05, 2024 14:33",
18
+ "contents": [
19
+ {
20
+ "id": "content_wxyz12",
21
+ "name": "EmployeeHandbook_2024.pdf",
22
+ "slug": "employeehandbook-2024-pdf",
23
+ "size": "450kb",
24
+ "type": "file",
25
+ "updated_at": "May 07, 2024 14:22",
26
+ "created_at": "May 07, 2024 14:22"
27
+ },
28
+ {
29
+ "id": "content_345ghi",
30
+ "name": "FinancialSummary_Annual_2024.xlsx",
31
+ "slug": "financialsummary-annual-2024-xlsx",
32
+ "size": "625kb",
33
+ "type": "file",
34
+ "updated_at": "May 07, 2024 14:24",
35
+ "created_at": "May 07, 2024 14:24"
36
+ },
37
+ {
38
+ "id": "content_789jkl",
39
+ "name": "DeveloperGuide_Version2.md",
40
+ "slug": "developerguide-version2-md",
41
+ "size": "75kb",
42
+ "type": "file",
43
+ "updated_at": "May 07, 2024 14:26",
44
+ "created_at": "May 07, 2024 14:26"
45
+ },
46
+ {
47
+ "id": "content_mnopqr",
48
+ "name": "ProjectTimeline_Roadmap2024.gantt",
49
+ "slug": "projecttimeline-roadmap2024-gantt",
50
+ "size": "1.1mb",
51
+ "type": "file",
52
+ "updated_at": "May 07, 2024 14:28",
53
+ "created_at": "May 07, 2024 14:28"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "id": "content_xjdwkj",
59
+ "name": "RandomCode13.txt",
60
+ "slug": "random-code-13-txt",
61
+ "size": "346kb",
62
+ "type": "file",
63
+ "updated_at": "May 07, 2024 13:25",
64
+ "created_at": "May 07, 2024 13:25"
65
+ },
66
+ {
67
+ "id": "content_1a2b3c",
68
+ "name": "SalesReport_Q1_2024.xlsx",
69
+ "slug": "salesreport-q1-2024-xlsx",
70
+ "size": "525kb",
71
+ "type": "file",
72
+ "updated_at": "May 07, 2024 14:10",
73
+ "created_at": "May 07, 2024 14:10"
74
+ },
75
+ {
76
+ "id": "content_4d5e6f",
77
+ "name": "CustomerFeedback_May2024.pdf",
78
+ "slug": "customerfeedback-may2024-pdf",
79
+ "size": "275kb",
80
+ "type": "file",
81
+ "updated_at": "May 07, 2024 14:12",
82
+ "created_at": "May 07, 2024 14:12"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "id": "pod_a9c7jkl",
88
+ "name": "Fleetbase-Backup-2024-04-19",
89
+ "slug": "fleetbase-backup-2024-04-19",
90
+ "size": "420kb",
91
+ "updated_at": "May 08, 2024 11:00",
92
+ "created_at": "May 08, 2024 11:00",
93
+ "contents": [
94
+ {
95
+ "id": "content_dn3892",
96
+ "name": "Vehicles-May-2024",
97
+ "slug": "vehicles-may-2024",
98
+ "size": "80kb",
99
+ "type": "folder",
100
+ "updated_at": "May 05, 2024 14:33",
101
+ "created_at": "May 05, 2024 14:33",
102
+ "contents": [
103
+ {
104
+ "id": "content_stuvwx",
105
+ "name": "HR_PolicyDocument.pdf",
106
+ "slug": "hr-policydocument-pdf",
107
+ "size": "350kb",
108
+ "type": "file",
109
+ "updated_at": "May 07, 2024 14:30",
110
+ "created_at": "May 07, 2024 14:30"
111
+ },
112
+ {
113
+ "id": "content_yza123",
114
+ "name": "DesignMockup_2024.sketch",
115
+ "slug": "designmockup-2024-sketch",
116
+ "size": "3.2mb",
117
+ "type": "file",
118
+ "updated_at": "May 07, 2024 14:32",
119
+ "created_at": "May 07, 2024 14:32"
120
+ },
121
+ {
122
+ "id": "content_456bcd",
123
+ "name": "BugTracker_Report_Apr2024.xlsx",
124
+ "slug": "bugtracker-report-apr2024-xlsx",
125
+ "size": "280kb",
126
+ "type": "file",
127
+ "updated_at": "May 07, 2024 14:34",
128
+ "created_at": "May 07, 2024 14:34"
129
+ },
130
+ {
131
+ "id": "content_789efg",
132
+ "name": "TrainingMaterials_Mar2024.pptx",
133
+ "slug": "trainingmaterials-mar2024-pptx",
134
+ "size": "1.5mb",
135
+ "type": "file",
136
+ "updated_at": "May 07, 2024 14:36",
137
+ "created_at": "May 07, 2024 14:36"
138
+ },
139
+ {
140
+ "id": "content_hijklm",
141
+ "name": "TestPlan_ReleaseCycle_Apr2024.docx",
142
+ "slug": "testplan-releasecycle-apr2024-docx",
143
+ "size": "650kb",
144
+ "type": "file",
145
+ "updated_at": "May 07, 2024 14:38",
146
+ "created_at": "May 07, 2024 14:38"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "id": "content_7g8h9i",
152
+ "name": "ProductCatalog_Spring2024.csv",
153
+ "slug": "productcatalog-spring2024-csv",
154
+ "size": "1.2mb",
155
+ "type": "file",
156
+ "updated_at": "May 07, 2024 14:15",
157
+ "created_at": "May 07, 2024 14:15"
158
+ },
159
+ {
160
+ "id": "content_jklmno",
161
+ "name": "ProjectPlan_SummerLaunch.docx",
162
+ "slug": "projectplan-summerlaunch-docx",
163
+ "size": "825kb",
164
+ "type": "file",
165
+ "updated_at": "May 07, 2024 14:18",
166
+ "created_at": "May 07, 2024 14:18"
167
+ },
168
+ {
169
+ "id": "content_pqrsuv",
170
+ "name": "MarketingStrategy_Q3_2024.pptx",
171
+ "slug": "marketingstrategy-q3-2024-pptx",
172
+ "size": "2.3mb",
173
+ "type": "file",
174
+ "updated_at": "May 07, 2024 14:20",
175
+ "created_at": "May 07, 2024 14:20"
176
+ },
177
+ {
178
+ "id": "content_wxyz12",
179
+ "name": "EmployeeHandbook_2024.pdf",
180
+ "slug": "employeehandbook-2024-pdf",
181
+ "size": "450kb",
182
+ "type": "file",
183
+ "updated_at": "May 07, 2024 14:22",
184
+ "created_at": "May 07, 2024 14:22"
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "id": "pod_b3z1mno",
190
+ "name": "Fleetbase-Demo-2024-05-01",
191
+ "slug": "fleetbase-demo-2024-05-01",
192
+ "size": "512kb",
193
+ "updated_at": "May 09, 2024 09:45",
194
+ "created_at": "May 09, 2024 09:45",
195
+ "contents": [
196
+ {
197
+ "id": "content_dnsus7s",
198
+ "name": "Issues-May-2024",
199
+ "slug": "issues-may-2024",
200
+ "size": "80kb",
201
+ "type": "folder",
202
+ "updated_at": "May 05, 2024 14:33",
203
+ "created_at": "May 05, 2024 14:33",
204
+ "contents": [
205
+ {
206
+ "id": "content_d732sz",
207
+ "name": "Fleet-Reports-May-2024",
208
+ "slug": "fleet-reports-may-2024",
209
+ "size": "80kb",
210
+ "type": "folder",
211
+ "updated_at": "May 05, 2024 14:33",
212
+ "created_at": "May 05, 2024 14:33",
213
+ "contents": [
214
+ {
215
+ "id": "content_pqrstuv",
216
+ "name": "MockDataSet1.1.json",
217
+ "slug": "mockdataset1-1-json",
218
+ "size": "250kb",
219
+ "type": "file",
220
+ "updated_at": "May 07, 2024 14:52",
221
+ "created_at": "May 07, 2024 14:52"
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "id": "content_nopqrs",
227
+ "name": "ProjectSpecification_V3.pdf",
228
+ "slug": "projectspecification-v3-pdf",
229
+ "size": "990kb",
230
+ "type": "file",
231
+ "updated_at": "May 07, 2024 14:40",
232
+ "created_at": "May 07, 2024 14:40"
233
+ },
234
+ {
235
+ "id": "content_tuvwxyz",
236
+ "name": "DeploymentScript_Linux.bash",
237
+ "slug": "deploymentscript-linux-bash",
238
+ "size": "45kb",
239
+ "type": "file",
240
+ "updated_at": "May 07, 2024 14:42",
241
+ "created_at": "May 07, 2024 14:42"
242
+ },
243
+ {
244
+ "id": "content_abc123",
245
+ "name": "QAReport_EndOfQuarter_Mar2024.pdf",
246
+ "slug": "qareport-endofquarter-mar2024-pdf",
247
+ "size": "1.0mb",
248
+ "type": "file",
249
+ "updated_at": "May 07, 2024 14:44",
250
+ "created_at": "May 07, 2024 14:44"
251
+ },
252
+ {
253
+ "id": "content_456def",
254
+ "name": "ReleaseNotes_Patch1.3.json",
255
+ "slug": "releasenotes-patch1-3-json",
256
+ "size": "150kb",
257
+ "type": "file",
258
+ "updated_at": "May 07, 2024 14:46",
259
+ "created_at": "May 07, 2024 14:46"
260
+ },
261
+ {
262
+ "id": "content_789ghi",
263
+ "name": "SprintRetrospective_May2024.csv",
264
+ "slug": "sprintretrospective-may2024-csv",
265
+ "size": "340kb",
266
+ "type": "file",
267
+ "updated_at": "May 07, 2024 14:48",
268
+ "created_at": "May 07, 2024 14:48"
269
+ },
270
+ {
271
+ "id": "content_jklmno",
272
+ "name": "CodeReview_Analysis.xlsx",
273
+ "slug": "codereview-analysis-xlsx",
274
+ "size": "480kb",
275
+ "type": "file",
276
+ "updated_at": "May 07, 2024 14:50",
277
+ "created_at": "May 07, 2024 14:50"
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "id": "content_1a2b3c",
283
+ "name": "SalesReport_Q1_2024.xlsx",
284
+ "slug": "salesreport-q1-2024-xlsx",
285
+ "size": "525kb",
286
+ "type": "file",
287
+ "updated_at": "May 07, 2024 14:10",
288
+ "created_at": "May 07, 2024 14:10"
289
+ },
290
+ {
291
+ "id": "content_4d5e6f",
292
+ "name": "CustomerFeedback_May2024.pdf",
293
+ "slug": "customerfeedback-may2024-pdf",
294
+ "size": "275kb",
295
+ "type": "file",
296
+ "updated_at": "May 07, 2024 14:12",
297
+ "created_at": "May 07, 2024 14:12"
298
+ },
299
+ {
300
+ "id": "content_7g8h9i",
301
+ "name": "ProductCatalog_Spring2024.csv",
302
+ "slug": "productcatalog-spring2024-csv",
303
+ "size": "1.2mb",
304
+ "type": "file",
305
+ "updated_at": "May 07, 2024 14:15",
306
+ "created_at": "May 07, 2024 14:15"
307
+ },
308
+ {
309
+ "id": "content_jklmno",
310
+ "name": "ProjectPlan_SummerLaunch.docx",
311
+ "slug": "projectplan-summerlaunch-docx",
312
+ "size": "825kb",
313
+ "type": "file",
314
+ "updated_at": "May 07, 2024 14:18",
315
+ "created_at": "May 07, 2024 14:18"
316
+ },
317
+ {
318
+ "id": "content_pqrsuv",
319
+ "name": "MarketingStrategy_Q3_2024.pptx",
320
+ "slug": "marketingstrategy-q3-2024-pptx",
321
+ "size": "2.3mb",
322
+ "type": "file",
323
+ "updated_at": "May 07, 2024 14:20",
324
+ "created_at": "May 07, 2024 14:20"
325
+ }
326
+ ]
327
+ }
328
+ ]
@@ -86,7 +86,7 @@ final class OpenIDConnectClient extends BaseOpenIDConnectClient
86
86
  return parent::authenticate();
87
87
  }
88
88
 
89
- private function setClientCredentials(string $clientName = CLIENT_NAME, $clientCredentials, bool $save = false, \Closure $callback = null): OpenIDConnectClient
89
+ private function setClientCredentials(string $clientName = CLIENT_NAME, $clientCredentials, bool $save = false, ?\Closure $callback = null): OpenIDConnectClient
90
90
  {
91
91
  $this->setClientID($clientCredentials->client_id);
92
92
  $this->setClientName($clientCredentials->client_name);
@@ -156,7 +156,7 @@ final class OpenIDConnectClient extends BaseOpenIDConnectClient
156
156
  return $value;
157
157
  }
158
158
 
159
- public function getOpenIdConfiguration(string $key = null)
159
+ public function getOpenIdConfiguration(?string $key = null)
160
160
  {
161
161
  $openIdConfigResponse = $this->solid->get('.well-known/openid-configuration');
162
162
  if ($openIdConfigResponse instanceof Response) {
@@ -70,7 +70,7 @@ class SolidClient
70
70
  *
71
71
  * @return string the fully constructed URL
72
72
  */
73
- private function createRequestUrl(string $uri = null): string
73
+ private function createRequestUrl(?string $uri = null): string
74
74
  {
75
75
  if (Str::startsWith($uri, 'http')) {
76
76
  return $uri;