Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-05-08 10:25:28 +08:00
commit ab3550d44d
6 changed files with 17 additions and 5 deletions

View file

@ -224,7 +224,7 @@ jobs:
GOPATH: ${{ github.workspace }}/go
GOARCH: ${{ matrix.config.goarch }}
- name: Building Electron
- name: Building Electron App
run: pnpm run ${{ matrix.config.electron_args }}
working-directory: ${{ github.workspace }}/go/src/github.com/${{ env.repo_owner }}/${{ env.repo_name }}/app

View file

@ -689,6 +689,13 @@ func (filter *ViewFilter) GetAffectValue(key *Key, defaultVal *Value) (ret *Valu
return nil
}
if FilterOperatorIsEmpty != filter.Operator && FilterOperatorIsNotEmpty != filter.Operator {
if filter.Value.IsEmpty() {
// 在不是过滤空值和非空值的情况下,空值不设置默认值 https://github.com/siyuan-note/siyuan/issues/11297
return nil
}
}
ret = filter.Value.Clone()
ret.CreatedAt = util.CurrentTimeMillis()
ret.UpdatedAt = ret.CreatedAt + 1000

View file

@ -2897,6 +2897,11 @@ func updateAttributeViewColumn(operation *Operation) (err error) {
if keyValues.Key.ID == operation.ID {
keyValues.Key.Name = strings.TrimSpace(operation.Name)
keyValues.Key.Type = colType
for _, value := range keyValues.Values {
value.Type = colType
}
break
}
}

View file

@ -27,9 +27,9 @@ export GOARCH=arm64
go build --tags fts5 -v -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .
cd ..
echo 'Building Electron'
echo 'Building Electron App amd64'
cd app
pnpm run dist-darwin
echo 'Building Electron arm64'
echo 'Building Electron App arm64'
pnpm run dist-darwin-arm64
cd ..

View file

@ -22,7 +22,7 @@ export GOARCH=amd64
go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" .
cd ..
echo 'Building Electron'
echo 'Building Electron App'
cd app
pnpm run dist-linux
cd ..

View file

@ -35,7 +35,7 @@ if errorlevel 1 (
cd ..
echo 'Building Electron'
echo 'Building Electron App'
cd app
call pnpm run dist
if errorlevel 1 (