Initial commit

This commit is contained in:
apps
2025-10-26 00:39:58 +08:00
commit 3277e46853
8 changed files with 5869 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

6
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"workbench.editorAssociations": {
// "*.md": "vscode.markdown.preview.editor" // 预览打开
"*.md": "default" // 默认打开
}
}

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>

18
package.json Normal file
View File

@@ -0,0 +1,18 @@
{
"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.6.0",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest",
"vue": "^3.5.22"
}
}

10
pages/demos.md Normal file
View File

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

5750
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

29
slides.md Normal file
View File

@@ -0,0 +1,29 @@
---
# try also 'default' to start simple
theme: seriph
# 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/demos.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')
}