Skip to content

Commit

Permalink
升级tck
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed Nov 12, 2024
1 parent cec4dae commit ef97f68
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: 下载servlet TCK
with:
repository: jakartaee/servlet
ref: c4a04f1f1a9ea747efb22f5234abdf598356d2e9
ref: 99ba4387c6bd0283fd00e6975a2f31f90ffa0963
path: jakartaee/servlet
- uses: actions/checkout@v4
name: 下载 smart-http
Expand Down
2 changes: 1 addition & 1 deletion pages/src/content/docs/guides/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ smart-servlet 是一个基于 Jakarta Servlet 6.1 的轻量级 Servlet 容器,


**目标用户:**
- 有着信创需求的企业用户
- 有着 **信创需求** 的企业用户
- 对服务并发能力要求高的企业用户。
- 对技术有着强烈热爱的个人开发者。

Expand Down
2 changes: 1 addition & 1 deletion pages/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: smart-servlet
description: 真自研、真轻量、真极速的 Servlet 容器.
description: 信创,tomcat,国产Tomcat,国产Servlet容器,国产Servlet,smart-servlet,smartservlet,undertow,jetty,自研,自研Tomcat
template: splash
hero:
tagline: 自研、轻量、极速,重新定义 Servlet 容器!
Expand Down
119 changes: 119 additions & 0 deletions pages/src/pages/license/[...license].astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
export function getStaticPaths() {
return [
{
params: {
license: '2932A607C1C5B5260512F59D80D4105F',
},
props: {
user: 'smartboot社区开发者',
beginTime: '2023-01-01',
endTime: '2024-01-01',
type:'开源版',
}
},
{params: {license: undefined}, props: {user: '无效', beginTime: '2023-01-01', endTime: '2024-01-01'}},
];
}
const {license} = Astro.params;
---
<html lang="zh">
<head>
<meta charset="utf-8"/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
<meta name="viewport" content="width=device-width"/>
<title>授权证书-{Astro.props.user}</title>
</head>
<body>
<div class="container">
<header>
<h1>smart-servlet 授权证书</h1>
</header>
<main>
<section class="certificate">
<div class="certificate-header">
<!--<h2>授权信息</h2>-->
</div>
<div class="certificate-body">
<p><strong>授权编号:</strong> <span id="licenseNumber">{license}</span></p>
<p><strong>授权用户:</strong> <span id="licenseUser">{Astro.props.user}</span></p>
<p><strong>授权日期:</strong> <span id="licenseDate">{Astro.props.beginTime}</span></p>
<p><strong>有效期至:</strong> <span id="validUntil">{Astro.props.endTime}</span></p>
<p><strong>授权产品:</strong> <span id="productName">{Astro.props.type}</span></p>
</div>
<div class="certificate-footer">
<p>本授权证书仅限于上述授权用户使用。</p>
<p>版权所有 ©2024 smartboot</p>
</div>
</section>
</main>
</div>
</body>
</html>

<style>
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}

.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
text-align: center;
margin-bottom: 20px;
}

header h1 {
color: #333;
font-size: 28px;
}

.certificate {
border: 2px solid #007bff;
padding: 20px;
border-radius: 8px;
background-color: #ffffff;
}

.certificate-header {
text-align: center;
margin-bottom: 20px;
}

.certificate-header h2 {
color: #007bff;
font-size: 24px;
}

.certificate-body p {
margin: 10px 0;
font-size: 16px;
line-height: 1.5;
}

.certificate-body strong {
font-weight: bold;
color: #007bff;
}

.certificate-footer {
text-align: center;
margin-top: 20px;
font-size: 14px;
color: #666;
}

.certificate-footer p {
margin: 5px 0;
}
</style>
2 changes: 1 addition & 1 deletion tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<maven.compiler.release>11</maven.compiler.release>
<junit.version>5.10.3</junit.version>
<slf4j.version>1.7.36</slf4j.version>
<servlet.api.version>6.1.1-SNAPSHOT</servlet.api.version>
<servlet.api.version>6.2.0-SNAPSHOT</servlet.api.version>
<fork.argLine>-Xmx8g -Xms4g</fork.argLine>
<http2.timeout></http2.timeout>

Expand Down

0 comments on commit ef97f68

Please sign in to comment.