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:
commit
d6d22f8355
115 changed files with 67218 additions and 0 deletions
23
resources/js/app.ts
Normal file
23
resources/js/app.ts
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue