Skip to content

Commit 78a547a

Browse files
committed
Switch to botman-tinker
1 parent 51784dd commit 78a547a

5 files changed

Lines changed: 17 additions & 157 deletions

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
"laravel-mix": "0.*",
1818
"lodash": "^4.17.4",
1919
"vue": "^2.1.10"
20+
},
21+
"dependencies": {
22+
"botman-tinker": "^0.0.1"
2023
}
2124
}

public/js/app.js

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/assets/js/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ window.Vue = require('vue');
1515
* or customize the JavaScript scaffolding to fit your unique needs.
1616
*/
1717

18-
Vue.component('botman-tinker', require('./components/BotManTinker.vue'));
18+
import {TinkerComponent} from 'botman-tinker';
19+
Vue.component('botman-tinker', TinkerComponent);
1920

2021
const app = new Vue({
2122
el: '#app'

resources/assets/js/components/BotManTinker.vue

Lines changed: 0 additions & 150 deletions
This file was deleted.

resources/views/tinker.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<body>
3535
<div class="container">
3636
<div class="content" id="app">
37-
<botman-tinker></botman-tinker>
37+
<botman-tinker api-endpoint="/botman"></botman-tinker>
3838
</div>
3939
</div>
4040

0 commit comments

Comments
 (0)