@coffic/cosy-ui 0.9.49 → 0.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +1 -1
- package/dist/index-astro.ts +2 -2
- package/dist/src/astro/header/Header.astro +0 -0
- package/dist/src/common/border.ts +16 -0
- package/dist/src/common/height.ts +2 -0
- package/dist/src/common/index.ts +16 -0
- package/dist/src/common/layout-utils.ts +67 -0
- package/dist/{src-astro/layout-app/loading-classes.ts → src/common/loading.ts} +6 -3
- package/dist/src/common/mask.ts +43 -0
- package/dist/{src-astro/layout-basic → src/common}/meta.ts +2 -9
- package/dist/src/common/padding-axis.ts +29 -0
- package/dist/src/common/shadow.ts +10 -0
- package/dist/src/common/size.ts +15 -17
- package/dist/src/common/width.ts +26 -0
- package/dist/src-astro/banner/Banner.astro +6 -63
- package/dist/src-astro/contact/Contact.astro +102 -57
- package/dist/src-astro/footer/Footer.astro +1 -0
- package/dist/src-astro/header/Header.astro +56 -62
- package/dist/src-astro/header/HeaderEnd.astro +2 -6
- package/dist/src-astro/header/HeaderStart.astro +20 -35
- package/dist/src-astro/header/LogoLink.astro +4 -40
- package/dist/src-astro/image/Image.astro +26 -50
- package/dist/src-astro/image/ImageError.astro +3 -7
- package/dist/src-astro/image/ImagePlaceholder.astro +3 -7
- package/dist/src-astro/image/LocalImage.astro +9 -7
- package/dist/src-astro/image/RemoteImage.astro +47 -48
- package/dist/src-astro/image/image.ts +1 -10
- package/dist/src-astro/image/utils.ts +9 -51
- package/dist/src-astro/layout-app/AppLayout.astro +29 -64
- package/dist/src-astro/layout-app/index.ts +2 -1
- package/dist/src-astro/layout-basic/BaseLayout.astro +48 -43
- package/dist/src-astro/layout-basic/BaseLayoutHtml.astro +91 -0
- package/dist/src-astro/layout-basic/Body.astro +33 -0
- package/dist/src-astro/layout-basic/BodyDiv.astro +24 -0
- package/dist/src-astro/layout-basic/BodyElement.astro +24 -0
- package/dist/src-astro/layout-basic/Head.astro +73 -0
- package/dist/src-astro/layout-basic/index.ts +1 -1
- package/dist/src-astro/layout-basic/layout.ts +11 -4
- package/dist/src-astro/sidebar/NavItem.astro +1 -1
- package/dist/src-astro/sidebar/SidebarNav.astro +1 -1
- package/dist/src-astro/{layout-app/SkeletonLoader.astro → skeleton/Skeleton.astro} +9 -9
- package/dist/src-astro/skeleton/index.ts +2 -0
- package/dist/src-astro/team-member/TeamMember.astro +17 -22
- package/dist/src-astro/text/Text.astro +4 -1
- package/dist/src-astro/types/header.ts +10 -4
- package/package.json +1 -1
- package/dist/src-astro/image/ImageContainer.astro +0 -27
- package/dist/src-astro/image/ImagePromptPanel.astro +0 -49
- package/dist/src-astro/theme-switcher/index.ts +0 -3
- /package/dist/{src-astro/types → src/common}/sidebar.ts +0 -0
- /package/dist/src-astro/{theme-switcher → header}/ThemeItem.astro +0 -0
- /package/dist/src-astro/{theme-switcher → header}/ThemeSwitcher.astro +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props {
|
|
3
|
-
prompt?: string;
|
|
4
|
-
model?: string;
|
|
5
|
-
}
|
|
6
|
-
const { prompt = '', model = '' } = Astro.props;
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
(prompt || model) && (
|
|
11
|
-
<div class="cosy:absolute cosy:top-2 cosy:right-2 cosy:z-10">
|
|
12
|
-
<div class="cosy:dropdown cosy:dropdown-end">
|
|
13
|
-
<div
|
|
14
|
-
tabindex="0"
|
|
15
|
-
role="button"
|
|
16
|
-
class="cosy:btn cosy:btn-sm cosy:btn-circle cosy:btn-ghost cosy:bg-base-300/80 cosy:backdrop-blur-sm cosy:text-base-content hover:bg-base-300">
|
|
17
|
-
🎨
|
|
18
|
-
</div>
|
|
19
|
-
<div
|
|
20
|
-
tabindex="0"
|
|
21
|
-
class="cosy:dropdown-content cosy:z-[1] cosy:menu cosy:p-2 cosy:shadow cosy:bg-base-200 cosy:rounded-box cosy:w-80 cosy:max-w-xs">
|
|
22
|
-
<div class="space-y-3">
|
|
23
|
-
{prompt && (
|
|
24
|
-
<div>
|
|
25
|
-
<h4 class="cosy:text-xs cosy:font-semibold cosy:uppercase cosy:tracking-wider cosy:text-primary cosy:mb-1">
|
|
26
|
-
生成提示词
|
|
27
|
-
</h4>
|
|
28
|
-
<p class="cosy:text-xs cosy:text-base-content/80 cosy:leading-relaxed cosy:break-words">
|
|
29
|
-
{prompt}
|
|
30
|
-
</p>
|
|
31
|
-
</div>
|
|
32
|
-
)}
|
|
33
|
-
|
|
34
|
-
{model && (
|
|
35
|
-
<div>
|
|
36
|
-
<h4 class="cosy:text-xs cosy:font-semibold cosy:uppercase cosy:tracking-wider cosy:text-primary cosy:mb-1">
|
|
37
|
-
使用模型
|
|
38
|
-
</h4>
|
|
39
|
-
<p class="cosy:text-xs cosy:text-base-content/80 cosy:font-mono">
|
|
40
|
-
{model}
|
|
41
|
-
</p>
|
|
42
|
-
</div>
|
|
43
|
-
)}
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
)
|
|
49
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|