Initial commit

This commit is contained in:
2025-11-17 01:01:00 +08:00
commit 260dabfbc0
7 changed files with 1479 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
node_modules
.DS_Store
dist
*.local
.vite-inspect
.remote-assets
components.d.ts
.slides.md.swp

1365
bun.lock Normal file

File diff suppressed because it is too large Load Diff

37
components/Counter.vue Normal file
View File

@@ -0,0 +1,37 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = defineProps({
count: {
default: 0,
},
})
const counter = ref(props.count)
</script>
<template>
<div flex="~" w="min" border="~ main rounded-md">
<button
border="r main"
p="2"
font="mono"
outline="!none"
hover:bg="gray-400 opacity-20"
@click="counter -= 1"
>
-
</button>
<span m="auto" p="2">{{ counter }}</span>
<button
border="l main"
p="2"
font="mono"
outline="!none"
hover:bg="gray-400 opacity-20"
@click="counter += 1"
>
+
</button>
</div>
</template>

20
package.json Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "@kevisual/slidev-template",
"type": "module",
"basename": "/root/slidev-template",
"version": "0.0.1",
"scripts": {
"build": "slidev build --base /root/slidev-template/",
"dev": "slidev --open",
"pub": "ev deploy ./dist -k slidev-template -v 0.0.1 -u",
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^52.8.0",
"@slidev/theme-default": "latest",
"vue": "^3.5.24"
},
"devDependencies": {
"playwright-chromium": "^1.56.1"
}
}

10
pages/contents.md Normal file
View File

@@ -0,0 +1,10 @@
---
title: '例子'
---
# 常用语法结构
---
---
# 第二个

28
slides.md Normal file
View File

@@ -0,0 +1,28 @@
---
theme: default
# random image from a curated Unsplash collection by Anthony
background: https://cover.sli.dev
# 介绍文档: https://sli.dev
title: Welcome to Slidev
info: |
## 关于Slidev的介绍
演示稿
class: text-center
# https://sli.dev/features/drawing
drawings:
persist: false
# slide transition: https://sli.dev/guide/animations.html#slide-transitions
transition: slide-left
# enable MDC Syntax: https://sli.dev/features/mdc
mdc: true
htmlAttrs:
dir: ltr
lang: zh-CN
# duration of the presentation
duration: 35min
---
# slide 是一个 所见即所得的幻灯片制作工具
---
src: ./pages/contents.md
hide: false
---

10
snippets/external.ts Normal file
View File

@@ -0,0 +1,10 @@
// #region snippet
// Inside ./snippets/external.ts
export function emptyArray<T>(length: number) {
return Array.from<T>({ length })
}
// #endregion snippet
export function sayHello() {
console.log('Hello from snippets/external.ts')
}