Vuejs-Mmf blog vue2: mmf-blog-vue2 - A blog based on Vue2(Vue-router, Vuex) and Webpack2.

mmf-blog vuejs 2.0 v2 中文说明

demo: http://vue2.mmxiaowu.com

The main technical stack: vue2, vue2-router, vuex, webpack, babel, eslint


Other versions

react(spa): https://github.com/lincenying/mmf-blog-react-v2

vue2(spa): https://github.com/lincenying/mmf-blog-vue2

vue2(pwa ssr): https://github.com/lincenying/mmf-blog-vue2-pwa-ssr


First installation api server:

koa2: https://github.com/lincenying/mmf-blog-api-koa2-v2

express: https://github.com/lincenying/mmf-blog-api-v2

# Install dependencies
yarn  #or  npm install
# Note: do not install with CNPM dependency

# Product
yarn build

# Develop
yarn serve

Home Site http://localhost:8081

Login http://localhost:8081/backend

LICENSE

MIT

Comments

  • 美女的blog不错呀
    美女的blog不错呀

    Mar 15, 2017

    美女的blog不错呀 啊

                                                                                                                                                                                                           
    Reply
  • const { data: { code, data } }   ie9下会有语法错误 ,请问怎么解决 谢谢;
    const { data: { code, data } } ie9下会有语法错误 ,请问怎么解决 谢谢;

    Jun 13, 2017

    const { data: { code, data } } 这是什么语法 ie9下会有语法错误 ,请问怎么解决 谢谢;

    Reply
  • 不同域名cookie获取不到
    不同域名cookie获取不到

    Sep 18, 2017

    部署到不同域名的时候,前端已经设置了withCredentials=true,后端也设置了单独的域名并允许cookie,并且在浏览器看到了response headers的set-cookie属性,但是前端就是拿不到 image

    Reply
  • 缺mixins/check-admin,请问下载哪里呢?
    缺mixins/check-admin,请问下载哪里呢?

    Mar 18, 2018

    This dependency was not found:

    • ~mixins/check-admin in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/backend-article-comment.vue, ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/backend-user-modify.vue and 9 others
    Reply
  • vue-loader的style错误
    vue-loader的style错误

    Apr 26, 2018

    ERROR in ./src/components/ProgressBar.vue?vue&type=style&index=0&id=5734e3c6&scoped=true&lang=css (./node_modules/[email protected]@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/[email protected]@vue-style-loader!./node_modules/[email protected]@css-loader??ref--6-oneOf-0-1!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/components/ProgressBar.vue?vue&type=style&index=0&id=5734e3c6&scoped=true&lang=css) Module build failed: CssSyntaxError:

    dev编译时,ProgresressBar.vue里面style报错,这个怎么解决?

    另外,dev-server.js的html-webpack-plugin-after-emit报cb未定义。小提示

    Reply
  • md编辑器编辑预览时正常,文章发布后前台显示不正常(未解析,被截断)
    md编辑器编辑预览时正常,文章发布后前台显示不正常(未解析,被截断)

    Aug 31, 2018

    两个问题: 1.md编辑器的:todolists,emoji表情,流程图等在后台编辑时进行预览没有问题,文章发布后前台显示的是却是md源码,并未正确解析显示。 image

    2.md编辑器编写很长文章时,编写/预览/存储(数据存储完整)都没有问题。前台显示长文章时,文章显示不完全,被截断了。

    Reply
  • Bump websocket-extensions from 0.1.3 to 0.1.4
    Bump websocket-extensions from 0.1.3 to 0.1.4

    Jun 6, 2020

    Bumps websocket-extensions from 0.1.3 to 0.1.4.

    Changelog

    Sourced from websocket-extensions's changelog.

    0.1.4 / 2020-06-02

    • Remove a ReDoS vulnerability in the header parser (CVE-2020-7662, reported by Robert McLaughlin)
    • Change license from MIT to Apache 2.0
    Commits
    • 8efd0cd Bump version to 0.1.4
    • 3dad4ad Remove ReDoS vulnerability in the Sec-WebSocket-Extensions header parser
    • 4a76c75 Add Node versions 13 and 14 on Travis
    • 44a677a Formatting change: {...} should have spaces inside the braces
    • f6c50ab Let npm reformat package.json
    • 2d211f3 Change markdown formatting of docs.
    • 0b62083 Update Travis target versions.
    • 729a465 Switch license to Apache 2.0.
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    Reply
  • Bump acorn from 6.4.0 to 6.4.1
    Bump acorn from 6.4.0 to 6.4.1

    Mar 13, 2020

    Bumps acorn from 6.4.0 to 6.4.1.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    Reply
  • Vue的群号是多少啊~~
    Vue的群号是多少啊~~

    Aug 2, 2017

    求加~~
    
    Reply
  • 点赞状态同步
    点赞状态同步

    Mar 21, 2017

    列表页 随便点一个进详情 点了赞 列表页没有同步赞的状态?

    Reply
  • 系统还缺少一个退出功能
    系统还缺少一个退出功能

    Mar 11, 2017

    (1)系统还缺少一个退出功能,若有,就完美了! (2)前台管理员的在线编辑器,真心插入代码的功能,不好用!

    Reply
  • store bug??
    store bug??

    Feb 23, 2017

    [backend-category-insert.vue] this.$store.commit('backend/category/insertCategoryItem', { ...this.form, _id: data })

    this.$store.commit('global/category/insertCategoryItem', { ...this.form, _id: data })

    Reply
  • 关于进度条
    关于进度条

    Feb 20, 2017

    博主,你好实在没有看懂你写的进度条怎么就起作用了?? watch: { 'global.progress'(val) { if (val === 0) { console.log('0执行了') NProgress.set(0) NProgress.start() } else if (val === 100) { console.log('100执行了') NProgress.done() } else { console.log(val) NProgress.set(val/100) NProgress.start() } } } 这段代码中间会打印50,这50哪里来的啊? router.beforeEach((route, redirect, next) => { store.dispatch('global/gProgress', 0) next() }) 路由钩子只在跳转前dispatch一次action,actions再commit mutation ,然后改变state,因为只有这一次发生了state值得改变,最终路由跳转完成了mouted钩子起作用,再次设置100.请问那个中间的state状态的改变如何发生的呢????

    Reply
  • run error
    run error

    Feb 16, 2017

    [HPM] Proxy created: /api -> http://localhost:4000 [HPM] Proxy rewrite rule created: "^/api" ~> "/api" Listening at http://localhost:8080

    webpack built 5cd06c987997142c0870 in 1685ms Hash: 5cd06c987997142c0870 Version: webpack 2.2.1 Time: 1685ms Asset Size Chunks Chunk Names app.js 1.08 kB 0 app admin.js 1.08 kB 1 admin vendor.js 1.23 MB 2 vendor

    ERROR in ./src/app.js Module build failed: SyntaxError: C:/Users/stkang90/Desktop/mmf-blog-vue2/src/app.js: Unexpected token (22:4)

    20 | router, 21 | store,

    22 | ...App | ^ 23 | }) 24 | 25 | app.$mount('#app')

    @ multi ./build/dev-client ./src/app.js

    ERROR in ./src/admin.js Module build failed: SyntaxError: C:/Users/stkang90/Desktop/mmf-blog-vue2/src/admin.js: Unexpected token (17:4)

    15 | router, 16 | store,

    17 | ...App | ^ 18 | }) 19 | 20 | app.$mount('#app')

    @ multi ./build/dev-client ./src/admin.js Child html-webpack-plugin for "admin.html": Asset Size Chunks Chunk Names admin.html 29.4 kB 0 Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 28.4 kB 0 webpack: Failed to compile.

    Reply
  • 这里为啥不能用cnpm安装呢?
    这里为啥不能用cnpm安装呢?

    Mar 11, 2017

    npm install #or yarn

    注意: 不要用 cnpm 安装依赖

    是指不能用淘宝的源安装吗

    Reply
  • Error: Loading chunk backend-login failed.
    Error: Loading chunk backend-login failed.

    May 19, 2018

    访问localhost:8081/backend时,会自动跳转到localhost:8081/,无法进行登录。控制台报错:

    q01 展开第一个错误: q02
    Reply