Skip to content

Commit

Permalink
Updating style to match main website
Browse files Browse the repository at this point in the history
  • Loading branch information
davetaz committed Sep 21, 2024
1 parent cc51580 commit 9f55d7c
Show file tree
Hide file tree
Showing 19 changed files with 345 additions and 131 deletions.
28 changes: 14 additions & 14 deletions lib/docxBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ async function getImage(riskCounts) {
label: 'Risk count',
data: Object.values(riskCounts),
backgroundColor: [
'rgba(200, 200, 200, 0.5)',
'rgba(255, 99, 132, 0.5)',
'rgba(255, 206, 86, 0.5)',
'rgba(54, 162, 235, 0.5)'
'rgba(226, 230, 233, 1)',
'rgba(221, 29, 29, 1)',
'rgba(255, 206, 86, 1)',
'rgba(54, 162, 235, 1)'

],
borderColor: [
'rgba(200, 200, 200, 1)',
'rgba(255, 99, 132, 1)',
'rgba(226, 230, 233, 1)',
'rgba(221, 29, 29, 1)',
'rgba(255, 206, 86, 1)',
'rgba(54, 162, 235, 1)'
],
Expand Down Expand Up @@ -212,14 +212,14 @@ async function buildDocx(project,metrics, owner) {
new docx.TableCell({
children: [new docx.Paragraph('Risk')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Risk level')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
})
Expand Down Expand Up @@ -254,42 +254,42 @@ async function buildDocx(project,metrics, owner) {
new docx.TableCell({
children: [new docx.Paragraph('Consequence')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Outcome')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Impact')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Likelihood')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Role')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
}),
new docx.TableCell({
children: [new docx.Paragraph('Action')],
shading: {
fill: "5E95F8",
fill: "072589",
color: "ffffff"
}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "care.theodi.org",
"version": "2.8.0",
"version": "2.8.1",
"description": "The ODI Care tool (AI enabled)",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 9f55d7c

Please sign in to comment.