diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..77d20a2 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env sh + + # abort on errors +set -e + + # build +npm run build + + # navigate into the build output directory +cd dist + + # if you are deploying to a custom domain +# echo 'www.example.com' > CNAME + + #创建.nojekyll 防止Github Pages build错误 +touch .nojekyll + + git init +git add -A +git commit -m 'deploy' + + # if you are deploying to https://.github.io/ +git push -f git@github.com:PanJiaChen/vueAdmin-template.git master:gh-pages + + cd - diff --git a/package.json b/package.json index bd8e864..0034944 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "vue": "2.6.10", + "vue-analytics": "5.16.4", "vue-router": "3.0.6", "vuex": "3.1.0" }, diff --git a/src/components/AD/index.vue b/src/components/AD/index.vue new file mode 100644 index 0000000..6da0701 --- /dev/null +++ b/src/components/AD/index.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/icons/svg/donate.svg b/src/icons/svg/donate.svg new file mode 100644 index 0000000..51af78d --- /dev/null +++ b/src/icons/svg/donate.svg @@ -0,0 +1 @@ + diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index e01ec98..ef5f398 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -20,7 +20,7 @@ export default {