@terrestris/shogun-admin 16.1.0-next.1 → 17.0.0-next.10

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 (260) hide show
  1. package/README.md +4 -0
  2. package/package.json +116 -107
  3. package/dist/build/assets/App-BP74CNP_.js +0 -1258
  4. package/dist/build/assets/__federation_shared_react-CvClEUjg.js +0 -9
  5. package/dist/build/assets/__federation_shared_react-dom-BxqGBSTk.js +0 -24
  6. package/dist/build/assets/__federation_shared_react-i18next-MD_bYxcL.js +0 -1
  7. package/dist/build/assets/__federation_shared_react-router-dom-Vy7O6TNk.js +0 -2
  8. package/dist/build/assets/_commonjsHelpers-BosuxZz1.js +0 -1
  9. package/dist/build/assets/_virtual___federation_fn_import-PJHfB1tr.js +0 -1
  10. package/dist/build/assets/abap-DRC6TkPh.js +0 -6
  11. package/dist/build/assets/apex-BuapDI9Y.js +0 -6
  12. package/dist/build/assets/azcli-BypH-vXm.js +0 -6
  13. package/dist/build/assets/bat-BY6pwuIY.js +0 -6
  14. package/dist/build/assets/bicep-gRuQeaLk.js +0 -7
  15. package/dist/build/assets/cameligo-ul-Lp4lw.js +0 -6
  16. package/dist/build/assets/clojure-DeYg-96x.js +0 -6
  17. package/dist/build/assets/codicon-DCmgc-ay.ttf +0 -0
  18. package/dist/build/assets/coffee-CfnpWUYo.js +0 -6
  19. package/dist/build/assets/cpp-C9L3yaDO.js +0 -6
  20. package/dist/build/assets/csharp-DWGz5Zuj.js +0 -6
  21. package/dist/build/assets/csp-DrRCxMg5.js +0 -6
  22. package/dist/build/assets/css-BfLuTCmN.js +0 -8
  23. package/dist/build/assets/css.worker-BAJD-bzR.js +0 -83
  24. package/dist/build/assets/cssMode-Btzqpc23.js +0 -4
  25. package/dist/build/assets/cypher-DoFvH58O.js +0 -6
  26. package/dist/build/assets/dart-DIovg4uR.js +0 -6
  27. package/dist/build/assets/dockerfile-D2PfwrvU.js +0 -6
  28. package/dist/build/assets/ecl-C_scCXcs.js +0 -6
  29. package/dist/build/assets/editor.worker-MnaSPjGA.js +0 -11
  30. package/dist/build/assets/elixir-BRk-K-rg.js +0 -6
  31. package/dist/build/assets/favicon-CwZoocDV.ico +0 -0
  32. package/dist/build/assets/flow9-DLs3tTet.js +0 -6
  33. package/dist/build/assets/freemarker2-CoZuEXJi.js +0 -3
  34. package/dist/build/assets/fsharp-D0UiDa5C.js +0 -6
  35. package/dist/build/assets/go-CyVeKkvQ.js +0 -6
  36. package/dist/build/assets/graphql-BygKL3ZF.js +0 -6
  37. package/dist/build/assets/handlebars-BQ2vXFqT.js +0 -1
  38. package/dist/build/assets/hcl-D_OY6ada.js +0 -6
  39. package/dist/build/assets/html-S9BExIX4.js +0 -1
  40. package/dist/build/assets/html.worker-Bp7pNElH.js +0 -460
  41. package/dist/build/assets/htmlMode-D6oh_W-n.js +0 -4
  42. package/dist/build/assets/index-D5X_Cuhy.js +0 -139
  43. package/dist/build/assets/ini-BTpWsGps.js +0 -6
  44. package/dist/build/assets/java-3TATJI7h.js +0 -6
  45. package/dist/build/assets/javascript-C_BsKwTq.js +0 -1
  46. package/dist/build/assets/json.worker-BfIkrIax.js +0 -48
  47. package/dist/build/assets/jsonMode-CFQnTUoH.js +0 -10
  48. package/dist/build/assets/julia-DDpSJMW6.js +0 -6
  49. package/dist/build/assets/kotlin-DVYH6Lj_.js +0 -6
  50. package/dist/build/assets/less-CuFlys0T.js +0 -7
  51. package/dist/build/assets/lexon-m09vb5r-.js +0 -6
  52. package/dist/build/assets/liquid-CsJvQ-Gd.js +0 -1
  53. package/dist/build/assets/lua-D2Z7JJdl.js +0 -6
  54. package/dist/build/assets/m3-B2Cf9XSq.js +0 -6
  55. package/dist/build/assets/markdown-BXYnMxBe.js +0 -6
  56. package/dist/build/assets/mdx-CcsV6KQM.js +0 -1
  57. package/dist/build/assets/mips-Ckkbw-AO.js +0 -6
  58. package/dist/build/assets/msdax-B5uW3Zvf.js +0 -6
  59. package/dist/build/assets/mysql-B8ssZoUh.js +0 -6
  60. package/dist/build/assets/objective-c-CrrKwR0a.js +0 -6
  61. package/dist/build/assets/pascal-BWBTHuhh.js +0 -6
  62. package/dist/build/assets/pascaligo-BGLI1Hdo.js +0 -6
  63. package/dist/build/assets/perl-DDrv2Hr-.js +0 -6
  64. package/dist/build/assets/pgsql-DLPipH_Q.js +0 -6
  65. package/dist/build/assets/php-CTNlIIiR.js +0 -6
  66. package/dist/build/assets/pla-2oJWbEOo.js +0 -6
  67. package/dist/build/assets/postiats-DOk3G3cc.js +0 -6
  68. package/dist/build/assets/powerquery-Dgyr3wWZ.js +0 -6
  69. package/dist/build/assets/powershell-B_i9asfM.js +0 -6
  70. package/dist/build/assets/protobuf-CV9EbfTh.js +0 -7
  71. package/dist/build/assets/pug-CCBS_C5_.js +0 -6
  72. package/dist/build/assets/python-BNsLUA-F.js +0 -1
  73. package/dist/build/assets/qsharp-BLuZWbUW.js +0 -6
  74. package/dist/build/assets/r-CzF1MCbP.js +0 -6
  75. package/dist/build/assets/razor-CwLyy1uA.js +0 -1
  76. package/dist/build/assets/redis-C75U4IDy.js +0 -6
  77. package/dist/build/assets/redshift-Bc5xkKR1.js +0 -6
  78. package/dist/build/assets/restructuredtext-DmdQbaLT.js +0 -6
  79. package/dist/build/assets/ruby-DB0RB20n.js +0 -6
  80. package/dist/build/assets/rust-UMmp-gVE.js +0 -6
  81. package/dist/build/assets/sb-DVG02705.js +0 -6
  82. package/dist/build/assets/scala-DvSxYeG4.js +0 -6
  83. package/dist/build/assets/scheme-yf5bffbF.js +0 -6
  84. package/dist/build/assets/scss-Bzb7OGdO.js +0 -8
  85. package/dist/build/assets/shell-FNqbgIOG.js +0 -6
  86. package/dist/build/assets/shogun-spinner-BmOUi9Ar.gif +0 -0
  87. package/dist/build/assets/shogun_logo-B9ohJOpL.png +0 -0
  88. package/dist/build/assets/solidity-DyKutqhl.js +0 -6
  89. package/dist/build/assets/sophia-B4VqtPa2.js +0 -6
  90. package/dist/build/assets/sparql-B7alP455.js +0 -6
  91. package/dist/build/assets/sql-D7lU1fdU.js +0 -6
  92. package/dist/build/assets/st-VuadG5SK.js +0 -6
  93. package/dist/build/assets/style-CJpWC7V3.css +0 -1
  94. package/dist/build/assets/swift-BYtUz8ZP.js +0 -8
  95. package/dist/build/assets/systemverilog-DOAuugfS.js +0 -6
  96. package/dist/build/assets/tcl-CXKOl_mN.js +0 -6
  97. package/dist/build/assets/ts.worker-BBBnYv8q.js +0 -51333
  98. package/dist/build/assets/tsMode-meseu6bK.js +0 -11
  99. package/dist/build/assets/twig-D9yiNO04.js +0 -6
  100. package/dist/build/assets/typescript-BuOvk1sq.js +0 -1
  101. package/dist/build/assets/typespec-BupSXVCO.js +0 -6
  102. package/dist/build/assets/vb-ZlaFEk-P.js +0 -6
  103. package/dist/build/assets/wgsl-DrbANKle.js +0 -303
  104. package/dist/build/assets/xml-BXx9C-xA.js +0 -1
  105. package/dist/build/assets/yaml-CuMedh6B.js +0 -1
  106. package/dist/build/index.html +0 -24
  107. package/dist/lib/App.d.ts +0 -4
  108. package/dist/lib/App.js +0 -122
  109. package/dist/lib/Component/Dashboard/Dashboard.d.ts +0 -12
  110. package/dist/lib/Component/Dashboard/Dashboard.js +0 -10
  111. package/dist/lib/Component/Dashboard/DashboardCard/DashboardCard.d.ts +0 -13
  112. package/dist/lib/Component/Dashboard/DashboardCard/DashboardCard.js +0 -7
  113. package/dist/lib/Component/Dashboard/DashboardStatistics/DashboardStatistics.d.ts +0 -15
  114. package/dist/lib/Component/Dashboard/DashboardStatistics/DashboardStatistics.js +0 -30
  115. package/dist/lib/Component/EvictCache/EvictCache.d.ts +0 -6
  116. package/dist/lib/Component/EvictCache/EvictCache.js +0 -28
  117. package/dist/lib/Component/FormField/DisplayField/DisplayField.d.ts +0 -13
  118. package/dist/lib/Component/FormField/DisplayField/DisplayField.js +0 -32
  119. package/dist/lib/Component/FormField/JSONEditor/JSONEditor.d.ts +0 -13
  120. package/dist/lib/Component/FormField/JSONEditor/JSONEditor.js +0 -90
  121. package/dist/lib/Component/FormField/JSONEditor/UserWorker.d.ts +0 -1
  122. package/dist/lib/Component/FormField/JSONEditor/UserWorker.js +0 -26
  123. package/dist/lib/Component/FormField/LinkField/LinkField.d.ts +0 -11
  124. package/dist/lib/Component/FormField/LinkField/LinkField.js +0 -15
  125. package/dist/lib/Component/FormField/MarkdownEditor/MarkdownEditor.d.ts +0 -10
  126. package/dist/lib/Component/FormField/MarkdownEditor/MarkdownEditor.js +0 -23
  127. package/dist/lib/Component/FormField/Permission/GroupPermissionGrid/GroupPermissionGrid.d.ts +0 -7
  128. package/dist/lib/Component/FormField/Permission/GroupPermissionGrid/GroupPermissionGrid.js +0 -73
  129. package/dist/lib/Component/FormField/Permission/InstancePermissionGrid/InstancePermissionGrid.d.ts +0 -30
  130. package/dist/lib/Component/FormField/Permission/InstancePermissionGrid/InstancePermissionGrid.js +0 -151
  131. package/dist/lib/Component/FormField/Permission/PermissionModal/PermissionModal.d.ts +0 -28
  132. package/dist/lib/Component/FormField/Permission/PermissionModal/PermissionModal.js +0 -103
  133. package/dist/lib/Component/FormField/Permission/PermissionSelect/PermissionSelect.d.ts +0 -6
  134. package/dist/lib/Component/FormField/Permission/PermissionSelect/PermissionSelect.js +0 -21
  135. package/dist/lib/Component/FormField/Permission/RolePermissionGrid/RolePermissionGrid.d.ts +0 -7
  136. package/dist/lib/Component/FormField/Permission/RolePermissionGrid/RolePermissionGrid.js +0 -81
  137. package/dist/lib/Component/FormField/Permission/UserPermissionGrid/UserPermissionGrid.d.ts +0 -8
  138. package/dist/lib/Component/FormField/Permission/UserPermissionGrid/UserPermissionGrid.js +0 -87
  139. package/dist/lib/Component/FormField/VerifyProviderDetailsField/VerifyProviderDetailsField.d.ts +0 -13
  140. package/dist/lib/Component/FormField/VerifyProviderDetailsField/VerifyProviderDetailsField.js +0 -14
  141. package/dist/lib/Component/FormField/YesOrNoField/YesOrNoField.d.ts +0 -8
  142. package/dist/lib/Component/FormField/YesOrNoField/YesOrNoField.js +0 -10
  143. package/dist/lib/Component/FullscreenWrapper/FullscreenWrapper.d.ts +0 -4
  144. package/dist/lib/Component/FullscreenWrapper/FullscreenWrapper.js +0 -48
  145. package/dist/lib/Component/GeneralEntity/GeneralEntityForm/GeneralEntityForm.d.ts +0 -43
  146. package/dist/lib/Component/GeneralEntity/GeneralEntityForm/GeneralEntityForm.js +0 -145
  147. package/dist/lib/Component/GeneralEntity/GeneralEntityRoot/GeneralEntityRoot.d.ts +0 -22
  148. package/dist/lib/Component/GeneralEntity/GeneralEntityRoot/GeneralEntityRoot.js +0 -527
  149. package/dist/lib/Component/GeneralEntity/GeneralEntityTable/GeneralEntityTable.d.ts +0 -46
  150. package/dist/lib/Component/GeneralEntity/GeneralEntityTable/GeneralEntityTable.js +0 -179
  151. package/dist/lib/Component/GlobalSettings/GlobalSettingsRoot/GlobalSettingsRoot.d.ts +0 -5
  152. package/dist/lib/Component/GlobalSettings/GlobalSettingsRoot/GlobalSettingsRoot.js +0 -15
  153. package/dist/lib/Component/Header/Header.d.ts +0 -8
  154. package/dist/lib/Component/Header/Header.js +0 -16
  155. package/dist/lib/Component/ImageFile/ImageFileForm/ImageFileForm.d.ts +0 -7
  156. package/dist/lib/Component/ImageFile/ImageFileForm/ImageFileForm.js +0 -94
  157. package/dist/lib/Component/ImageFile/ImageFileRoot/ImageFileRoot.d.ts +0 -7
  158. package/dist/lib/Component/ImageFile/ImageFileRoot/ImageFileRoot.js +0 -44
  159. package/dist/lib/Component/ImageFile/ImageFileTable/ImageFileTable.d.ts +0 -9
  160. package/dist/lib/Component/ImageFile/ImageFileTable/ImageFileTable.js +0 -157
  161. package/dist/lib/Component/LanguageSelector/index.d.ts +0 -4
  162. package/dist/lib/Component/LanguageSelector/index.js +0 -15
  163. package/dist/lib/Component/Layer/LayerTypeSelect/LayerTypeSelect.d.ts +0 -11
  164. package/dist/lib/Component/Layer/LayerTypeSelect/LayerTypeSelect.js +0 -33
  165. package/dist/lib/Component/LayerPreview/LayerPreview.d.ts +0 -9
  166. package/dist/lib/Component/LayerPreview/LayerPreview.js +0 -159
  167. package/dist/lib/Component/LayerPreview/MapComponent/MapComponent.d.ts +0 -10
  168. package/dist/lib/Component/LayerPreview/MapComponent/MapComponent.js +0 -22
  169. package/dist/lib/Component/LogSettings/LogLevelSelect/LogLevelSelect.d.ts +0 -7
  170. package/dist/lib/Component/LogSettings/LogLevelSelect/LogLevelSelect.js +0 -20
  171. package/dist/lib/Component/LogSettings/LogLevelTable/LogLevelTable.d.ts +0 -12
  172. package/dist/lib/Component/LogSettings/LogLevelTable/LogLevelTable.js +0 -73
  173. package/dist/lib/Component/LogSettings/LogSettingsRoot/LogSettingsRoot.d.ts +0 -4
  174. package/dist/lib/Component/LogSettings/LogSettingsRoot/LogSettingsRoot.js +0 -11
  175. package/dist/lib/Component/Logs/Logs.d.ts +0 -5
  176. package/dist/lib/Component/Logs/Logs.js +0 -58
  177. package/dist/lib/Component/Menu/Navigation/Navigation.d.ts +0 -10
  178. package/dist/lib/Component/Menu/Navigation/Navigation.js +0 -96
  179. package/dist/lib/Component/Menu/User/User.d.ts +0 -7
  180. package/dist/lib/Component/Menu/User/User.js +0 -91
  181. package/dist/lib/Component/Metrics/JdbcConnectionsActive/JdbcConnectionsActive.d.ts +0 -6
  182. package/dist/lib/Component/Metrics/JdbcConnectionsActive/JdbcConnectionsActive.js +0 -7
  183. package/dist/lib/Component/Metrics/JvmMemoryUsed/JvmMemoryUsed.d.ts +0 -6
  184. package/dist/lib/Component/Metrics/JvmMemoryUsed/JvmMemoryUsed.js +0 -13
  185. package/dist/lib/Component/Metrics/JvmThreadsLive/JvmThreadsLive.d.ts +0 -6
  186. package/dist/lib/Component/Metrics/JvmThreadsLive/JvmThreadsLive.js +0 -7
  187. package/dist/lib/Component/Metrics/MetricEntry/MetricEntry.d.ts +0 -13
  188. package/dist/lib/Component/Metrics/MetricEntry/MetricEntry.js +0 -54
  189. package/dist/lib/Component/Metrics/MetricsRoot/MetricsRoot.d.ts +0 -12
  190. package/dist/lib/Component/Metrics/MetricsRoot/MetricsRoot.js +0 -28
  191. package/dist/lib/Component/Metrics/ProcessCpuUsage/ProcessCpuUsage.d.ts +0 -6
  192. package/dist/lib/Component/Metrics/ProcessCpuUsage/ProcessCpuUsage.js +0 -7
  193. package/dist/lib/Component/Metrics/ProcessStartTime/ProcessStartTime.d.ts +0 -6
  194. package/dist/lib/Component/Metrics/ProcessStartTime/ProcessStartTime.js +0 -12
  195. package/dist/lib/Component/Metrics/ProcessUptime/ProcessUptime.d.ts +0 -6
  196. package/dist/lib/Component/Metrics/ProcessUptime/ProcessUptime.js +0 -15
  197. package/dist/lib/Component/Metrics/SystemCpuCount/SystemCpuCount.d.ts +0 -6
  198. package/dist/lib/Component/Metrics/SystemCpuCount/SystemCpuCount.js +0 -7
  199. package/dist/lib/Component/Metrics/SystemCpuUsage/SystemCpuUsage.d.ts +0 -6
  200. package/dist/lib/Component/Metrics/SystemCpuUsage/SystemCpuUsage.js +0 -7
  201. package/dist/lib/Component/Metrics/SystemLoadAverage/SystemLoadAverage.d.ts +0 -6
  202. package/dist/lib/Component/Metrics/SystemLoadAverage/SystemLoadAverage.js +0 -7
  203. package/dist/lib/Component/Modal/ApplicationInfo/ApplicationInfo.d.ts +0 -7
  204. package/dist/lib/Component/Modal/ApplicationInfo/ApplicationInfo.js +0 -18
  205. package/dist/lib/Component/ShogunSpinner/ShogunSpinner.d.ts +0 -5
  206. package/dist/lib/Component/ShogunSpinner/ShogunSpinner.js +0 -7
  207. package/dist/lib/Component/UserAvatar/UserAvatar.d.ts +0 -9
  208. package/dist/lib/Component/UserAvatar/UserAvatar.js +0 -13
  209. package/dist/lib/Component/WelcomeDashboard/WelcomeDashboard.d.ts +0 -5
  210. package/dist/lib/Component/WelcomeDashboard/WelcomeDashboard.js +0 -35
  211. package/dist/lib/Context/PluginContext.d.ts +0 -9
  212. package/dist/lib/Context/PluginContext.js +0 -7
  213. package/dist/lib/Context/SHOGunAPIClientContext.d.ts +0 -9
  214. package/dist/lib/Context/SHOGunAPIClientContext.js +0 -7
  215. package/dist/lib/Controller/ControllerUtil.d.ts +0 -27
  216. package/dist/lib/Controller/ControllerUtil.js +0 -60
  217. package/dist/lib/Controller/GenericEntityController.d.ts +0 -169
  218. package/dist/lib/Controller/GenericEntityController.js +0 -368
  219. package/dist/lib/Hooks/useClientVersion.d.ts +0 -1
  220. package/dist/lib/Hooks/useClientVersion.js +0 -3
  221. package/dist/lib/Hooks/usePlugins.d.ts +0 -3
  222. package/dist/lib/Hooks/usePlugins.js +0 -6
  223. package/dist/lib/Hooks/useSHOGunAPIClient.d.ts +0 -3
  224. package/dist/lib/Hooks/useSHOGunAPIClient.js +0 -6
  225. package/dist/lib/Logger.d.ts +0 -2
  226. package/dist/lib/Logger.js +0 -23
  227. package/dist/lib/Page/Portal/Portal.d.ts +0 -7
  228. package/dist/lib/Page/Portal/Portal.js +0 -74
  229. package/dist/lib/Service/GenericServiceImpl/GenericServiceImpl.d.ts +0 -5
  230. package/dist/lib/Service/GenericServiceImpl/GenericServiceImpl.js +0 -7
  231. package/dist/lib/Service/LogService/LogService.d.ts +0 -18
  232. package/dist/lib/Service/LogService/LogService.js +0 -79
  233. package/dist/lib/Service/MetricService/MetricService.d.ts +0 -26
  234. package/dist/lib/Service/MetricService/MetricService.js +0 -25
  235. package/dist/lib/State/atoms.d.ts +0 -7
  236. package/dist/lib/State/atoms.js +0 -25
  237. package/dist/lib/State/static.d.ts +0 -3
  238. package/dist/lib/State/static.js +0 -10
  239. package/dist/lib/Util/FileUtil.d.ts +0 -3
  240. package/dist/lib/Util/FileUtil.js +0 -10
  241. package/dist/lib/Util/JsonUtil.d.ts +0 -11
  242. package/dist/lib/Util/JsonUtil.js +0 -22
  243. package/dist/lib/Util/OpenAPIUtil.d.ts +0 -25
  244. package/dist/lib/Util/OpenAPIUtil.js +0 -230
  245. package/dist/lib/Util/TableUtil.d.ts +0 -14
  246. package/dist/lib/Util/TableUtil.js +0 -71
  247. package/dist/lib/Util/TranslationUtil.d.ts +0 -3
  248. package/dist/lib/Util/TranslationUtil.js +0 -23
  249. package/dist/lib/Util/UserUtil.d.ts +0 -22
  250. package/dist/lib/Util/UserUtil.js +0 -32
  251. package/dist/lib/i18n/index.d.ts +0 -2
  252. package/dist/lib/i18n/index.js +0 -17
  253. package/dist/lib/i18n/translations.d.ts +0 -508
  254. package/dist/lib/i18n/translations.js +0 -512
  255. package/dist/lib/index.d.ts +0 -1
  256. package/dist/lib/index.js +0 -172
  257. package/dist/lib/plugin/index.d.ts +0 -58
  258. package/dist/lib/plugin/index.js +0 -3
  259. package/dist/lib/test-util.d.ts +0 -6
  260. package/dist/lib/test-util.js +0 -16
@@ -1,512 +0,0 @@
1
- export default {
2
- de: {
3
- translation: {
4
- Index: {
5
- unauthorizedTitle: 'Sie sind nicht berechtigt, diese Seite zu öffnen.',
6
- errorTitle: 'Die Anwendung konnte nicht geladen werden. Prüfen Sie Ihre Konsole.',
7
- backToLoginButtonText: 'Zurück zum Login'
8
- },
9
- App: {
10
- loading: 'laden',
11
- loadFail: 'Die Daten konnten nicht geladen werden. Überprüfen Sie Ihre Konsole.'
12
- },
13
- FullscreenWrapper: {
14
- fullscreen: 'Vergrößern',
15
- leaveFullscreen: 'Verkleinern'
16
- },
17
- WelcomeDashboard: {
18
- applications: 'Applikationen',
19
- applicationInfo: '… die die Welt bewegen',
20
- applicationSingular: 'Applikation',
21
- applicationPlural: 'Applikationen',
22
- layer: 'Layer',
23
- layerInfo: '… die die Welt bewegen',
24
- layerSingluar: 'Layer',
25
- layerPlural: 'Layer',
26
- user: 'Benutzer',
27
- userInfo: '… die die Welt verbessern',
28
- userSingular: 'Benutzer',
29
- userPlural: 'Benutzer'
30
- },
31
- DashboardStatistics: {
32
- statisticsTitle: 'Insgesamt verfügbar'
33
- },
34
- Navigation: {
35
- content: 'Inhalte',
36
- application: 'Applikationen',
37
- layer: 'Layer',
38
- user: 'Benutzer',
39
- group: 'Gruppen',
40
- status: 'Status',
41
- metrics: 'Metriken',
42
- logs: 'Logs',
43
- logLevels: 'Logging-Level',
44
- configuration: 'Einstellungen',
45
- global: 'Global',
46
- image: 'Bilddateien'
47
- },
48
- GeneralEntityRoot: {
49
- save: '{{entity}} speichern',
50
- reset: '{{entity}} zurücksetzen',
51
- create: '{{entity}} erstellen',
52
- upload: {
53
- success: {
54
- message: '{{entity}} erfolgreich erstellt',
55
- description: 'Datei {{fileName}} wurde erfolgreich geladen und der Layer {{layerName}} erstellt'
56
- },
57
- error: {
58
- message: 'Konnte {{entity}} nicht erstellen',
59
- description: 'Fehler beim Hochladen der Datei {{fileName}}',
60
- descriptionSize: 'Der Upload überschreitet das Limit von {{maxSize}} MB',
61
- descriptionFormat: 'Der Dateityp ist nicht unterstützt ({{supportedFormats}})',
62
- descriptionZipContent: 'Mehrere Geodatensätze innerhalb eines Archivs sind nicht unterstützt'
63
- },
64
- button: '{{entity}} hochladen'
65
- },
66
- saveSuccess: '{{entity}} erfolgreich gespeichert',
67
- saveFail: 'Konnte {{entity}} nicht speichern'
68
- },
69
- GeneralEntityTable: {
70
- cancelText: 'Abbrechen',
71
- title: 'Entität löschen',
72
- contentInfo: 'Die Entität "{{entityName}}" wird gelöscht!',
73
- contentConfirmInfo: 'Bitte geben sie zum Bestätigen den Namen ein:',
74
- deleteConfirm: 'Löschen erfolgreich',
75
- deleteConfirmDescript: 'Die Entität "{{entityName}}" wurde gelöscht!',
76
- deleteFail: 'Löschen fehlgeschlagen',
77
- deleteFailDescript: 'Die Entität "{{entityName}}" konnte nicht gelöscht werden!',
78
- columnId: 'ID',
79
- columnName: 'Name',
80
- tooltipReload: 'Neu laden',
81
- tooltipDelete: 'Löschen',
82
- popupSearch: 'Suche',
83
- popupFilter: 'Filtern',
84
- popupReset: 'Zurücksetzen',
85
- paging: {
86
- nextPage: 'Nächste Seite',
87
- prevPage: 'Vorherige Seite',
88
- itemsPerPage: 'Seite',
89
- jumpTo: 'Springe zu',
90
- page: 'Seite',
91
- total: 'Total'
92
- }
93
- },
94
- ImageFileRoot: {
95
- title: 'Bilddateien',
96
- subTitle: '… die die Welt zeigen',
97
- button: 'Bilddatei hochladen',
98
- success: 'Upload erfolgreich',
99
- failure: 'Fehler beim Upload',
100
- uploadSuccess: 'Die Datei {{entityName}} wurde erfolgreich hochgeladen',
101
- uploadFailure: 'Die Datei {{entityName}} konnte nicht hochgeladen werden'
102
- },
103
- ImageFileForm: {
104
- title: 'Bilddatei',
105
- name: 'Dateiname',
106
- uuid: 'UUID',
107
- public: 'Öffentlich',
108
- preview: 'Vorschau'
109
- },
110
- Logs: {
111
- logs: 'Logs',
112
- logsInfo: '… die die Welt erklären',
113
- refresh: 'Aktualisieren',
114
- autoReload: 'Automatisches Nachladen',
115
- warningMessage: 'Logs können nicht angezeigt werden',
116
- warningDescribtion: 'Hinweis: Um die Logs anzeigen zu können ist es notwendig, dass die ' +
117
- 'Logs in eine Datei geschrieben werden. Bitte die SHOGun API Konfiguration entsprechend überprüfen.'
118
- },
119
- LinkField: {
120
- title: 'Öffne Link'
121
- },
122
- Metrics: {
123
- title: 'Metriken',
124
- info: '… die die Welt vermessen'
125
- },
126
- GlobalSettings: {
127
- global: 'Einstellungen',
128
- globalInfo: '… die die Welt lenken'
129
- },
130
- LogSettings: {
131
- logs: 'Einstellungen',
132
- logsInfo: '… die die Welt lenken',
133
- tableName: 'Name',
134
- tableLevel: 'Level',
135
- searchPlaceholder: 'Suchen…'
136
- },
137
- EvictCache: {
138
- clear: 'Clear cache'
139
- },
140
- User: {
141
- settings: 'Profileinstellungen',
142
- info: 'Info',
143
- logout: 'Ausloggen'
144
- },
145
- Table: {
146
- filterTitle: 'Filtermenü',
147
- filterConfirm: 'OK',
148
- filterReset: 'Zurücksetzen',
149
- filterEmptyText: 'Keine Filter',
150
- filterCheckall: 'Alles auswählen',
151
- filterSearchPlaceholder: 'In Filtern suchen',
152
- emptyText: 'Keine Daten',
153
- selectAll: 'Diese Seite auswählen',
154
- selectInvert: 'Diese Seite invertieren',
155
- selectNone: 'Nichts auswählen',
156
- selectionAll: 'Alles auswählen',
157
- sortTitle: 'Sortieren',
158
- expand: 'Zeile ausklappen',
159
- collapse: 'Zeile einklappen',
160
- triggerDesc: 'Klicken, um absteigend zu sortieren',
161
- triggerAsc: 'Klicken, um aufsteigend zu sortieren',
162
- cancelSort: 'Klicken, um Sortierung zurückzusetzen'
163
- },
164
- YesorNoField: {
165
- yes: 'Ja',
166
- no: 'Nein'
167
- },
168
- InstancePermissionGrid: {
169
- loadErrorMsg: 'Fehler beim Laden der Berechtigungen',
170
- updateErrorMsg: 'Fehler beim Aktualisieren der Berechtigung',
171
- deleteErrorMsg: 'Fehler beim Löschen der Berechtigung',
172
- filterInputPlaceholder: 'Suche…',
173
- filterSearchButtonText: 'Suche',
174
- filterResetButtonText: 'Zurücksetzen',
175
- nameColumnTitle: 'Name',
176
- permissionColumnTitle: 'Berechtigung',
177
- deletePermissionButtonTooltip: 'Berechtigung löschen'
178
- },
179
- PermissionSelect: {
180
- placeholder: 'Berechtigung auswählen…',
181
- readLabel: 'Lesen',
182
- readUpdateLabel: 'Aktualisieren',
183
- readUpdateDeleteLabel: 'Aktualisieren & Löschen',
184
- adminLabel: 'Besitzer'
185
- },
186
- PermissionModal: {
187
- loadErrorMsg: 'Fehler beim Laden der Berechtigungen',
188
- openModalButtonTooltipTitle: 'Berechtigung hinzufügen',
189
- title: 'Berechtigung hinzufügen',
190
- paginationTotal: 'Total',
191
- paginationNextPage: 'Nächste Seite',
192
- paginationPrevPage: 'Vorherige Seite'
193
- },
194
- GroupPermissionGrid: {
195
- modal: {
196
- description: 'Wählen Sie eine oder mehrere Gruppen sowie die zugehörige Berechtigung aus.',
197
- referenceSelectLabel: 'Gruppenname',
198
- referenceSelectExtra: 'Wählen Sie die Gruppe aus der Liste aus oder geben Sie einen ' +
199
- 'Suchbegriff (Gruppenname) ein',
200
- referenceSelectPlaceholder: 'Gruppe auswählen…',
201
- permissionSelectLabel: 'Berechtigung',
202
- permissionSelectExtra: 'Wählen Sie die Berechtigung aus, die die Gruppe erhalten sollen.',
203
- saveErrorMsg: 'Fehler beim Speichern der Berechtigung für die Gruppen mit den IDs: {{referenceIds}}'
204
- }
205
- },
206
- UserPermissionGrid: {
207
- modal: {
208
- description: 'Wählen Sie einen oder mehrere Nutzer sowie die zugehörige Berechtigung aus.',
209
- referenceSelectLabel: 'Nutzername oder Email Adresse',
210
- referenceSelectExtra: 'Wählen Sie die Nutzer aus der Liste aus oder geben Sie einen ' +
211
- 'Suchbegriff (Gruppenname oder Email Adresse) ein',
212
- referenceSelectPlaceholder: 'Nutzer auswählen…',
213
- permissionSelectLabel: 'Berechtigung',
214
- permissionSelectExtra: 'Wählen Sie die Berechtigung aus, die die Nutzer erhalten sollen.',
215
- saveErrorMsg: 'Fehler beim Speichern der Berechtigung für die Nutzer mit den IDs: {{referenceIds}}'
216
- }
217
- },
218
- RolePermissionGrid: {
219
- modal: {
220
- description: 'Wählen Sie einen oder mehrere Rolle sowie die zugehörige Berechtigung aus.',
221
- referenceSelectLabel: 'Rollenname',
222
- referenceSelectExtra: 'Wählen Sie die Rolle aus der Liste aus oder geben Sie einen ' +
223
- 'Suchbegriff (Rollenname) ein',
224
- referenceSelectPlaceholder: 'Rolle auswählen…',
225
- permissionSelectLabel: 'Berechtigung',
226
- permissionSelectExtra: 'Wählen Sie die Berechtigung aus, die die Rolle erhalten sollen.',
227
- saveErrorMsg: 'Fehler beim Speichern der Berechtigung für die Rollen mit den IDs: {{referenceIds}}'
228
- }
229
- },
230
- ApplicationInfoModal: {
231
- clientAbout: 'Über',
232
- clientVersion: 'Admin Version',
233
- backendVersion: 'Backend Version',
234
- buildTime: 'Build Zeit',
235
- applicationInfo: 'Die Standardanwendung',
236
- title: 'SHOGun-Admin Information'
237
- },
238
- LayerPreview: {
239
- title: 'Layervorschau ({{layerName}})',
240
- tooltipTitle: 'Layervorschau öffnen',
241
- extentErrorMsg: 'Fehler beim Zoomen auf die Gesamtansicht des Layers.',
242
- addLayerErrorMsg: 'Fehler beim Hinzufügen des Layers zur Karte.',
243
- loadLayerErrorMsg: 'Fehler beim Laden des Layers.',
244
- extentNotSupportedErrorMsg: 'Zoomen auf Gesamtansicht wird für diesen Typ nicht unterstützt.'
245
- }
246
- },
247
- VerifyProviderDetailsField: {
248
- title: 'Keine Informationen des Authentication-Providers verfügbar'
249
- }
250
- },
251
- en: {
252
- translation: {
253
- Index: {
254
- unauthorizedTitle: 'You\'re not authorized to access this page.',
255
- errorTitle: 'Failed to load the application. Check your console.',
256
- backToLoginButtonText: 'Back to login'
257
- },
258
- App: {
259
- loading: 'loading',
260
- loadFail: 'Failed to load the initial data. Check your console.'
261
- },
262
- FullscreenWrapper: {
263
- fullscreen: 'Maximize',
264
- leaveFullscreen: 'Minimize'
265
- },
266
- WelcomeDashboard: {
267
- applications: 'Applications',
268
- applicationInfo: '… that move the world',
269
- applicationSingular: 'Application',
270
- applicationPlural: 'Applications',
271
- layer: 'Layers',
272
- layerInfo: '… that move the world',
273
- layerSingluar: 'Layer',
274
- layerPlural: 'Layers',
275
- user: 'User',
276
- userInfo: '… that improve the world',
277
- userSingular: 'User',
278
- userPlural: 'Users'
279
- },
280
- DashboardStatistics: {
281
- statisticsTitle: 'Total available'
282
- },
283
- Navigation: {
284
- content: 'Content',
285
- application: 'Application',
286
- layer: 'Layer',
287
- user: 'User',
288
- group: 'Group',
289
- status: 'Status',
290
- metrics: 'Metrics',
291
- logs: 'Logs',
292
- logLevels: 'Logging levels',
293
- configuration: 'Configuration',
294
- global: 'Global',
295
- image: 'Images'
296
- },
297
- GeneralEntityRoot: {
298
- save: 'Save {{entity}}',
299
- reset: 'Reset {{entity}}',
300
- create: 'Create {{entity}}',
301
- upload: {
302
- success: {
303
- message: '{{entity}} successfully created',
304
- description: 'Successfully uploaded file {{fileName}} and created layer {{layerName}}'
305
- },
306
- error: {
307
- message: 'Could not create {{entity}}',
308
- description: 'Error while uploading file {{fileName}}',
309
- descriptionSize: 'The file exceeds the upload limit of {{maxSize}} MB',
310
- descriptionFormat: 'The given file type does not match the supported ones ({{supportedFormats}})',
311
- descriptionZipContent: 'Multiple geodatasets within one archive are not supported'
312
- },
313
- button: 'Upload {{entity}}'
314
- },
315
- saveSuccess: '{{entity}} successfully saved',
316
- saveFail: 'Could not save {{entity}}'
317
- },
318
- GeneralEntityTable: {
319
- cancelText: 'Cancel',
320
- title: 'Delete entity',
321
- contentInfo: 'The entity "{{entityName}}" will be deleted!',
322
- contentConfirmInfo: 'Please enter the name to confirm:',
323
- deleteConfirm: 'Delete successful',
324
- deleteConfirmDescript: 'The entity "{{entityName}}" was deleted',
325
- deleteFail: 'Deletion failed',
326
- deleteFailDescript: 'The entity "{{entityName}}" could not be deleted!',
327
- columnId: 'ID',
328
- columnName: 'Name',
329
- tooltipReload: 'Reload',
330
- tooltipDelete: 'Delete',
331
- popupSearch: 'Search',
332
- popupFilter: 'Filter',
333
- popupReset: 'Reset',
334
- paging: {
335
- nextPage: 'Next page',
336
- prevPage: 'Previous page',
337
- itemsPerPage: 'page',
338
- jumpTo: 'Go to',
339
- page: 'Page',
340
- total: 'Total'
341
- }
342
- },
343
- ImageFileRoot: {
344
- title: 'Images',
345
- subTitle: '… that show the world',
346
- button: 'Upload image',
347
- success: 'Upload successful',
348
- failure: 'Error during upload',
349
- uploadSuccess: 'The {{entityName}} file was successfully uploaded',
350
- uploadFailure: 'The file {{entityName}} could not be uploaded'
351
- },
352
- ImageFileForm: {
353
- title: 'Image',
354
- name: 'Filename',
355
- uuid: 'UUID',
356
- public: 'Public',
357
- preview: 'Preview'
358
- },
359
- Logs: {
360
- metric: 'Metrics',
361
- metricsInfo: '… that measure the world',
362
- logs: 'Logs',
363
- logsInfo: '… that explain the world',
364
- refresh: 'Refresh',
365
- autoReload: 'Hot reload',
366
- warningMessage: 'Error while displaying the logs',
367
- warningDescribtion: 'Note: In order to be able to display the logs, it is necessary that the logs ' +
368
- 'are written to a file. Please check the SHOGun API configuration accordingly.'
369
- },
370
- LinkField: {
371
- title: 'Open link'
372
- },
373
- Metrics: {
374
- title: 'Metrics',
375
- info: '… that measure the world'
376
- },
377
- GlobalSettings: {
378
- global: 'Configuration',
379
- globalInfo: '… that guide the world'
380
- },
381
- LogSettings: {
382
- logs: 'Configuration',
383
- logsInfo: '… that guide the world',
384
- tableName: 'Name',
385
- tableLevel: 'Level',
386
- searchPlaceholder: 'Search by…'
387
- },
388
- EvictCache: {
389
- clear: 'Clear cache'
390
- },
391
- User: {
392
- settings: 'Profile settings',
393
- info: 'Info',
394
- logout: 'Logout'
395
- },
396
- Table: {
397
- filterTitle: 'Filter menu',
398
- filterConfirm: 'OK',
399
- filterReset: 'Reset',
400
- filterEmptyText: 'No filters',
401
- filterCheckall: 'Select all items',
402
- filterSearchPlaceholder: 'Search in filters',
403
- emptyText: 'No data',
404
- selectAll: 'Select current page',
405
- selectInvert: 'Invert current page',
406
- selectNone: 'Clear all data',
407
- selectionAll: 'Select all data',
408
- sortTitle: 'Sort',
409
- expand: 'Expand row',
410
- collapse: 'Collapse row',
411
- triggerDesc: 'Click to sort descending',
412
- triggerAsc: 'Click to sort ascending',
413
- cancelSort: 'Click to cancel sorting'
414
- },
415
- YesorNoField: {
416
- yes: 'Yes',
417
- no: 'No'
418
- },
419
- ImageFileTable: {
420
- imageSingular: 'Image',
421
- imagePlural: 'Images',
422
- delete: 'Delete {{entity}}',
423
- cancel: 'Cancel',
424
- confirmInfo: 'The {{entity}} will be deleted!',
425
- conFirmTooltip: 'Do you really want to delete the {{entity}} file?',
426
- deletionInfo: '{{entity}} has been deleted',
427
- deletionDescription: '{{entity}} "{{record}}" has been deleted',
428
- deleteFail: 'Deletion failed',
429
- deleteFailDescript: 'The file "{{record}}" could not be deleted!',
430
- reloadTooltip: 'Reload'
431
- },
432
- InstancePermissionGrid: {
433
- loadErrorMsg: 'Error while loading the permissions',
434
- updateErrorMsg: 'Error while updating the permission',
435
- deleteErrorMsg: 'Error while deleting the permission',
436
- filterInputPlaceholder: 'Search…',
437
- filterSearchButtonText: 'Search',
438
- filterResetButtonText: 'Reset',
439
- nameColumnTitle: 'Name',
440
- permissionColumnTitle: 'Permission',
441
- deletePermissionButtonTooltip: 'Delete permission'
442
- },
443
- PermissionSelect: {
444
- placeholder: 'Select a permission…',
445
- readLabel: 'Read',
446
- readUpdateLabel: 'Update',
447
- readUpdateDeleteLabel: 'Update & Delete',
448
- adminLabel: 'Owner'
449
- },
450
- PermissionModal: {
451
- loadErrorMsg: 'Error while loading the permissions',
452
- openModalButtonTooltipTitle: 'Add permission',
453
- title: 'Add permission',
454
- paginationTotal: 'Total',
455
- paginationNextPage: 'Next page',
456
- paginationPrevPage: 'Previous page'
457
- },
458
- GroupPermissionGrid: {
459
- modal: {
460
- description: 'Select one or more groups and the respective permission.',
461
- referenceSelectLabel: 'Group name',
462
- referenceSelectExtra: 'Select groups from the list or search via name.',
463
- referenceSelectPlaceholder: 'Select groups(s)…',
464
- permissionSelectLabel: 'Permission',
465
- permissionSelectExtra: 'Select the permission the groups should be granted.',
466
- saveErrorMsg: 'Error while setting the permission for groups with IDs: {{referenceIds}}'
467
- }
468
- },
469
- UserPermissionGrid: {
470
- modal: {
471
- description: 'Select one or more users and the respective permission.',
472
- referenceSelectLabel: 'Username or email address',
473
- referenceSelectExtra: 'Select users from the list or search via username or email address.',
474
- referenceSelectPlaceholder: 'Select user(s)…',
475
- permissionSelectLabel: 'Permission',
476
- permissionSelectExtra: 'Select the permission the users should be granted.',
477
- saveErrorMsg: 'Error while setting the permission for users with IDs: {{referenceIds}}'
478
- }
479
- },
480
- RolePermissionGrid: {
481
- modal: {
482
- description: 'Select one or more roles and the respective permission.',
483
- referenceSelectLabel: 'Role name',
484
- referenceSelectExtra: 'Select roles from the list or search via role name.',
485
- referenceSelectPlaceholder: 'Select role(s)…',
486
- permissionSelectLabel: 'Permission',
487
- permissionSelectExtra: 'Select the permission the roles should be granted.',
488
- saveErrorMsg: 'Error while setting the permission for roles with IDs: {{referenceIds}}'
489
- }
490
- },
491
- ApplicationInfoModal: {
492
- clientAbout: 'About',
493
- clientVersion: 'Admin version',
494
- backendVersion: 'Backend version',
495
- buildTime: 'Build time',
496
- applicationInfo: 'The default application',
497
- title: 'SHOGun Admin info'
498
- },
499
- LayerPreview: {
500
- title: 'Layer preview ({{layerName}})',
501
- tooltipTitle: 'Open layer preview',
502
- extentErrorMsg: 'Could not zoom to the extent of the layer.',
503
- addLayerErrorMsg: 'Could not add the layer to the map.',
504
- loadLayerErrorMsg: 'Error while loading the layer.',
505
- extentNotSupportedErrorMsg: 'Zoom to layer is not supported for this type.'
506
- },
507
- VerifyProviderDetailsField: {
508
- title: 'No authentication provider information available'
509
- }
510
- }
511
- }
512
- };
@@ -1 +0,0 @@
1
- import './index.less';
package/dist/lib/index.js DELETED
@@ -1,172 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import './index.less';
3
- import React, { Suspense } from 'react';
4
- import { loader } from '@monaco-editor/react';
5
- import {
6
- // eslint-disable-next-line camelcase
7
- __federation_method_setRemote,
8
- // eslint-disable-next-line camelcase
9
- __federation_method_getRemote
10
- // @ts-ignore
11
- } from '__federation__';
12
- import { Button, Result } from 'antd';
13
- import Logger from 'js-logger';
14
- import Keycloak from 'keycloak-js';
15
- import _isNil from 'lodash/isNil';
16
- import { createRoot } from 'react-dom/client';
17
- import { RecoilRoot } from 'recoil';
18
- import config from 'shogunApplicationConfig';
19
- import SHOGunAPIClient from '@terrestris/shogun-util/dist/service/SHOGunAPIClient';
20
- import { PluginProvider } from './Context/PluginContext';
21
- import { SHOGunAPIClientProvider } from './Context/SHOGunAPIClientContext';
22
- import i18n from './i18n';
23
- const App = React.lazy(() => import('./App'));
24
- const initKeycloak = async () => {
25
- const keycloakEnabled = config.security.keycloak.enabled;
26
- const keycloakHost = config.security.keycloak.host;
27
- const keycloakRealm = config.security.keycloak.realm;
28
- const keycloakClientId = config.security.keycloak.clientId;
29
- if (!keycloakEnabled) {
30
- Logger.info('Not using the keycloak adapter');
31
- return null;
32
- }
33
- if (!keycloakHost) {
34
- throw new Error('Config key security.keycloak.host is not set');
35
- }
36
- if (!keycloakRealm) {
37
- throw new Error('Config key security.keycloak.realm is not set');
38
- }
39
- if (!keycloakClientId) {
40
- throw new Error('Config key security.keycloak.clientId is not set');
41
- }
42
- const keycloak = new Keycloak({
43
- url: keycloakHost,
44
- realm: keycloakRealm,
45
- clientId: keycloakClientId
46
- });
47
- keycloak.onTokenExpired = async () => {
48
- try {
49
- await keycloak.updateToken(0);
50
- }
51
- catch (error) {
52
- Logger.error('Error while refreshing the access token: ', error);
53
- }
54
- };
55
- await keycloak.init({
56
- onLoad: 'login-required',
57
- checkLoginIframe: false
58
- });
59
- return keycloak;
60
- };
61
- const initSHOGunAPIClient = (keycloak) => {
62
- return new SHOGunAPIClient({
63
- url: config.path.shogunBase || '/',
64
- keycloak: keycloak
65
- });
66
- };
67
- const loadPluginModules = async (moduleName, moduleUrl, remoteNames) => {
68
- __federation_method_setRemote(moduleName, {
69
- url: moduleUrl,
70
- format: 'esm',
71
- from: 'vite'
72
- });
73
- const modules = [];
74
- for (const remoteName of remoteNames) {
75
- const module = await __federation_method_getRemote(moduleName, remoteName);
76
- modules.push(module);
77
- }
78
- return modules;
79
- };
80
- const loadPlugins = async (client) => {
81
- if (!config.plugins || config.plugins.length === 0) {
82
- Logger.info('No plugins found');
83
- return [];
84
- }
85
- Logger.info('Loading plugins');
86
- const clientPlugins = [];
87
- for (const plugin of config.plugins) {
88
- const name = plugin.name;
89
- const resourcePath = plugin.resourcePath;
90
- const exposedPaths = plugin.exposedPaths;
91
- if (!name) {
92
- Logger.error('Required plugin configuration \'name\' is not set');
93
- return clientPlugins;
94
- }
95
- if (!resourcePath) {
96
- Logger.error('Required plugin configuration \'resourcePath\' is not set');
97
- return clientPlugins;
98
- }
99
- if (!exposedPaths) {
100
- Logger.error('Required plugin configuration \'exposedPaths\' is not set');
101
- return clientPlugins;
102
- }
103
- Logger.info(`Loading plugin ${name} (with exposed paths ${exposedPaths.join(' and ')}) from ${resourcePath}`);
104
- let adminPluginModules;
105
- try {
106
- adminPluginModules = await loadPluginModules(name, resourcePath, exposedPaths);
107
- Logger.info(`Successfully loaded plugin ${name}`);
108
- }
109
- catch (error) {
110
- Logger.error(`Could not load plugin ${name}:`, error);
111
- return clientPlugins;
112
- }
113
- adminPluginModules.forEach(module => {
114
- const adminPluginDefault = module.default;
115
- const PluginComponent = adminPluginDefault.component;
116
- const WrappedPluginComponent = () => (_jsx(PluginComponent, { client: client, t: i18n.t }));
117
- adminPluginDefault.wrappedComponent = WrappedPluginComponent;
118
- if (adminPluginDefault.i18n) {
119
- Object.entries(adminPluginDefault.i18n).forEach(locale => {
120
- const lng = locale[0];
121
- const resources = locale[1].translation;
122
- i18n.addResourceBundle(lng, 'translation', resources, true, true);
123
- });
124
- }
125
- clientPlugins.push(adminPluginDefault);
126
- });
127
- }
128
- return clientPlugins;
129
- };
130
- const renderApp = async () => {
131
- const rootElement = document.getElementById('root');
132
- if (_isNil(rootElement)) {
133
- return Promise.reject();
134
- }
135
- const root = createRoot(rootElement);
136
- let keycloak;
137
- try {
138
- keycloak = await initKeycloak() ?? undefined;
139
- // Only check for roles if keycloak is enabled.
140
- if (!_isNil(keycloak)) {
141
- const authorizedRoles = config.security.keycloak.authorizedRoles || [];
142
- const keycloakClientId = config.security.keycloak.clientId;
143
- const isAuthorized = authorizedRoles.some(role => keycloak.hasResourceRole(role, keycloakClientId));
144
- if (!isAuthorized) {
145
- throw new Error('UNAUTHORIZED');
146
- }
147
- }
148
- const client = initSHOGunAPIClient(keycloak);
149
- const plugins = await loadPlugins(client);
150
- loader.config({
151
- paths: {
152
- vs: './vs'
153
- }
154
- });
155
- root.render(_jsx(SHOGunAPIClientProvider, { client: client, children: _jsx(PluginProvider, { plugins: plugins, children: _jsx(RecoilRoot, { children: _jsx(Suspense, { children: _jsx(App, {}) }) }) }) }));
156
- }
157
- catch (error) {
158
- Logger.error(error);
159
- if (error.message === 'UNAUTHORIZED') {
160
- root.render(_jsx(Result, { status: '403', title: i18n.t('Index.unauthorizedTitle'), extra: _jsx(Button, { onClick: async () => {
161
- if (keycloak) {
162
- await keycloak.logout();
163
- await keycloak.login();
164
- }
165
- }, children: i18n.t('Index.backToLoginButtonText') }) }));
166
- }
167
- else {
168
- root.render(_jsx(Result, { status: 'warning', title: i18n.t('Index.errorTitle') }));
169
- }
170
- }
171
- };
172
- renderApp();