Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit 32dc094

Browse files
committed
temp(docs): disable components
1 parent bd79548 commit 32dc094

File tree

6 files changed

+19
-29
lines changed

6 files changed

+19
-29
lines changed

docs/src/.vitepress/components/Dialogs/Guide/BaseDialog.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
2-
<GDialog v-model="dialogState">
2+
<!-- <GDialog v-model="dialogState">
33
Content
4-
</GDialog>
4+
</GDialog> -->
55

66
<BtnWrapper>
77
<BaseBtn @click="onOpen">
@@ -11,15 +11,8 @@
1111
</template>
1212

1313
<script>
14-
import { GDialog } from 'gitart-vue-dialog'
15-
import 'gitart-vue-dialog/dist/style.css'
16-
1714
export default {
1815
name: 'BaseDialog',
19-
components: {
20-
GDialog,
21-
},
22-
2316
data: () => ({
2417
dialogState: false,
2518
}),

docs/src/.vitepress/components/Dialogs/Guide/BaseStyledDialog.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,8 @@
1313
</template>
1414

1515
<script>
16-
import { GDialog } from 'gitart-vue-dialog'
17-
import 'gitart-vue-dialog/dist/style.css'
18-
1916
export default {
2017
name: 'BaseDialog',
21-
components: {
22-
GDialog,
23-
},
24-
2518
data: () => ({
2619
dialogState: false,
2720
}),

docs/src/.vitepress/theme/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import DefaultTheme from 'vitepress/theme'
2+
// import { GDialog } from 'gitart-vue-dialog'
3+
// import 'gitart-vue-dialog/dist/style.css'
24
import './custom.css'
35

4-
import BaseBtn from '@/.vitepress/components/Base/BaseBtn.vue'
6+
// import BaseBtn from '@/.vitepress/components/Base/BaseBtn.vue'
57

6-
import BtnWrapper from '@/.vitepress/components/Layout/BtnWrapper.vue'
8+
// import BtnWrapper from '@/.vitepress/components/Layout/BtnWrapper.vue'
79

810
export default {
911
...DefaultTheme,
1012
enhanceApp({ app }) {
11-
app.component('BaseBtn', BaseBtn)
12-
app.component('BtnWrapper', BtnWrapper)
13+
// app.component('GDialog', GDialog)
14+
15+
// app.component('BaseBtn', BaseBtn)
16+
// app.component('BtnWrapper', BtnWrapper)
1317
}
1418
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<script setup>
1+
<!-- <script setup>
22
import BaseDialog from '@/.vitepress/components/Dialogs/Guide/BaseDialog.vue'
33
import BaseStyledDialog from '@/.vitepress/components/Dialogs/Guide/BaseStyledDialog.vue'
4-
</script>
4+
</script> -->
55

66
# Component Usage
77

@@ -11,9 +11,9 @@ Just styles and register GDialog component. In some cases it's enough
1111
<<< @/.vitepress/includes/minumal-working-example/main.js
1212
<<< @/.vitepress/includes/minumal-working-example/YourComponent.js
1313
<<< @/.vitepress/includes/minumal-working-example/YourComponent.html
14-
14+
<!--
1515
<BaseDialog />
1616
1717
Pretty **ugly** dialog, right? Let's add max-width, background and some padding. Take a look:
1818
19-
<BaseStyledDialog />
19+
<BaseStyledDialog /> -->

docs/src/docs/introduction/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<script setup>
1+
<!-- <script setup>
22
import BaseDialog from '@/.vitepress/components/Dialogs/Guide/BaseDialog.vue'
33
import BaseStyledDialog from '@/.vitepress/components/Dialogs/Guide/BaseStyledDialog.vue'
4-
</script>
4+
</script> -->
55

66
![Tux, the Linux mascot](/gitart-dialog-logo.svg)
77

@@ -34,8 +34,8 @@ Let's use standalone component (without installing plugin)
3434
<<< @/.vitepress/includes/minumal-working-example/YourComponent.js
3535
<<< @/.vitepress/includes/minumal-working-example/YourComponent.html
3636

37-
<BaseDialog />
37+
<!-- <BaseDialog />
3838
3939
Pretty **ugly** dialog, right? Let's add max-width, background and some padding. Take a look:
4040
41-
<BaseStyledDialog />
41+
<BaseStyledDialog /> -->

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ heroText: Gitart Vue Dialog
66
tagline: Beautiful dialogs (Vue 3 only)
77

88
actionText: View Docs
9-
actionLink: /guide/
9+
actionLink: docs/introduction/getting-started
1010

1111
altActionText: Demo
1212
altActionLink: https://michaelgitart.github.io/gitart-vue-dialog

0 commit comments

Comments
 (0)