feat: remote apps添加helpmessages

This commit is contained in:
ibuler
2020-06-09 15:36:07 +08:00
parent b65dfd1e6a
commit caf9a64d7e
4 changed files with 5 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
"assets": {
"PasswordWithoutSpecialCharHelpText": "不能包含特殊字符",
"GatewayProtocolHelpText": "SSH网关支持代理SSH,RDP和VNC",
"RemoteAppListHelpMessage": "使用此功能前,请确保已将应用加载器上传到应用服务器并成功发布为一个 RemoteApp 应用 <b><a href='https://github.com/jumpserver/Jmservisor/releases'>下载应用加载器</a></b>",
"FullName": "全称",
"Key": "键",
"NodeInformation": "节点信息",

View File

@@ -29,6 +29,7 @@
"": ""
},
"assets": {
"RemoteAppListHelpMessage": "Before using this feature, make sure that the application loader has been uploaded to the application server and successfully published as a RemoteApp application <b><a href='https://github.com/jumpserver/Jmservisor/releases'> Download application loader</a></b>",
"PasswordWithoutSpecialCharHelpText": "Password can't has special chars ",
"GatewayProtocolHelpText": "SSH protocol gateway, support proxy SSH, RDP, VNC",
"FullName": "Full name",

View File

@@ -7,7 +7,7 @@
</template>
</PageHeading>
<PageContent>
<el-alert v-if="helpMessage" type="success"> {{ helpMessage }} </el-alert>
<el-alert v-if="helpMessage" type="success"> <span v-html="helpMessage" /> </el-alert>
<slot />
</PageContent>
</div>

View File

@@ -1,5 +1,5 @@
<template>
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" />
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" :help-message="helpMessage" />
</template>
<script type="text/jsx">
@@ -13,6 +13,7 @@ export default {
data() {
const vm = this
return {
helpMessage: this.$t('assets.RemoteAppListHelpMessage'),
tableConfig: {
url: '/api/v1/applications/remote-apps/',
columns: [