diff --git a/index.html b/index.html index 14d7b5fc..e2bcc5e2 100644 --- a/index.html +++ b/index.html @@ -27,33 +27,6 @@ bottom: 0; position: fixed!important; } - .tribute-container li { - background: white; - padding: 10px 20px; - list-style: none; - border-bottom: 1px solid rgb(238, 238, 238); - box-shadow: 0 3px 10px rgb(238, 238, 238), 0 3px 10px rgb(238, 238, 238); - } - ul.tribute-container { - border-radius: 5px; - } - .tribute-container li.highlight { - background: rgb(238, 238, 238); - padding: 10 20px; - } - - .tribute-container li:hover { - background: rgb(238, 238, 238); - cursor: pointer; - padding: 10 20px; - } - - .tribute-container li.no-match { - display: none; - } - .tribute-container img { - padding-right: 5px; - } diff --git a/src/components/VueTribute.js b/src/components/VueTribute.js deleted file mode 100644 index 22293b58..00000000 --- a/src/components/VueTribute.js +++ /dev/null @@ -1,45 +0,0 @@ -import Tribute from 'tributejs' - -const VueTribute = { - name: 'vue-tribute', - props: { - options: { - type: Object, - required: true - } - }, - data() { - return { - tribute: null - } - }, - mounted() { - const $el = this.$slots.default[0].elm - - this.tribute = new Tribute(this.options) - this.tribute.attach($el) - - $el.addEventListener('tribute-replaced', e => { - this.$emit('tribute-replaced', e) - }) - - $el.addEventListener('tribute-no-match', e => { - this.$emit('tribute-no-match', this.tribute.current.mentionText) - }) - }, - render(h) { - return h( - 'div', - { - staticClass: 'v-tribute' - }, - this.$slots.default - ) - } -} - -if (typeof window !== 'undefined' && window.Vue) { - window.Vue.component(VueTribute.name, VueTribute) -} - -export default VueTribute diff --git a/src/components/comment/CommentForm.vue b/src/components/comment/CommentForm.vue index e44a88fa..a58a1dcd 100644 --- a/src/components/comment/CommentForm.vue +++ b/src/components/comment/CommentForm.vue @@ -1,6 +1,11 @@ + + diff --git a/src/store/actions/user.actions.js b/src/store/actions/user.actions.js index 79c9ce1d..9853320a 100644 --- a/src/store/actions/user.actions.js +++ b/src/store/actions/user.actions.js @@ -24,8 +24,8 @@ export default { }) }, - searchUsers: ({ commit, state, getters }, { name }) => { - return axios.get(`${BASE_URL}/users/search?name=${name}`) + searchUsers: (_, { name }) => { + return axios.get(`${BASE_URL}/users/search/names?name=${name}`) .then(({data}) => { return data })