Skip to content

Commit

Permalink
feat: #135 add link to expression language docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Sep 21, 2024
1 parent f65af67 commit 7f2a705
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions resources/js/Pages/Services/Partials/DeploymentData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import ComponentBlock from "@/Components/Service/ComponentBlock.vue";
import BackupSchedule from "@/Components/BackupSchedule.vue";
import ToggleComponent from "@/Components/Service/ToggleComponent.vue";
import { evaluate } from "@/expr-lang.js";
import ExternalLink from "@/Components/ExternalLink.vue";
const model = defineModel();
Expand Down Expand Up @@ -1233,9 +1234,21 @@ const evaluateSecretVarTemplate = (secretVar, index) => {
<template #title> Environment Variables </template>

<template #description>
Add environment variables to the service. These variables will be
stored on the Ptah.sh database and will be fully accessible to edit
them via UI.
<p>
Add environment variables to the service. These variables will
be stored on the Ptah.sh database and will be fully accessible
to edit them via UI.
</p>
<p>
Values of environment variables support the Ptah.sh expression
language. You can use built-in functions to generate or
manipulate values.
<ExternalLink
href="https://ptah.sh/concepts/expression-language/"
>
Learn more about the expression language
</ExternalLink>
</p>
</template>

<template #tabs>
Expand Down Expand Up @@ -1359,6 +1372,15 @@ const evaluateSecretVarTemplate = (secretVar, index) => {
Secret Variables are stored as Docker Configs and you will be
able to see it's contents via Docker CLI.
</p>
<p>
Values of secret variables also support the Ptah.sh expression
language, allowing you to use built-in functions.
<ExternalLink
href="https://ptah.sh/concepts/expression-language/"
>
Learn more about the expression language
</ExternalLink>
</p>
</template>

<template #tabs>
Expand Down

0 comments on commit 7f2a705

Please sign in to comment.