Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyang0507 committed Apr 11, 2024
1 parent 43a761e commit fb98441
Show file tree
Hide file tree
Showing 33 changed files with 894 additions and 253 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ dist/
# IDEA
.idea/

# VSCode
.vscode/

# generated types
.astro/

Expand Down
Binary file added public/images/content/aizuda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/contra.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/crmeb3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/custom-fields.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/donate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/favicon.ico
Binary file not shown.
Binary file added public/images/content/generator.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/honor.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 128 additions & 0 deletions public/images/content/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-generate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-jump.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-tip-delete.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-tip-insert.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-tip-select.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/mybatisx-tip-update.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/content/sponsors-sprk1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/content/sponsors-sprk2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/content/springboot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/components/Accordion.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
export let title;
export let className = ''; // 默认为空字符串,可选参数
export let className = ""; // 默认为空字符串,可选参数
let show = false;
let contentElement; // 用于绑定到accordion-content的DOM元素
Expand All @@ -13,12 +13,12 @@
contentElement.style.maxHeight = `${contentElement.scrollHeight}px`;
} else {
// 折叠时设置max-height回0
contentElement.style.maxHeight = '0px';
contentElement.style.maxHeight = "0px";
}
}
</script>

<div class={["accordion", show ? 'active' : 'collapsed', className].join(' ')}>
<div class={["accordion", show ? "active" : "collapsed", className].join(" ")}>
<button class="accordion-header" on:click={toggleAccordion}>
<span class="title">{title}</span>
<svg
Expand All @@ -35,8 +35,8 @@
</svg>
</button>
<div class="accordion-content" bind:this={contentElement}>
<slot></slot>
<br/>
<slot />
<br />
</div>
</div>

Expand All @@ -63,7 +63,7 @@
:global(.accordion.active .accordion-content) {
@apply max-h-screen;
}
:global(.accordion.collapsed .accordion-content ) {
:global(.accordion.collapsed .accordion-content) {
@apply max-h-0 py-0 my-0;
}
</style>
24 changes: 24 additions & 0 deletions src/components/Video.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<script>
export let title;
export let width = 500;
export let height = "auto";
export let src;
export let restProps = {}; // 用于收集所有额外的props
</script>

<video
class="video overflow-hidden rounded-lg"
{width}
height={height === "auto" ? undefined : height}
controls
{...restProps}
>
<source src={src.match(/^http/) ? src : `/videos/${src}`} type="video/mp4" />
<span>{title}</span>
</video>

<style>
.video {
@apply overflow-hidden rounded-lg;
}
</style>
Loading

0 comments on commit fb98441

Please sign in to comment.