Skip to content
Permalink
Browse files

Revert "👷 Add VUE_APP_CODEFUND build setting"

This reverts commit acfb534.
  • Loading branch information...
FairyEver committed May 14, 2019
1 parent acfb534 commit 15b987c8c1ea6796a0e2b5fac0847bd04d52880e
Showing with 0 additions and 38 deletions.
  1. +0 −3 .env.development
  2. +0 −3 .env.netlify
  3. +0 −3 .env.travis
  4. +0 −15 src/components/d2-page-cover/index.vue
  5. +0 −14 src/views/system/login/page.vue
@@ -2,6 +2,3 @@

# 页面 title 前缀
VUE_APP_TITLE=D2Admin Dev

# codefund 广告
# VUE_APP_CODEFUND=TRUE
@@ -8,6 +8,3 @@ VUE_APP_BUILD_MODE=NETLIFY

# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE

# codefund 广告
VUE_APP_CODEFUND=TRUE
@@ -8,6 +8,3 @@ VUE_APP_BUILD_MODE=TRAVIS

# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE

# codefund 广告
VUE_APP_CODEFUND=TRUE
@@ -13,24 +13,9 @@
src="./image/darkblue@2x.png"
alt="Fork me on GitHub">
</a>
<div class="d2-mt" id="codefund"></div>
</div>
</template>

<script>
export default {
mounted () {
// 在指定环境加载 codefund 广告代码,这是 D2Admin 的一项开源收入支撑,广告只会在官方 Travis 构建和 Netlify 构建时显示,您可以删除掉这部分代码
if (process.env.VUE_APP_CODEFUND) {
let s = document.createElement('script')
s.type = 'text/javascript'
s.src = 'https://codefund.app/properties/284/funder.js'
document.getElementsByTagName('head')[0].appendChild(s)
}
}
}
</script>

<style lang="scss" scoped>
.d2-page-cover {
@extend %full;
@@ -72,7 +72,6 @@
</p>
</div>
</div>
<div class="page-login--codefund" id="codefund"></div>
</div>
<el-dialog
title="快速选择用户"
@@ -141,13 +140,6 @@ export default {
this.timeInterval = setInterval(() => {
this.refreshTime()
}, 1000)
// 在指定环境加载 codefund 广告代码,这是 D2Admin 的一项开源收入支撑,广告只会在官方 Travis 构建和 Netlify 构建时显示,您可以删除掉这部分代码
if (process.env.VUE_APP_CODEFUND) {
let s = document.createElement('script')
s.type = 'text/javascript'
s.src = 'https://codefund.app/properties/284/funder.js'
document.getElementsByTagName('head')[0].appendChild(s)
}
},
beforeDestroy () {
clearInterval(this.timeInterval)
@@ -238,12 +230,6 @@ export default {
}
}
}
// https://codefund.app
.page-login--codefund {
position: absolute;
top: 20px;
right: 20px;
}
// main
.page-login--logo {
width: 240px;

0 comments on commit 15b987c

Please sign in to comment.
You can’t perform that action at this time.