Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/custom-template
Browse files Browse the repository at this point in the history
  • Loading branch information
longjuan committed Feb 29, 2024
2 parents 5218170 + 9efa4b9 commit 0fa9683
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* 在附件页面中点击上传按钮,选择好存储策略后上传文件即可上传到对应的对象存储中。
* 在 Halo 2.11 以上版本中可在 Halo 设置界面中设定文章附件、头像等的默认存储策略。
5. 使用“关联 S3 文件”功能:
* 在插件管理界面中,点击“对象存储(Amazon S3 协议)”插件标题,然后选择“关联 S3 文件”选项卡
* 在左侧侧边导航栏中,点击工具,再点击 S3 关联
* 在此界面中,您可以浏览并选择已在对象存储中但不是通过 Halo 上传的文件,关联后会在 Halo 生成相应的附件记录。这些文件现在可以方便地在 Halo 中管理和使用。
6. 使用“解除 S3 关联”功能:
* 在附件页面中,找到由本插件管理的附件记录,点击更多操作(右侧的三个点)按钮,然后点击“解除 S3 关联”按钮。
Expand Down
7 changes: 5 additions & 2 deletions console/src/views/S3Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ const handleModalClose = () => {
<div class="inline-flex items-center gap-2">
<select
v-model="size"
class="h-8 border outline-none rounded-base px-2 text-gray-800 text-sm border-gray-300"
class="h-8 border outline-none rounded-base pr-10 border-solid px-2 text-gray-800 text-sm border-gray-300 page-size-select"
@change="handleFirstPage"
>
<option
Expand Down Expand Up @@ -448,5 +448,8 @@ const handleModalClose = () => {
</template>

<style lang="scss" scoped>
.page-size-select:focus {
--tw-border-opacity: 1;
border-color: rgba(var(--colors-primary),var(--tw-border-opacity));
}
</style>
2 changes: 1 addition & 1 deletion src/main/resources/extensions/s3os-role-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/dependencies: |
[ "role-template-manage-attachments", "role-template-view-plugins" ]
[ "role-template-manage-attachments" ]
rbac.authorization.halo.run/module: "S3 Attachments Management"
rbac.authorization.halo.run/display-name: "S3 Link"
rbac.authorization.halo.run/ui-permissions: |
Expand Down

0 comments on commit 0fa9683

Please sign in to comment.