An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Database column icon https://github.com/siyuan-note/siyuan/issues/9304
Daniela3ea6a2362d9
diff --git a/kernel/av/av.go b/kernel/av/av.goindex 4b2d55072d..934080159e 100644--- a/kernel/av/av.go+++ b/kernel/av/av.go@@ -82,11 +82,12 @@ type Key struct {Template string `json:"template"` // 模板内容}-func NewKey(id, name string, keyType KeyType) *Key {+func NewKey(id, name, icon string, keyType KeyType) *Key {return &Key{ID: id,Name: name,Type: keyType,+ Icon: icon,}}@@ -397,7 +398,7 @@ type Viewable interface {func NewAttributeView(id string) (ret *AttributeView) {view := NewView()- key := NewKey(ast.NewNodeID(), "Block", KeyTypeBlock)+ key := NewKey(ast.NewNodeID(), "Block", "", KeyTypeBlock)ret = &AttributeView{Spec: 0,ID: id,diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 0d8a450580..cbf04b63b2 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -903,7 +903,7 @@ func addAttributeViewColumn(operation *Operation) (err error) {keyType := av.KeyType(operation.Typ)switch keyType {case av.KeyTypeText, av.KeyTypeNumber, av.KeyTypeDate, av.KeyTypeSelect, av.KeyTypeMSelect, av.KeyTypeURL, av.KeyTypeEmail, av.KeyTypePhone, av.KeyTypeMAsset, av.KeyTypeTemplate:- key := av.NewKey(operation.ID, operation.Name, keyType)+ key := av.NewKey(operation.ID, operation.Name, operation.Data.(string), keyType)attrView.KeyValues = append(attrView.KeyValues, &av.KeyValues{Key: key})switch view.LayoutType {