Skip to content

Commit afa4391

Browse files
committed
chore: improve display for common list and ai gateway example
1 parent ba84963 commit afa4391

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It's good to specialize in one thing, if we are experts in related abilities we
2727

2828
- [x] website analysis
2929
- [x] monitor
30-
- [ ] support passive reception of results
30+
- [x] support passive reception of results
3131
- [x] server status
3232
- [x] problem notification
3333
- [x] telemetry
@@ -42,10 +42,10 @@ It's good to specialize in one thing, if we are experts in related abilities we
4242
- [x] hooks
4343
- [x] helm install support
4444
- [x] allow install from public
45-
- [ ] improve monitor reporter usage
45+
- [x] improve monitor reporter usage
4646
- [x] uninstall guide
47-
- [ ] download from server
48-
- [ ] custom params guide
47+
- [x] download from server
48+
- [x] custom params guide
4949

5050
## Preview
5151

@@ -98,4 +98,4 @@ And its inspired by `umami` license which under `MIT` and `uptime-kuma` which un
9898

9999
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/msgbyte/tianji)
100100

101-
[![Run on ClawCloud](https://raw.githubusercontent.com/ClawCloud/Run-Template/refs/heads/main/Run-on-ClawCloud.svg)](https://template.run.claw.cloud/?referralCode=TNW6NVWTLHPQ&openapp=system-fastdeploy%3FtemplateName%3Dtianji)
101+
[![Run on ClawCloud](https://raw.githubusercontent.com/ClawCloud/Run-Template/refs/heads/main/Run-on-ClawCloud.svg)](https://template.run.claw.cloud/?referralCode=TNW6NVWTLHPQ&openapp=system-fastdeploy%3FtemplateName%3Dtianji)

src/client/components/CommonList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const CommonList: React.FC<CommonListProps> = React.memo((props) => {
5555
return (
5656
<div className="flex h-full flex-col">
5757
{props.hasSearch && (
58-
<div className="bg-background/95 supports-[backdrop-filter]:bg-background/60 px-4 pt-4 backdrop-blur">
58+
<div className="bg-background/95 supports-[backdrop-filter]:bg-background/60 px-4 py-2 backdrop-blur">
5959
<form>
6060
<div className="relative">
6161
<LuSearch className="text-muted-foreground absolute left-2 top-2.5 h-4 w-4" />
@@ -71,7 +71,7 @@ export const CommonList: React.FC<CommonListProps> = React.memo((props) => {
7171
)}
7272

7373
<ScrollArea className="flex-1">
74-
<div className="flex flex-col gap-2 p-4">
74+
<div className="flex flex-col gap-2 px-4 py-2">
7575
{props.isLoading && (
7676
<div className="flex justify-center py-8">
7777
<Spinner size={24} />

src/client/components/aiGateway/AIGatewayCodeExampleBtn.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async function callAIGateway() {
124124
{
125125
headers: {
126126
"Content-Type": "application/json",
127-
"Authorization": "Bearer YOUR_API_KEY"
127+
"Authorization": "Bearer <YOUR_API_KEY>"
128128
}
129129
}
130130
);
@@ -145,7 +145,7 @@ def call_ai_gateway():
145145
146146
headers = {
147147
"Content-Type": "application/json",
148-
"Authorization": "Bearer YOUR_API_KEY"
148+
"Authorization": "Bearer <YOUR_API_KEY>"
149149
}
150150
151151
data = {
@@ -174,7 +174,7 @@ call_ai_gateway()`;
174174
case 'curl':
175175
return `curl -X POST '${window.location.origin}${endpoint}' \\
176176
-H 'Content-Type: application/json' \\
177-
-H 'Authorization: Bearer YOUR_API_KEY' \\
177+
-H 'Authorization: Bearer <YOUR_API_KEY>' \\
178178
-d '{
179179
"messages": [
180180
{

0 commit comments

Comments
 (0)