Skip to content

Commit

Permalink
Format other frontend code using prettier (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy authored and k8s-ci-robot committed Dec 11, 2019
1 parent 83fb135 commit 4500d24
Show file tree
Hide file tree
Showing 21 changed files with 1,235 additions and 1,279 deletions.
1 change: 0 additions & 1 deletion frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
src/generated
server
19 changes: 6 additions & 13 deletions frontend/backstop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config = {
debugWindow: false,
engine: 'puppeteer',
engineOptions: {
args: ['--no-sandbox']
args: ['--no-sandbox'],
},
id: 'pipelines',
onReadyScript: 'steps.js',
Expand All @@ -44,35 +44,28 @@ const config = {
},
{
label: 'hover on first row',
steps: [
{ action: 'hover', selector: '.tableRow' },
],
steps: [{ action: 'hover', selector: '.tableRow' }],
url,
},
{
label: 'select one row',
steps: [
{ action: 'click', selector: '.tableRow' }
],
steps: [{ action: 'click', selector: '.tableRow' }],
url,
},
{
label: 'select multiple rows',
steps: [
{ action: 'click', selector: '.tableRow' },
{ action: 'click', selector: `.tableRow:nth-of-type(2)` },
{ action: 'click', selector: `.tableRow:nth-of-type(5)` }
{ action: 'click', selector: `.tableRow:nth-of-type(5)` },
],
url,
},
{
label: 'open upload dialog',
steps: [
{ action: 'click', selector: '#uploadBtn' },
{ action: 'pause' }
],
steps: [{ action: 'click', selector: '#uploadBtn' }, { action: 'pause' }],
url,
}
},
],
viewports: [{ width: 1024, height: 768 }],
};
Expand Down
34 changes: 15 additions & 19 deletions frontend/mock-backend/hello-world-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default {
creationTimestamp: '2018-06-06T00:04:49Z',
labels: {
'workflows.argoproj.io/completed': 'true',
'workflows.argoproj.io/phase': 'Succeeded'
}
'workflows.argoproj.io/phase': 'Succeeded',
},
},
spec: {
templates: [
Expand All @@ -37,25 +37,21 @@ export default {
container: {
name: '',
image: 'docker/whalesay:latest',
command: [
'cowsay'
],
args: [
'{{workflow.parameters.message}}'
],
resources: {}
}
}
command: ['cowsay'],
args: ['{{workflow.parameters.message}}'],
resources: {},
},
},
],
entrypoint: 'whalesay1',
arguments: {
parameters: [
{
name: 'message',
value: 'hello world'
}
]
}
value: 'hello world',
},
],
},
},
status: {
phase: 'Succeeded',
Expand All @@ -70,8 +66,8 @@ export default {
templateName: 'whalesay1',
phase: 'Succeeded',
startedAt: '2018-06-06T00:04:49Z',
finishedAt: '2018-06-06T00:05:23Z'
}
}
}
finishedAt: '2018-06-06T00:05:23Z',
},
},
},
};
47 changes: 20 additions & 27 deletions frontend/mock-backend/hello-world-with-steps-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ export default {
name: 'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c',
namespace: 'default',
// tslint:disable-next-line:max-line-length
selfLink: '/apis/argoproj.io/v1alpha1/namespaces/default/workflows/hello-world-61985dbf-4299-458b-a183-1f2c2436c21c',
selfLink:
'/apis/argoproj.io/v1alpha1/namespaces/default/workflows/hello-world-61985dbf-4299-458b-a183-1f2c2436c21c',
uid: 'ef2a4a61-6e84-11e8-bba7-42010a8a0fc2',
resourceVersion: '10690686',
creationTimestamp: '2018-06-12T21:09:46Z',
labels: {
'workflows.argoproj.io/completed': 'true',
'workflows.argoproj.io/phase': 'Succeeded'
}
'workflows.argoproj.io/phase': 'Succeeded',
},
},
spec: {
templates: [
Expand All @@ -39,10 +40,10 @@ export default {
{
name: 'say',
template: 'say',
arguments: {}
}
]
]
arguments: {},
},
],
],
},
{
name: 'say',
Expand All @@ -52,18 +53,14 @@ export default {
container: {
name: '',
image: 'docker/whalesay:latest',
command: [
'cowsay'
],
args: [
'hello world'
],
resources: {}
}
}
command: ['cowsay'],
args: ['hello world'],
resources: {},
},
},
],
entrypoint: 'whalesay',
arguments: {}
arguments: {},
},
status: {
phase: 'Succeeded',
Expand All @@ -79,9 +76,7 @@ export default {
phase: 'Succeeded',
startedAt: '2018-06-12T21:09:46Z',
finishedAt: '2018-06-12T21:09:47Z',
children: [
'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-2303694156'
]
children: ['hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-2303694156'],
},
'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-2303694156': {
id: 'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-2303694156',
Expand All @@ -92,9 +87,7 @@ export default {
boundaryID: 'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c',
startedAt: '2018-06-12T21:09:46Z',
finishedAt: '2018-06-12T21:09:47Z',
children: [
'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-3584189705'
]
children: ['hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-3584189705'],
},
'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-3584189705': {
id: 'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c-3584189705',
Expand All @@ -105,8 +98,8 @@ export default {
phase: 'Succeeded',
boundaryID: 'hello-world-61985dbf-4299-458b-a183-1f2c2436c21c',
startedAt: '2018-06-12T21:09:46Z',
finishedAt: '2018-06-12T21:09:47Z'
}
}
}
finishedAt: '2018-06-12T21:09:47Z',
},
},
},
};
Loading

0 comments on commit 4500d24

Please sign in to comment.