Skip to content

Build your personal knowledge base with Trilium Notes

feat(mermaid): add new sample diagrams for Ishikawa & Venn

Elian Doran6bba90865431
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 4b1baa0d53..07f7b10de0 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2227,6 +2227,8 @@
"sample_timeline": "Timeline",
"sample_treemap": "Treemap",
"sample_user_journey": "User Journey",
- "sample_xy": "XY"
+ "sample_xy": "XY",
+ "sample_venn": "Venn",
+ "sample_ishikawa": "Ishikawa"
}
}
diff --git a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts
index 732cbb54bc..29b62b1e38 100644
--- a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts
+++ b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts
@@ -463,6 +463,48 @@ xychart-beta
y-axis "Revenue (in $)" 4000 --> 11000
bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
+`
+ },
+ {
+ name: t("mermaid.sample_venn"),
+ content: `\
+venn-beta
+ title Web Dev
+ set Frontend
+ text React
+ text shadcn-ui
+ text Firebase
+ set Backend
+ text Hono
+ text PostgreSQL
+ text S3
+ text Lambda
+ union Frontend,Backend["APIs"]
+ `
+ },
+ {
+ name: t("mermaid.sample_ishikawa"),
+ content: `\
+ishikawa-beta
+ Blurry Photo
+ Process
+ Out of focus
+ Shutter speed too slow
+ Protective film not removed
+ Beautification filter applied
+ User
+ Shaky hands
+ Equipment
+ LENS
+ Inappropriate lens
+ Damaged lens
+ Dirty lens
+ SENSOR
+ Damaged sensor
+ Dirty sensor
+ Environment
+ Subject moved too quickly
+ Too dark
`
}
];