mirror of
https://github.com/bakhirev/assayo.git
synced 2024-11-16 16:21:41 +00:00
update
This commit is contained in:
parent
f3973192d1
commit
df5c310497
|
@ -37,7 +37,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin: 6px 8px 0 0;
|
margin: 8px 8px 0 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 1px solid #B5B5B5;
|
border: 1px solid #B5B5B5;
|
||||||
|
|
|
@ -7,13 +7,16 @@ export default class FakeName {
|
||||||
|
|
||||||
index: number = 0;
|
index: number = 0;
|
||||||
|
|
||||||
constructor(dictionary: string[]) {
|
newNamePrefix: string = '';
|
||||||
|
|
||||||
|
constructor(newNamePrefix: string, dictionary: string[]) {
|
||||||
this.dictionary = dictionary;
|
this.dictionary = dictionary;
|
||||||
|
this.newNamePrefix = newNamePrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
get(name: string) {
|
get(name: string) {
|
||||||
if (!this.refOldNewName[name]) {
|
if (!this.refOldNewName[name]) {
|
||||||
this.refOldNewName[name] = this.dictionary[this.index] || `${Math.random()}`;
|
this.refOldNewName[name] = this.dictionary[this.index] || `${this.newNamePrefix}${this.index}`;
|
||||||
this.index += 1;
|
this.index += 1;
|
||||||
}
|
}
|
||||||
return this.refOldNewName[name];
|
return this.refOldNewName[name];
|
||||||
|
|
|
@ -15,9 +15,9 @@ export default class Depersonalized {
|
||||||
fakeTaskPrefix: any = null;
|
fakeTaskPrefix: any = null;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.fakeName = new FakeName(FAKE_AUTHORS);
|
this.fakeName = new FakeName('User', FAKE_AUTHORS);
|
||||||
this.fakeEmail = new FakeName(FAKE_EMAILS);
|
this.fakeEmail = new FakeName('user', FAKE_EMAILS);
|
||||||
this.fakeTaskPrefix = new FakeName(FAKE_TASK_PREFIXES);
|
this.fakeTaskPrefix = new FakeName('JIRA', FAKE_TASK_PREFIXES);
|
||||||
}
|
}
|
||||||
|
|
||||||
getCommit(commit: ICommit | ISystemCommit): ICommit | ISystemCommit {
|
getCommit(commit: ICommit | ISystemCommit): ICommit | ISystemCommit {
|
||||||
|
|
|
@ -77,8 +77,8 @@ function AuthorView({ response, updateSort, rowsForExcel, mode }: IAuthorViewPro
|
||||||
<Column
|
<Column
|
||||||
title="page.team.author.status"
|
title="page.team.author.status"
|
||||||
formatter={(row: any) => {
|
formatter={(row: any) => {
|
||||||
if (row.isDismissed) return dismissed;
|
|
||||||
if (row.isStaff) return staff;
|
if (row.isStaff) return staff;
|
||||||
|
if (row.isDismissed) return dismissed;
|
||||||
return works;
|
return works;
|
||||||
}}
|
}}
|
||||||
template={(value: string) => <UiKitTags value={value} />}
|
template={(value: string) => <UiKitTags value={value} />}
|
||||||
|
|
|
@ -118,7 +118,6 @@ class DataGripStore implements IDataGripStore {
|
||||||
fileGrip.addCommit(localCommit);
|
fileGrip.addCommit(localCommit);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(depersonalized.fakeTaskPrefix);
|
|
||||||
fileGrip.updateTotalInfo();
|
fileGrip.updateTotalInfo();
|
||||||
dataGrip.updateTotalInfo();
|
dataGrip.updateTotalInfo();
|
||||||
achievements.updateByGrip(dataGrip, fileGrip);
|
achievements.updateByGrip(dataGrip, fileGrip);
|
||||||
|
|
Loading…
Reference in a new issue