Commit 19a3627a by xiawei

Inkmarks

parent 4a4a776a
......@@ -89,6 +89,11 @@ export default {
this.invitation(obj);
}
this.PostInfo();
this.$inkmarks &&
this.$inkmarks.setUser({
id: Number(info.id) || 0,
username: info.userNick || '游客'
});
}
},
_toggleLogin(bool) {
......
......@@ -26,6 +26,7 @@
"lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore ."
},
"dependencies": {
"@gdyfe/ink-marks": "^1.1.0",
"@nuxtjs/axios": "^5.3.6",
"@nuxtjs/component-cache": "^1.1.5",
"@nuxtjs/router": "^1.5.0",
......
......@@ -40,6 +40,8 @@ Vue.use(Bus);
if (process.client) {
if (!process.env.private) {
require('@/plugins/arms');
const Inkmarks = require('@gdyfe/ink-marks');
Vue.prototype.$inkmarks = Inkmarks;
}
const Cookie = require('js-cookie');
Vue.prototype.$cookie = Cookie;
......
......@@ -827,6 +827,15 @@
resolved "https://registry.npm.taobao.org/@csstools/convert-colors/download/@csstools/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
integrity sha1-rUldxBsS511YjG24uYNPCPoTHrc=
"@gdyfe/ink-marks@^1.1.0":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@gdyfe/ink-marks/-/ink-marks-1.1.1.tgz#68fade85c42703b6ffd1d716c1e91e9971ddd9db"
integrity sha512-52F0NSOVkpMohyHV3lmETF/UIewlZxnZjdbTAKWSVYOmOI1iKnZZ4edtYTdDYeRcEdAG84K2Dti8n/Rm1c0HsA==
dependencies:
crypto-js "^4.0.0"
dayjs "^1.8.34"
pako "^1.0.11"
"@nuxt/babel-preset-app@2.12.2":
version "2.12.2"
resolved "https://registry.npm.taobao.org/@nuxt/babel-preset-app/download/@nuxt/babel-preset-app-2.12.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nuxt%2Fbabel-preset-app%2Fdownload%2F%40nuxt%2Fbabel-preset-app-2.12.2.tgz#0e87c4f4f578868e74f6fa9e2a38cace5c77dac8"
......@@ -2868,6 +2877,11 @@ crypto-browserify@^3.11.0:
randombytes "^2.0.0"
randomfill "^1.0.3"
crypto-js@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.0.0.tgz#2904ab2677a9d042856a2ea2ef80de92e4a36dcc"
integrity sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg==
css-blank-pseudo@^0.1.4:
version "0.1.4"
resolved "https://registry.npm.taobao.org/css-blank-pseudo/download/css-blank-pseudo-0.1.4.tgz#dfdefd3254bf8a82027993674ccf35483bfcb3c5"
......@@ -3090,6 +3104,11 @@ dateformat@^2.0.0:
resolved "https://registry.npm.taobao.org/dateformat/download/dateformat-2.2.0.tgz#4065e2013cf9fb916ddfd82efb506ad4c6769062"
integrity sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=
dayjs@^1.8.34:
version "1.8.35"
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.8.35.tgz#67118378f15d31623f3ee2992f5244b887606888"
integrity sha512-isAbIEenO4ilm6f8cpqvgjZCsuerDAz2Kb7ri201AiNn58aqXuaLJEnCtfIMdCvERZHNGRY5lDMTr/jdAnKSWQ==
de-indent@^1.0.2:
version "1.0.2"
resolved "https://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
......@@ -6246,7 +6265,7 @@ pac-resolver@^3.0.0:
netmask "^1.0.6"
thunkify "^2.1.2"
pako@~1.0.5:
pako@^1.0.11, pako@~1.0.5:
version "1.0.11"
resolved "https://registry.npm.taobao.org/pako/download/pako-1.0.11.tgz?cache=0&sync_timestamp=1580283988434&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpako%2Fdownload%2Fpako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
integrity sha1-bJWZ00DVTf05RjgCUqNXBaa5kr8=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment