Browse Source

style: Fix CHANGELOG formatting and enhance user-account-settings HTML accessibility

### 為什麼改 (Why)

- **變更目標**:修復 CHANGELOG.md 中的空行格式,並補強 user-account-settings.html 外部連結安全性與無障礙設計。
- **動機與痛點**:符合官方 Linter 規範與 Web Accessibility (a11y) 標準,使程式碼達開源最高品質。

### 改了什麼 (What)

- **HTML 安全性與無障礙**:為外部連結加入 `rel="noreferrer noopener"`,並為輸入框與圖示按鈕補齊 `placeholder` 與 `title` 屬性。
- **Formatting**:修復 `CHANGELOG.md` 中多餘的空行。

### 實體檔案異動清單 (Files Changed)

- [修改] `CHANGELOG.md`
- [修改] `apps/client/src/app/components/user-account-settings/user-account-settings.html`

### 驗證狀態 (Verification)

- [x] Linter 驗證全數通過
pull/7565/head
JUDRAGONII 2 weeks ago
parent
commit
64912eb61e
  1. 2
      CHANGELOG.md
  2. 5
      apps/client/src/app/components/user-account-settings/user-account-settings.html

2
CHANGELOG.md

@ -12,10 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for Traditional Chinese (`zh-TW`) locale - Added support for Traditional Chinese (`zh-TW`) locale
- Added support for the `DIRECT_URL` environment variable to enable direct database connections - Added support for the `DIRECT_URL` environment variable to enable direct database connections
### Changed ### Changed
- Improved the pagination in the activities table of the account detail dialog - Improved the pagination in the activities table of the account detail dialog
- Improved the pagination in the activities table of the holding detail dialog - Improved the pagination in the activities table of the holding detail dialog
- Randomized the placeholder in the assistant - Randomized the placeholder in the assistant
- Enabled the _Bull Dashboard_ in the admin control panel without requiring an environment variable (experimental) - Enabled the _Bull Dashboard_ in the admin control panel without requiring an environment variable (experimental)

5
apps/client/src/app/components/user-account-settings/user-account-settings.html

@ -61,8 +61,10 @@
href="https://github.com/ghostfolio/ghostfolio/blob/main/apps/client/src/locales/messages.{{ href="https://github.com/ghostfolio/ghostfolio/blob/main/apps/client/src/locales/messages.{{
language language
}}.xlf" }}.xlf"
rel="noreferrer noopener"
target="_blank" target="_blank"
>here</a >here</a
>. >.
</div> </div>
} }
@ -295,15 +297,18 @@
<input <input
formControlName="accessToken" formControlName="accessToken"
matInput matInput
placeholder="Security Token"
[type]="isAccessTokenHidden ? 'password' : 'text'" [type]="isAccessTokenHidden ? 'password' : 'text'"
/> />
<button <button
class="mx-2" class="mx-2"
mat-icon-button mat-icon-button
matSuffix matSuffix
title="Toggle Security Token Visibility"
type="button" type="button"
(click)="isAccessTokenHidden = !isAccessTokenHidden" (click)="isAccessTokenHidden = !isAccessTokenHidden"
> >
<ion-icon <ion-icon
class="mat-icon" class="mat-icon"
[name]=" [name]="

Loading…
Cancel
Save