Quick reactions
This commit is contained in:
parent
5589131c86
commit
29acde8604
15 changed files with 454 additions and 137 deletions
15
src/main.js
15
src/main.js
|
|
@ -6,11 +6,26 @@ import store from './store'
|
|||
import matrix from './services/matrix.service'
|
||||
import 'roboto-fontface/css/roboto/roboto-fontface.css'
|
||||
import 'material-design-icons-iconfont/dist/material-design-icons.css'
|
||||
import VEmojiPicker from 'v-emoji-picker';
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.use(VEmojiPicker);
|
||||
Vue.use(matrix, {store: store});
|
||||
|
||||
// Add bubble functionality to custom events.
|
||||
// From here: https://stackoverflow.com/questions/41993508/vuejs-bubbling-custom-events
|
||||
Vue.use((Vue) => {
|
||||
Vue.prototype.$bubble = function $bubble(eventName, ...args) {
|
||||
// Emit the event on all parent components
|
||||
let component = this;
|
||||
do {
|
||||
component.$emit(eventName, ...args);
|
||||
component = component.$parent;
|
||||
} while (component);
|
||||
};
|
||||
});
|
||||
|
||||
new Vue({
|
||||
vuetify,
|
||||
router,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue