Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI-122 benchmark and propertyList component #93

Closed

Conversation

dmitrypisanko
Copy link
Contributor

No description provided.

@@ -0,0 +1,27 @@
@import 'guide.less';

@property-list-label-fontColor: @color-light-font;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

property-list-label-fontColor

посоны чо за ад с неймингами. не то не се.

nextProps.keys.indexOf(key) !== -1,
)
.map(key => {
config.push({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const config: IPropertyListItem[] = Object.keys(Benchmark.defaultKeys)
                .filter(
                .filter(
                .map(

@@ -0,0 +1,27 @@
@import 'guide.less';

@property-list-label-fontColor: @color-light-font;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

опять

</div>
<Benchmark
data={record.benchmarkMap}
keys={['cpuCount', 'ethHashrate', 'ramSize']}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is bad practice /
whats wrong here? i will not explain this error one more time.

@@ -135,6 +135,7 @@ export interface IAccountBrief {
}

export interface IBenchmarkMap {
[index: string]: string | number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previous version looks better.
what difference with IDictionary now ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this type definition is nonsensical in this form

@@ -0,0 +1,83 @@
import * as React from 'react';
import { IBenchmarkMap, IDictionary } from 'app/api/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should define this types here if it is possible.

there are no any reason to place IDictionary typedef there.
this definition is not related to api anyway

gpuRamSize: 'GPU Ram size',
zcashHashrate: 'ZCahs hashrate',
redshiftGpu: 'Redshift',
} as IDictionary;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no needs to cast type.

also this type should be

public static readonly defaultKeys: { [P in key of IBenchmarkMap]: string } = { ...

@dmitrypisanko dmitrypisanko deleted the GUI-122-property-list-component branch May 30, 2018 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants