-
Notifications
You must be signed in to change notification settings - Fork 546
Expand file tree
/
Copy pathclient.js
More file actions
executable file
·26 lines (23 loc) · 862 Bytes
/
client.js
File metadata and controls
executable file
·26 lines (23 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* Client app enhancement file.
*
* https://v2.vuepress.vuejs.org/advanced/cookbook/usage-of-client-config.html
*/
import { defineClientConfig } from 'vuepress/client';
import AsciinemaPlayer from './components/AsciinemaPlayer.vue';
import BlogPosts from './components/BlogPosts.vue';
import JumpToc from './components/JumpToc.vue';
import PrBy from './components/PrBy.vue';
import ReleaseToc from './components/ReleaseToc.vue';
import URLDocSearch from './components/URLDocSearch.vue';
export default defineClientConfig({
enhance({ app }) {
app.component('AsciinemaPlayer', AsciinemaPlayer);
app.component('BlogPosts', BlogPosts);
app.component('JumpToc', JumpToc);
app.component('PrBy', PrBy);
app.component('ReleaseToc', ReleaseToc);
// Override the builtin searchbox
app.component('SearchBox', URLDocSearch);
},
});