Skip to content

Commit

Permalink
Merge branch 'pam' of github.com:jumpserver/lina into pam
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Mar 3, 2025
2 parents 819bbae + 63db09a commit f5bd0f0
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ export default {
'ssh_key', 'passphrase'
]
],
[this.$t('Automations'), ['params']],
[this.$t('Params'), ['params']],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Notification'), ['recipients']],
[this.$t('Other'), ['check_conn_after_change', 'is_active', 'comment']]
[this.$t('Other'), ['check_conn_after_change', 'is_active', 'recipients', 'comment']]
],
fieldsMeta: {
...getChangeSecretFields(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:create-drawer="createDrawer"
:detail-drawer="detailDrawer"
:header-actions="headerActions"
:resource="$tc('AccountChangeSecret')"
:resource="$tc('ChangeSecret')"
:table-config="tableConfig"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/accounts/AccountPush/AccountPushCreateUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
]
],
[
this.$t('Automations'), ['params']
this.$t('Params'), ['params']
],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['check_conn_after_change', 'is_active', 'comment']]
Expand Down
3 changes: 1 addition & 2 deletions src/views/dashboard/Pam/RiskSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default {
let filteredData = []
// 只要有一个大于零 则展示全部的
if (data.some(item => item.value > 0).length > 0) {
if (data.some(item => item.value > 0)) {
filteredData = data
} else {
filteredData = data.slice(0, 7)
Expand All @@ -135,7 +135,6 @@ export default {
show: true,
min: 0,
max: max,
interval: 1,
position: 'top',
axisLine: { show: false },
axisTick: { show: false },
Expand Down
5 changes: 3 additions & 2 deletions src/views/pam/Integration/ApplicationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
currentTemplate: null,
tableConfig: {
url: '/api/v1/accounts/integration-applications/',
columnsExclude: ['accounts'],
columnsMeta: {
id: {
width: '300px',
Expand All @@ -37,7 +38,7 @@ export default {
)
}
},
accounts: {
accounts_amount: {
width: '100px',
formatter: (row) => {
return row.accounts_amount
Expand Down Expand Up @@ -74,7 +75,7 @@ export default {
columnsExtra: ['secret'],
columnsShow: {
default: [
'logo', 'name', 'id', 'secret', 'accounts', 'date_last_used', 'active'
'logo', 'name', 'id', 'secret', 'accounts_amount', 'date_last_used', 'active'
]
},
permissions: { app: 'accounts', resource: 'integrationapplication' }
Expand Down
13 changes: 9 additions & 4 deletions src/views/pam/Integration/SDKList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@
</two-col>
</el-tab-pane>
</el-tabs>

<div class="copy-btn">
<i
class="copy-btn el-icon-copy-document"
@click="copyContent"
/>
<el-tooltip :content="$t('Copy')" placement="top">
<i
class="copy-btn el-icon-copy-document"
@click="copyContent"
/>
</el-tooltip>
</div>
</div>

</IBox>
</div>
</template>
Expand Down Expand Up @@ -129,5 +133,6 @@ export default {
position: absolute;
top: 8px;
right: 5px;
cursor: pointer;
}
</style>
3 changes: 1 addition & 2 deletions src/views/pam/RiskDetect/AccountCheckCreateUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
fields: [
[this.$t('Basic'), ['name']],
[this.$t('Asset'), ['assets', 'nodes']],
[this.$t('Check config'), ['engines', 'recipients']],
[this.$t('Config'), ['engines', 'recipients']],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['is_active', 'comment']]
],
Expand Down Expand Up @@ -65,7 +65,6 @@ export default {
}
},
recipients: {
label: i18n.t('Recipients'),
helpText: i18n.t('OnlyMailSend'),
el: {
value: [],
Expand Down

0 comments on commit f5bd0f0

Please sign in to comment.