halo/ui
Takagi b8293faafd
fix: error occurs when opening attachment library in the uc (#5590)
#### What type of PR is this?

/kind bug
/area ui

#### What this PR does / why we need it:

在个人中心,使用默认富文本编辑器上传附件库时,由于在 UC 中不存在附件库列表,因此会出现错误。

本 PR 通过对默认富文本编辑器上传组件进行调整,调整如下:

1. 当不具有 uc 和 system 的附件权限时,用户仅能通过链接插入图片、音频等,且不允许拖拽和粘贴上传。
2. 当用户具有 uc 但没有 system 的附件权限时,用户可以通过拖拽和粘贴的方式上传,但不允许通过附件库上传。
3. 当用户具有 system 附件权限时,允许通过所有方式(上传、附件库、链接、拖拽和粘贴)进行上传。

#### How to test it?

测试默认富文本编辑器中,用户在不同附件库权限下上传图片是否能够按照逻辑正常处理。

#### Which issue(s) this PR fixes:

Fixes #5581

#### Does this PR introduce a user-facing change?
```release-note
修复在个人中心中使用默认富文本编辑器的附件库而导致的报错问题
```
2024-03-26 14:44:07 +00:00
..
.changeset Move folder console to ui 2024-02-02 22:22:51 +08:00
.husky Fix the problem of being unable to commit (#5362) 2024-02-18 08:00:16 +00:00
.vscode Move folder console to ui 2024-02-02 22:22:51 +08:00
console-src refactor: rendering conditions for plugin installation components (#5577) 2024-03-26 10:48:07 +00:00
cypress Move folder console to ui 2024-02-02 22:22:51 +08:00
docs feat: add verification function to the notification settings for the mailbox (#5464) 2024-03-26 08:00:07 +00:00
packages fix: duplicate scroller issue in post edit page (#5537) 2024-03-21 12:32:07 +00:00
public Move folder console to ui 2024-02-02 22:22:51 +08:00
src fix: error occurs when opening attachment library in the uc (#5590) 2024-03-26 14:44:07 +00:00
uc-src feat: add retry mechanism for saving posts on the UC end (#5578) 2024-03-25 04:38:08 +00:00
.editorconfig Move folder console to ui 2024-02-02 22:22:51 +08:00
.env.development Move folder console to ui 2024-02-02 22:22:51 +08:00
.env.production Move folder console to ui 2024-02-02 22:22:51 +08:00
.eslintrc.cjs Move folder console to ui 2024-02-02 22:22:51 +08:00
.gitignore Move folder console to ui 2024-02-02 22:22:51 +08:00
.gitpod.yml Move folder console to ui 2024-02-02 22:22:51 +08:00
.npmignore Move folder console to ui 2024-02-02 22:22:51 +08:00
.npmrc Move folder console to ui 2024-02-02 22:22:51 +08:00
.prettierignore Move folder console to ui 2024-02-02 22:22:51 +08:00
Makefile Move folder console to ui 2024-02-02 22:22:51 +08:00
OWNERS Move folder console to ui 2024-02-02 22:22:51 +08:00
README.md Move folder console to ui 2024-02-02 22:22:51 +08:00
build.gradle Collect Gradle plugin versions into root build.gradle (#5511) 2024-03-15 10:34:07 +00:00
cypress.json Move folder console to ui 2024-02-02 22:22:51 +08:00
env.d.ts fix: FormKit code input type error (#5522) 2024-03-18 08:24:08 +00:00
index.html Move folder console to ui 2024-02-02 22:22:51 +08:00
package.json feat: add image editor feature for attachment upload component (#5585) 2024-03-25 04:16:08 +00:00
pnpm-lock.yaml feat: add image editor feature for attachment upload component (#5585) 2024-03-25 04:16:08 +00:00
pnpm-workspace.yaml Move folder console to ui 2024-02-02 22:22:51 +08:00
postcss.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
prettier.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
tailwind.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.app.json chore: bump vue related packages version (#5384) 2024-02-22 03:12:07 +00:00
tsconfig.json Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.node.json Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.vitest.json Move folder console to ui 2024-02-02 22:22:51 +08:00
vite.config.ts Add build script for ui project 2024-02-03 22:51:50 +08:00
vite.uc.config.ts Add build script for ui project 2024-02-03 22:51:50 +08:00
vitest.config.ts Add build script for ui project 2024-02-03 22:51:50 +08:00

README.md

README

Halo logo

Halo 2.0 的管理端项目(原 halo-admin

GitHub release GitHub GitHub last commit GitHub Workflow Status Gitpod ready-to-code


当前仓库已经将 halo-admin 改为了 console。但对于 Halo 1.x 版本,依旧保持 halo-admin 的概念。

开发环境运行

npm install -g pnpm@8
pnpm install 
pnpm build:packages
pnpm dev

生产构建

pnpm build

状态

Repobeats analytics