Last active
December 24, 2018 05:27
-
-
Save y-temp4/7a4148f1e2cf070add76ab0e95bde9e2 to your computer and use it in GitHub Desktop.
Revisions
-
y-temp4 revised this gist
Dec 24, 2018 . No changes.There are no files selected for viewing
-
y-temp4 revised this gist
Dec 24, 2018 . No changes.There are no files selected for viewing
-
y-temp4 created this gist
Dec 22, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ async getLikesCount({ commit }, { articleId }) { const { count: likesCount } = await this.$axios.$get(`/articles/${articleId}/likes`) return likesCount } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ import Vue from 'vue' import Vuex from 'vuex' import { createModule } from 'vuex-toast' import article from './modules/article' import user from './modules/user' import tag from './modules/tag' import report from './modules/report' import presentation from './modules/presentation' Vue.use(Vuex) export default () => new Vuex.Store({ modules: { article, user, tag, report, presentation, toast: createModule({ dismissInterval: 2000 }) } }) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ render: { - gzip: false + compressor: (req, res, next) => { + next() + } },