Compare commits

...

9 Commits

Author SHA1 Message Date
fit2bot
ce3d71d630 feat: Update v3.6.5 2023-09-21 23:06:03 +08:00
jiangweidong
135da3e8aa fix: cas属性映射提醒 2023-09-04 08:21:03 +05:00
老广
e3c4c406fe Merge pull request #3368 from jumpserver/pr@v3.6@perf_cloud_sync_None_err
fix: 策略删除动作和规则时提示404
2023-08-29 11:26:13 +08:00
jiangweidong
4cd126bb9f fix: 策略删除动作和规则时提示404 2023-08-25 14:05:44 +08:00
老广
21c58e2954 Merge pull request #3365 from jumpserver/pr@v3.6@fix_dynamic_input_glint_quit_problem
fix: 解决自动化动态列表组件添加内容会频闪闪退的问题
2023-08-25 10:24:47 +08:00
jiangweidong
25cc62b0c3 fix: 解决自动化动态列表组件添加内容会频闪闪退的问题 2023-08-25 10:04:23 +08:00
老广
4adf765773 Merge pull request #3358 from jumpserver/pr@v3.6@add_tips
perf: 添加 DOMAINS 不设置 报错的提示
2023-08-18 15:03:13 +08:00
ibuler
dbea97e445 perf: 添加 DOMAINS 不设置 报错的提示 2023-08-18 07:02:10 +00:00
feng
8723081ba6 perf: vault 为企业版 2023-08-17 16:17:16 +05:00
12 changed files with 1661 additions and 1634 deletions

1
GITSHA Normal file
View File

@@ -0,0 +1 @@
135da3e8aa006612c1bbea6b821e6488a747b967

View File

@@ -1,7 +1,7 @@
<template>
<div>
<div v-for="(command, index) in value" :key="index" :prop="'value.' + index + '.value'" class="command-item">
<el-input v-model="value[index]" size="mini">
<div v-for="(command, index) in iValue" :key="index" :prop="'iValue.' + index + '.value'" class="command-item">
<el-input v-model="iValue[index]" size="mini">
<template slot="prepend"> {{ inputTitle + ' ' + (index + 1) }}</template>
</el-input>
<div class="input-button">
@@ -14,7 +14,7 @@
@click="handleDelete(command)"
/>
<el-button
v-if="index === value.length - 1"
v-if="index === iValue.length - 1"
icon="el-icon-plus"
size="mini"
style="flex-shrink: 0;"
@@ -27,6 +27,7 @@
</template>
<script>
export default {
props: {
value: {
@@ -39,20 +40,32 @@ export default {
}
},
data() {
return {}
return {
iValue: ['']
}
},
watch: {
iValue: {
handler(v) {
this.$emit('input', Array.from(v))
}
}
},
created() {
this.iValue = Array.from(this.value)
},
methods: {
handleDelete(command) {
const index = this.value.indexOf(command)
const index = this.iValue.indexOf(command)
if (index !== -1) {
this.value.splice(index, 1)
this.iValue.splice(index, 1)
}
},
handleAdd() {
this.value.push('')
this.iValue.push('')
},
deleteDisabled() {
return this.value.length <= 1
return this.iValue.length <= 1
}
}
}

View File

@@ -1648,6 +1648,7 @@
"LDAPUser": "LDAP User",
"InsecureCommandAlert": "Insecure command alert",
"helpText": {
"UserAttr": "If the user attribute contains `uid`, change it to `cas:user`",
"TempPassword": "For a while, there is a period of 300 seconds, failure immediately after use",
"ApiKeyList": "The API key is used to sign the request header. The header of each request is different. Please refer to the usage documentation",
"ConnectionTokenList": "The connection token is a kind of authentication information that combines authentication and connection assets. It allows users to log in to assets with one click. Currently supported components include: KoKo, Lion, Magnus, Razor, etc.",

View File

@@ -1654,6 +1654,7 @@
"LDAPServerInfo": "LDAPサーバー",
"LDAPUser": "LDAPユーザー",
"helpText": {
"UserAttr": "ユーザ属性で `uid` を含むものは `cas:user` に変更する必要があります。",
"TempPassword": "一時パスワードの有効期間は300秒で、使用後すぐに失効します",
"ApiKeyList": "Api keyを使用してリクエストヘッダに署名します。リクエストのヘッダごとに異なります。使用ドキュメントを参照してください",
"ConnectionTokenList": "接続トークンは、認証アセットと接続アセットを組み合わせた一種の認証情報であり、ユーザーはワンクリックでアセットにログインできます。現在サポートされているコンポーネントには、KoKo、Lion、Magnus、Razorなどがあります。",

View File

@@ -1652,6 +1652,7 @@
"LDAPServerInfo": "LDAP 服务器",
"LDAPUser": "LDAP 用户",
"helpText": {
"UserAttr": "用户属性中包含 `uid` 的需要更换为 `cas:user` ",
"TempPassword": "临时密码有效期为 300 秒,使用后立刻失效",
"ApiKeyList": "使用 Api key 签名请求头进行认证,每个请求的头部是不一样的, 相对于 Token 方式,更加安全,请查阅文档使用",
"ConnectionTokenList": "连接令牌是将身份验证和连接资产结合起来使用的一种认证信息支持用户一键登录到资产目前支持的组件包括KoKo、Lion、Magnus、Razor 等",

View File

@@ -64,6 +64,9 @@ const actions = {
changeThemeColors(themeColors)
resolve(response)
}).catch(error => {
if (error.response && error.response.status === 400) {
alert('自 v3.6 版本开始,要求配置可信任域名或主机,否则无法正常使用, 查看: https://github.com/jumpserver/jumpserver/releases/tag/v3.6.0')
}
reject(error)
})
})

View File

@@ -58,6 +58,8 @@
background: url('./icons/switch.png') no-repeat center left transparent;
}
&.k8s_ico_open,
&.k8s_ico_close,
&.k8s_ico_docu {
background: url('./icons/k8s.png') center left no-repeat;
}

View File

@@ -186,7 +186,9 @@ export default {
handleDelete(index) {
return () => {
const item = this.tableConfig.totalData.splice(index, 1)
this.$axios.delete(`/api/v1/xpack/cloud/strategy-actions/${item[0]?.id}/`)
if (item[0]?.id) {
this.$axios.delete(`/api/v1/xpack/cloud/strategy-actions/${item[0].id}/`)
}
this.$message.success(this.$tc('common.deleteSuccessMsg'))
}
}

View File

@@ -98,7 +98,9 @@ export default {
handleDelete(index) {
return () => {
const item = this.tableConfig.totalData.splice(index, 1)
this.$axios.delete(`/api/v1/xpack/cloud/strategy-rules/${item[0]?.id}/`)
if (item[0]?.id) {
this.$axios.delete(`/api/v1/xpack/cloud/strategy-rules/${item[0].id}/`)
}
this.$message.success(this.$tc('common.deleteSuccessMsg'))
}
}

View File

@@ -32,6 +32,7 @@ export default {
CAS_RENAME_ATTRIBUTES: {
component: JsonEditor,
label: this.$t('setting.authUserAttrMap'),
helpText: this.$t('setting.helpText.UserAttr'),
rules: [JsonRequiredUserNameMapped]
}
},

View File

@@ -35,7 +35,7 @@ export default {
{
title: this.$t('setting.AccountStorage'),
name: 'Vault',
hidden: !this.$hasPerm('settings.change_vault')
hidden: !this.$hasPerm('settings.change_vault') || !this.$store.getters.hasValidLicense
}
]
}

3246
yarn.lock

File diff suppressed because it is too large Load Diff