From 87ab7fbe1a5c713548a903408b6a364d42b7a07a Mon Sep 17 00:00:00 2001 From: mingrammer Date: Sun, 17 May 2020 23:17:10 +0900 Subject: [PATCH] feat(provider:programming): add some language aliases --- config.py | 9 ++++++++- diagrams/programming/language.py | 5 +++++ docs/nodes/programming.md | 8 ++++---- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/config.py b/config.py index a470accf..34db7ecf 100644 --- a/config.py +++ b/config.py @@ -332,5 +332,12 @@ ALIASES = { "DatabaseserviceGrey": "DBServiceGrey", } }, - "programming": {}, + "programming": { + "language": { + "Javascript": "JavaScript", + "Nodejs": "NodeJS", + "Php": "PHP", + "Typescript": "TypeScript" + }, + }, } diff --git a/diagrams/programming/language.py b/diagrams/programming/language.py index 1387553b..60de2215 100644 --- a/diagrams/programming/language.py +++ b/diagrams/programming/language.py @@ -77,3 +77,8 @@ class Typescript(_Language): # Aliases + +JavaScript = Javascript +NodeJS = Nodejs +PHP = Php +TypeScript = Typescript diff --git a/docs/nodes/programming.md b/docs/nodes/programming.md index ed9054cb..b2843ec4 100644 --- a/docs/nodes/programming.md +++ b/docs/nodes/programming.md @@ -28,13 +28,13 @@ Node classes list of programming provider. - **diagrams.programming.language.Dart** - **diagrams.programming.language.Go** - **diagrams.programming.language.Java** -- **diagrams.programming.language.Javascript** +- **diagrams.programming.language.Javascript**, **JavaScript** (alias) - **diagrams.programming.language.Kotlin** - **diagrams.programming.language.Matlab** -- **diagrams.programming.language.Nodejs** -- **diagrams.programming.language.Php** +- **diagrams.programming.language.Nodejs**, **NodeJS** (alias) +- **diagrams.programming.language.Php**, **PHP** (alias) - **diagrams.programming.language.Python** - **diagrams.programming.language.R** - **diagrams.programming.language.Ruby** - **diagrams.programming.language.Swift** -- **diagrams.programming.language.Typescript** +- **diagrams.programming.language.Typescript**, **TypeScript** (alias)