Skip to content

Commit

Permalink
fixed React keys, formualas
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Feb 8, 2024
1 parent 901351d commit 4d38326
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/The-Menagerie.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ featured:
element: '<big-image imgsrc="/public/templates/risk-first/posts/book-grey.png" />'
tags:
- Front
order: 4
sidebar_position: 3
---

# The Menagerie
Expand Down
1 change: 1 addition & 0 deletions docs/bets/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat: Bets
tags:
- Front
tweet: yes
sidebar_position: 4
---

# On Bets
Expand Down
2 changes: 1 addition & 1 deletion docs/complexity/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layout: categories
cat: Complexity
tags:
- Front
sidebar_position: 7
sidebar_position: 6
tweet: yes
---

Expand Down
1 change: 1 addition & 0 deletions docs/estimating/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cat: Estimating
tags:
- Front
tweet: yes
sidebar_position: 5
---

# On Estimating
Expand Down
2 changes: 1 addition & 1 deletion docs/presentations/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layout: categories
cat: Presentations
tags:
- Front
sidebar_position: 8
sidebar_position: 7
tweet: yes
---

Expand Down
2 changes: 1 addition & 1 deletion docs/risks/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cat: Risks
featured:
class: bg1
element: '<image-artifact imgsrc="/public/templates/risk-first/posts/dictionary.svg">Track 3: Risks</image-artifact>'
sidebar_position: 4
sidebar_position: 3
tags:
- Front
tweet: yes
Expand Down
1 change: 1 addition & 0 deletions src/components/FillTheBucket2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const chart1 = (model) => {

return {
type: 'bar',
id: "1",
data: {
labels: range(0, 20, 1),
datasets: [{
Expand Down
5 changes: 3 additions & 2 deletions src/components/KitchenCabinet1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const chart1 = (model) => {

return {
type: 'bar',
id: "1",
data: {
labels: [...range(0, model.time.value, 1), model.time.value + "+"],
datasets: [{
Expand All @@ -68,11 +69,11 @@ const chart1 = (model) => {
options: {
maintainAspectRatio: false,
scales: {
y: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/KitchenCabinet2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const chart1 = (model) => {

return {
type: 'line',
id: "1",
data: {
labels: range(0, 20, 1),
datasets: [{
Expand All @@ -47,11 +48,11 @@ const chart1 = (model) => {
},
options: {
scales: {
y: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand Down
20 changes: 12 additions & 8 deletions src/components/KitchenCabinet3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const chart1 = (model) => {

return {
type: 'line',
id: "1",
data: {
labels: range(0, days, 1),
datasets: [{
Expand All @@ -54,11 +55,11 @@ const chart1 = (model) => {
},
options: {
scales: {
y: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand All @@ -70,6 +71,7 @@ const chart2 = (model) => {

return {
type: 'line',
id: "2",
data: {
labels: range(0, days, 1),
datasets: [{
Expand All @@ -88,11 +90,11 @@ const chart2 = (model) => {
},
options: {
scales: {
yAxes: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand All @@ -106,6 +108,7 @@ const chart3 = (model) => {

return {
type: 'line',
id: "3",
data: {
labels: range(0, days, 1),
datasets: [{
Expand All @@ -118,11 +121,11 @@ const chart3 = (model) => {
},
options: {
scales: {
yAxes: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand All @@ -138,6 +141,7 @@ const chart4 = (model) => {

return {
type: 'bar',
id: "4",
data: {
labels: ['Too Early', 'Too Late', 'Total'],
datasets: [{
Expand All @@ -150,11 +154,11 @@ const chart4 = (model) => {
},
options: {
scales: {
yAxes: [{
y: {
ticks: {
beginAtZero: true
}
}]
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,11 @@

.credits {
opacity: 0.5;
}

/**
* Hide duplicated math formula
*/
.katex-html {
display: none;
}
2 changes: 1 addition & 1 deletion src/theme/TagList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function TagList(props) {
oneTag
.filter(d => d.permalink.indexOf(filter) > -1)
.filter(d => d.permalink != location)
.map(d => <DocItemImage key={d} doc={d} />)
.map(d => <DocItemImage key={d.permalink} doc={d} />)
}
</div>
);
Expand Down

0 comments on commit 4d38326

Please sign in to comment.