Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(mermaid): integrate two new note types
Elian Doran278d8428de8f
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex ce49038fb5..2455120cf2 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -2304,7 +2304,9 @@"sample_user_journey": "User Journey","sample_xy": "XY","sample_venn": "Venn",- "sample_ishikawa": "Ishikawa"+ "sample_ishikawa": "Ishikawa",+ "sample_treeview": "TreeView",+ "sample_wardley": "Wardley Map"},"mind-map": {"addChild": "Add child",diff --git a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.tsindex 29b62b1e38..8d53bdec82 100644--- a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts+++ b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts@@ -505,6 +505,47 @@ ishikawa-betaEnvironmentSubject moved too quicklyToo dark+`+ },+ {+ name: t("mermaid.sample_treeview"),+ content: `\+treeView-beta+ "src"+ "components"+ "Button.tsx"+ "Modal.tsx"+ "services"+ "api.ts"+ "utils.ts"+ "index.ts"+ "package.json"+ "README.md"+`+ },+ {+ name: t("mermaid.sample_wardley"),+ content: `\+wardley-beta+ title Tea Shop++ anchor Customers [0.95, 0.63]+ anchor Business [0.95, 0.27]++ component Cup of Tea [0.79, 0.61]+ component Tea [0.63, 0.81]+ component Cup [0.57, 0.46]+ component Water [0.52, 0.89]+ component Kettle [0.47, 0.53]+ component Power [0.36, 0.72]++ Customers -> Cup of Tea+ Business -> Cup of Tea+ Cup of Tea -> Tea+ Cup of Tea -> Cup+ Cup of Tea -> Water+ Water -> Kettle+ Kettle -> Power`}];