From 2403d74ce9d88edf4cc25f35758fd821a04c1f2f Mon Sep 17 00:00:00 2001 From: yi-ge Date: Wed, 8 Jul 2020 18:13:20 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E8=AE=A8=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 11 ++- .vscode/settings.json | 10 ++- layouts/default.vue | 1 + layouts/error.vue | 1 + layouts/errorTheme.vue | 1 + nuxt.config.js | 3 +- package.json | 7 +- pages/post/_id.vue | 146 +++++++++++++++++++++++++++++++--------- plugins/browser.js | 6 +- plugins/vue-js-modal.js | 4 ++ plugins/vue.js | 61 +++++++++++++++-- yarn.lock | 67 ++++++++++++++++-- 12 files changed, 266 insertions(+), 52 deletions(-) create mode 100644 plugins/vue-js-modal.js diff --git a/.eslintrc.js b/.eslintrc.js index 85a5d15..7e8fce6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,13 +5,10 @@ module.exports = { node: true }, parserOptions: { - parser: 'babel-eslint' + parser: "babel-eslint" }, - extends: [ - '@nuxtjs' - ], - // add your custom rules here + extends: ["@nuxtjs"], rules: { - 'no-console': 'off' + "no-console": "off" } -} +}; diff --git a/.vscode/settings.json b/.vscode/settings.json index 62f02f1..3bcd964 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,8 +3,16 @@ "Weibo", "Weixin", "consola", + "eslintignore", "fontawesome", "fortawesome", - "nuxt" + "hljs", + "navication", + "nuxt", + "nuxtjs", + "styl", + "vditor", + "vmodal", + "wangeditor" ] } \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue index 43a0c52..fccca23 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -22,6 +22,7 @@ #rightContent nuxt Footer + v-dialog