refactor: move components one folder up

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent b96bdf25f6
commit 46dfd337b2
4 changed files with 2 additions and 3 deletions
@@ -1,5 +0,0 @@
<div class="checkbox-wrapper" @click="check">
<div :class="{ checkbox: true, checked: checked }"></div>
<div class="title">{{ title }}</div>
<q-btn color="primary">XXX</q-btn>
</div>
@@ -1,18 +0,0 @@
async function initMyCheckbox(path) {
const t = await loadTemplateAsync(path)
Vue.component('my-checkbox', {
name:'my-checkbox',
template: t,
data() {
return { checked: false, title: 'Check me' }
},
methods: {
check() {
this.checked = !this.checked;
console.log('### checked', this.checked)
}
}
});
}
@@ -1,6 +1,6 @@
const watchOnly = async () => {
Vue.component(VueQrcode.name, VueQrcode)
await initMyCheckbox('static/js/components/my-checkbox/my-checkbox.html')
await initMyCheckbox('static/components/my-checkbox/my-checkbox.html')
Vue.filter('reverse', function (value) {
// slice to make a copy of array, then reverse the copy
@@ -13,7 +13,6 @@ const watchOnly = async () => {
mounted: function () {
console.log('### mounted')
},
// components: ['my-checkbox'],
data: function () {
return {
DUST_LIMIT: 546,