@protacon/muster-booking-frontend 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Jenkinsfile CHANGED
@@ -2,7 +2,7 @@ library 'jenkins-ptcs-library@5.0.0'
2
2
 
3
3
  podTemplate(label: pod.label,
4
4
  containers: pod.templates + [ // This adds all depencies for jenkins-ptcs-library methods to function correctly.
5
- containerTemplate(name: 'node', image: 'node:10', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'),
5
+ containerTemplate(name: 'node', image: 'node:22', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'),
6
6
  ]
7
7
  ) {
8
8
  node(pod.label) {
package/README.md CHANGED
@@ -1,12 +1,15 @@
1
1
  # Muster booking frontend
2
+
2
3
  Online booking frontend
3
4
 
4
5
  ## Install
6
+
5
7
  ```
6
8
  npm install @protacon/muster-booking-frontend
7
9
  ```
8
10
 
9
11
  ## Usage
12
+
10
13
  ```js
11
14
  import BookingComponent from '@protacon/muster-booking-frontend'
12
15
  import '@protacon/muster-booking-frontend/dist/styles.bundle.css'
@@ -39,11 +42,19 @@ render() {
39
42
  ```
40
43
 
41
44
  To start component with existing reservation payment navigate to page with component with search:
45
+
42
46
  ```
43
47
  ?continuePaymentReservationUid={reservationUid}&stationId={stationId}
44
48
  ```
45
49
 
50
+ To start component with existing reservation edit navigate to page with component with search:
51
+
52
+ ```
53
+ ?reservationId={reservationUid}&stationId={stationId}
54
+ ```
55
+
46
56
  ## Development
57
+
47
58
  ```
48
59
  npm start
49
60
  open http://localhost:8080/
@@ -5,12 +5,12 @@ variables:
5
5
  - group: smuster-secrets
6
6
 
7
7
  pool:
8
- vmImage: 'windows-2022'
8
+ vmImage: "ubuntu-22.04"
9
9
 
10
10
  steps:
11
11
  - task: NodeTool@0
12
12
  inputs:
13
- versionSpec: '14.x'
13
+ versionSpec: "22.x"
14
14
  - script: npm ci
15
15
  displayName: Npm install
16
16
  - script: npm run build-web
@@ -20,22 +20,21 @@ steps:
20
20
  - task: ArchiveFiles@2
21
21
  displayName: Archive files
22
22
  inputs:
23
- rootFolderOrFile: './dist'
23
+ rootFolderOrFile: "./dist"
24
24
  includeRootFolder: false
25
- archiveType: 'zip'
26
- archiveFile: .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceVersion).zip
25
+ archiveType: "zip"
26
+ archiveFile: ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceVersion).zip
27
27
  replaceExistingArchive: true
28
28
  verbose: true
29
29
  quiet: true
30
- - powershell: Copy-Item -Path .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceVersion).zip -Destination .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceBranchName).latest.zip -Force
30
+ - powershell: Copy-Item -Path ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceVersion).zip -Destination ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceBranchName).latest.zip -Force
31
31
  displayName: Copy items
32
32
  name: CreateLatestPackageIfNeeded
33
33
  condition: and(succeeded(), not(eq(variables['Build.SourceBranchName'], 'merge')))
34
- - task: AzureFileCopy@3
35
- displayName: Push artifacts to storage
34
+ - task: AzureCLI@2
35
+ displayName: Upload to Azure Blob Storage
36
36
  inputs:
37
- SourcePath: .\buildoutput\
38
37
  azureSubscription: protaconmuster
39
- Destination: 'AzureBlob'
40
- storage: $(artifact-storage)
41
- ContainerName: 'smuster-carspect-booking-frontend'
38
+ scriptType: "pscore"
39
+ scriptLocation: "inlineScript"
40
+ inlineScript: "az storage blob upload-batch --destination smuster-carspect-booking-frontend --account-name $(artifact-storage) --source ./buildoutput/ --overwrite true"