mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
Merge branch 'v4' of github.com:jumpserver/lina into v4
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
v-bind="headerActions"
|
v-bind="headerActions"
|
||||||
/>
|
/>
|
||||||
<el-row :gutter="10" class="the-row">
|
<el-row :gutter="10" class="the-row">
|
||||||
<el-col v-for="(d, index) in totalData" :key="index" :md="8" :sm="24">
|
<el-col v-for="(d, index) in totalData" :key="index" :lg="8" :md="12" :sm="24" style="min-width: 335px;">
|
||||||
<el-card
|
<el-card
|
||||||
:body-style="{ 'text-align': 'center', 'padding': '20px' }"
|
:body-style="{ 'text-align': 'center', 'padding': '20px' }"
|
||||||
:class="{'is-disabled': isDisabled(d)}"
|
:class="{'is-disabled': isDisabled(d)}"
|
||||||
@@ -228,9 +228,9 @@ export default {
|
|||||||
|
|
||||||
.el-col, div {
|
.el-col, div {
|
||||||
.my-card {
|
.my-card {
|
||||||
max-width: 400px;
|
min-width: 330px;
|
||||||
min-width: 300px;
|
|
||||||
height: 240px;
|
height: 240px;
|
||||||
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
@@ -268,21 +268,30 @@ export default {
|
|||||||
|
|
||||||
.one-line {
|
.one-line {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
b {
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
height: 150px;
|
height: 75px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
-webkit-line-clamp: 6;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-flex: 1;
|
-webkit-box-flex: 1;
|
||||||
-webkit-flex-grow: 1;
|
-webkit-flex-grow: 1;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
@@ -152,6 +152,8 @@ $height: 28px;
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
.option-group {
|
.option-group {
|
||||||
|
padding-right: 8px;
|
||||||
|
padding-left: 8px;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
|
|
||||||
::v-deep .el-select-group__title {
|
::v-deep .el-select-group__title {
|
||||||
|
@@ -211,7 +211,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-right {
|
.navbar-right {
|
||||||
|
display: flex;
|
||||||
float: right;
|
float: right;
|
||||||
|
align-items: center;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
height: $headerHeight;
|
height: $headerHeight;
|
||||||
line-height: $headerHeight;
|
line-height: $headerHeight;
|
||||||
@@ -224,6 +226,7 @@ export default {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
||||||
& >>> .svg-icon {
|
& >>> .svg-icon {
|
||||||
|
line-height: 40px;
|
||||||
color: #FFF !important;
|
color: #FFF !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
@@ -128,7 +128,7 @@ export default {
|
|||||||
.page-content {
|
.page-content {
|
||||||
height: calc(100% - 20px);
|
height: calc(100% - 20px);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto !important;
|
||||||
|
|
||||||
::v-deep > div {
|
::v-deep > div {
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
|
@@ -79,7 +79,7 @@ export default [
|
|||||||
name: 'AccountTemplateList',
|
name: 'AccountTemplateList',
|
||||||
component: () => import('@/views/accounts/AccountTemplate/AccountTemplateList'),
|
component: () => import('@/views/accounts/AccountTemplate/AccountTemplateList'),
|
||||||
meta: {
|
meta: {
|
||||||
menuTitle: i18n.t('AccountTemplates'),
|
menuTitle: i18n.t('AccountTemplate'),
|
||||||
title: i18n.t('AccountTemplateList'),
|
title: i18n.t('AccountTemplateList'),
|
||||||
permissions: ['accounts.view_accounttemplate']
|
permissions: ['accounts.view_accounttemplate']
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,7 @@ export default [
|
|||||||
name: 'AccountPushList',
|
name: 'AccountPushList',
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountPushList'),
|
title: i18n.t('AccountPushList'),
|
||||||
menuTitle: i18n.t('PushAccounts'),
|
menuTitle: i18n.t('AccountPushList'),
|
||||||
activeMenu: '/console/accounts/automations',
|
activeMenu: '/console/accounts/automations',
|
||||||
permissions: ['accounts.view_pushaccountautomation']
|
permissions: ['accounts.view_pushaccountautomation']
|
||||||
}
|
}
|
||||||
@@ -381,7 +381,7 @@ export default [
|
|||||||
component: () => import('@/views/accounts/AccountBackup/index.vue'),
|
component: () => import('@/views/accounts/AccountBackup/index.vue'),
|
||||||
name: 'AccountBackupList',
|
name: 'AccountBackupList',
|
||||||
meta: {
|
meta: {
|
||||||
menuTitle: i18n.t('BackupAccounts'),
|
menuTitle: i18n.t('AccountBackup'),
|
||||||
title: i18n.t('AccountBackupList'),
|
title: i18n.t('AccountBackupList'),
|
||||||
activeMenu: '/console/accounts/automations',
|
activeMenu: '/console/accounts/automations',
|
||||||
permissions: ['accounts.view_accountbackupautomation']
|
permissions: ['accounts.view_accountbackupautomation']
|
||||||
|
@@ -60,7 +60,7 @@ export default {
|
|||||||
component: () => import('@/views/profile/AccessKey/index'),
|
component: () => import('@/views/profile/AccessKey/index'),
|
||||||
name: 'AccessKey',
|
name: 'AccessKey',
|
||||||
icon: 'key',
|
icon: 'key',
|
||||||
meta: { title: i18n.t('AccessKeys'), permissions: ['authentication.view_accesskey'] }
|
meta: { title: i18n.t('AccessKey'), permissions: ['authentication.view_accesskey'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':id/update',
|
path: ':id/update',
|
||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
name: 'AccessKeyCreateUpdate',
|
name: 'AccessKeyCreateUpdate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccessKeys'),
|
title: i18n.t('AccessKey'),
|
||||||
permissions: ['authentication.change_accesskey'],
|
permissions: ['authentication.change_accesskey'],
|
||||||
activeMenu: '/profile/access-keys'
|
activeMenu: '/profile/access-keys'
|
||||||
}
|
}
|
||||||
|
@@ -16,7 +16,7 @@ export default {
|
|||||||
activeMenu: 'AccountGatherList',
|
activeMenu: 'AccountGatherList',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
title: this.$t('GatheredAccounts'),
|
title: this.$t('AccountGatherList'),
|
||||||
name: 'AccountGatherList',
|
name: 'AccountGatherList',
|
||||||
hidden: !this.$hasPerm('accounts.view_gatheredaccount'),
|
hidden: !this.$hasPerm('accounts.view_gatheredaccount'),
|
||||||
component: () => import('@/views/accounts/AccountGather/AccountGatherList.vue')
|
component: () => import('@/views/accounts/AccountGather/AccountGatherList.vue')
|
||||||
|
@@ -21,7 +21,7 @@ export default {
|
|||||||
totalData: [
|
totalData: [
|
||||||
{
|
{
|
||||||
id: 'push-account',
|
id: 'push-account',
|
||||||
display_name: this.$t('PushAccounts'),
|
display_name: this.$t('AccountPushList'),
|
||||||
name: 'AccountPushList',
|
name: 'AccountPushList',
|
||||||
comment: this.$t('PushAccountsHelpText'),
|
comment: this.$t('PushAccountsHelpText'),
|
||||||
icon: 'push-account',
|
icon: 'push-account',
|
||||||
@@ -47,7 +47,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'backup_account',
|
id: 'backup_account',
|
||||||
display_name: this.$t('BackupAccounts'),
|
display_name: this.$t('AccountBackup'),
|
||||||
name: 'AccountBackupList',
|
name: 'AccountBackupList',
|
||||||
comment: this.$t('BackupAccountsHelpText'),
|
comment: this.$t('BackupAccountsHelpText'),
|
||||||
icon: 'backup-account',
|
icon: 'backup-account',
|
||||||
|
@@ -52,23 +52,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.switch-date >>> .switch {
|
|
||||||
background: #DEE0E3!important;
|
|
||||||
.el-radio-button {
|
|
||||||
.el-radio-button__inner {
|
|
||||||
background: #DEE0E3!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.el-radio-button.is-active {
|
|
||||||
border-radius: 4px!important;
|
|
||||||
padding: 4px 0!important;
|
|
||||||
.el-radio-button__inner {
|
|
||||||
color: black!important;
|
|
||||||
background-color: #FFF!important;
|
|
||||||
border-radius: 4px!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
@@ -57,26 +57,21 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.switch {
|
.switch {
|
||||||
background: #EFF0F1;
|
padding: 4px;
|
||||||
border-radius: 4px;
|
|
||||||
padding: 1px 4px;
|
|
||||||
|
|
||||||
& >>> .el-radio-button {
|
::v-deep .el-radio-button {
|
||||||
.el-radio-button__inner {
|
.el-radio-button__inner {
|
||||||
border: none;
|
border: 1px solid var(--color-border);
|
||||||
color: #8F959E;
|
color: var(--color-text-primary);
|
||||||
background: #EFF0F1;
|
background: #ffffff;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
border-radius: 4px;
|
|
||||||
padding: 4px 0;
|
|
||||||
|
|
||||||
.el-radio-button__inner {
|
.el-radio-button__inner {
|
||||||
color: var(--color-text-primary);
|
border: 1px solid #1ab394;
|
||||||
|
color: #1ab394;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 1px 2px rgba(31 35 41 / 12%) !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user