Skip to content

Commit

Permalink
format vue component code
Browse files Browse the repository at this point in the history
  • Loading branch information
tvannoy committed Oct 17, 2023
1 parent 212f73d commit 5166ac9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
28 changes: 12 additions & 16 deletions components/presentation-url.vue
@@ -1,18 +1,14 @@
<script>
export default {
data: () => {
return {
href: window.location.origin + window.location.pathname,
url: window.location.host + window.location.pathname
};
},
}
</script>

<template>
<a :href="href">{{ url }}</a>
<a :href="href">{{ url }}</a>
</template>

<script>
export default {
data() {
return {
href: window.location.origin + window.location.pathname,
url: window.location.host + window.location.pathname
};
},
}
</script>
27 changes: 14 additions & 13 deletions components/qrcode-vue.vue
@@ -1,18 +1,19 @@
<template>
<qrcode-vue :value="value" :size="size" level="H" />
<qrcode-vue :value="value" :size="size" level="H" />
</template>

<script>
import QrcodeVue from 'qrcode.vue'
import QrcodeVue from 'qrcode.vue'
export default {
data() {
return {
value: window.location.origin + window.location.pathname,
size: 300,
}
},
components: {
QrcodeVue,
},
}
export default {
data() {
return {
value: window.location.origin + window.location.pathname,
size: 300,
}
},
components: {
QrcodeVue,
},
}
</script>

0 comments on commit 5166ac9

Please sign in to comment.