🔧 Update configuration
This commit is contained in:
@@ -50,6 +50,7 @@ export default defineConfig([
|
|||||||
'.local',
|
'.local',
|
||||||
'/bin',
|
'/bin',
|
||||||
'Dockerfile',
|
'Dockerfile',
|
||||||
|
'**/bindings/'
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
]);
|
]);
|
@@ -7,7 +7,9 @@
|
|||||||
"dev": "vite --host --mode development",
|
"dev": "vite --host --mode development",
|
||||||
"build:dev": "vue-tsc && vite build --minify false --mode development",
|
"build:dev": "vue-tsc && vite build --minify false --mode development",
|
||||||
"build": "vue-tsc && vite build --mode production",
|
"build": "vue-tsc && vite build --mode production",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
"lint": "eslint",
|
||||||
|
"lint:fix": "eslint --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@primeuix/themes": "^1.0.3",
|
"@primeuix/themes": "^1.0.3",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import HelloWorld from './components/HelloWorld.vue'
|
import HelloWorld from './components/HelloWorld.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue';
|
||||||
import {GreetService} from "../../bindings/voidraft";
|
import {GreetService} from "../../bindings/voidraft";
|
||||||
import {Events} from "@wailsio/runtime";
|
import {Events} from "@wailsio/runtime";
|
||||||
|
|
||||||
defineProps<{ msg: string }>()
|
defineProps<{ msg: string }>();
|
||||||
|
|
||||||
const name = ref('')
|
const name = ref('');
|
||||||
const result = ref('Please enter your name below 👇')
|
const result = ref('Please enter your name below 👇');
|
||||||
const time = ref('Listening for Time event...')
|
const time = ref('Listening for Time event...');
|
||||||
|
|
||||||
const doGreet = () => {
|
const doGreet = () => {
|
||||||
let localName = name.value;
|
let localName = name.value;
|
||||||
@@ -19,13 +19,13 @@ const doGreet = () => {
|
|||||||
}).catch((err: Error) => {
|
}).catch((err: Error) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
Events.On('time', (timeValue: { data: string }) => {
|
Events.On('time', (timeValue: { data: string }) => {
|
||||||
time.value = timeValue.data;
|
time.value = timeValue.data;
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue';
|
||||||
import Components from 'unplugin-vue-components/vite';
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import {PrimeVueResolver} from '@primevue/auto-import-resolver';
|
import {PrimeVueResolver} from '@primevue/auto-import-resolver';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
@@ -20,4 +20,4 @@ export default defineConfig({
|
|||||||
resolvers: [PrimeVueResolver()],
|
resolvers: [PrimeVueResolver()],
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
});
|
||||||
|
Reference in New Issue
Block a user