From 2ed6bc0de70703b65ec18046c857b54380a91f17 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Sep 2025 09:40:34 +0800 Subject: [PATCH 1/6] :art: https://github.com/siyuan-note/siyuan/issues/15850 --- app/src/assets/scss/business/_resize.scss | 4 ++++ app/src/protyle/toolbar/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/assets/scss/business/_resize.scss b/app/src/assets/scss/business/_resize.scss index c5b20793b..7729352cb 100644 --- a/app/src/assets/scss/business/_resize.scss +++ b/app/src/assets/scss/business/_resize.scss @@ -74,4 +74,8 @@ left: -8px; bottom: 8px; } + + &__move { + cursor: move; + } } diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 480a1fcc7..0bb74947e 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -901,7 +901,7 @@ export class Toolbar { this.subElement.style.padding = "0"; } this.subElement.innerHTML = `
- + ${title} From b50789fa3a37675c21093828884575ff07e02f73 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Sep 2025 10:01:59 +0800 Subject: [PATCH 2/6] :art: https://github.com/siyuan-note/siyuan/issues/15860 --- app/src/util/highlightById.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 18869077f..1426f921c 100644 --- a/app/src/util/highlightById.ts +++ b/app/src/util/highlightById.ts @@ -51,11 +51,19 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal brElement.remove(); return; } - // undo 时禁止数据库滚动 - if (blockElement.classList.contains("av") && blockElement.dataset.render === "true" && ( - blockElement.querySelector(".av__row--header")?.getAttribute("style")?.indexOf("transform") > -1 || - blockElement.querySelector(".av__row--footer")?.getAttribute("style")?.indexOf("transform") > -1 - )) { + + if (blockElement.classList.contains("av") && blockElement.dataset.render === "true") { + // undo 时禁止数据库滚动 + if (blockElement.querySelector(".av__row--header")?.getAttribute("style")?.indexOf("transform") > -1 || + blockElement.querySelector(".av__row--footer")?.getAttribute("style")?.indexOf("transform") > -1) { + return; + } + const activeElement = blockElement.querySelector(".av__cell--select, .av__row--select, .av__gallery-item--select"); + if (activeElement) { + activeElement.scrollIntoView({block: "nearest", behavior}); + } else { + blockElement.scrollIntoView({block: "nearest", behavior}); + } return; } // 撤销时 br 插入删除会导致 rang 被修改 https://github.com/siyuan-note/siyuan/issues/12679 From 1d6a2c5d33a5a264e235ca860f8fae2d879f560c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Sep 2025 10:10:41 +0800 Subject: [PATCH 3/6] :art: https://github.com/siyuan-note/siyuan/issues/15859 --- app/src/assets/scss/util/_function.scss | 6 ++++++ app/src/protyle/render/av/blockAttr.ts | 2 +- app/src/protyle/render/av/cell.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/assets/scss/util/_function.scss b/app/src/assets/scss/util/_function.scss index 5386f99e9..93ef7ec9c 100644 --- a/app/src/assets/scss/util/_function.scss +++ b/app/src/assets/scss/util/_function.scss @@ -20,6 +20,12 @@ display: inline-block; flex-shrink: 0; } + + &--5 { + width: 5px; + display: inline-block; + flex-shrink: 0; + } } &__hr { diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 7cddcf4b2..f6dbf08b4 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -138,7 +138,7 @@ export const genAVValueHTML = (value: IAVCellValue) => { if (item && item.block) { const rowID = value.relation.blockIDs[index]; if (item?.isDetached) { - html += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; + html += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; } else { // data-block-id 用于更新 emoji html += `${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index a4be23f36..f2c53013a 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -1007,7 +1007,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0, showIcon = tru if (item && item.block) { const rowID = cellValue.relation.blockIDs[index]; if (item?.isDetached) { - text += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; + text += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; } else { // data-block-id 用于更新 emoji text += `${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; From 4a3bd72a5eabe73e889ac895aca4c7e2683024cf Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Sep 2025 10:49:58 +0800 Subject: [PATCH 4/6] :art: https://github.com/siyuan-note/siyuan/issues/15858 --- app/src/protyle/render/av/calc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/calc.ts b/app/src/protyle/render/av/calc.ts index 8711777de..68800493f 100644 --- a/app/src/protyle/render/av/calc.ts +++ b/app/src/protyle/render/av/calc.ts @@ -131,7 +131,7 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement, blockID, target: calcElement }); - if (panelData?.data) { + if (panelData?.data && type !== "checkbox") { // 汇总字段汇总方式中才有“显示唯一值”选项 Add "Show unique values" to the calculation of the database rollup field https://github.com/siyuan-note/siyuan/issues/15852 calcItem({ menu, From 605959ba276e7acd87c51b371bf8b54956fde2c4 Mon Sep 17 00:00:00 2001 From: Github1977 <68886053+li7355608@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:05:15 +0800 Subject: [PATCH 5/6] :memo: Update README_zh_CN.md (#15862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补充1Panel面板部署 --- README_zh_CN.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README_zh_CN.md b/README_zh_CN.md index 16e5c75e8..741a40b69 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -44,6 +44,7 @@ * [Unraid 部署](#unraid-部署) * [宝塔面板 部署](#宝塔面板部署) * [小皮面板 部署](#小皮面板部署) + * [1Panel面板 部署](#1Panel面板部署) * [内部预览版](#内部预览版) * [🏘️ 社区](#️-社区) * [🛠️ 开发指南](#️-开发指南) @@ -361,6 +362,42 @@ Publish parameters: --accessAuthCode=******(访问授权码) +### 1Panel面板部署 + +
+1Panel面板 部署文档 + +#### 前提 + +- 仅适用于1Panel面板v1.10.32-lts及以上版本 +- 安装1Panel面板,前往[1Panel](https://1panel.cn/)官网,选择正式版安装脚本下载安装 + +#### 部署 + +1. 登录1Panel面板,在左侧菜单栏中点击 `应用商店` +2. 在 `应用商店-实用工具` 中找到 `思源笔记`,点击`安装`,也可以在搜索框直接搜索 +3. 配置访问授权码等基本信息,点击 `确定` + + - 名称:应用名称,默认 `siyuan` + - 版本:默认最新发行版 + - 端口:默认 `6806` + - 访问授权码:访问笔记时需要使用的`访问密码` + - 端口外部访问:如你需通过 `IP+Port` 直接访问,请勾选,同时会开放服务器防火墙端口 + - CPU限制:默认为0,不限制,可根据实际需要设置 + - 内存限制:默认为0,不限制,可根据实际需要设置 +4. 提交后面板会自动进行应用安装启动,应用状态会变为`安装中`,大概需要`1-3`分钟,耐心等待安装完成 +5. 当应用状态变为`已启动`后,点击左侧的网站,首次使用需要安装`OpenResty`,点击`安装` +6. 安装完成后,点击`网站`菜单栏左上角`创建`,在弹出的页面中选择`反向代理` +7. 在`主域名`填入你的域名,网站代号会自动生成,代理选择`http`,代理地址填写`127.0.0.1:6806`,点击`确定` +8. (可选) 配置你创建的网站,可根据需要配置`https`访问增强访问安全性 + +#### 访问思源笔记 + +- 如果你通过`OpenResty`反向代理反代了网站,并且填写了域名,请在浏览器输入`域名`访问 +- 如你选择了 `端口外部访问`,请在浏览器地输入 `http://<1Panel面板IP>:6806` 访问 + +
+ ### 内部预览版 我们会在有重大更新前发布内部预览版,请访问 [https://github.com/siyuan-note/insider](https://github.com/siyuan-note/insider)。 From bbd49a7b19f420c688448381ca7976bcd6a7a0f2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 17 Sep 2025 11:14:19 +0800 Subject: [PATCH 6/6] :art: https://github.com/siyuan-note/siyuan/issues/15858 --- app/src/protyle/render/av/cell.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index f2c53013a..5c753bbee 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -993,14 +993,20 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0, showIcon = tru } text += "
"; } else if (cellValue.type === "rollup") { + let rollupType; cellValue?.rollup?.contents?.forEach((item) => { - const rollupText = ["template", "select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? renderCell(item, rowIndex, showIcon, type) : renderRollup(item, showIcon); + const rollupText = ["template", "select", "mSelect", "mAsset", "relation"].includes(item.type) ? renderCell(item, rowIndex, showIcon, type) : renderRollup(item, showIcon); if (rollupText) { - text += rollupText + ", "; + text += rollupText + (item.type === "checkbox" ? "" : ", "); } + rollupType = item.type; }); - if (text && text.endsWith(", ")) { - text = text.substring(0, text.length - 2); + if (text) { + if (rollupType === "checkbox") { + text = `
${text}
`; + } else if (text.endsWith(", ")) { + text = text.substring(0, text.length - 2); + } } } else if (cellValue.type === "relation") { cellValue?.relation?.contents?.forEach((item, index) => { @@ -1050,6 +1056,8 @@ const renderRollup = (cellValue: IAVCellValue, showIcon: boolean) => { } } else if (cellValue.type === "number") { text = cellValue?.number.formattedContent || cellValue?.number.content.toString() || ""; + } else if (cellValue.type === "checkbox") { + text += ``; } else if (["date", "updated", "created"].includes(cellValue.type)) { const dataValue = cellValue ? cellValue[cellValue.type as "date"] : null; if (dataValue.formattedContent) {