From 86be834d9e204949e91be962e98841dcb9340804 Mon Sep 17 00:00:00 2001 From: Rick Koekkoek Date: Wed, 6 Dec 2023 10:15:29 +0100 Subject: [PATCH 1/2] feat: :sparkles: added additional environment variable diagrams --- tdd/environment-variables-flow.puml | 27 +++++++++++++++++++ ...puml => environment-variables-layout.puml} | 0 2 files changed, 27 insertions(+) create mode 100644 tdd/environment-variables-flow.puml rename tdd/{environment-variables.puml => environment-variables-layout.puml} (100%) diff --git a/tdd/environment-variables-flow.puml b/tdd/environment-variables-flow.puml new file mode 100644 index 0000000..cb43236 --- /dev/null +++ b/tdd/environment-variables-flow.puml @@ -0,0 +1,27 @@ +@startuml EnvironmentVariables + +package "Environment Variables" { + [env.ts] +} + +[env.ts] --> [getEnvValue(key: EnvOptions): string] + +note right of [getEnvValue(key: EnvOptions): string] + This function retrieves the value of + the specified environment variable. + If not found, an error is thrown. +end note + +database ".env" { + folder "Ignored by Git" +} + +[.env] --> [Ignored by Git] + +database ".env.example" { + folder "Template" +} + +[.env.example] --> [Template] + +@enduml diff --git a/tdd/environment-variables.puml b/tdd/environment-variables-layout.puml similarity index 100% rename from tdd/environment-variables.puml rename to tdd/environment-variables-layout.puml From e6d646c01dcd0883c220bfc8e901b4b7f1cddf95 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:15:54 +0000 Subject: [PATCH 2/2] Render PlantUML files --- render/environment-variables-flow.svg | 1 + render/environment-variables-layout.svg | 1 + 2 files changed, 2 insertions(+) create mode 100644 render/environment-variables-flow.svg create mode 100644 render/environment-variables-layout.svg diff --git a/render/environment-variables-flow.svg b/render/environment-variables-flow.svg new file mode 100644 index 0000000..a1c6dbf --- /dev/null +++ b/render/environment-variables-flow.svg @@ -0,0 +1 @@ +Environment Variables.env.env.exampleenv.tsIgnored by GitTemplategetEnvValue(key: EnvOptions): stringThis function retrieves the value ofthe specified environment variable.If not found, an error is thrown. \ No newline at end of file diff --git a/render/environment-variables-layout.svg b/render/environment-variables-layout.svg new file mode 100644 index 0000000..b80b9b8 --- /dev/null +++ b/render/environment-variables-layout.svg @@ -0,0 +1 @@ +ConfigurationReact Native AppOPENAI_API_KEY=APP_DEBUG="true | false"AI_ENABLED="true | false"WP_CONTENT_URL="URL"WP_DATA_URL="URL"WP_USERNAME=WP_PASSWORD=Config File \ No newline at end of file