在登录页面加入文档

This commit is contained in:
marvzhang
2020-03-07 11:33:40 +08:00
parent d8dada421c
commit 3649de2edf
2 changed files with 19 additions and 2 deletions

View File

@@ -63,7 +63,7 @@
>
<div class="cell-with-action">
<el-tag type="danger">
<i class="el-icon-close"></i>
<i class="el-icon-error"></i>
{{$t('Not Installed')}}
</el-tag>
<el-button type="primary" size="mini" @click="onInstall(scope.row._id, scope.column.name)">

View File

@@ -71,8 +71,12 @@
</div>
<div class="lang">
<span @click="setLang('zh')" :class="lang==='zh'?'active':''">中文</span>
|
<span @click="setLang('en')" :class="lang==='en'?'active':''">English</span>
</div>
<div class="documentation">
<a href="http://docs.crawlab.cn" target="_blank">{{$t('Documentation')}}</a>
</div>
<div v-if="isShowMobileWarning" class="mobile-warning">
<el-alert type="error" :closable="false">
{{$t('You are running on a mobile device, which is not optimized yet. Please try with a laptop or desktop.')}}
@@ -449,16 +453,17 @@ const initCanvas = () => {
.lang {
margin-top: 20px;
text-align: center;
color: #666;
span {
cursor: pointer;
margin: 10px;
color: #666;
font-size: 14px;
}
span.active {
font-weight: 600;
text-decoration: underline;
}
span:hover {
@@ -466,6 +471,18 @@ const initCanvas = () => {
}
}
.documentation {
margin-top: 20px;
text-align: center;
font-size: 14px;
color: #409eff;
font-weight: bolder;
&:hover {
text-decoration: underline;
}
}
.mobile-warning {
margin-top: 20px;
}