1
0
Fork 0
mirror of https://github.com/archtechx/airwire-demo.git synced 2025-12-12 08:34:03 +00:00

public release

This commit is contained in:
Samuel Štancl 2021-05-21 18:38:26 +02:00
commit d6d22f8355
115 changed files with 67218 additions and 0 deletions

23
resources/js/app.ts Normal file
View file

@ -0,0 +1,23 @@
import Airwire from './airwire';
import { createApp, reactive } from 'vue';
createApp(require('./components/Main.vue').default)
.use(Airwire.plugin('vue')(reactive))
.mount('#app')
Airwire.watch(response => {
if (response.metadata.notification) {
window.notify(response.metadata.notification);
}
}, exception => {
alert(exception.message);
})
declare module 'vue' {
export interface ComponentCustomProperties {
$airwire: typeof window.Airwire
}
}