Skip to content

Commit

Permalink
Merge pull request #36 from metrico/develop
Browse files Browse the repository at this point in the history
update version
  • Loading branch information
RFbkak37y3kIY authored Aug 10, 2023
2 parents 0122526 + 98d1a46 commit f6164ec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 style="text-align: center; padding: 8rem; color: #aaa">No Data</h1>
>
<div
class="VS-Container"
style="height: initial; overflow: initial !important"
style="height: initial; overflow: scroll !important"
[style.min-width.px]="pageWidth + 100"
>
<div style="height: 92px"></div>
Expand Down
2 changes: 1 addition & 1 deletion ngx-flow/widget/ngx-flow.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qxip-flow-panel",
"version": "10.0.7",
"version": "10.0.8",
"description": "Test plugin to lern dev enveroument",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
7 changes: 5 additions & 2 deletions src/components/SimplePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ function formattingDataAndSortIt(data: any, sortType = 'none') {
const outData: any = {};
data.forEach((item: any) => {
outData[item.name] = item.values[k];
})
});
if (outData?.Time && typeof outData?.labels === 'object') {
outData['labels'].timestamp = outData.Time;
}
return outData;
})
if (sortType === 'none') {
Expand Down Expand Up @@ -208,7 +211,7 @@ export const SimplePanel: React.FC<Props> = ({ options, data, width, height }: a
return labelItem[optionArr];
};
return {
messageID: `${_(options.source) || ''}${_(options.title) || ''}` || 'Title',
messageID: _(options.colorGenerator) || 'Title',
subTitle: options.showbody && message,
source: _(options.source) || '...',
destination: _(options.destination) || '...',
Expand Down
8 changes: 8 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel).setPanelOption
]
},
})
.addCustomEditor({
id: 'colorGenerator',
path: 'colorGenerator',
name: 'Items for color generator',
description: 'String label(s) for color (Labels[key])',
defaultValue: '',
editor: SimpleEditor,
})
.addBooleanSwitch({
path: 'showbody',
name: 'Show body [Line] value',
Expand Down

0 comments on commit f6164ec

Please sign in to comment.