Jeffrey Chen
ea69c9ab3c
🎨 Add kernel API /api/setting/setIcon ( #17326 )
2026-03-24 23:00:53 +08:00
Daniel
710548dc68
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xmw9-6r43-x9ww
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-23 19:10:25 +08:00
Daniel
b957c769df
🔒 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-34xj-66v3-6j83
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-23 19:07:24 +08:00
Daniel
677063aa44
🎨 https://github.com/siyuan-note/siyuan/issues/17261
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 16:26:19 +08:00
Daniel
ad66b5c6dd
♻️ https://github.com/siyuan-note/siyuan/pull/17302
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 16:04:00 +08:00
Jeffrey Chen
c055028af0
♻️ Code style: Potential resource leak ( #17313 )
...
* ♻️ Code style: Potential resource leak
* 🎨 Still use f.Unlock()
---------
Co-authored-by: D <845765@qq.com >
2026-03-22 12:41:59 +08:00
Daniel
a8abfa5ddf
♻️ https://github.com/siyuan-note/siyuan/pull/17307
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 12:26:51 +08:00
Jeffrey Chen
349a8ddc98
♻️ Code style: unused function ( #17307 )
...
* ♻️ Code style: unused function
* Refactor reload handling in processMessage
Refactor reload logic to handle scroll reset and maintain functionality for mobile and non-mobile environments.
* Add ReloadUIResetScroll function to websocket.go
---------
Co-authored-by: D <845765@qq.com >
2026-03-22 12:19:44 +08:00
Jeffrey Chen
b3e844ef7c
♻️ Code style: Constant conditions ( #17312 )
2026-03-22 11:35:05 +08:00
Jeffrey Chen
9a62f8ee86
♻️ Code style: deprecated elements ( #17311 )
2026-03-22 11:33:45 +08:00
Jeffrey Chen
71342abe99
♻️ Code style: Omit explicit types and remove unused (blank identifier) parameters ( #17310 )
2026-03-22 11:30:20 +08:00
Daniel
bd5873559b
♻️ https://github.com/siyuan-note/siyuan/pull/17309
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 11:29:03 +08:00
Jeffrey Chen
8dbe00d634
♻️ Code style: Unused formal parameters ( #17309 )
2026-03-22 11:26:39 +08:00
Jeffrey Chen
64fd483ba7
♻️ Code style: Unused constants ( #17308 )
2026-03-22 11:24:07 +08:00
Jeffrey Chen
7ad7fa3cad
♻️ Code style: unused variable ( #17306 )
2026-03-22 11:20:52 +08:00
Jeffrey Chen
afb3ad1447
♻️ Code style: Redundant type casting ( #17305 )
2026-03-22 11:18:52 +08:00
Jeffrey Chen
fb263abded
♻️ Code style: type assertion or type switch on errors fails on wrapped errors ( #17304 )
2026-03-22 11:15:54 +08:00
Jeffrey Chen
fdb1e4ac00
♻️ Code style: Comparing with the equality operator fails on wrapped errors ( #17303 )
2026-03-22 11:11:25 +08:00
Daniel
669577930a
♻️ https://github.com/siyuan-note/siyuan/pull/17302
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 11:09:55 +08:00
Jeffrey Chen
6d95cd099f
♻️ Code style: The placeholder argument has an incorrect type ( #17302 )
2026-03-22 11:08:48 +08:00
Jeffrey Chen
bd1d45d437
♻️ Code style: Field assignment without explicit names ( #17301 )
2026-03-22 11:07:04 +08:00
Jeffrey Chen
5a27e25ca6
♻️ Code style: Format kernel/model/publish_access.go ( #17300 )
2026-03-22 11:05:48 +08:00
Jeffrey Chen
60fa7fe545
♻️ Code style: Adjust comment formatting ( #17299 )
2026-03-22 11:05:22 +08:00
Daniel
9497f5dc1b
🎨 Supports rolling back a specified file within a data snapshot https://github.com/siyuan-note/siyuan/issues/12355
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-22 11:03:03 +08:00
Jeffrey Chen
fdd7285e90
♻️ Code style: Redundant else branch ( #17298 )
2026-03-22 10:50:13 +08:00
Daniel
246a499340
⬆️ Upgrade lute
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-21 23:04:13 +08:00
Daniel
db7dd2e9e9
⬆️ Upgrade lute
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-21 22:56:53 +08:00
Daniel
1667adb1c4
♻️ min(runtime.NumCPU(), n)
...
Signed-off-by: Daniel <845765@qq.com >
2026-03-21 11:59:42 +08:00
iliya
717a8e857c
♻️ kernel/model/index: optimizations ( #17286 )
...
* kernel/model/carddav: modernize with wg.Go
* kernel/model/carddav: remove unused code
2026-03-21 11:55:47 +08:00
iliya
4597117e56
♻️ modernize with wg.Go and remove unused code ( #17285 )
...
* kernel/model/caldav: modernize with wg.Go
* kernel/model/caldav: remove unused code
2026-03-21 11:55:13 +08:00
iliya
c3808f4e77
♻️ kernel/search/find: modernize with wg.Go ( #17289 )
2026-03-21 11:53:41 +08:00
iliya
440f9e29ec
♻️ kernel/model/repository: refactor with wg.Go ( #17288 )
2026-03-21 11:53:35 +08:00
iliya
956bf40c6d
♻️ kernel/model/bazaar: modernize with wg.Go ( #17284 )
2026-03-21 11:53:03 +08:00
iliya
c918a967da
♻️ kernel/bazaar/stage: modernize with wg.Go ( #17283 )
...
* kernel/bazaar/stage: modernize with wg.Go
* kernel/filesys/tree: optimize with min
2026-03-21 11:52:37 +08:00
iliya
6bd344a4bb
♻️ kernel/model/index: remove redundant return ( #17287 )
2026-03-21 11:51:41 +08:00
iliya
31a1b17440
♻️ kernel/api/broadcast: modernize with wg.Go ( #17282 )
2026-03-21 11:50:17 +08:00
iliya
b77e174066
♻️ kernel/util/path: remove unnecessary second val from loop ( #17279 )
2026-03-21 11:44:00 +08:00
iliya
87b28d3bdc
♻️ kernel/model/import: refactor bytes.HasPrefix + bytes.TrimPrefix ( #17270 )
...
* kernel/model/import: refactor bytes.HasPrefix + bytes.TrimPrefix
with bytes.CutPrefix.
remove redundant return in htmlBlock2Inline func
* Refactor token trimming for HTML blocks and links
* Update import.go
* Fix token trimming for HTML block processing
2026-03-21 11:43:15 +08:00
iliya
12a21ecdea
♻️ kernel/util/misc: use raw string to avoid escaping more than 1 time ( #17278 )
2026-03-21 11:40:24 +08:00
iliya
c592f9d88a
♻️ kernel/util/working: remove redundant return ( #17280 )
2026-03-21 11:37:14 +08:00
iliya
322477e282
♻️ kernel/sql/queue_history: refactor time.Now().Sub with time.Since ( #17277 )
2026-03-21 11:27:47 +08:00
iliya
d3c78f75e7
♻️ kernel/server/serve: remove redundant returns ( #17275 )
2026-03-21 11:23:40 +08:00
iliya
ee1b22e3d2
♻️ kernel/server/port: refactor strings.Split with more optimized strings.SplitSeq ( #17274 )
2026-03-21 11:21:54 +08:00
iliya
780039a553
♻️ kernel/search/mark: optimize string concatenating with string builder ( #17273 )
2026-03-21 11:15:39 +08:00
iliya
87e540c475
♻️ kernel/model/sync: refactor HasPrefix + manual trimming and Index + m… ( #17272 )
...
* kernel/model/sync: refactor HasPrefix + manual trimming and Index + manual trimming
remove redundant returns.
rename arg in SetSyncPerception.
refactor errors.New fmt.Sprintf with fmt.Errorf
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-21 11:07:35 +08:00
iliya
0065886057
♻️ kernel/model/search: refactor for loops ( #17271 )
2026-03-21 11:03:18 +08:00
iliya
b45824d75a
♻️ kernel/model/history: remove unnecessary val in loop ( #17269 )
2026-03-21 10:49:41 +08:00
iliya
253b64fe3a
♻️ kernel/model/export: refactor manual loop with slices.Contains and manual copying with maps.Copy ( #17268 )
2026-03-21 10:48:37 +08:00
iliya
76d72e1334
♻️ kernel/model/assets: refactoring ( #17267 )
...
* kernel/model/assets: refactoring
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: D <845765@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-21 10:42:38 +08:00
iliya
7c727bd140
♻️ kernel/model/assets: refactor with strings.Cut ( #17266 )
2026-03-21 10:37:10 +08:00