Skip to content

Commit f961fdc

Browse files
authored
Run prettier (except for app.html), minor fixes. (#18) (#19)
1 parent 4620c75 commit f961fdc

File tree

6 files changed

+18
-26
lines changed

6 files changed

+18
-26
lines changed

packages/client/src/modules/my/customPlay/customPlay.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export default class CustomPlay extends LightningElement {
5959
break;
6060
case 'inputRecordIds':
6161
if (!isEmpty) {
62-
logData.recordIds = String(val).split(',').map(x => x.trim()).filter(x => x !== '');
62+
logData.recordIds = String(val)
63+
.split(',')
64+
.map((x) => x.trim())
65+
.filter((x) => x !== '');
6366
}
6467
break;
6568
case 'inputIgnored':

packages/client/src/modules/my/metricsPlay/metricsPlay.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
.slds-form-element__label {
88
font-weight: bold;
9-
}
9+
}
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
p:not(.header):not(.subheader) {
2+
margin-bottom: 1em;
3+
}
4+
15
p.header {
26
font-size: 14px;
37
font-weight: bold;
@@ -7,14 +11,3 @@ p.subheader {
711
font-size: 12px;
812
font-weight: bold;
913
}
10-
11-
.stat-label {
12-
font-weight: bold;
13-
font-size: medium;
14-
margin: 0 10px;
15-
align-items: center;
16-
}
17-
18-
.head-stats {
19-
text-align: right;
20-
}

packages/client/src/modules/my/promptPlay/promptPlay.html

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
<template>
2-
<p class="header">Accumulate and Log</p>
3-
<div class="head-stats">
4-
<span class="stat-label">Logs Accumulated: </span>
5-
<lightning-badge label={accumulatedData.length}></lightning-badge>
6-
</div>
7-
<p>
8-
In this example, the record ID provided in the input box will be accumulated when you click the "take" button and ignored if you click the "skip" button.
9-
In each case, a new record ID is generated for convenience.
10-
The user can simulate an app-lifecycle event by clicking the "prompt" button.
11-
</p>
2+
<p class="header"><span>Accumulate Logs:</span><lightning-badge label={accumulatedData.length}></lightning-badge></p>
3+
<p
4+
>In this example, the record ID provided in the input box will be accumulated when you click the "take" button and ignored if you click the "skip" button. In each case, a new record ID is
5+
generated for convenience. </p
6+
><p>You can simulate an app-lifecycle event by clicking the "prompt" button.</p>
127
<lightning-layout vertical-align="end">
138
<lightning-layout-item padding="around-small">
149
<lightning-input type="text" name="inputString" value={recordId} onchange={handleRecordIdChange} maxlength="25" label="Input"></lightning-input>
1510
</lightning-layout-item>
1611
<lightning-layout-item padding="around-small">
17-
<lightning-button label="Take" title="Calls the log API with the specified values" onclick={handleTake} ></lightning-button>
12+
<lightning-button label="Take" title="Calls the log API with the specified values" onclick={handleTake}></lightning-button>
1813
</lightning-layout-item>
1914
<lightning-layout-item padding="around-small">
20-
<lightning-button label="Skip" title="Skips the generated value" onclick={handleSkip} ></lightning-button>
15+
<lightning-button label="Skip" title="Skips the generated value" onclick={handleSkip}></lightning-button>
2116
</lightning-layout-item>
2217
<lightning-layout-item padding="around-small">
2318
<lightning-button variant="brand" class="slds-button slds-button_brand" label="Prompt" onclick={handlePrompt}></lightning-button>

packages/client/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ module.exports = {
7373
],
7474
devServer: {
7575
// https://webpack.js.org/configuration/dev-server
76+
port: 3001,
7677
proxy: { '/': 'http://localhost:3002' }
7778
}
7879
};

packages/server/src/interfaces/BucketHistogram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export interface BucketHistogram {
99
ownerName: string;
1010
ownerAppName: string;
1111
tags: MetricTag[];
12-
}
12+
}

0 commit comments

Comments
 (0)