Revert "👷 Add VUE_APP_CODEFUND build setting"
This reverts commit acfb534344.
This commit is contained in:
parent
acfb534344
commit
15b987c8c1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue