diff --git a/docs/使用指南.md b/docs/使用指南.md index d00fc6f..70caa3e 100644 --- a/docs/使用指南.md +++ b/docs/使用指南.md @@ -1,4 +1,4 @@ -# 资源访问管理(sharelink)插件 · 配置指南与使用说明 +# 资源下载管理(sharelink)插件 · 配置指南与使用说明 > 适用版本:sharelink 1.2.x / Halo ≥ 2.22(已在 Halo Pro 2.25.4 实测;受保护链接自 1.2.0 起提供) > @@ -62,7 +62,7 @@ Halo 默认的附件可以通过 `/upload/文件名` 直链被任何人直接下 1. 进入 **Console → 系统 → 插件**,点击右上角 **「安装」**。 2. 选择 **「本地上传」** 上传 `sharelink-x.y.z.jar`(或「远程下载」粘贴 jar 地址)。 -3. 安装后在插件列表找到 **「资源访问管理」**,点击启用。 +3. 安装后在插件列表找到 **「资源下载管理」**,点击启用。 4. 启用成功后,左侧菜单 **「内容」** 分组下会出现 **「资源访问管理」** 入口,一个页面内通过页签切换「下载资源」与「受保护链接」。 > ⚠️ **升级插件时的两个坑**(Halo 通用行为,非本插件问题): @@ -73,7 +73,7 @@ Halo 默认的附件可以通过 `/upload/文件名` 直链被任何人直接下 ## 三、全局配置 -进入 **系统 → 插件 → 资源访问管理 → 设置**,有两个标签页。 +进入 **系统 → 插件 → 资源下载管理 → 设置**,有两个标签页。 ### 3.1 基本设置 diff --git a/gradle.properties b/gradle.properties index 78d97e4..6d41bff 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.3.0 +version=1.3.1 diff --git a/src/main/resources/extensions/role-templates.yaml b/src/main/resources/extensions/role-templates.yaml index 7ce471b..8a6ce81 100644 --- a/src/main/resources/extensions/role-templates.yaml +++ b/src/main/resources/extensions/role-templates.yaml @@ -7,7 +7,7 @@ metadata: halo.run/hidden: "true" rbac.authorization.halo.run/aggregate-to-anonymous: "true" annotations: - rbac.authorization.halo.run/module: "资源访问管理" + rbac.authorization.halo.run/module: "资源下载管理" rbac.authorization.halo.run/display-name: "Sharelink Public APIs" rules: - apiGroups: [ "api.sharelink.halo.run" ] @@ -30,8 +30,8 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "资源访问管理" - rbac.authorization.halo.run/display-name: "资源访问查看" + rbac.authorization.halo.run/module: "资源下载管理" + rbac.authorization.halo.run/display-name: "下载资源查看" rbac.authorization.halo.run/ui-permissions: '["plugin:sharelink:view"]' rules: - apiGroups: [ "console.api.sharelink.halo.run" ] @@ -60,8 +60,8 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "资源访问管理" - rbac.authorization.halo.run/display-name: "资源访问管理" + rbac.authorization.halo.run/module: "资源下载管理" + rbac.authorization.halo.run/display-name: "下载资源管理" rbac.authorization.halo.run/ui-permissions: '["plugin:sharelink:manage"]' rbac.authorization.halo.run/dependencies: '["role-template-sharelink-view"]' rules: diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index 533cbe2..23bf657 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -12,7 +12,7 @@ spec: homepage: https://github.com/shirainbown/plugin-sharelink repo: https://github.com/shirainbown/plugin-sharelink issues: https://github.com/shirainbown/plugin-sharelink/issues - displayName: "资源访问管理" + displayName: "资源下载管理" description: "管理文章中的资源下载链接与受保护超链接:下载/访问统计、按资源/链接的邮箱验证、防止附件直链下载、文章引用扫描。" version: "@version@" configMapName: sharelink-configmap