Skip to content

Commit 1e87015

Browse files
committed
Format
1 parent 59007e9 commit 1e87015

5 files changed

Lines changed: 144 additions & 111 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 73 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,86 @@
1-
import { defineConfig } from 'vitepress'
1+
import { defineConfig } from 'vitepress';
22

33
export default defineConfig({
4-
title: "VueJS Tour",
5-
description: "Guide your users through your application quickly and easily.",
4+
title: 'VueJS Tour',
5+
description: 'Guide your users through your application quickly and easily.',
66
lang: 'en-US',
77
base: '/vuejs-tour/',
88
themeConfig: {
99
logo: 'https://vuejs.org/images/logo.png',
1010
nav: [
1111
{ text: 'Guide', link: '/guide/what-is-vuejs-tour' },
12-
{ text: '2.1.1', items: [
13-
{ text: 'Changelog', link: 'https://github.com/GlobalHive/vuejs-tour/blob/master/CHANGELOG.md' },
14-
{ text: 'Roadmap', link: '/guide/roadmap' },
15-
{ text: 'Issues', link: 'https://github.com/GlobalHive/vuejs-tour/issues' }]
16-
}
12+
{
13+
text: '2.1.1',
14+
items: [
15+
{
16+
text: 'Changelog',
17+
link: 'https://github.com/GlobalHive/vuejs-tour/blob/master/CHANGELOG.md',
18+
},
19+
{ text: 'Roadmap', link: '/guide/roadmap' },
20+
{
21+
text: 'Issues',
22+
link: 'https://github.com/GlobalHive/vuejs-tour/issues',
23+
},
24+
],
25+
},
1726
],
1827
sidebar: {
1928
'/guide/': [
2029
{
2130
text: 'Introduction',
2231
collapsed: false,
2332
items: [
24-
{ text: 'What is VueJS Tour?', link: '/guide/what-is-vuejs-tour' },
25-
{ text: 'Getting Started', link: '/guide/getting-started' },
26-
{ text: 'Create a Tour', link: '/guide/create-a-tour' },
27-
]
33+
{ text: 'What is VueJS Tour?', link: '/guide/what-is-vuejs-tour' },
34+
{ text: 'Getting Started', link: '/guide/getting-started' },
35+
{ text: 'Create a Tour', link: '/guide/create-a-tour' },
36+
],
2837
},
2938
{
3039
text: 'Customization',
3140
collapsed: false,
3241
items: [
33-
{ text: 'VTour Component', items:[
42+
{
43+
text: 'VTour Component',
44+
items: [
3445
{ text: 'Start Options', link: '/guide/start-options' },
3546
{ text: 'Highlight Target', link: '/guide/highlight-target' },
3647
{ text: 'Using a Backdrop', link: '/guide/using-a-backdrop' },
3748
{ text: 'Hiding the Arrow', link: '/guide/hiding-the-arrow' },
3849
{ text: 'Tour Margin', link: '/guide/tour-margin' },
3950
{ text: 'Saving Progress', link: '/guide/saving-progress' },
4051
{ text: 'Scroll to Element', link: '/guide/scroll-to-element' },
41-
]},
42-
{ text: 'Step Options', items:[
52+
],
53+
},
54+
{
55+
text: 'Step Options',
56+
items: [
4357
{ text: 'The Step Type', link: '/guide/the-step-type' },
4458
{ text: 'Setting a Target', link: '/guide/setting-a-target' },
45-
{ text: 'Define the Content', link: '/guide/define-the-content' },
59+
{
60+
text: 'Define the Content',
61+
link: '/guide/define-the-content',
62+
},
4663
{ text: 'Using Placement', link: '/guide/using-placement' },
47-
{ text: 'The onBefore Event', link: '/guide/the-onbefore-event' },
64+
{
65+
text: 'The onBefore Event',
66+
link: '/guide/the-onbefore-event',
67+
},
4868
{ text: 'The onAfter Event', link: '/guide/the-onafter-event' },
49-
{ text: 'Highlight Target', link: '/guide/step-highlight-target' },
50-
{ text: 'Using a Backdrop', link: '/guide/step-using-a-backdrop' },
51-
{ text: 'Scroll to Element', link: '/guide/step-scroll-to-element' },
52-
]},
53-
]
69+
{
70+
text: 'Highlight Target',
71+
link: '/guide/step-highlight-target',
72+
},
73+
{
74+
text: 'Using a Backdrop',
75+
link: '/guide/step-using-a-backdrop',
76+
},
77+
{
78+
text: 'Scroll to Element',
79+
link: '/guide/step-scroll-to-element',
80+
},
81+
],
82+
},
83+
],
5484
},
5585
{
5686
text: 'Advanced',
@@ -61,42 +91,45 @@ export default defineConfig({
6191
{ text: 'Multiple Tours', link: '/guide/multiple-tours' },
6292
{
6393
text: 'Styling',
64-
items: [
65-
{ text: 'CSS Theme', link: '/guide/css-theme' },
66-
{ text: 'Component Slots', link: '/guide/component-slots' },
67-
]
68-
}
69-
]
94+
items: [
95+
{ text: 'CSS Theme', link: '/guide/css-theme' },
96+
{ text: 'Component Slots', link: '/guide/component-slots' },
97+
],
98+
},
99+
],
70100
},
71101
{
72102
text: "What's next?",
73103
collapsed: false,
74104
items: [
75105
{ text: 'Roadmap', link: '/guide/roadmap' },
76-
{ text: 'Changelog', link: 'https://github.com/GlobalHive/vuejs-tour/blob/master/CHANGELOG.md' },
77-
]
78-
}
106+
{
107+
text: 'Changelog',
108+
link: 'https://github.com/GlobalHive/vuejs-tour/blob/master/CHANGELOG.md',
109+
},
110+
],
111+
},
79112
],
80113
'/reference/': [
81114
{
82115
text: 'Reference',
83116
collapsed: false,
84-
items: [
85-
{ text: 'Coming Soon', link: '/reference/coming-soon' },
86-
]
117+
items: [{ text: 'Coming Soon', link: '/reference/coming-soon' }],
87118
},
88119
],
89120
},
90121
socialLinks: [
91-
{ icon: 'github', link: 'https://github.com/GlobalHive/vuejs-tour' }
122+
{ icon: 'github', link: 'https://github.com/GlobalHive/vuejs-tour' },
92123
],
93124
footer: {
94125
message: 'Released under the MIT License.',
95-
copyright: 'Made with ❤️ by <a href = "https://github.com/GlobalHive/vuejs-tour">Global Hive</a>'
126+
copyright:
127+
'Made with ❤️ by <a href = "https://github.com/GlobalHive/vuejs-tour">Global Hive</a>',
96128
},
97129
editLink: {
98-
pattern: 'https://github.com/GlobalHive/vuejs-tour/tree/master/docs/:path',
99-
text: 'Edit this page on GitHub'
130+
pattern:
131+
'https://github.com/GlobalHive/vuejs-tour/tree/master/docs/:path',
132+
text: 'Edit this page on GitHub',
100133
},
101-
}
102-
})
134+
},
135+
});

vite.config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
declare const _default: import("vite").UserConfig;
1+
declare const _default: import('vite').UserConfig;
22
export default _default;

vite.config.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,49 @@ import { defineConfig } from 'vite';
33
import dts from 'vite-plugin-dts';
44
import vue from '@vitejs/plugin-vue';
55
export default defineConfig({
6-
resolve: {
7-
alias: {
8-
'@': resolve(__dirname, 'src')
9-
}
6+
resolve: {
7+
alias: {
8+
'@': resolve(__dirname, 'src'),
109
},
11-
build: {
12-
lib: {
13-
entry: resolve(__dirname, 'src/vuejs-tour.ts'),
14-
name: 'VueJSTour',
15-
formats: ['es', 'umd'],
16-
fileName: 'vuejs-tour',
17-
},
18-
rollupOptions: {
19-
external: ['vue', 'nanopop', 'jump.js'],
20-
output: {
21-
globals: {
22-
'vue': 'Vue',
23-
'nanopop': 'nanopop',
24-
'jump.js': 'jump'
25-
},
26-
},
27-
},
28-
minify: 'esbuild',
29-
sourcemap: true,
30-
target: 'es2020'
10+
},
11+
build: {
12+
lib: {
13+
entry: resolve(__dirname, 'src/vuejs-tour.ts'),
14+
name: 'VueJSTour',
15+
formats: ['es', 'umd'],
16+
fileName: 'vuejs-tour',
3117
},
32-
plugins: [
33-
vue({
34-
script: {
35-
defineModel: true
36-
}
37-
}),
38-
dts({
39-
insertTypesEntry: true,
40-
cleanVueFileName: true,
41-
rollupTypes: true
42-
})
43-
],
44-
server: {
45-
open: true,
46-
port: 3000
18+
rollupOptions: {
19+
external: ['vue', 'nanopop', 'jump.js'],
20+
output: {
21+
globals: {
22+
vue: 'Vue',
23+
nanopop: 'nanopop',
24+
'jump.js': 'jump',
25+
},
26+
},
4727
},
48-
preview: {
49-
port: 4173
50-
}
28+
minify: 'esbuild',
29+
sourcemap: true,
30+
target: 'es2020',
31+
},
32+
plugins: [
33+
vue({
34+
script: {
35+
defineModel: true,
36+
},
37+
}),
38+
dts({
39+
insertTypesEntry: true,
40+
cleanVueFileName: true,
41+
rollupTypes: true,
42+
}),
43+
],
44+
server: {
45+
open: true,
46+
port: 3000,
47+
},
48+
preview: {
49+
port: 4173,
50+
},
5151
});

vite.config.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { resolve } from 'path'
2-
import { defineConfig } from 'vite'
3-
import dts from 'vite-plugin-dts'
4-
import vue from '@vitejs/plugin-vue'
1+
import { resolve } from 'path';
2+
import { defineConfig } from 'vite';
3+
import dts from 'vite-plugin-dts';
4+
import vue from '@vitejs/plugin-vue';
55

66
export default defineConfig({
77
resolve: {
88
alias: {
9-
'@': resolve(__dirname, 'src')
10-
}
9+
'@': resolve(__dirname, 'src'),
10+
},
1111
},
1212
build: {
1313
lib: {
@@ -20,32 +20,32 @@ export default defineConfig({
2020
external: ['vue', 'nanopop', 'jump.js'],
2121
output: {
2222
globals: {
23-
'vue': 'Vue',
24-
'nanopop': 'nanopop',
25-
'jump.js': 'jump'
23+
vue: 'Vue',
24+
nanopop: 'nanopop',
25+
'jump.js': 'jump',
2626
},
2727
},
2828
},
2929
minify: 'esbuild',
3030
sourcemap: true,
31-
target: 'es2020'
31+
target: 'es2020',
3232
},
3333
plugins: [
3434
vue({
3535
script: {
36-
defineModel: true
37-
}
36+
defineModel: true,
37+
},
3838
}),
3939
dts({
4040
insertTypesEntry: true,
41-
cleanVueFileName: true
42-
})
41+
cleanVueFileName: true,
42+
}),
4343
],
4444
server: {
4545
open: true,
46-
port: 3000
46+
port: 3000,
4747
},
4848
preview: {
49-
port: 4173
50-
}
51-
})
49+
port: 4173,
50+
},
51+
});

vitest.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// <reference types="vitest" />
22

3-
import { defineConfig } from 'vite'
4-
import vue from '@vitejs/plugin-vue'
5-
import { resolve } from 'path'
3+
import { defineConfig } from 'vite';
4+
import vue from '@vitejs/plugin-vue';
5+
import { resolve } from 'path';
66

77
export default defineConfig({
88
plugins: [vue()],
@@ -26,13 +26,13 @@ export default defineConfig({
2626
'**/*.d.ts',
2727
'test/',
2828
'vite.config.ts',
29-
'vitest.config.ts'
30-
]
31-
}
29+
'vitest.config.ts',
30+
],
31+
},
3232
},
3333
resolve: {
3434
alias: {
35-
'@': resolve(__dirname, 'src')
36-
}
37-
}
38-
})
35+
'@': resolve(__dirname, 'src'),
36+
},
37+
},
38+
});

0 commit comments

Comments
 (0)