Skip to content

Commit

Permalink
Run prettier (except for app.html), minor fixes. (#18) (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
lozforce authored Apr 12, 2022
1 parent 4620c75 commit f961fdc
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 26 deletions.
5 changes: 4 additions & 1 deletion packages/client/src/modules/my/customPlay/customPlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export default class CustomPlay extends LightningElement {
break;
case 'inputRecordIds':
if (!isEmpty) {
logData.recordIds = String(val).split(',').map(x => x.trim()).filter(x => x !== '');
logData.recordIds = String(val)
.split(',')
.map((x) => x.trim())
.filter((x) => x !== '');
}
break;
case 'inputIgnored':
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/modules/my/metricsPlay/metricsPlay.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

.slds-form-element__label {
font-weight: bold;
}
}
15 changes: 4 additions & 11 deletions packages/client/src/modules/my/promptPlay/promptPlay.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
p:not(.header):not(.subheader) {
margin-bottom: 1em;
}

p.header {
font-size: 14px;
font-weight: bold;
Expand All @@ -7,14 +11,3 @@ p.subheader {
font-size: 12px;
font-weight: bold;
}

.stat-label {
font-weight: bold;
font-size: medium;
margin: 0 10px;
align-items: center;
}

.head-stats {
text-align: right;
}
19 changes: 7 additions & 12 deletions packages/client/src/modules/my/promptPlay/promptPlay.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<template>
<p class="header">Accumulate and Log</p>
<div class="head-stats">
<span class="stat-label">Logs Accumulated: </span>
<lightning-badge label={accumulatedData.length}></lightning-badge>
</div>
<p>
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 generated for convenience.
The user can simulate an app-lifecycle event by clicking the "prompt" button.
</p>
<p class="header"><span>Accumulate Logs:</span><lightning-badge label={accumulatedData.length}></lightning-badge></p>
<p
>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
generated for convenience. </p
><p>You can simulate an app-lifecycle event by clicking the "prompt" button.</p>
<lightning-layout vertical-align="end">
<lightning-layout-item padding="around-small">
<lightning-input type="text" name="inputString" value={recordId} onchange={handleRecordIdChange} maxlength="25" label="Input"></lightning-input>
</lightning-layout-item>
<lightning-layout-item padding="around-small">
<lightning-button label="Take" title="Calls the log API with the specified values" onclick={handleTake} ></lightning-button>
<lightning-button label="Take" title="Calls the log API with the specified values" onclick={handleTake}></lightning-button>
</lightning-layout-item>
<lightning-layout-item padding="around-small">
<lightning-button label="Skip" title="Skips the generated value" onclick={handleSkip} ></lightning-button>
<lightning-button label="Skip" title="Skips the generated value" onclick={handleSkip}></lightning-button>
</lightning-layout-item>
<lightning-layout-item padding="around-small">
<lightning-button variant="brand" class="slds-button slds-button_brand" label="Prompt" onclick={handlePrompt}></lightning-button>
Expand Down
1 change: 1 addition & 0 deletions packages/client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
],
devServer: {
// https://webpack.js.org/configuration/dev-server
port: 3001,
proxy: { '/': 'http://localhost:3002' }
}
};
2 changes: 1 addition & 1 deletion packages/server/src/interfaces/BucketHistogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export interface BucketHistogram {
ownerName: string;
ownerAppName: string;
tags: MetricTag[];
}
}

0 comments on commit f961fdc

Please sign in to comment.