File tree Expand file tree Collapse file tree 7 files changed +38
-4
lines changed Expand file tree Collapse file tree 7 files changed +38
-4
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div id =" global-layout" >
3
+ <VueAnnouncer />
4
+ <component :is =" layout" />
5
+ </div >
6
+ </template >
7
+
8
+ <script >
9
+ export default {
10
+ computed: {
11
+ layout () {
12
+ if (this .$page .path ) {
13
+ if (this .$frontmatter .layout ) return this .$frontmatter .layout
14
+ return ' Layout'
15
+ }
16
+ return ' NotFound'
17
+ }
18
+ }
19
+ }
20
+ </script >
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
title : 'Vue announcer' ,
3
3
description : '' ,
4
- serviceWorker : true ,
4
+ serviceWorker : true ,
5
5
themeConfig : {
6
6
home : false ,
7
7
repo : 'vue-a11y/vue-announcer' ,
Original file line number Diff line number Diff line change
1
+ import VueAnnouncer from '../../dist/vue-announcer.esm'
2
+
3
+ export default ( { Vue, router, isServer } ) => {
4
+ if ( ! isServer ) {
5
+ Vue . use ( VueAnnouncer , { } , router )
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ globalLayout : './components/GlobalLayout'
3
+ }
Original file line number Diff line number Diff line change 3
3
<iframe
4
4
src="https://codesandbox.io/embed/vue-announcer-vue-project-z049t?fontsize=14&hidenavigation=1&theme=dark&view=editor"
5
5
style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;"
6
- title="vue-announcer- vue-project "
6
+ title="example vue-announcer to vue.js projects "
7
7
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr"
8
8
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
9
9
> </iframe >
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ In your `layouts/default.vue`
44
44
<iframe
45
45
src="https://codesandbox.io/embed/vue-announcer-nuxt-project-breih?fontsize=14&hidenavigation=1&module=%2Fplugins%2Fvue-announcer.js&theme=dark&view=editor "
46
46
style="width:100%; height:500px; border:0; border-radius: 4px; overflow: hidden ;"
47
- title="vue-announcer- nuxt-project "
47
+ title="example vue-announcer to nuxt.js projects "
48
48
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr"
49
49
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
50
> </iframe >
51
51
52
- <a href =" https://codesandbox.io/s/vue-announcer-nuxt-project-breih " target =" _blank " rel =" noopener " >Open sandbox example</a >
52
+ <a href =" https://codesandbox.io/s/vue-announcer-nuxt-project-breih " target =" _blank " rel =" noopener " >Open sandbox example</a >
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Example of how to use in a Vuepress application
3
+ ---
4
+
1
5
# Vuepress
2
6
3
7
### Coming soon
You can’t perform that action at this time.
0 commit comments