Skip to content

Commit 75a7738

Browse files
committed
chore: update docs and examples
1 parent 0805410 commit 75a7738

File tree

13 files changed

+32
-38
lines changed

13 files changed

+32
-38
lines changed

docs/content/1.index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ layout: page
99
---
1010
cta:
1111
- Get Started
12-
- /get-started/guide/migration-guide
12+
- /get-started/guide/concepts
1313
secondary:
1414
- Star on GitHub
1515
- https://github.com/vue-final/vue-final-modal

docs/index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ declare module '#app' {
55
$vfm: Vfm
66
}
77
}
8-
declare module '@vue/runtime-core' {
9-
interface ComponentCustomProperties {
10-
$vfm: Vfm
11-
}
12-
}
8+
139
export { }

docs/nuxt.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export default defineNuxtConfig({
22
extends: '@nuxt-themes/docus',
3-
modules: ['@nuxtjs/tailwindcss'],
4-
css: ['vue-final-modal/style.css'],
3+
modules: ['@nuxtjs/tailwindcss', '@vue-final-modal/nuxt'],
54
})

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@vorms/core": "^1.0.0",
18+
"@vue-final-modal/nuxt": "workspace:1.0.0-rc.5",
1819
"vue-final-modal": "workspace:4.0.0-rc.12",
1920
"vue3-drag-resize": "^2.0.5"
2021
}

docs/plugins/vue-final-modal.ts

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

examples/nuxt3/components/MyModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const emit = defineEmits<{
1313
<template>
1414
<VueFinalModal
1515
class="flex justify-center items-center"
16-
content-class="flex flex-col p-4 bg-white dark:bg-black rounded"
16+
content-class="flex flex-col p-4 bg-white dark:bg-black rounded border border-gray-100 dark:border-gray-800"
1717
@update:model-value="val => emit('update:modelValue', val)"
1818
>
1919
<div class="flex items-center h-10">

examples/nuxt3/nuxt.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// https://v3.nuxtjs.org/api/configuration/nuxt.config
21
export default defineNuxtConfig({
32
extends: '@nuxt-themes/docus',
4-
modules: ['@vue-final-modal/nuxt'],
3+
modules: ['@nuxtjs/tailwindcss', '@vue-final-modal/nuxt'],
54
})

examples/nuxt3/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"type": "module",
34
"scripts": {
45
"build": "nuxt build",
56
"dev": "nuxt dev",
@@ -13,7 +14,7 @@
1314
"nuxt": "3.1.0"
1415
},
1516
"dependencies": {
16-
"@vue-final-modal/nuxt": "1.0.0-rc.0",
17+
"@vue-final-modal/nuxt": "1.0.0-rc.5",
1718
"vue-final-modal": "4.0.0-rc.12"
1819
}
1920
}

examples/nuxt3/tailwind.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
theme: {
3+
extend: {
4+
colors: {
5+
primary: {
6+
50: '#ecfdf5',
7+
100: '#d1fae5',
8+
200: '#a7f3d0',
9+
300: '#6ee7b7',
10+
400: '#34d399',
11+
500: '#10b981',
12+
600: '#059669',
13+
700: '#047857',
14+
800: '#065f46',
15+
900: '#064e3b',
16+
},
17+
},
18+
},
19+
},
20+
}

examples/nuxt3/tokens.config.ts

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

0 commit comments

Comments
 (0)