Skip to content

Commit 1fefb59

Browse files
author
jackeyli
authored
Merge branch 'main' into main
2 parents 2fc205e + 97fd9db commit 1fefb59

File tree

5 files changed

+58
-7
lines changed

5 files changed

+58
-7
lines changed

.github/workflows/docker-build-manually.yml

-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
20-
2120
- name:
2221
id: vars
2322
shell: bash
2423
run: |
2524
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
26-
2725
- name: gen env
2826
run: |
2927
mv ./web/.env.example ./web/.env
3028
shell: bash
31-
3229
- name: Login to DockerHub
3330
if: github.event_name != 'pull_request'
3431
uses: docker/login-action@v1

gen_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import yaml
22
import os
3-
43
if not os.path.exists("/app/db"):
54
os.makedirs("/app/db",exist_ok=True)
65
if not os.path.exists('/app/app_config/config.yaml'):

web/public/post-regist-en.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<html>
2+
<style>
3+
a {
4+
color:#999;
5+
text-decoration: none;
6+
}
7+
a:hover {
8+
color:#666;
9+
text-decoration: underline;
10+
}
11+
p {
12+
margin:0px
13+
}
14+
</style>
15+
<body style="padding:20px 20%">
16+
blablabla
17+
</body>
18+
</html>

web/public/post-regist.html

+38-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,43 @@
1313
}
1414
</style>
1515
<body style="padding:20px 20%">
16-
blablabla
16+
<h1 id="h_zh" style="margin:30px auto;width:150px;display:none">账号审核</h1>
17+
<h1 id="h_en" style="margin:30px auto;width:500px;display:none">Account Check & Approve</h1>
18+
<div style="width:800px;margin:0px auto;display:flex;align-items:center">
19+
<div style="flex:1;margin-right:20px;">
20+
<p id="p_zh" style="text-indent: 2rem;display:none">
21+
由于做为演示系统的Delta Node计算能力有限,
22+
并且针对Delta Task的执行环境隔离也还不完善,
23+
因此在注册账号以后,
24+
需要通过管理员人工审核后,
25+
才能正常登录使用。
26+
请扫码加入Delta微信交流群,
27+
或者点击链接加入Slack,
28+
并联系系统管理员通过审核。
29+
</p>
30+
<p id="p_en" style="text-indent: 2rem;display:none">
31+
Because of the low computation capability on Delta Node demo version as well as the incomplet delta task execution environment,
32+
we need to check and approve your account after you regist on our system. Please scan the mask to join wechat group of Delta or visit the link to join slack and then
33+
contact system administrator.
34+
</p>
35+
<div style="text-align:center;margin-top:20px;word-break: break-all;font-size:13px;">
36+
<a href="https://join.slack.com/t/delta-mpc/shared_invite/zt-uaqm185x-52oCXcxoYvRlFwEoMUC8Tw" target="_blank">https://join.slack.com/t/delta-mpc/shared_invite/zt-uaqm185x-52oCXcxoYvRlFwEoMUC8Tw</a>
37+
</div>
38+
</div>
39+
<div style="margin-left:20px">
40+
<img style="width:150px;height:150px;margin:0px auto" src="/join_group.jpg"/>
41+
</div>
42+
</div>
43+
<script>
44+
var language = window.location.hash.replace(/\#/,'')
45+
console.log(language)
46+
if (language.indexOf('zh') > -1) {
47+
document.querySelector('#p_zh').style.display = 'block'
48+
document.querySelector('#h_zh').style.display = 'block'
49+
} else {
50+
document.querySelector('#p_en').style.display = 'block'
51+
document.querySelector('#h_en').style.display = 'block'
52+
}
53+
</script>
1754
</body>
1855
</html>

web/src/views/dashboard/content/userlist/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export default {
158158
});
159159
}
160160
if(this.activeName == 'approval') {
161-
V1UserAPI.fetchUser(this.$appGlobal.constants.USER_APPROVE_STATUS_REGISTED,this.management.page,this.management.page_size).then((res) => {
161+
V1UserAPI.fetchUser(this.$appGlobal.constants.USER_APPROVE_STATUS_REGISTED,this.approval.page,this.approval.page_size).then((res) => {
162162
let lst = res.list.filter((itm)=>this['approval']['tableData'].findIndex((data)=>data.id == itm.id) < 0)
163163
this['approval']['tableData'].push(...lst);
164-
this.management.page += 1
164+
this.approval.page += 1
165165
});
166166
}
167167
},

0 commit comments

Comments
 (0)