mono项目开发模板,内置cli管理构建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

133 lines
2.7 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@dm-pkg/xllm 示例</title>
<style>
:root {
font-family: system-ui, "Segoe UI", sans-serif;
line-height: 1.5;
color: #1a1a1a;
background: #f4f4f5;
}
body {
margin: 0;
padding: 1.25rem 1rem 2.5rem;
max-width: 52rem;
margin-inline: auto;
}
.xllm-header h1 {
margin: 0 0 0.35rem;
font-size: 1.5rem;
font-weight: 650;
}
.xllm-sub {
margin: 0;
color: #52525b;
font-size: 0.95rem;
}
.xllm-toolbar {
margin: 1.25rem 0 1rem;
}
.xllm-toolbar button {
font: inherit;
padding: 0.5rem 0.85rem;
border-radius: 0.375rem;
border: 1px solid #d4d4d8;
background: #fff;
cursor: pointer;
}
.xllm-toolbar button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.xllm-demo-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.xllm-demo-card {
background: #fff;
border: 1px solid #e4e4e7;
border-radius: 0.5rem;
padding: 1rem 1.1rem 1rem;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.xllm-demo-title-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem 1rem;
}
.xllm-demo-title-row h2 {
margin: 0;
font-size: 1.05rem;
font-weight: 600;
}
.xllm-demo-actions {
display: flex;
gap: 0.5rem;
flex-shrink: 0;
}
.xllm-demo-actions button {
font: inherit;
font-size: 0.875rem;
padding: 0.35rem 0.65rem;
border-radius: 0.35rem;
border: 1px solid #d4d4d8;
background: #fafafa;
cursor: pointer;
}
.xllm-demo-actions button.secondary {
background: #fff;
}
.xllm-demo-actions button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.xllm-demo-desc {
margin: 0.5rem 0 0.65rem;
font-size: 0.9rem;
color: #52525b;
}
.xllm-demo-log {
margin: 0;
max-height: 14rem;
overflow: auto;
padding: 0.65rem 0.75rem;
background: #18181b;
color: #e4e4e7;
border-radius: 0.35rem;
font-size: 0.8rem;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="src/index.ts"></script>
</body>
</html>