@eclipse-slm/ui 0.0.0-stage → 1.5.0-snapshot.2

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 (271) hide show
  1. package/README.md +277 -2
  2. package/index.html +19 -0
  3. package/package.json +104 -4
  4. package/public/favicon.ico +0 -0
  5. package/public/favicon.png +0 -0
  6. package/public/favicon_white.png +0 -0
  7. package/public/sidebar-image.jpg +0 -0
  8. package/src/App.vue +40 -0
  9. package/src/api/apiState.js +7 -0
  10. package/src/api/catalog/catalogRestApi.js +17 -0
  11. package/src/api/notification-service/notification-service-client.ts +7 -0
  12. package/src/api/notification-service/notificationServiceActuatorRestApi.js +26 -0
  13. package/src/api/notification-service/notificationServiceWebsocketClient.js +60 -0
  14. package/src/api/platform-management/platform-management-client.ts +46 -0
  15. package/src/api/platform-management/platformManagementActuatorRestApi.js +26 -0
  16. package/src/api/resource-management/resource-management-client.ts +39 -0
  17. package/src/api/resource-management/resourceManagementActuatorRestApi.js +26 -0
  18. package/src/api/restApiHelper.js +11 -0
  19. package/src/api/service-management/service-management-client.ts +31 -0
  20. package/src/api/service-management/serviceManagementActuatorRestApi.ts +26 -0
  21. package/src/app/appInstance.ts +8 -0
  22. package/src/app/navigation.ts +203 -0
  23. package/src/app/routes.ts +192 -0
  24. package/src/assets/clint-mckoy.jpg +0 -0
  25. package/src/assets/img/avatarImg.jpg +0 -0
  26. package/src/assets/img/fabos_logo.png +0 -0
  27. package/src/assets/img/fabos_logo_fabweiss.png +0 -0
  28. package/src/assets/img/fraunhofer-logo.png +0 -0
  29. package/src/assets/img/sidebar-1.jpg +0 -0
  30. package/src/assets/img/sidebar-2.jpg +0 -0
  31. package/src/assets/img/sidebar-3.jpg +0 -0
  32. package/src/assets/img/sidebar-4.jpg +0 -0
  33. package/src/assets/img/sidebar-5.jpg +0 -0
  34. package/src/assets/img/sidebar-image.jpg +0 -0
  35. package/src/assets/img/vue-logo.png +0 -0
  36. package/src/assets/lock.jpg +0 -0
  37. package/src/assets/login.jpg +0 -0
  38. package/src/assets/logo.png +0 -0
  39. package/src/assets/pricing.jpg +0 -0
  40. package/src/assets/register.jpg +0 -0
  41. package/src/assets/vuetify.svg +1 -0
  42. package/src/components/admin/VersionsOverview.vue +149 -0
  43. package/src/components/base/ActionButton.vue +63 -0
  44. package/src/components/base/ActionButtonType.ts +5 -0
  45. package/src/components/base/Card.vue +17 -0
  46. package/src/components/base/ConfirmDialog.vue +87 -0
  47. package/src/components/base/CustomDialog.vue +88 -0
  48. package/src/components/base/Item.vue +79 -0
  49. package/src/components/base/ItemGroup.vue +131 -0
  50. package/src/components/base/ItemSubGroup.vue +25 -0
  51. package/src/components/base/MaterialAlert.vue +56 -0
  52. package/src/components/base/MaterialCard.vue +166 -0
  53. package/src/components/base/MaterialChartCard.vue +95 -0
  54. package/src/components/base/MaterialSnackbar.vue +71 -0
  55. package/src/components/base/MaterialStatsCard.vue +115 -0
  56. package/src/components/base/MaterialTabs.vue +43 -0
  57. package/src/components/base/MaterialTestimony.vue +79 -0
  58. package/src/components/base/NoItemAvailableNote.vue +22 -0
  59. package/src/components/base/OverviewHeading.vue +25 -0
  60. package/src/components/base/ProgressCircular.vue +68 -0
  61. package/src/components/base/RowWithLabel.vue +228 -0
  62. package/src/components/base/Subheading.vue +35 -0
  63. package/src/components/base/TextWithLabel.vue +41 -0
  64. package/src/components/base/VComponent.vue +40 -0
  65. package/src/components/charts/AasCircularChart.vue +170 -0
  66. package/src/components/charts/AasCircularChartFilterBar.vue +72 -0
  67. package/src/components/charts/LineChart.js +14 -0
  68. package/src/components/clusters/ClustersOverview.vue +76 -0
  69. package/src/components/clusters/dialogs/ClusterDeleteDialog.vue +125 -0
  70. package/src/components/clusters/dialogs/ClusterScaleDialog.vue +272 -0
  71. package/src/components/clusters/dialogs/ClustersCreateDialog.vue +112 -0
  72. package/src/components/clusters/dialogs/ClustersCreateDialogPage.ts +7 -0
  73. package/src/components/clusters/dialogs/ClustersCreateDialogPageAddExistingCluster.vue +261 -0
  74. package/src/components/clusters/dialogs/ClustersCreateDialogPageCreateNewCluster.vue +244 -0
  75. package/src/components/clusters/dialogs/ClustersCreateDialogPageStart.vue +75 -0
  76. package/src/components/core/AppBar.vue +301 -0
  77. package/src/components/core/Drawer.vue +207 -0
  78. package/src/components/core/Footer.vue +43 -0
  79. package/src/components/core/View.vue +32 -0
  80. package/src/components/credentials/CredentialCreateDialog.vue +121 -0
  81. package/src/components/credentials/CredentialDisplay.vue +105 -0
  82. package/src/components/credentials/CredentialForm.vue +394 -0
  83. package/src/components/credentials/CredentialTypes.ts +26 -0
  84. package/src/components/dashboard/Buttons.vue +431 -0
  85. package/src/components/dashboard/DashboardResourceStatistics.vue +53 -0
  86. package/src/components/dashboard/Grid.vue +300 -0
  87. package/src/components/dashboard/Icons.vue +300 -0
  88. package/src/components/dashboard/Notifications.vue +402 -0
  89. package/src/components/dashboard/Tabs.vue +418 -0
  90. package/src/components/dashboard/Typography.vue +120 -0
  91. package/src/components/discovery/DiscoverDialog.vue +186 -0
  92. package/src/components/discovery/DiscoveredResourcesTable.vue +176 -0
  93. package/src/components/discovery/DiscoveryJobDetailsDialog.vue +65 -0
  94. package/src/components/discovery/DiscoveryJobsDeleteDialog.vue +88 -0
  95. package/src/components/discovery/DiscoveryJobsTable.vue +131 -0
  96. package/src/components/discovery/DiscoveryOverview.vue +99 -0
  97. package/src/components/discovery/DriversTable.vue +70 -0
  98. package/src/components/discovery/OnboardingDialog.vue +82 -0
  99. package/src/components/jobs/JobsOverview.vue +173 -0
  100. package/src/components/notifications/NotificationsOverview.vue +154 -0
  101. package/src/components/provider/ProviderOverview.vue +64 -0
  102. package/src/components/provider/ServiceHosterTable.vue +47 -0
  103. package/src/components/provider/VirtualResourceProviderTable.vue +73 -0
  104. package/src/components/provider/dialogs/VmCreateDialog.vue +99 -0
  105. package/src/components/provider/dialogs/VmCreateDialogForm.vue +59 -0
  106. package/src/components/resources/ResourceConnectionIcon.vue +40 -0
  107. package/src/components/resources/ResourcesDeleteDialog.vue +102 -0
  108. package/src/components/resources/ResourcesTableClusters.vue +192 -0
  109. package/src/components/resources/ResourcesTableDevices.vue +338 -0
  110. package/src/components/resources/ResourcesTableTypes.vue +106 -0
  111. package/src/components/resources/capabilities/CapabilitiesButton.vue +164 -0
  112. package/src/components/resources/capabilities/CapabilityIcon.vue +44 -0
  113. package/src/components/resources/capabilities/CapabilityParamsDialog.vue +119 -0
  114. package/src/components/resources/capabilities/CapabilityParamsDialogInputField.vue +51 -0
  115. package/src/components/resources/deviceinfo/DeviceInfoCapabilitiesView.vue +239 -0
  116. package/src/components/resources/deviceinfo/DeviceInfoCredentialsView.vue +205 -0
  117. package/src/components/resources/deviceinfo/DeviceInfoHardwareView.vue +162 -0
  118. package/src/components/resources/deviceinfo/DeviceInfoNameplateView.vue +201 -0
  119. package/src/components/resources/deviceinfo/DeviceInfoSubmodelsView.vue +173 -0
  120. package/src/components/resources/deviceinfo/DeviceInfoView.vue +199 -0
  121. package/src/components/resources/deviceinfo/common/DeviceInfoCommonBasicsSection.vue +101 -0
  122. package/src/components/resources/deviceinfo/common/DeviceInfoCommonRemoteAccessSection.vue +224 -0
  123. package/src/components/resources/deviceinfo/common/DeviceInfoCommonView.vue +43 -0
  124. package/src/components/resources/deviceinfo/firmware/DeviceInfoFirmwareView.vue +113 -0
  125. package/src/components/resources/deviceinfo/firmware/FirmwareAvailableVersionsSection.vue +193 -0
  126. package/src/components/resources/deviceinfo/firmware/FirmwareCredentialsSection.vue +250 -0
  127. package/src/components/resources/deviceinfo/firmware/FirmwareUpdateJobsSection.vue +149 -0
  128. package/src/components/resources/deviceinfo/firmware/FirmwareUpdateStatusSection.vue +117 -0
  129. package/src/components/resources/deviceinfo/firmware/sectionState.ts +12 -0
  130. package/src/components/resources/devicetypeinfo/DeviceTypeInfoCommonView.vue +58 -0
  131. package/src/components/resources/devicetypeinfo/DeviceTypeInfoFirmwareView.vue +270 -0
  132. package/src/components/resources/devicetypeinfo/DeviceTypeInfoView.vue +110 -0
  133. package/src/components/resources/dialogs/DeviceCreateDeviceDetailsForm.vue +109 -0
  134. package/src/components/resources/dialogs/DeviceCreateDialog.vue +224 -0
  135. package/src/components/resources/dialogs/DeviceDialogCreateTypes.ts +11 -0
  136. package/src/components/resources/remoteaccess/RemoteAccessDialog.vue +82 -0
  137. package/src/components/resources/remoteaccess/RemoteAccessForm.vue +149 -0
  138. package/src/components/resources/remoteaccess/RemoteAccessHandler.ts +73 -0
  139. package/src/components/resources/remoteaccess/RemoteAccessTypes.ts +11 -0
  140. package/src/components/service_offerings/ServiceCategoriesTable.vue +154 -0
  141. package/src/components/service_offerings/ServiceCategoryCreateOrEditDialog.vue +117 -0
  142. package/src/components/service_offerings/ServiceOfferingCardGrid.vue +173 -0
  143. package/src/components/service_offerings/ServiceOfferingCardList.vue +117 -0
  144. package/src/components/service_offerings/ServiceOfferingDetailsOverview.vue +89 -0
  145. package/src/components/service_offerings/ServiceOfferingDetailsRequirements.vue +89 -0
  146. package/src/components/service_offerings/ServiceOfferingTable.vue +291 -0
  147. package/src/components/service_offerings/ServiceOfferingToolbar.vue +133 -0
  148. package/src/components/service_offerings/ServiceOptionValue.vue +213 -0
  149. package/src/components/service_offerings/dialogs/ServiceOfferingCreateDialog.vue +70 -0
  150. package/src/components/service_offerings/wizard_service_offering/ServiceOfferingWizardGitStep1Common.vue +214 -0
  151. package/src/components/service_offerings/wizard_service_offering/ServiceOfferingWizardManualStep1Common.vue +196 -0
  152. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerContainerImageName.vue +112 -0
  153. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerContainerLabels.vue +158 -0
  154. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerContainerPortMappings.vue +177 -0
  155. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerContainerRestartPolicy.vue +63 -0
  156. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerContainerVolumes.vue +157 -0
  157. package/src/components/service_offerings/wizard_service_offering_version/Docker/DockerEnvironmentVariables.vue +163 -0
  158. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep1Common.vue +154 -0
  159. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep2DeploymentDefinitionCodesys.vue +139 -0
  160. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep2DeploymentDefinitionDockerCompose.vue +423 -0
  161. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep2DeploymentDefinitionDockerContainer.vue +293 -0
  162. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep2DeploymentDefinitionKubernetes.vue +382 -0
  163. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep3ServiceOptions.vue +193 -0
  164. package/src/components/service_offerings/wizard_service_offering_version/ServiceOfferingVersionWizardStep4Requirements.vue +238 -0
  165. package/src/components/service_offerings/wizard_service_offering_version/ServiceRepositorySelect.vue +90 -0
  166. package/src/components/service_offerings/wizard_service_offering_version/serviceOptions/serviceOptionsDefinitionTable.vue +210 -0
  167. package/src/components/service_vendors/ServiceRepositoryCreateDialog.vue +165 -0
  168. package/src/components/service_vendors/ServiceVendorCreateOrEditDialog.vue +171 -0
  169. package/src/components/service_vendors/ServiceVendorDevelopersTable.vue +201 -0
  170. package/src/components/service_vendors/ServiceVendorTable.vue +158 -0
  171. package/src/components/services/ServiceInstanceDeleteDialog.vue +29 -0
  172. package/src/components/services/ServiceInstancesOverview.vue +63 -0
  173. package/src/components/services/ServiceInstancesTable.vue +379 -0
  174. package/src/components/services/dialog/ServiceInstanceDetailsDialog.vue +369 -0
  175. package/src/components/services/serviceInstanceMixin.js +29 -0
  176. package/src/components/tables/RegularTables.vue +186 -0
  177. package/src/components/updates/FirmwareUpdateStatusIcon.vue +54 -0
  178. package/src/components/updates/FirmwareUpdateVersion.vue +65 -0
  179. package/src/components/user/UserCredentials.vue +278 -0
  180. package/src/components/user/UserProfileDetails.vue +89 -0
  181. package/src/customization/customizeApp.ts +6 -0
  182. package/src/customization/customizeMessages.ts +6 -0
  183. package/src/customization/customizeNavigation.ts +6 -0
  184. package/src/customization/customizeRoutes.ts +6 -0
  185. package/src/customization/deepMerge.ts +28 -0
  186. package/src/customization/theme.ts +15 -0
  187. package/src/design/overrides.sass +62 -0
  188. package/src/design/serviceOfferingCard.scss +38 -0
  189. package/src/design/variables.scss +34 -0
  190. package/src/design/vuetify-material/_appbar.sass +54 -0
  191. package/src/design/vuetify-material/_buttons.sass +67 -0
  192. package/src/design/vuetify-material/_card.sass +107 -0
  193. package/src/design/vuetify-material/_chip.sass +9 -0
  194. package/src/design/vuetify-material/_footer.sass +29 -0
  195. package/src/design/vuetify-material/_map.sass +3 -0
  196. package/src/design/vuetify-material/_modal.sass +25 -0
  197. package/src/design/vuetify-material/_notification.sass +12 -0
  198. package/src/design/vuetify-material/_pagination.sass +5 -0
  199. package/src/design/vuetify-material/_settings.sass +36 -0
  200. package/src/design/vuetify-material/_sidebar.sass +69 -0
  201. package/src/design/vuetify-material/_tab.sass +12 -0
  202. package/src/design/vuetify-material/_table.sass +22 -0
  203. package/src/design/vuetify-material/_view.sass +23 -0
  204. package/src/docker/entrypoint.sh +85 -0
  205. package/src/docker/nginx.conf +35 -0
  206. package/src/docker/slm.conf +15 -0
  207. package/src/localisation/de.json +91 -0
  208. package/src/localisation/en.json +294 -0
  209. package/src/main.ts +167 -0
  210. package/src/pages/AccessDeniedPage.vue +10 -0
  211. package/src/pages/AdminComponentsPage.vue +34 -0
  212. package/src/pages/AdminPage.vue +68 -0
  213. package/src/pages/AdminServiceCategoriesPage.vue +34 -0
  214. package/src/pages/AdminServiceVendorsPage.vue +53 -0
  215. package/src/pages/AdminUsersPage.vue +367 -0
  216. package/src/pages/ClustersPage.vue +64 -0
  217. package/src/pages/DashboardPage.vue +379 -0
  218. package/src/pages/DiscoveryDriversPage.vue +35 -0
  219. package/src/pages/DiscoveryInboxPage.vue +31 -0
  220. package/src/pages/DiscoveryJobsPage.vue +34 -0
  221. package/src/pages/IndexPage.vue +29 -0
  222. package/src/pages/JobsPage.vue +18 -0
  223. package/src/pages/NotificationsPage.vue +13 -0
  224. package/src/pages/ProviderPage.vue +18 -0
  225. package/src/pages/ResourceInstancesPage.vue +106 -0
  226. package/src/pages/ResourceTypesPage.vue +102 -0
  227. package/src/pages/ServiceInstancesPage.vue +33 -0
  228. package/src/pages/ServiceOfferingCreateOrEditPage.vue +197 -0
  229. package/src/pages/ServiceOfferingDetailsPage.vue +180 -0
  230. package/src/pages/ServiceOfferingOrderPage.vue +300 -0
  231. package/src/pages/ServiceOfferingVersionCreateOrEditPage.vue +431 -0
  232. package/src/pages/ServiceOfferingsPage.vue +149 -0
  233. package/src/pages/ServiceVendorPage.vue +431 -0
  234. package/src/pages/UserProfilePage.vue +64 -0
  235. package/src/pages/router.js +34 -0
  236. package/src/shims-vue.d.ts +5 -0
  237. package/src/stores/capabilitiesStore.ts +116 -0
  238. package/src/stores/catalogStore.ts +50 -0
  239. package/src/stores/discoveryStore.ts +88 -0
  240. package/src/stores/environmentStore.ts +61 -0
  241. package/src/stores/jobsStore.ts +73 -0
  242. package/src/stores/notificationStore.ts +155 -0
  243. package/src/stores/providerStore.ts +52 -0
  244. package/src/stores/resourceClustersStore.ts +98 -0
  245. package/src/stores/resourceDevicesStore.ts +294 -0
  246. package/src/stores/serviceInstancesStore.ts +93 -0
  247. package/src/stores/serviceOfferingsStore.ts +208 -0
  248. package/src/stores/store.ts +66 -0
  249. package/src/stores/userStore.ts +126 -0
  250. package/src/utils/capabilityUtils.js +114 -0
  251. package/src/utils/dateUtils.js +21 -0
  252. package/src/utils/deviceUtils.js +74 -0
  253. package/src/utils/firmwareUtils.ts +35 -0
  254. package/src/utils/i18n.ts +28 -0
  255. package/src/utils/imageUtil.js +37 -0
  256. package/src/utils/notificationTextGenerator.ts +82 -0
  257. package/src/utils/serviceOptionUtil.js +106 -0
  258. package/src/utils/tokenInterceptor.js +59 -0
  259. package/src/utils/updateToken.js +18 -0
  260. package/src/utils/yup.custom.js +11 -0
  261. package/vite/dist/apiClients.d.ts +5 -0
  262. package/vite/dist/apiClients.js +58 -0
  263. package/vite/dist/drift.d.ts +9 -0
  264. package/vite/dist/drift.js +57 -0
  265. package/vite/dist/index.d.ts +4 -0
  266. package/vite/dist/index.js +94 -0
  267. package/vite/dist/overrides.d.ts +3 -0
  268. package/vite/dist/overrides.js +71 -0
  269. package/vite/dist/paths.d.ts +18 -0
  270. package/vite/dist/paths.js +22 -0
  271. package/vite/package.json +1 -0
@@ -0,0 +1,91 @@
1
+ {
2
+ "SelectedDevice": {
3
+ "DeviceInfos": "Geräteinfos",
4
+ "connection": {
5
+ "ConnectionInformation": "Cloud-Verbindungsinformationen",
6
+ "lastContact": "Letzter Kontakt",
7
+ "connectionState": "Verbindungsstatus",
8
+ "connectionType": "Verbindungstyp",
9
+ "connectionFormat": "Verbindungsformat"
10
+ }
11
+ },
12
+ "headline": {
13
+ "Dashboard": "Anwendungen",
14
+ "Devices": "Geräte",
15
+ "App": "Gerätemanager",
16
+ "Device": "Gerät",
17
+ "Services": "Dienste"
18
+ },
19
+ "vuetify": {
20
+ "dataIterator": {
21
+ "itemsPerPageText": "Ressourcen pro Seite",
22
+ "itemsPerPageAllText": "Alle Ressourcen",
23
+ "pageText": "{0}-{1} von {2}"
24
+ }
25
+ },
26
+ "labels": {
27
+ "Value": "Wert",
28
+ "SearchLabel": "Suche",
29
+ "CategoryFilterLabel": "Kategorie (Mehrfachauswahl)",
30
+ "DeploymentTypeFilterLabel": "Bereitstellungstyp (Mehrfachauswahl)",
31
+ "UUID": "UUID",
32
+ "Name": "Name",
33
+ "Description": "Beschreibung",
34
+ "LastContact": "Letzte Verbindung",
35
+ "Status": "Status",
36
+ "Actions": "Aktionen",
37
+ "Flag": "de",
38
+ "Action": "Aktion",
39
+ "Connection": "Verbindung",
40
+ "URL": "URL"
41
+ },
42
+ "buttons": {
43
+ "Generate": "UUID generieren",
44
+ "Cancel": "Abbrechen",
45
+ "Back": "Zurück",
46
+ "Save": "Speichern",
47
+ "Edit": "Bearbeiten",
48
+ "RandomDevice": "Zufälliges Gerät",
49
+ "Hide_info": "Info ausblenden",
50
+ "Order": "Bestellen",
51
+ "Checkout": "Kasse",
52
+ "Next": "Nächster",
53
+ "Finish": "Ende",
54
+ "Update": "Aktualisieren",
55
+ "Create": "Erstellen",
56
+ "AddLogic": "Logik hinzufügen",
57
+ "AddProperty": "Eigenschaft hinzufügen",
58
+ "AddRequirement": "Anforderung hinzufügen"
59
+ },
60
+ "infoText": {
61
+ "NoDevice": "Keine Geräte erkannt, bitte laden Sie die Seite neu",
62
+ "NoService": "Keine Services erkannt, bitte laden Sie die Seite neu",
63
+ "AddDevice": "Fügen Sie einige neue Geräte hinzu",
64
+ "EditDialog": "Gerät aktualisieren",
65
+ "AddDialog": "Fügen Sie ein neues Gerät hinzu",
66
+ "footer": "Erstellt 2019 von Dominik Ratzel",
67
+ "SelectedDevice": "Ausgewähltes Gerät",
68
+ "ReloadPage": "Seite neuladen"
69
+ },
70
+
71
+ "RequirementLabels": {
72
+ "PropertySemanticId": "Semantische Id der Eigenschaft",
73
+ "PropertyValue": "Wert der Eigenschaft",
74
+ "ParentSubmodelsSemanticIds": "Semantische Ids der übergeordneten Teilmodelle"
75
+ },
76
+
77
+ "ServiceLabels": {
78
+ "Images": "Bilder",
79
+ "Documents": "Dokumente",
80
+ "Service_Requirements": "Serviceanforderungen",
81
+ "Overview": "Überblick",
82
+ "ChooseDeploymentType": "Wählen Sie einen Bereitstellungstype"
83
+ },
84
+
85
+ "ServiceStepper": {
86
+ "Common": "Allgemein",
87
+ "Deployment_Type": "Bereitstellungstyp",
88
+ "Service_Options": "Serviceoptionen",
89
+ "Requirements": "Anforderungen"
90
+ }
91
+ }
@@ -0,0 +1,294 @@
1
+ {
2
+ "drawer": {
3
+ "section": {
4
+ "dashboard": {
5
+ "title": "Dashboard"
6
+ },
7
+ "jobs": {
8
+ "title": "Jobs"
9
+ },
10
+ "resources": {
11
+ "title": "Resources",
12
+ "devices": {
13
+ "title": "Devices",
14
+ "instances": {
15
+ "title": "Instances"
16
+ },
17
+ "types": {
18
+ "title": "Types"
19
+ }
20
+ },
21
+ "clusters": {
22
+ "title": "Clusters"
23
+ },
24
+ "discovery": {
25
+ "title": "Discovery",
26
+ "inbox": {
27
+ "title": "Inbox"
28
+ },
29
+ "jobs": {
30
+ "title": "Jobs"
31
+ },
32
+ "drivers": {
33
+ "title": "Drivers"
34
+ }
35
+ }
36
+ },
37
+ "services": {
38
+ "title": "Services",
39
+ "serviceOfferings": {
40
+ "title": "Service Offerings"
41
+ },
42
+ "serviceVendor": {
43
+ "title": "Service Vendor"
44
+ },
45
+ "services": {
46
+ "title": "Services"
47
+ }
48
+ },
49
+
50
+ "admin": {
51
+ "title": "Admin",
52
+ "components":{
53
+ "title": "Components"
54
+ },
55
+ "service-categories":{
56
+ "title": "Service Categories"
57
+ },
58
+ "service-vendors":{
59
+ "title": "Service Vendors"
60
+ }
61
+ }
62
+ }
63
+ },
64
+
65
+ "avatar": "Edge Deployment",
66
+ "buttons": "Buttons",
67
+ "calendar": "Calendar",
68
+ "charts": "Charts",
69
+ "components": "Components",
70
+ "ct": "CT",
71
+ "dashboard": "Dashboard",
72
+ "dtables": "Data Tables",
73
+ "eforms": "Extended Forms",
74
+ "error": "Error Page",
75
+ "etables": "Extended Tables",
76
+ "example": "Example",
77
+ "forms": "Forms",
78
+ "fullscreen": "Full Screen Map",
79
+ "google": "Google Maps",
80
+ "grid": "Grid System",
81
+ "icons": "Icons",
82
+ "lock": "Lock Screen Page",
83
+ "login": "Login Page",
84
+ "maps": "Maps",
85
+ "multi": "Multi Level Collapse",
86
+ "notifications": "Notifications",
87
+ "pages": "Pages",
88
+ "plan": "Choose Plan",
89
+ "pricing": "Pricing",
90
+ "my-profile": "My Profile",
91
+ "edit-profile": "Edit Profile",
92
+ "register": "Register Page",
93
+ "rforms": "Regular Forms",
94
+ "rtables": "Regular Tables",
95
+ "rtl": "RTL Support",
96
+ "search": "Search",
97
+ "settings": "Settings",
98
+ "tables": "Tables",
99
+ "tabs": "Tabs",
100
+ "timeline": "Timeline",
101
+ "typography": "Typography",
102
+ "upgrade": "Upgrade To PRO",
103
+ "user": "User Profile",
104
+ "vforms": "Validation Forms",
105
+ "widgets": "Widgets",
106
+ "wizard": "Wizard",
107
+
108
+ "title.dashboard": "Dashboard",
109
+ "title.resources": "Resources",
110
+ "title.services": "Services",
111
+
112
+ "SelectedDevice": {
113
+ "DeviceInfos": "Device Infos",
114
+ "connection": {
115
+ "ConnectionInformation": "Cloud Connection Information",
116
+ "lastContact": "Last Contact",
117
+ "connectionState": "Connection State",
118
+ "connectionType": "Connection Type",
119
+ "connectionFormat": "Connection Format"
120
+ }
121
+ },
122
+ "headline": {
123
+ "Dashboard": "Applications",
124
+ "Devices": "Devices",
125
+ "App": "Device Manager",
126
+ "Device": "Device",
127
+ "Token": "Access Token",
128
+ "Services": "Services"
129
+ },
130
+
131
+ "vuetify": {
132
+ "dataIterator": {
133
+ "itemsPerPageText": "Resources per page",
134
+ "itemsPerPageAllText": "All Resources",
135
+ "pageText": "{0}-{1} of {2}"
136
+ }
137
+ },
138
+ "labels": {
139
+ "Value": "Value",
140
+ "SearchLabel": "Search",
141
+ "CategoryFilterLabel": "Category",
142
+ "DeploymentTypeFilterLabel": "Deployment Type",
143
+ "UUID": "UUID",
144
+ "Name": "Name",
145
+ "Description": "Description",
146
+ "LastContact": "Last Connection",
147
+ "Status": "Status",
148
+ "Actions": "Actions",
149
+ "Flag": "us",
150
+ "Action": "Action",
151
+ "Connection": "Connection",
152
+ "URL": "URL"
153
+ },
154
+
155
+ "buttons": {
156
+ "Generate": "Generate UUID",
157
+ "Cancel": "Cancel",
158
+ "Back": "Back",
159
+ "Save": "Save",
160
+ "Edit": "Edit",
161
+ "RandomDevice": "Random Device",
162
+ "Hide_info": "Cancel",
163
+ "Order": "Order",
164
+ "Checkout": "Checkout",
165
+ "Next": "Next",
166
+ "Finish": "Finish",
167
+ "Update": "Update",
168
+ "Create": "Create",
169
+ "AddLogic": "Add Logic",
170
+ "AddProperty": "Add Property",
171
+ "AddRequirement": "Add Requirement"
172
+ },
173
+
174
+ "infoText": {
175
+ "NoDevice": "No Devices detected, please reload the page",
176
+ "NoService": "No Service detected, please reload the page",
177
+ "AddDevice": "Add some new Devices",
178
+ "EditDialog": "Update Device",
179
+ "AddDialog": "Add a new Device",
180
+ "footer": "Created 2019 by Dominik Ratzel",
181
+ "SelectedDevice": "Selected Device",
182
+ "ReloadPage": "Reload Page"
183
+ },
184
+
185
+ "RequirementLabels": {
186
+ "PropertySemanticId": "Property Semantic Id",
187
+ "PropertyValue": "Property Value",
188
+ "ParentSubmodelsSemanticIds": "Parent Submodel Semantic Ids"
189
+ },
190
+
191
+ "ServiceLabels": {
192
+ "Images": "Images",
193
+ "Documents": "Documents",
194
+ "Service_Requirements": "Service Requirements",
195
+ "Overview": "Overview",
196
+ "ChooseDeploymentType": "Choose a Deployment Type"
197
+ },
198
+
199
+ "ServiceStepper": {
200
+ "Common": "Common",
201
+ "Deployment_Type": "DeploymentType",
202
+ "Service_Options": "Service Options",
203
+ "Requirements": "Requirements"
204
+ },
205
+
206
+ "AAS": {
207
+ "SubmodelTemplates": {
208
+ "DigitalNameplateV3": {
209
+ "Properties": {
210
+ "URIOfTheProduct": {
211
+ "Name": "URI of the Product",
212
+ "Description": "Unique global identification of the product instance using an universal resource identifier (URI)"
213
+ },
214
+ "ManufacturerName": {
215
+ "Name": "Manufacturer Name",
216
+ "Description": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation"
217
+ },
218
+ "ManufacturerProductDesignation": {
219
+ "Name": "Manufacturer Product Designation",
220
+ "Description": "Short description of the product (short text), third or lowest level of a 3 level manufacturer specific product hierarchy"
221
+ },
222
+ "AddressInformation": {
223
+ "Name": "Address Information",
224
+ "Description": "Address information in the form of IDTA Submodel Template 'Contact Information' (IDTA Number 02002)"
225
+ },
226
+ "ManufacturerProductRoot": {
227
+ "Name": "Manufacturer Product Root",
228
+ "Description": "Top level of a 3 level manufacturer specific product hierarchy"
229
+ },
230
+ "ManufacturerProductFamily": {
231
+ "Name": "Manufacturer Product Family",
232
+ "Description": "Second level of a 3 level manufacturer specific product hierarchy"
233
+ },
234
+ "ManufacturerProductType": {
235
+ "Name": "Manufacturer Product Type",
236
+ "Description": "Characteristic to differentiate between different products of a product family or special variants"
237
+ },
238
+ "OrderCodeOfManufacturer": {
239
+ "Name": "Order Code of Manufacturer",
240
+ "Description": "Unique combination of numbers and letters issued by the manufacturer that is used to identify the device for ordering"
241
+ },
242
+ "ProductArticleNumberOfManufacturer": {
243
+ "Name": "Product Article Number of Manufacturer",
244
+ "Description": "Unique product identifier of the manufacturer"
245
+ },
246
+ "SerialNumber": {
247
+ "Name": "Serial Number",
248
+ "Description": "Unique combination of numbers and letters used to identify the device once it has been manufactured"
249
+ },
250
+ "YearOfConstruction": {
251
+ "Name": "Year of Construction",
252
+ "Description": "Year in which the manufacturing process is completed"
253
+ },
254
+ "DateOfManufacture": {
255
+ "Name": "Date of Manufacture",
256
+ "Description": "Date when an item was manufactured"
257
+ },
258
+ "HardwareVersion": {
259
+ "Name": "Hardware Version",
260
+ "Description": "Version of the hardware supplied with the device"
261
+ },
262
+ "FirmwareVersion": {
263
+ "Name": "Firmware Version",
264
+ "Description": "Version of the firmware supplied with the device"
265
+ },
266
+ "SoftwareVersion": {
267
+ "Name": "Software Version",
268
+ "Description": "Version of the software used by the device"
269
+ },
270
+ "CountryOfOrigin": {
271
+ "Name": "Country of Origin",
272
+ "Description": "Country where the product was manufactured Note: Country codes defined accord. to DIN EN ISO 3166-1 alpha-2 codes"
273
+ },
274
+ "UniqueFacilityIdentifier": {
275
+ "Name": "Unique Facility Identifier",
276
+ "Description": "Unique string of characters for the identification of locations or buildings involved in a product’s value chain or used by actors involved in a product’s value chain"
277
+ },
278
+ "CompanyLogo": {
279
+ "Name": "Company Logo",
280
+ "Description": "A graphic mark used to represent a company, an organisation or a product"
281
+ },
282
+ "Markings": {
283
+ "Name": "Markings",
284
+ "Description": "Markings on the product"
285
+ },
286
+ "AssetSpecificProperties": {
287
+ "Name": "Asset Specific Properties",
288
+ "Description": "Asset specific properties of the product"
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }
294
+ }
package/src/main.ts ADDED
@@ -0,0 +1,167 @@
1
+ import {app} from '@/app/appInstance';
2
+
3
+ import router from './pages/router';
4
+ import 'chartist/dist/chartist.min.css';
5
+ import 'material-design-icons-iconfont/dist/material-design-icons.css';
6
+ import setupTokenInterceptor from '@/utils/tokenInterceptor';
7
+ import VueKeycloakJs from '@dsb-norge/vue-keycloak-js'
8
+ import VueToast from 'vue-toast-notification';
9
+ import 'vue-toast-notification/dist/theme-sugar.css';
10
+ import enums from 'vue-enums';
11
+ import moment from 'moment';
12
+
13
+ import {Chart, registerables} from 'chart.js';
14
+ import {createVuetify} from "vuetify";
15
+ import cors from "cors";
16
+ import NotificationServiceWebsocketClient from "@/api/notification-service/notificationServiceWebsocketClient";
17
+
18
+ import 'vuetify/styles';
19
+ import '@/design/overrides.sass';
20
+ import upperFirst from 'lodash/upperFirst';
21
+ import camelCase from 'lodash/camelCase';
22
+
23
+ import NoItemAvailableNote from "@/components/base/NoItemAvailableNote.vue";
24
+ import {createPinia} from 'pinia';
25
+ import {useUserStore} from "@/stores/userStore";
26
+ import {useCatalogStore} from "@/stores/catalogStore";
27
+ import {useServiceOfferingsStore} from "@/stores/serviceOfferingsStore";
28
+ import {useServiceInstancesStore} from "@/stores/serviceInstancesStore";
29
+ import {useProviderStore} from "@/stores/providerStore";
30
+ import {useResourceDevicesStore} from "@/stores/resourceDevicesStore";
31
+ import {useResourceClustersStore} from "@/stores/resourceClustersStore";
32
+ import {useDiscoveryStore} from "@/stores/discoveryStore";
33
+ import {useNotificationStore} from "@/stores/notificationStore";
34
+ import {useJobsStore} from "@/stores/jobsStore";
35
+ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
36
+ import * as yup from "yup";
37
+ import i18nInstance from '@/utils/i18n'
38
+ import theme from "@/customization/theme";
39
+ import customizeApp from "@/customization/customizeApp";
40
+ import yupValidateIPv4 from "@/utils/yup.custom";
41
+ import {VueKeycloakInstance} from "@dsb-norge/vue-keycloak-js/dist/types";
42
+ import {useEnvStore} from "@/stores/environmentStore";
43
+ import updateToken from "@/utils/updateToken";
44
+ import {useCapabilitiesStore} from "@/stores/capabilitiesStore";
45
+
46
+ console.log("App Mode: " + import.meta.env.MODE)
47
+
48
+ const pinia = createPinia();
49
+ pinia.use(piniaPluginPersistedstate);
50
+ app.use(pinia);
51
+
52
+ const envStore = useEnvStore();
53
+
54
+ const components = import.meta.glob('@/components/base/*.vue');
55
+ for (const path in components) {
56
+ components[path]().then((module) => {
57
+ const componentName = upperFirst(
58
+ camelCase(path.replace(/^.*[\\\/]/, '').replace(/\.\w+$/, ''))
59
+ );
60
+ app.component(`Base${componentName}`, module.default);
61
+ });
62
+ }
63
+
64
+ app.component('NoItemAvailableNote', NoItemAvailableNote);
65
+
66
+ app.use(VueKeycloakJs, {
67
+ init: {
68
+ onLoad: 'login-required',
69
+ checkLoginIframe: false,
70
+ },
71
+ config: {
72
+ url: envStore.keycloakUrl,
73
+ realm: envStore.keycloakRealm,
74
+ clientId: envStore.keycloakClientId,
75
+ },
76
+ onInitError(error, keycloakError) {
77
+ console.error('Keycloak init error', error, keycloakError);
78
+ },
79
+ onReady (keycloak) {
80
+ updateToken();
81
+ setupTokenInterceptor();
82
+
83
+ // Connect to notification service via WebSocket
84
+ NotificationServiceWebsocketClient.connect();
85
+
86
+ // Update stores
87
+ const userStore = useUserStore();
88
+ const catalogStore = useCatalogStore();
89
+ const serviceOfferingsStore = useServiceOfferingsStore();
90
+ const serviceInstancesStore = useServiceInstancesStore();
91
+ const providerStore = useProviderStore();
92
+ const resourceDevicesStore = useResourceDevicesStore();
93
+ const resourceClustersStore = useResourceClustersStore();
94
+ const capabilitiesStore = useCapabilitiesStore();
95
+ const discoveryStore = useDiscoveryStore();
96
+ const notificationStore = useNotificationStore();
97
+ const jobsStore = useJobsStore();
98
+
99
+ Promise.all([
100
+ userStore.updateStore(),
101
+ catalogStore.updateStore(),
102
+ serviceOfferingsStore.updateStore(),
103
+ serviceInstancesStore.updateStore(),
104
+ providerStore.updateStore(),
105
+ resourceDevicesStore.updateStore(),
106
+ resourceClustersStore.updateStore(),
107
+ capabilitiesStore.updateStore(),
108
+ discoveryStore.updateStore(),
109
+ notificationStore.updateStore(),
110
+ jobsStore.updateStore(),
111
+ ]).then(() => {
112
+ console.log('All stores loaded successfully');
113
+ }).catch((err) => {
114
+ console.error('Error loading stores:', err);
115
+ });
116
+ },
117
+ });
118
+
119
+ // Allow usage of this.$keycloak in components
120
+ declare module '@vue/runtime-core' {
121
+ interface ComponentCustomProperties {
122
+ $keycloak: VueKeycloakInstance
123
+ }
124
+ }
125
+
126
+ Chart.register(...registerables);
127
+
128
+ app.config.globalProperties.moment = moment;
129
+
130
+ app.use(enums);
131
+
132
+
133
+ const vuetify = createVuetify({
134
+ // lang: {
135
+ // t: (key, ...params) => i18n.t(key, params),
136
+ // },
137
+ theme: {
138
+ defaultTheme: 'light',
139
+ themes: {
140
+ dark: theme,
141
+ light: theme,
142
+ },
143
+ },
144
+ });
145
+ app.use(vuetify);
146
+
147
+ app.use(cors)
148
+
149
+ app.use(router);
150
+
151
+
152
+
153
+ app.use(i18nInstance);
154
+
155
+ app.use(VueToast,{
156
+ position: 'bottom-right',
157
+ duration: 5000,
158
+ dismissible: true,}
159
+ );
160
+
161
+ customizeApp(app);
162
+ app.mount('#app');
163
+
164
+ yup.addMethod(yup.string, 'ipv4', yupValidateIPv4);
165
+
166
+ // Kept for backward compatibility; import `globals` from '@/app/appInstance' instead.
167
+ export { globals } from '@/app/appInstance'
@@ -0,0 +1,10 @@
1
+ <template>
2
+ <div>
3
+ Access Denied (Missing Permissions)
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ }
10
+ </script>
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <div>
3
+ <!-- Version !-->
4
+ <versions-overview />
5
+ </div>
6
+ </template>
7
+ <script>
8
+
9
+ import VersionsOverview from '@/components/admin/VersionsOverview'
10
+ import {useServiceOfferingsStore} from "@/stores/serviceOfferingsStore";
11
+
12
+ export default {
13
+ name: 'AdminComponentsPage',
14
+ components: { VersionsOverview, },
15
+ setup(){
16
+ const serviceOfferingsStore = useServiceOfferingsStore();
17
+ return {serviceOfferingsStore};
18
+ },
19
+ computed: {
20
+ serviceVendors() {
21
+ return this.serviceOfferingsStore.serviceVendors
22
+ },
23
+ },
24
+ created () {
25
+ this.serviceOfferingsStore.getServiceVendors();
26
+ },
27
+ methods: {
28
+ },
29
+ }
30
+ </script>
31
+
32
+ <style scoped>
33
+
34
+ </style>
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <div>
3
+ <!-- Version !-->
4
+ <versions-overview />
5
+
6
+ <!-- Service Categories !-->
7
+ <service-categories-table />
8
+
9
+ <!-- Service Vendors !-->
10
+ <service-vendor-table @serviceVendorClicked="onServiceVendorClicked" />
11
+
12
+ <!-- Developers !-->
13
+ <service-vendors-developers-table
14
+ v-if="selectedServiceVendor != null"
15
+ :service-vendor="selectedServiceVendor"
16
+ @closed="selectedServiceVendor = null"
17
+ />
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+
23
+ import VersionsOverview from '@/components/admin/VersionsOverview'
24
+ import ServiceCategoriesTable from '@/components/service_offerings/ServiceCategoriesTable'
25
+ import ServiceVendorsDevelopersTable from '@/components/service_vendors/ServiceVendorDevelopersTable'
26
+ import ServiceVendorTable from '@/components/service_vendors/ServiceVendorTable'
27
+ import {useServiceOfferingsStore} from "@/stores/serviceOfferingsStore";
28
+
29
+ export default {
30
+ name: 'AdminPage',
31
+ components: { ServiceCategoriesTable, ServiceVendorTable, ServiceVendorsDevelopersTable, VersionsOverview, },
32
+ setup(){
33
+ const serviceOfferingsStore = useServiceOfferingsStore();
34
+ return {serviceOfferingsStore};
35
+ },
36
+ data () {
37
+ return {
38
+ selectedServiceVendor: null,
39
+ editServiceVendor: false,
40
+ showCreateOrEditServiceVendorDialog: false,
41
+ }
42
+ },
43
+ computed: {
44
+ serviceVendors() {
45
+ return this.serviceOfferingsStore.serviceVendors
46
+ },
47
+ ServiceVendorsTableHeaders () {
48
+ return [
49
+ { title: 'Id', value: 'serviceVendorId', sortable: true },
50
+ { title: 'Name', value: 'serviceVendorName', sortable: true },
51
+ { title: 'Description', value: 'serviceVendorDescription', sortable: false },
52
+ { title: 'Actions', value: 'serviceVendorActions', sortable: false },
53
+ ]
54
+ },
55
+ },
56
+ created () {
57
+ this.serviceOfferingsStore.getServiceVendors();
58
+ },
59
+ methods: {
60
+ onServiceVendorClicked (serviceVendor) {
61
+ this.selectedServiceVendor = serviceVendor
62
+ },
63
+ },
64
+ }
65
+ </script>
66
+
67
+ <style scoped>
68
+ </style>