-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add demo page for EE only features (#7003)
* update errors file * feat: add IAM page * add layout page and empty template * feat: tenants demo page * refactor: store context state in vuex * feat: make docs open automagically * feat: add missing admin empty pages * chore: update "cluster" into "instance" in side menu * feat: add namespace empty pages + some placeholder text * add custom blueprints empty page * chore(translations): auto generate values for languages other than english * fix a bunch of warnings * fix blueprints title * feat: add missing link to kestra apps * chore(translations): auto generate values for languages other than english * feat: marketing text * chore(translations): auto generate values for languages other than english --------- Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Anna Geller <[email protected]>
- Loading branch information
1 parent
3a8007f
commit 64a4974
Showing
43 changed files
with
1,299 additions
and
254 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<Layout | ||
:title="t(`demos.apps.title`)" | ||
:image="{source: sourceImg, alt: t(`demos.apps.title`)}" | ||
> | ||
<template #message> | ||
{{ $t(`demos.apps.message`) }} | ||
</template> | ||
<template #buttons> | ||
<el-button target="_blank" href="https://kestra.io/demo" type="primary" size="large"> | ||
{{ $t("demos.get_a_demo_button") }} | ||
</el-button> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {useI18n} from "vue-i18n"; | ||
import Layout from "./Layout.vue"; | ||
import sourceImg from "../../assets/demo/apps.png"; | ||
const {t} = useI18n(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<top-nav-bar :title="routeInfo.title" v-if="!isFullScreen()" /> | ||
<Layout | ||
:title="t('demos.audit-logs.title')" | ||
:image="{source: sourceImg, alt: t('demos.audit-logs.title')}" | ||
> | ||
<template #message> | ||
{{ $t('demos.audit-logs.message') }} | ||
</template> | ||
<template #buttons> | ||
<el-button v-if="!isFullScreen()" target="_blank" href="https://kestra.io/demo" type="primary" size="large"> | ||
{{ $t("demos.get_a_demo_button") }} | ||
</el-button> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {ref} from "vue"; | ||
import {useI18n} from "vue-i18n"; | ||
import Layout from "./Layout.vue"; | ||
// @ts-expect-error no types in TopNavBar yet | ||
import TopNavBar from "../../components/layout/TopNavBar.vue"; | ||
import sourceImg from "../../assets/demo/audit-logs.png"; | ||
import useRouteContext from "../../mixins/useRouteContext"; | ||
const {t} = useI18n(); | ||
const routeInfo = ref({ | ||
title: t("demos.audit-logs.title"), | ||
}); | ||
useRouteContext(routeInfo); | ||
function isFullScreen() { | ||
return document.getElementsByTagName("html")[0].classList.contains("full-screen"); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<Layout | ||
:title="t(`demos.blueprints.title`)" | ||
:image="{source: sourceImg, alt: t(`demos.blueprints.title`)}" | ||
> | ||
<template #message> | ||
{{ $t(`demos.blueprints.message`) }} | ||
</template> | ||
<template #buttons> | ||
<el-button target="_blank" href="https://kestra.io/demo" type="primary" size="large"> | ||
{{ $t("demos.get_a_demo_button") }} | ||
</el-button> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {useI18n} from "vue-i18n"; | ||
import Layout from "./Layout.vue"; | ||
import sourceImg from "../../assets/demo/blueprints.png"; | ||
const {t} = useI18n(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<top-nav-bar :title="routeInfo.title" v-if="!isFullScreen()" /> | ||
<Layout | ||
:title="$t('demos.IAM.title')" | ||
:image="{source: sourceImg, alt: t('demos.IAM.title')}" | ||
> | ||
<template #message> | ||
{{ $t('demos.IAM.message') }} | ||
</template> | ||
<template #buttons> | ||
<el-button v-if="!isFullScreen()" target="_blank" href="https://kestra.io/demo" type="primary" size="large"> | ||
{{ $t("demos.get_a_demo_button") }} | ||
</el-button> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {ref} from "vue"; | ||
import {useI18n} from "vue-i18n"; | ||
import Layout from "./Layout.vue"; | ||
// @ts-expect-error no types in TopNavBar yet | ||
import TopNavBar from "../../components/layout/TopNavBar.vue"; | ||
import sourceImg from "../../assets/demo/IAM.png"; | ||
import useRouteContext from "../../mixins/useRouteContext"; | ||
const {t} = useI18n(); | ||
const routeInfo = ref({ | ||
title: t("demos.IAM.title"), | ||
}); | ||
useRouteContext(routeInfo); | ||
function isFullScreen() { | ||
return document.getElementsByTagName("html")[0].classList.contains("full-screen"); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<top-nav-bar :title="routeInfo.title" v-if="!isFullScreen()" /> | ||
<Layout | ||
:title="t('demos.instance.title')" | ||
:image="{source: sourceImg, alt: t('demos.instance.title')}" | ||
> | ||
<template #message> | ||
{{ $t('demos.instance.message') }} | ||
</template> | ||
<template #buttons> | ||
<el-button v-if="!isFullScreen()" target="_blank" href="https://kestra.io/demo" type="primary" size="large"> | ||
{{ $t("demos.get_a_demo_button") }} | ||
</el-button> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {ref} from "vue"; | ||
import {useI18n} from "vue-i18n"; | ||
import Layout from "./Layout.vue"; | ||
// @ts-expect-error no types in TopNavBar yet | ||
import TopNavBar from "../../components/layout/TopNavBar.vue"; | ||
import sourceImg from "../../assets/demo/instance.png"; | ||
import useRouteContext from "../../mixins/useRouteContext"; | ||
const {t} = useI18n(); | ||
const routeInfo = ref({ | ||
title: t("demos.instance.title"), | ||
}); | ||
useRouteContext(routeInfo); | ||
function isFullScreen() { | ||
return document.getElementsByTagName("html")[0].classList.contains("full-screen"); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<template> | ||
<EmptyTemplate> | ||
<img :src="image.source" :alt="image.alt" class="img"> | ||
<div class="message-block"> | ||
<div class="enterprise-tag"> | ||
{{ $t('demos.enterprise_edition') }} | ||
</div> | ||
<h2>{{ title }}</h2> | ||
<p><slot name="message" /></p> | ||
<slot name="buttons" /> | ||
</div> | ||
</EmptyTemplate> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import {onMounted, nextTick} from "vue"; | ||
import {useStore} from "vuex"; | ||
import EmptyTemplate from "../layout/EmptyTemplate.vue"; | ||
const store = useStore(); | ||
onMounted(() => { | ||
store.commit("doc/setDocPath", "<reset>") | ||
nextTick(() => { | ||
store.commit("doc/setDocPath", "") | ||
store.commit("misc/setContextInfoBarOpenTab", "docs") | ||
}) | ||
}); | ||
defineProps<{ | ||
title: string; | ||
image: { | ||
source: string; | ||
alt: string; | ||
}; | ||
}>(); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@kestra-io/ui-libs/src/scss/color-palette.scss"; | ||
.img { | ||
width: 400px; | ||
} | ||
.message-block{ | ||
text-align: left; | ||
width: 400px; | ||
margin: 0 auto; | ||
.enterprise-tag::before, | ||
.enterprise-tag::after{ | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
border-radius: 1rem; | ||
} | ||
.enterprise-tag::before{ | ||
z-index: -2; | ||
background-image: linear-gradient(138.8deg, #CCE8FE 5.7%, #CDA0FF 27.03%, #8489F5 41.02%, #CDF1FF 68.68%, #B591E9 94%); | ||
top: -2px; | ||
bottom: -2px; | ||
left: -2px; | ||
right: -2px; | ||
} | ||
.enterprise-tag::after{ | ||
z-index: -1; | ||
background: $base-gray-200; | ||
top: -1px; | ||
bottom: -1px; | ||
left: -1px; | ||
right: -1px; | ||
} | ||
.enterprise-tag{ | ||
position: relative; | ||
background: $base-gray-200; | ||
border: 1px solid transparent; | ||
padding: 0 1rem; | ||
border-radius: 1rem; | ||
display: inline-block; | ||
z-index: 2; | ||
} | ||
h2 { | ||
margin-top: 1rem; | ||
line-height: 30px; | ||
font-size: 20px; | ||
font-weight: 600; | ||
} | ||
p { | ||
line-height: 22px; | ||
font-size: 14px; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.