2019-02-15 15:39:39 +05:30
< script >
2020-10-24 23:57:45 +05:30
import { GlEmptyState , GlLink , GlSprintf } from '@gitlab/ui' ;
import { mapState } from 'vuex' ;
2022-04-04 11:22:00 +05:30
import { s _ _ } from '~/locale' ;
import { DEPRECATION _POST _LINK } from '../constants' ;
2020-10-24 23:57:45 +05:30
2019-02-15 15:39:39 +05:30
export default {
2020-10-24 23:57:45 +05:30
components : {
GlEmptyState ,
GlLink ,
GlSprintf ,
} ,
2022-04-04 11:22:00 +05:30
i18n : {
title : s _ _ ( 'Serverless|Getting started with serverless' ) ,
description : s _ _ (
'Serverless|Serverless was %{postLinkStart}deprecated%{postLinkEnd}. But if you opt to use it, you must install Knative in your Kubernetes cluster first. %{linkStart}Learn more.%{linkEnd}' ,
) ,
} ,
deprecationPostLink : DEPRECATION _POST _LINK ,
2020-10-24 23:57:45 +05:30
computed : {
2021-09-04 01:27:46 +05:30
... mapState ( [ 'emptyImagePath' , 'helpPath' ] ) ,
2019-02-15 15:39:39 +05:30
} ,
} ;
< / script >
< template >
2022-04-04 11:22:00 +05:30
< gl-empty-state :svg-path = "emptyImagePath" :title = "$options.i18n.title" >
2020-10-24 23:57:45 +05:30
< template # description >
2022-04-04 11:22:00 +05:30
< gl-sprintf :message = "$options.i18n.description" >
< template # postLink = "{ content }" >
< gl-link :href = "$options.deprecationPostLink" target = "_blank" > { { content } } < / gl-link >
< / template >
2020-10-24 23:57:45 +05:30
< template # link = "{ content }" >
< gl-link :href = "helpPath" > { { content } } < / gl-link >
< / template >
< / gl-sprintf >
< / template >
< / gl-empty-state >
2019-02-15 15:39:39 +05:30
< / template >