完善
Former-commit-id: dd4c302e448f871376ab1298240b44aa3d3e1643 [formerly dd4c302e448f871376ab1298240b44aa3d3e1643 [formerly dd4c302e448f871376ab1298240b44aa3d3e1643 [formerly dd4c302e448f871376ab1298240b44aa3d3e1643 [formerly 8bbdd72ba63cd9161b2b2e51826b8813e8c9fffc [formerly e7d3090ad5a6f6801b32d0abce9a4e9291fcc0e7]]]]] Former-commit-id: 1be4f8ac464528598b8a52649c107686d01c08d8 Former-commit-id: 7317640b0da3a039d8ca5b6457c1263fc1261272 Former-commit-id: 29d4f7df0be48866f4309a012d38e008e1725438 [formerly 9ee9681b4a3200cc3b344673e83d9f5e4343f07a] Former-commit-id: fddc0694f8fbf921142069e11ff694ea218fa0d9 Former-commit-id: 92059d07f780aa09aaff77faf9bc41a8bd6269f0 Former-commit-id: aef5ddaf56545324913a9b425e7f8b7c3ed45518 Former-commit-id: 279be73fde5a48ddc78a258a2ea55a3b0d64fe2b Former-commit-id: b970cb8f0bbe694a3bf733e726f8c833a1f3f511
This commit is contained in:
25
dev/deploy/doc.sh
Executable file
25
dev/deploy/doc.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# 确保脚本抛出遇到的错误
|
||||
set -e
|
||||
|
||||
# 生成静态文件
|
||||
npm run doc:build
|
||||
|
||||
# 进入生成的文件夹
|
||||
cd docs/.vuepress/dist
|
||||
|
||||
git init
|
||||
git add -A
|
||||
git commit -m 'deploy'
|
||||
|
||||
# 如果发布到 https://<USERNAME>.github.io
|
||||
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
|
||||
|
||||
# 如果发布到 https://<USERNAME>.github.io/<REPO>
|
||||
# git push -f git@github.com:FairyEver/d2-admin.git master:gh-pages
|
||||
git push -f git@gitee.com:fairyever/d2-admin-doc.git master
|
||||
|
||||
cd -
|
||||
|
||||
echo "publish to http://d2admin.fairyever.com/zh/"
|
||||
7
dev/deploy/github.sh
Executable file
7
dev/deploy/github.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
set -e
|
||||
|
||||
git add --all
|
||||
|
||||
git commit -m 'no message'
|
||||
|
||||
git push
|
||||
27
dev/deploy/preview.sh
Executable file
27
dev/deploy/preview.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# 确保脚本抛出遇到的错误
|
||||
set -e
|
||||
|
||||
# 生成静态文件
|
||||
npm run build
|
||||
|
||||
# 进入生成的文件夹
|
||||
cd dist
|
||||
|
||||
# 如果是发布到自定义域名
|
||||
# echo 'www.example.com' > CNAME
|
||||
|
||||
git init
|
||||
git add -A
|
||||
git commit -m 'deploy'
|
||||
|
||||
# 如果发布到 https://<USERNAME>.github.io
|
||||
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
|
||||
|
||||
# 如果发布到 https://<USERNAME>.github.io/<REPO>
|
||||
git push -f git@gitee.com:fairyever/d2-admin-preview.git master
|
||||
|
||||
cd -
|
||||
|
||||
echo "publish to https://fairyever.gitee.io/d2-admin-preview/#/index"
|
||||
1
dev/github/give-a-star@2x.png.REMOVED.git-id
Normal file
1
dev/github/give-a-star@2x.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
||||
ef1324a190d1bcb162d301749057d943990174c1
|
||||
1
dev/github/join@2x.png.REMOVED.git-id
Normal file
1
dev/github/join@2x.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
||||
f7a47389e6c0773e9d218227678ebb8850ea87e8
|
||||
1
dev/github/preview@2x.png.REMOVED.git-id
Normal file
1
dev/github/preview@2x.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
||||
27e431bd9e4752dd51fe827a1281d606bd7bdf07
|
||||
1
dev/github/qr@2x.png.REMOVED.git-id
Normal file
1
dev/github/qr@2x.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
||||
17502d4e47a0d11f5a1cec935f48229d7ed38fc8
|
||||
1
dev/github/reward-me@2x.png.REMOVED.git-id
Normal file
1
dev/github/reward-me@2x.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
||||
729a7896f93feaddd10e80dab4f5ff4ce05e64a8
|
||||
59
dev/snippets/vue-html.json
Normal file
59
dev/snippets/vue-html.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
// 一个新的页面
|
||||
"d2-new-page": {
|
||||
"prefix": "dd-new-page",
|
||||
"body": [
|
||||
"<template>",
|
||||
" <d2-container type=\"${1:full}\" class=\"page\">",
|
||||
" ${2:page-name}",
|
||||
" </d2-container>",
|
||||
"</template>",
|
||||
"",
|
||||
"<script>",
|
||||
"export default {",
|
||||
" data () {",
|
||||
" return {}",
|
||||
" },",
|
||||
" computed: {",
|
||||
" },",
|
||||
" methods: {",
|
||||
" }",
|
||||
"}",
|
||||
"</script>",
|
||||
"",
|
||||
"<style lang=\"scss\" scoped>",
|
||||
"@import '~@/assets/style/public.scss';",
|
||||
".page {",
|
||||
" // Your page style here",
|
||||
" // Do not use empty rulesets",
|
||||
" // If empty, delete it",
|
||||
"}",
|
||||
"</style>"
|
||||
],
|
||||
"description": "new page"
|
||||
},
|
||||
// d2-container 组件 header 插槽
|
||||
"d2-container-header": {
|
||||
"prefix": "dd-container-header",
|
||||
"body": [
|
||||
"<template slot=\"header\">${1:header}</template>"
|
||||
],
|
||||
"description": "d2-container component header slot"
|
||||
},
|
||||
// d2-container 组件 footer 插槽
|
||||
"d2-container-footer": {
|
||||
"prefix": "dd-container-footer",
|
||||
"body": [
|
||||
"<template slot=\"footer\">${1:footer}</template>"
|
||||
],
|
||||
"description": "d2-container component footer slot"
|
||||
},
|
||||
// 图标组件
|
||||
"d2-icon": {
|
||||
"prefix": "dd-icon",
|
||||
"body": [
|
||||
"<d2-icon name=\"${1:github}\"/>"
|
||||
],
|
||||
"description": "d2-icon component"
|
||||
}
|
||||
}
|
||||
59
dev/snippets/vue.json
Normal file
59
dev/snippets/vue.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
// 一个新的页面
|
||||
"d2-new-page": {
|
||||
"prefix": "dd-new-page",
|
||||
"body": [
|
||||
"<template>",
|
||||
" <d2-container type=\"${1:full}\" class=\"page\">",
|
||||
" ${2:page-name}",
|
||||
" </d2-container>",
|
||||
"</template>",
|
||||
"",
|
||||
"<script>",
|
||||
"export default {",
|
||||
" data () {",
|
||||
" return {}",
|
||||
" },",
|
||||
" computed: {",
|
||||
" },",
|
||||
" methods: {",
|
||||
" }",
|
||||
"}",
|
||||
"</script>",
|
||||
"",
|
||||
"<style lang=\"scss\" scoped>",
|
||||
"@import '~@/assets/style/public.scss';",
|
||||
".page {",
|
||||
" // Your page style here",
|
||||
" // Do not use empty rulesets",
|
||||
" // If empty, delete it",
|
||||
"}",
|
||||
"</style>"
|
||||
],
|
||||
"description": "new page"
|
||||
},
|
||||
// d2-container 组件 header 插槽
|
||||
"d2-container-header": {
|
||||
"prefix": "dd-container-header",
|
||||
"body": [
|
||||
"<template slot=\"header\">${1:header}</template>"
|
||||
],
|
||||
"description": "d2-container component header slot"
|
||||
},
|
||||
// d2-container 组件 footer 插槽
|
||||
"d2-container-footer": {
|
||||
"prefix": "dd-container-footer",
|
||||
"body": [
|
||||
"<template slot=\"footer\">${1:footer}</template>"
|
||||
],
|
||||
"description": "d2-container component footer slot"
|
||||
},
|
||||
// 图标组件
|
||||
"d2-icon": {
|
||||
"prefix": "dd-icon",
|
||||
"body": [
|
||||
"<d2-icon name=\"${1:github}\"/>"
|
||||
],
|
||||
"description": "d2-icon component"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user