feat(scaffolder): tags as list
This commit is contained in:
@@ -4,8 +4,9 @@ metadata:
|
||||
name: react-ssr-template
|
||||
title: React SSR Template
|
||||
description: Next.js application skeleton for creating isomorphic web applications.
|
||||
annotations:
|
||||
tags: Recommended,React
|
||||
tags:
|
||||
- Recommended
|
||||
- React
|
||||
spec:
|
||||
processor: cookiecutter
|
||||
type: website
|
||||
|
||||
@@ -4,8 +4,9 @@ metadata:
|
||||
name: springboot-template
|
||||
title: Spring Boot Service
|
||||
description: Standard Spring Boot (Java) microservice with recommended configuration.
|
||||
annotations:
|
||||
tags: Recommended,Java
|
||||
tags:
|
||||
- Recommended
|
||||
- Java
|
||||
spec:
|
||||
processor: cookiecutter
|
||||
type: service
|
||||
|
||||
@@ -103,8 +103,7 @@ const ScaffolderPage: React.FC<{}> = () => {
|
||||
}`}
|
||||
type={template.spec.type ?? ''}
|
||||
description={template.metadata.description ?? '-'}
|
||||
// TODO(shmidt-i): how to store tags
|
||||
tags={template.metadata.annotations?.tags.split(',') ?? []}
|
||||
tags={template.metadata?.tags ?? []}
|
||||
/>
|
||||
</Grid>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user