Skip to content

Commit

Permalink
pref: ai result style pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-tian committed Jan 13, 2025
2 parents c49e0ff + 0e55d86 commit 9563528
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
[![Medium](https://img.shields.io/badge/@kusionstack-black?style=flat&logo=medium&logoColor=white&link=https://medium.com/@kusionstack)](https://medium.com/@kusionstack)
[![Slack](https://img.shields.io/badge/slack-kusion-blueviolet?logo=slack)](https://cloud-native.slack.com/archives/C07U0395UG0)

<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> <a href="https://www.producthunt.com/posts/karpor" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=770525&theme=light&t=1736447376990" alt="Karpor - &#0032;Effortlessly&#0032;manage&#0032;Kubernetes&#0032;with&#0032;AI&#0045;powered&#0032;insights | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div>

Expand Down Expand Up @@ -84,7 +84,7 @@ https://github.com/KusionStack/karpor/assets/49401013/7cf31cc0-7123-42f6-8543-5a
<b>Multi-Cluster e Multi-Nuvem/Nuvem Híbrida</b><br />Suporta nativamente Multi-Cluster e Multi-Nuvem/Nuvem Híbrida.
</td>
<td style="width: 60%; vertical-align: middle;">
<img src="https://kusionstack.io/karpor/assets/misc/coming-soon.jpeg" alt="Baixo Impacto" />
<img src="https://kusionstack.io/karpor/assets/ai/event-ai-diagnosis.png" alt="Baixo Impacto" />
</td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
[![Medium](https://img.shields.io/badge/@kusionstack-black?style=flat&logo=medium&logoColor=white&link=https://medium.com/@kusionstack)](https://medium.com/@kusionstack)
[![Slack](https://img.shields.io/badge/slack-kusion-blueviolet?logo=slack)](https://cloud-native.slack.com/archives/C07U0395UG0)

<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> <a href="https://www.producthunt.com/posts/karpor" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=770525&theme=light&t=1736447376990" alt="Karpor - &#0032;Effortlessly&#0032;manage&#0032;Kubernetes&#0032;with&#0032;AI&#0045;powered&#0032;insights | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div>

Expand Down Expand Up @@ -87,7 +87,7 @@ https://github.com/KusionStack/karpor/assets/49401013/7cf31cc0-7123-42f6-8543-5a
<b>Kubernetes AIOps</b><br />利用 AI 驱动的洞察,自动化和优化 Kubernetes 管理
</td>
<td width="60%">
<kbd><img src="https://kusionstack.io/karpor/assets/misc/coming-soon.jpeg" /></kbd>
<kbd><img src="https://kusionstack.io/karpor/assets/ai/event-ai-diagnosis.png" /></kbd>
</td>
</tr>
</table>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
[![Medium](https://img.shields.io/badge/@kusionstack-black?style=flat&logo=medium&logoColor=white&link=https://medium.com/@kusionstack)](https://medium.com/@kusionstack)
[![Slack](https://img.shields.io/badge/slack-kusion-blueviolet?logo=slack)](https://cloud-native.slack.com/archives/C07U0395UG0)

<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
<a href="https://trendshift.io/repositories/11086" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11086" alt="KusionStack%2Fkarpor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> <a href="https://www.producthunt.com/posts/karpor" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=770525&theme=light&t=1736447376990" alt="Karpor - &#0032;Effortlessly&#0032;manage&#0032;Kubernetes&#0032;with&#0032;AI&#0045;powered&#0032;insights | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div>

Expand Down Expand Up @@ -87,7 +87,7 @@ https://github.com/KusionStack/karpor/assets/49401013/7cf31cc0-7123-42f6-8543-5a
<b>AIOps for Kubernetes</b><br />Automate and optimize Kubernetes management with AI-powered insights.
</td>
<td width="60%">
<kbd><img src="https://kusionstack.io/karpor/assets/misc/coming-soon.jpeg" /></kbd>
<kbd><img src="https://kusionstack.io/karpor/assets/ai/event-ai-diagnosis.png" /></kbd>
</td>
</tr>
</table>
Expand Down Expand Up @@ -193,4 +193,4 @@ If you have any questions, feel free to reach out to us in the following ways:


## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FKusionStack%2Fkarpor.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FKusionStack%2Fkarpor?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FKusionStack%2Fkarpor.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FKusionStack%2Fkarpor?ref=badge_large)
3 changes: 2 additions & 1 deletion pkg/core/middleware/readonly.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ package middleware

import (
"net/http"
"strings"
)

// ReadOnlyMode disallows non-GET requests in read-only mode.
func ReadOnlyMode(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodGet {
if r.Method != http.MethodGet && !strings.HasSuffix(r.URL.Path, "/stream") {
http.Error(w, "The server is currently in read-only mode.", http.StatusMethodNotAllowed)
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,12 @@
hr {
border: none;
height: 1px;
background: linear-gradient(to right,
rgba(147, 112, 219, 0.1),
rgba(147, 112, 219, 0.4),
rgba(147, 112, 219, 0.1));
background: linear-gradient(
to right,
rgba(147, 112, 219, 0.1),
rgba(147, 112, 219, 0.4),
rgba(147, 112, 219, 0.1)
);
margin: 24px 0;
}
}
Expand Down Expand Up @@ -760,10 +762,12 @@
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(120deg,
transparent,
rgba(255, 255, 255, 0.6),
transparent);
background: linear-gradient(
120deg,
transparent,
rgba(255, 255, 255, 0.6),
transparent
);
transform: translateX(-100%);
}

Expand All @@ -789,15 +793,15 @@
.ant-table {
background: transparent;

.ant-table-thead>tr>th {
.ant-table-thead > tr > th {
background: #fafafa;
font-weight: 500;
border-bottom: 1px solid #f0f0f0;
padding: 12px 16px;
}

.ant-table-tbody {
>tr {
> tr {
transition: all 0.2s ease;

&:hover {
Expand All @@ -806,7 +810,7 @@
z-index: 1;
}

>td {
> td {
transition: background-color 0.2s ease;
}
}
Expand Down Expand Up @@ -853,11 +857,13 @@
.ant-skeleton-paragraph {
margin-bottom: 0;

>li {
background: linear-gradient(90deg,
#f5f5f5 25%,
#e8e8e8 37%,
#f5f5f5 63%);
> li {
background: linear-gradient(
90deg,
#f5f5f5 25%,
#e8e8e8 37%,
#f5f5f5 63%
);
background-size: 400% 100%;
animation: ant-skeleton-loading 1.4s ease infinite;
}
Expand Down

0 comments on commit 9563528

Please sign in to comment.