halo/ui/src/components
Ryan Wang 41ea81cddd
feat: support display HTML format in API error responses (#7127)
#### What type of PR is this?

/kind feature
/area ui
/milestone 2.20.x

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

Add supports for display HTML format in API error responses

See #7115 

Examples:

<img width="917" alt="image" src="https://github.com/user-attachments/assets/1ab4531c-3238-4e7d-ba24-d2425184a757">

<img width="942" alt="image" src="https://github.com/user-attachments/assets/54621b31-0629-4772-95fd-8587a7704ca3">


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

Fixes #7115 

#### Special notes for your reviewer:

Nginx mock example:

```nginx
server {
    listen 80;
    server_name localhost;

    error_page   500 502 503 504  /50x.html;

    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    location / {
      proxy_pass http://localhost:8090;
      proxy_set_header HOST $host;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location ^~ /apis/content.halo.run/v1alpha1/posts/ {
        return 403;
    }
}
```

#### Does this PR introduce a user-facing change?

```release-note
支持显示来自反向代理或者 WAF 的请求错误信息
```
2024-12-16 02:46:08 +00:00
..
alerts refactor: remove underline in h2 warning alert (#6849) 2024-10-13 14:49:14 +00:00
attachment feat: allow users to manage their attachments in uc (#6731) 2024-10-08 14:56:55 +00:00
base-app chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
button Move folder console to ui 2024-02-02 22:22:51 +08:00
codemirror chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
common chore: update Halo official website URL (#6514) 2024-08-26 15:53:04 +08:00
dropdown-selector fix: not remembering the selected editor (#6114) 2024-06-23 03:46:29 +00:00
editor chore: add prettier-plugin-organize-imports plugin to organize imports (#6836) 2024-10-12 07:05:09 +00:00
entity chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
entity-fields Move folder console to ui 2024-02-02 22:22:51 +08:00
filter refactor: optimize user filter component to support remote search (#6529) 2024-08-27 09:53:19 +00:00
form fix: post annotations form layout issues in Chrome browser (#7076) 2024-11-25 10:45:36 +08:00
global-search chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
icon feat: add supports for displaying jpeg icon in attachments list (#6956) 2024-10-27 08:26:01 +00:00
image chore: bump vue version to 3.5 (#6696) 2024-09-26 08:11:31 +00:00
input Move folder console to ui 2024-02-02 22:22:51 +08:00
menu chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
permission Move folder console to ui 2024-02-02 22:22:51 +08:00
preview fix: saving settings in theme preview returns to homepage (#6447) 2024-08-08 08:20:38 +00:00
sticky-block chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
upload feat: support display HTML format in API error responses (#7127) 2024-12-16 02:46:08 +00:00
user feat: add support for setting an owner for posts (#6178) 2024-06-27 10:10:55 +00:00
user-avatar chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
video chore: bump vue version to 3.5 (#6696) 2024-09-26 08:11:31 +00:00