File tree Expand file tree Collapse file tree 2 files changed +40
-26
lines changed Expand file tree Collapse file tree 2 files changed +40
-26
lines changed Original file line number Diff line number Diff line change 1+ import pkg from '../../package.json' ;
2+ const appVersion = pkg . version ;
3+ const vueVersion = pkg . dependencies . vue . replace ( '^' , '' ) ;
4+
5+ export const configApp = {
6+ name : '@vue-a11y/vlibras' ,
7+ npm : 'https://www.npmjs.com/package/@vue-a11y/vlibras' ,
8+ github : 'https://github.com/vue-a11y/vue-vlibras' ,
9+ author : 'Vue a11y' ,
10+ appVersion,
11+ vueVersion,
12+ stepsInstall : [
13+ {
14+ name : 'Install' ,
15+ language : 'bash' ,
16+ content : 'npm install vue-a11y/vlibras' ,
17+ } ,
18+ {
19+ name : 'Import in app' ,
20+ language : 'tsx' ,
21+ content : `import { createApp } from 'vue'
22+ import App from './App.vue'
23+ import VLibras from '@vue-a11y/vlibras'
24+
25+ createApp(App)
26+ .use(VLibras)
27+ .mount('#app')` ,
28+ } ,
29+ {
30+ name : 'Usage component' ,
31+ language : 'tsx' ,
32+ content : `<VLibras />` ,
33+ } ,
34+ ] ,
35+ }
Original file line number Diff line number Diff line change 11<script setup>
2- import HelloWorld from ' ./components/HelloWorld.vue'
2+ import Nucleus from ' nucleus-vue' ;
3+ import { configApp } from ' ./App.config' ;
34 </script >
45
56<template >
6- <div >
7- <a href =" https://vitejs.dev" target =" _blank" >
8- <img src =" /vite.svg" class =" logo" alt =" Vite logo" />
9- </a >
10- <a href =" https://vuejs.org/" target =" _blank" >
11- <img src =" ./assets/vue.svg" class =" logo vue" alt =" Vue logo" />
12- </a >
13- </div >
14- <HelloWorld msg =" Vite + Vue" />
15- <VLibras />
7+ <Nucleus :config =" configApp" >
8+ <VLibras />
9+ </Nucleus >
1610</template >
17-
18- <style scoped>
19- .logo {
20- height : 6em ;
21- padding : 1.5em ;
22- will-change : filter;
23- transition : filter 300ms ;
24- }
25- .logo :hover {
26- filter : drop-shadow (0 0 2em #646cffaa );
27- }
28- .logo.vue :hover {
29- filter : drop-shadow (0 0 2em #42b883aa );
30- }
31- </style >
You can’t perform that action at this time.
0 commit comments