Skip to content

Commit f5c2f9b

Browse files
committed
fix: update docs to nuxt 3
1 parent af0a448 commit f5c2f9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1622
-3216
lines changed

docs/app.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default defineAppConfig({
55
layout: 'docs',
66
image: 'https://vue-final-modal.org/preview.png',
77
url: 'https://vue-final-modal.org',
8-
debug: false,
98
socials: {
109
twitter: '@hunterliu1003',
1110
github: 'vue-final/vue-final-modal',
@@ -15,7 +14,6 @@ export default defineAppConfig({
1514
level: 1,
1615
},
1716
header: {
18-
title: false,
1917
logo: true,
2018
},
2119
footer: {},

docs/components/content/CodeBlockFile.vue

Lines changed: 0 additions & 77 deletions
This file was deleted.

docs/components/content/Logo.vue

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
<script setup lang="ts">
2-
const colorMode = useColorMode()
3-
</script>
4-
51
<template>
6-
<img :src="`/logo-${colorMode.value}.png`" alt="Vue Final Modal Logo" width="220" height="40">
2+
<div class="logo"></div>
73
</template>
4+
5+
<style>
6+
.logo {
7+
width: 220px;
8+
height: 40px;
9+
}
10+
.dark .logo {
11+
background-image: url('/logo-dark.svg');
12+
}
13+
14+
.light .logo {
15+
background-image: url('/logo-light.svg');
16+
}
17+
</style>

docs/components/content/Navbar.vue

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/content/1.index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cta:
1313
secondary:
1414
- Star on GitHub
1515
- https://github.com/vue-final/vue-final-modal
16+
snippet: npm install vue-final-modal@rc
1617
---
1718

1819
#title

docs/content/4.use-cases/1.playground.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ head.title: 'Playground | Examples'
1010
::
1111

1212
::code-block{label="Preview.vue"}
13-
:code-block-file{path="./Playground.vue" language="vue"}
13+
<!-- :code-block-file{path="./Playground.vue" language="vue"} -->
1414
::
1515
::

docs/content/4.use-cases/3.confirm-modal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Create a `<ConfirmModal>` component with `<VueFinalModal>` and TailwindCSS.
1010

1111
::code-group
1212
::code-block{label="ConfirmModal.vue"}
13-
:code-block-file{path="./ConfirmModal.vue" language="vue"}
13+
<!-- :code-block-file{path="./ConfirmModal.vue" language="vue"} -->
1414
::
1515
::
1616

@@ -22,6 +22,6 @@ Create a `<ConfirmModal>` component with `<VueFinalModal>` and TailwindCSS.
2222
::
2323

2424
::code-block{label="Preview.vue"}
25-
:code-block-file{path="./ConfirmModalPreview.vue" language="vue"}
25+
<!-- :code-block-file{path="./ConfirmModalPreview.vue" language="vue"} -->
2626
::
2727
::

docs/content/4.use-cases/4.login-form-modal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ This example use [Vorms](https://vorms.mini-ghost.dev/) to handle the form valid
1414

1515
::code-group
1616
::code-block{label="LoginFormModal.vue"}
17-
:code-block-file{path="./LoginFormModal.vue" language="vue"}
17+
<!-- :code-block-file{path="./LoginFormModal.vue" language="vue"} -->
1818
::
1919
::
2020

2121
## `<LoginForm>` component
2222

2323
::code-group
2424
::code-block{label="LoginForm.vue"}
25-
:code-block-file{path="./LoginForm.vue" language="vue"}
25+
<!-- :code-block-file{path="./LoginForm.vue" language="vue"} -->
2626
::
2727
::
2828

@@ -34,6 +34,6 @@ This example use [Vorms](https://vorms.mini-ghost.dev/) to handle the form valid
3434
::
3535

3636
::code-block{label="Preview.vue"}
37-
:code-block-file{path="./LoginFormModalPreview.vue" language="vue"}
37+
<!-- :code-block-file{path="./LoginFormModalPreview.vue" language="vue"} -->
3838
::
3939
::

docs/content/4.use-cases/5.nested-modal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Use `<ConfirmModal>` to demo how to use nested modal.
1010

1111
::code-group
1212
::code-block{label="ConfirmModal.vue"}
13-
:code-block-file{path="./ConfirmModal.vue" language="vue"}
13+
<!-- :code-block-file{path="./ConfirmModal.vue" language="vue"} -->
1414
::
1515
::
1616

@@ -22,6 +22,6 @@ Use `<ConfirmModal>` to demo how to use nested modal.
2222
::
2323

2424
::code-block{label="NestedModalPreview.vue"}
25-
:code-block-file{path="./NestedModalPreview.vue" language="vue"}
25+
<!-- :code-block-file{path="./NestedModalPreview.vue" language="vue"} -->
2626
::
2727
::

docs/content/4.use-cases/6.fullscreen-modal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Create a `<Fullscreen>` component with `<ModalFullscreen>` and TailwindCSS.
1010

1111
::code-group
1212
::code-block{label="Fullscreen.vue"}
13-
:code-block-file{path="./Fullscreen.vue" language="vue"}
13+
<!-- :code-block-file{path="./Fullscreen.vue" language="vue"} -->
1414
::
1515
::
1616

@@ -23,6 +23,6 @@ Create a `<Fullscreen>` component with `<ModalFullscreen>` and TailwindCSS.
2323
::
2424

2525
::code-block{label="FullscreenPreview.vue"}
26-
:code-block-file{path="./FullscreenPreview.vue" language="vue"}
26+
<!-- :code-block-file{path="./FullscreenPreview.vue" language="vue"} -->
2727
::
2828
::

0 commit comments

Comments
 (0)