Skip to content

Commit 6a75270

Browse files
committed
add browser's storage
1 parent 59e9717 commit 6a75270

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Attackers are intelligent and creative, equipped with new technologies and purpo
1010

1111
# Usage
1212

13-
Go to https://dsomm.timo-pagel.de or clone [this repository](https://github.com/wurstbrot/DevSecOps-MaturityModel/) and run `startDocker.bash`.
13+
Go to https://dsomm.timo-pagel.de.
1414

1515
* _matrix_ shows the dimensions, subdimensions and activities are described.
1616
* _Implementation Levels_ can be used to measure the current implementation level by clicking on the specific activities which have been performed.
@@ -24,6 +24,8 @@ In this [video](https://www.youtube.com/watch?v=tX9RHZ_O5NU) Timo Pagel describe
2424
In case you have evidence or review questions to gather evidence, you can add the attribute "evidence" to an activity which will be attached to an activity to provide it to your CISO or your customer's CISO.
2525
You can switch on to show open TODO's for evidence by changing IS_SHOW_EVIDENCE_TODO to true 'bib.php' `define(IS_SHOW_EVIDENCE_TODO, true);`
2626

27+
This page uses the Browser's localStorage to store the state of the circular headmap.
28+
2729
# Community
2830

2931
Code Freeze: Currently, with the Google Summer student Aryan Prasad we develop a new Angular frontend version, therefore, we do not accept any code changes right now.
@@ -63,6 +65,8 @@ In case you would like to perform a DevSecOps assessment, the following tools ar
6365

6466
For customized DSOMM, take a look at https://github.com/wurstbrot/DevSecOps-MaturityModel-custom. In case you would like to have perform an assessment for multiple teams, iterate from port 8080 to 8XXX, depending of the size of your team.
6567

68+
You can download your current state from the circular headmap and mount it again via `docker run -p 8080:8080 -v /tmp/generated.yaml:/app/assets/YAML/generated/generated.yaml wurstbrot/dsomm:latest`.
69+
6670
This approach also allows teams to perform self assessment with changes tracked in a repository.
6771

6872

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export class CircularHeatmapComponent implements OnInit {
124124
}
125125
}
126126
//console.log(this.ALL_CARD_DATA);
127+
this.loadState();
127128
this.loadCircularHeatMap(
128129
this.ALL_CARD_DATA,
129130
'#chart',
@@ -194,6 +195,7 @@ export class CircularHeatmapComponent implements OnInit {
194195
).attr('fill', function (p) {
195196
return color(_self.ALL_CARD_DATA[index]['Done%']);
196197
});
198+
this.saveState();
197199
}
198200

199201
loadCircularHeatMap(
@@ -593,5 +595,16 @@ export class CircularHeatmapComponent implements OnInit {
593595
).attr('fill', 'white');
594596
}
595597
}
598+
this.saveState();
599+
}
600+
601+
saveState() {
602+
localStorage.setItem('dataset', JSON.stringify(this.ALL_CARD_DATA));
603+
}
604+
loadState() {
605+
var content = localStorage.getItem('dataset');
606+
if (content != null) {
607+
this.ALL_CARD_DATA = JSON.parse(content);
608+
}
596609
}
597610
}

0 commit comments

Comments
 (0)