Skip to content

Commit 55c1898

Browse files
committed
first commit
0 parents  commit 55c1898

File tree

14 files changed

+2899
-0
lines changed

14 files changed

+2899
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local
5+
index.html
6+
.remote-assets
7+
components.d.ts

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# for pnpm
2+
shamefully-hoist=true

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Welcome to [Slidev](https://github.com/slidevjs/slidev)!
2+
3+
To start the slide show:
4+
5+
- `npm install`
6+
- `npm run dev`
7+
- visit http://localhost:3030
8+
9+
Edit the [slides.md](./slides.md) to see the changes.
10+
11+
Learn more about Slidev on [documentations](https://sli.dev/).

components/Counter.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script setup lang="ts">
2+
import { ref } from 'vue'
3+
4+
const props = defineProps({
5+
count: {
6+
default: 0,
7+
},
8+
})
9+
10+
const counter = ref(props.count)
11+
</script>
12+
13+
<template>
14+
<div flex="~" w="min" border="~ gray-400 opacity-50 rounded-md">
15+
<button
16+
border="r gray-400 opacity-50"
17+
p="2"
18+
font="mono"
19+
outline="!none"
20+
hover:bg="gray-400 opacity-20"
21+
@click="counter -= 1"
22+
>
23+
-
24+
</button>
25+
<span m="auto" p="2">{{ counter }}</span>
26+
<button
27+
border="l gray-400 opacity-50"
28+
p="2"
29+
font="mono"
30+
outline="!none"
31+
hover:bg="gray-400 opacity-20"
32+
@click="counter += 1"
33+
>
34+
+
35+
</button>
36+
</div>
37+
</template>

netlify.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build.environment]
2+
NODE_VERSION = "14"
3+
4+
[build]
5+
publish = "dist"
6+
command = "yarn build"
7+
8+
[[redirects]]
9+
from = "/img/*"
10+
to = "/img/:splat"
11+
status = 200
12+
force = true
13+
14+
[[redirects]]
15+
from = "/assets/*"
16+
to = "/assets/:splat"
17+
status = 200
18+
force = true
19+
20+
[[redirects]]
21+
from = "/slidev-exported.pdf"
22+
to = "/slidev-exported.pdf"
23+
status = 200
24+
force = true
25+
26+
[[redirects]]
27+
from = "/*"
28+
to = "/index.html"
29+
status = 200
30+
force = false

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "slidev --open",
5+
"build": "slidev build",
6+
"export": "slidev export"
7+
},
8+
"dependencies": {
9+
"@slidev/cli": "^0.22.5",
10+
"@slidev/theme-default": "*",
11+
"@slidev/theme-seriph": "^0.19.1",
12+
"vscode-html-languageservice": "^4.0.7",
13+
"vscode-languageserver-types": "^3.16.0"
14+
},
15+
"name": "vue-nuxt-tutorial"
16+
}

public/img/file-structure.png

105 KB
Loading

public/img/homework.png

243 KB
Loading

public/img/nuxtjs.png

112 KB
Loading

public/img/vue-logo.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)