👷 Add VUE_APP_CODEFUND build setting

Former-commit-id: c5c096de2c7230a5b49db0ccaefbf737b951b1ee [formerly c5c096de2c7230a5b49db0ccaefbf737b951b1ee [formerly c5c096de2c7230a5b49db0ccaefbf737b951b1ee [formerly c5c096de2c7230a5b49db0ccaefbf737b951b1ee [formerly c8db6619b83e7f743a27c3121aee12b988565e6e [formerly fdfa0ee9e692396eb71479981f4357e0a1b7cc73]]]]]
Former-commit-id: f7f304b53cd6f4ab739e4b576a4e4de32a1ff26a
Former-commit-id: 77714822e1192329a0fed7b670f908e0f0653f13
Former-commit-id: abe43899d2bdfd9b2523d684f0c242d2032d72e3 [formerly 25277b3ad0877c624eed171f7687b4d4efcf7756]
Former-commit-id: 153eb0c97e845f3868f2e37ad926fb9c7804c99e
Former-commit-id: c9099674fb7b8a2c82a8c5e788dc2e9ebfa985aa
Former-commit-id: 0280873a23537921187cb0aeff077c408e6fc69a
Former-commit-id: 16683a5cac2e1d2eaef14f1e6a6509235672cd62
Former-commit-id: 4ad8a23e201e2e5f18a22a8177cdd57a2b2e3775
This commit is contained in:
liyang 2019-05-12 17:03:07 +08:00
parent ac76c05572
commit 6a682fc5d1
5 changed files with 25 additions and 1 deletions

View File

@ -2,3 +2,6 @@
# 页面 title 前缀
VUE_APP_TITLE=D2Admin Dev
# codefund 广告
# VUE_APP_CODEFUND=TRUE

View File

@ -8,3 +8,6 @@ VUE_APP_BUILD_MODE=NETLIFY
# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE
# codefund 广告
VUE_APP_CODEFUND=TRUE

View File

@ -8,3 +8,6 @@ VUE_APP_BUILD_MODE=TRAVIS
# 显示源码按钮
VUE_APP_SCOURCE_LINK=TRUE
# codefund 广告
VUE_APP_CODEFUND=TRUE

View File

@ -13,9 +13,24 @@
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;

View File

@ -1 +1 @@
bf433bc08708fd43c3fcf70acb0d3993d9153e7d
37f0a0bee14d97a0fb218f5d007354174b8acf31