mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-16 06:16:52 +00:00
[Backport release-1.1] Feat: store workflow step def properties in cm (#2614)
* Fix: fix notification def (cherry picked from commitf35a213048) * Feat: store workflow step def properties in cm (cherry picked from commit7f3902536c) * fix ci (cherry picked from commita252749f77) * fix data race (cherry picked from commit0b55ce8386) Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
committed by
GitHub
parent
162534b611
commit
855cbfe3ec
@@ -27,8 +27,7 @@ import (
|
||||
|
||||
var (
|
||||
//go:embed pkgs op.cue
|
||||
fs embed.FS
|
||||
pkgContent string
|
||||
fs embed.FS
|
||||
)
|
||||
|
||||
// GetPackages Get Stdlib packages
|
||||
@@ -44,7 +43,7 @@ func GetPackages(tagTempl string) (map[string]string, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pkgContent = string(opBytes) + "\n"
|
||||
pkgContent := string(opBytes) + "\n"
|
||||
for _, file := range files {
|
||||
body, err := fs.ReadFile("pkgs/" + file.Name())
|
||||
if err != nil {
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
url?: string
|
||||
value?: string
|
||||
style?: string
|
||||
text?: #text
|
||||
text?: #textType
|
||||
confirm?: {
|
||||
title: #text
|
||||
text: #text
|
||||
confirm: #text
|
||||
deny: #text
|
||||
title: #textType
|
||||
text: #textType
|
||||
confirm: #textType
|
||||
deny: #textType
|
||||
style?: string
|
||||
}
|
||||
options?: [...#option]
|
||||
initial_options?: [...#option]
|
||||
placeholder?: #text
|
||||
placeholder?: #textType
|
||||
initial_date?: string
|
||||
image_url?: string
|
||||
alt_text?: string
|
||||
@@ -45,7 +45,7 @@
|
||||
}]
|
||||
}
|
||||
|
||||
#text: {
|
||||
#textType: {
|
||||
type: string
|
||||
text: string
|
||||
emoji?: bool
|
||||
@@ -53,8 +53,8 @@
|
||||
}
|
||||
|
||||
#option: {
|
||||
text: text
|
||||
text: #textType
|
||||
value: string
|
||||
description?: text
|
||||
description?: #textType
|
||||
url?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user