You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/02-customFieldRendering.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -605,6 +605,30 @@ For fields containing sensitive data (like passwords, API keys, tokens, or other
605
605
606
606
The renderer wraps the standard value output and adds a click-to-reveal blur effect. Clicking again hides the value.
607
607
608
+
For long values (like API keys) you can enable compact mode by passing `compact:true` via `meta`. When set, the value is shortened the same way as the `CompactUUID` renderer (first 4 + `...` + last 4 characters). In compact mode you can additionally pass `copy:true` to render a copy-to-clipboard button next to the value. The copy button is only shown once the value is revealed (blur removed):
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/12-security.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ new AdminForth({
53
53
54
54
The format is `requests/period`, where period can use `s`, `m`, `h`, or `d`.
55
55
Because rate limits are keyed by client IP, configure `auth.clientIpHeader` when AdminForth runs behind a trusted CDN or reverse proxy. See [Trusting client IP addresses](#trusting-client-ip-addresses).
56
+
> It is important to provide '`auth.clientIpHeader`, because otherwise adminforth will automatically detect client IP in headers and if you don't use proxy, hacker can change IP like `x-forwarded-for: 1.1.1.1` in request headers and skip rate limit
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -542,6 +542,26 @@ And `edit` action will be available as quick action:
542
542
543
543
544
544
545
+
## Show
546
+
547
+
### Next record button
548
+
549
+
By default, when a user opens a record from the list view, a **Next** button appears on the show page. It allows navigating through records one by one, respecting the current filters and sorting applied in the list. When the user reaches the last record on the current page, AdminForth automatically fetches the next page and continues navigation seamlessly.
550
+
551
+
To disable the Next button for a resource, set `showNextButton` to `false`:
552
+
553
+
```typescript title="./resources/apartments.ts"
554
+
exportdefault {
555
+
resourceId: 'aparts',
556
+
options: {
557
+
//diff-add
558
+
showNextButton: false,
559
+
}
560
+
}
561
+
```
562
+
563
+
> ☝️ The Next button is only shown when the user navigates to the show page from the list view. Opening a record directly via URL will not display the button.
0 commit comments