Skip to content

Commit

Permalink
perf: rename acl
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Mar 3, 2025
1 parent f5bd0f0 commit 598d380
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 28 deletions.
40 changes: 20 additions & 20 deletions src/router/console/acls.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export default [
{
path: '',
name: 'UserLoginAclList',
component: () => import('@/views/acl/UserLoginACL/UserLoginACLList.vue'),
component: () => import('@/views/acls/UserLoginACL/UserLoginACLList.vue'),
meta: {
title: i18n.t('UserLoginAclList'), menuTitle: i18n.t('UserLogin'), activeMenu: ''
}
},
{
path: 'create',
name: 'UserLoginAclCreate',
component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate.vue'),
component: () => import('@/views/acls/UserLoginACL/UserLoginACLCreateUpdate.vue'),
hidden: true,
meta: {
title: i18n.t('UserLoginAclCreate'), activeMenu: ''
Expand All @@ -48,7 +48,7 @@ export default [
{
path: ':id',
name: 'UserLoginAclDetail',
component: () => import('@/views/acl/UserLoginACL/UserDetail/index'),
component: () => import('@/views/acls/UserLoginACL/UserDetail/index'),
hidden: true,
meta: {
title: i18n.t('UserLoginAclDetail'), activeMenu: '',
Expand All @@ -59,7 +59,7 @@ export default [
{
path: ':id/update',
name: 'UserLoginAclUpdate',
component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate.vue'),
component: () => import('@/views/acls/UserLoginACL/UserLoginACLCreateUpdate.vue'),
hidden: true,
meta: { title: i18n.t('UserLoginAclUpdate'), activeMenu: '' }
}
Expand All @@ -82,7 +82,7 @@ export default [
{
path: '',
name: 'CommandFilterAclList',
component: () => import('@/views/acl/CommandAcl/index'),
component: () => import('@/views/acls/CommandAcl/index'),
hidden: true,
meta: {
title: i18n.t('BaseCommandFilterAclList'),
Expand All @@ -92,14 +92,14 @@ export default [
{
path: 'create',
name: 'CommandFilterAclCreate',
component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclCreateUpdate'),
component: () => import('@/views/acls/CommandAcl/CommandFilterAcl/CommandFilterAclCreateUpdate'),
hidden: true,
meta: { title: i18n.t('CommandFilterAclCreate'), activeMenu: '' }
},
{
path: ':id',
name: 'CommandFilterAclDetail',
component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclDetail/index'),
component: () => import('@/views/acls/CommandAcl/CommandFilterAcl/CommandFilterAclDetail/index'),
hidden: true,
meta: {
title: i18n.t('CommandFilterAclDetail'),
Expand All @@ -109,7 +109,7 @@ export default [
{
path: ':id/update',
name: 'CommandFilterAclUpdate',
component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclCreateUpdate'),
component: () => import('@/views/acls/CommandAcl/CommandFilterAcl/CommandFilterAclCreateUpdate'),
hidden: true,
meta: { title: i18n.t('CommandFilterAclUpdate'), activeMenu: '' }
}
Expand All @@ -132,27 +132,27 @@ export default [
{
path: '',
name: 'AssetAclList',
component: () => import('@/views/acl/AssetLoginAcl/AssetLoginAclList.vue'),
component: () => import('@/views/acls/AssetLoginAcl/AssetLoginAclList.vue'),
meta: { title: i18n.t('AssetAclList'), activeMenu: '', menuTitle: i18n.t('AssetConnect') }
},
{
path: 'create',
name: 'AssetAclCreate',
component: () => import('@/views/acl/AssetLoginAcl/AssetLoginAclCreateUpdate.vue'),
component: () => import('@/views/acls/AssetLoginAcl/AssetLoginAclCreateUpdate.vue'),
hidden: true,
meta: { title: i18n.t('AssetAclCreate'), activeMenu: '' }
},
{
path: ':id',
name: 'AssetAclDetail',
component: () => import('@/views/acl/AssetLoginAcl/AssetLoginAclDetail/index'),
component: () => import('@/views/acls/AssetLoginAcl/AssetLoginAclDetail/index'),
hidden: true,
meta: { title: i18n.t('AssetAclDetail'), activeMenu: '' }
},
{
path: ':id/update',
name: 'AssetAclUpdate',
component: () => import('@/views/acl/AssetLoginAcl/AssetLoginAclCreateUpdate.vue'),
component: () => import('@/views/acls/AssetLoginAcl/AssetLoginAclCreateUpdate.vue'),
hidden: true,
meta: { title: i18n.t('AssetAclUpdate'), activeMenu: '' }
}
Expand All @@ -176,7 +176,7 @@ export default [
{
path: '',
name: 'CommandGroupList',
component: () => import('@/views/acl/CommandAcl/index'),
component: () => import('@/views/acls/CommandAcl/index'),
hidden: true,
meta: {
title: i18n.t('CommandGroupList'),
Expand All @@ -186,7 +186,7 @@ export default [
{
path: 'create',
name: 'CommandGroupCreate',
component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupCreateUpdate'),
component: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupCreateUpdate'),
hidden: true,
meta: {
title: i18n.t('CommandGroupCreate'),
Expand All @@ -196,7 +196,7 @@ export default [
{
path: ':id',
name: 'CommandGroupDetail',
component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupDetail/index'),
component: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupDetail/index'),
hidden: true,
meta: {
title: i18n.t('CommandGroupDetail'),
Expand All @@ -206,7 +206,7 @@ export default [
{
path: ':id/update',
name: 'CommandGroupUpdate',
component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupCreateUpdate'),
component: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupCreateUpdate'),
hidden: true,
meta: {
title: i18n.t('CommandGroupUpdate'),
Expand All @@ -233,27 +233,27 @@ export default [
{
path: '',
name: 'ConnectMethodAclList',
component: () => import('@/views/acl/ConnectMethodAcl/ConnectMethodAclList.vue'),
component: () => import('@/views/acls/ConnectMethodAcl/ConnectMethodAclList.vue'),
meta: { title: i18n.t('ConnectMethodAclList'), activeMenu: '', menuTitle: i18n.t('ConnectMethod') }
},
{
path: 'create',
name: 'ConnectMethodAclCreate',
component: () => import('@/views/acl/ConnectMethodAcl/ConnectMethodAclCreateUpdate.vue'),
component: () => import('@/views/acls/ConnectMethodAcl/ConnectMethodAclCreateUpdate.vue'),
hidden: true,
meta: { title: i18n.t('ConnectMethodAclCreate'), activeMenu: '' }
},
{
path: ':id',
name: 'ConnectMethodAclDetail',
component: () => import('@/views/acl/ConnectMethodAcl/ConnectMethodAclDetail/index'),
component: () => import('@/views/acls/ConnectMethodAcl/ConnectMethodAclDetail/index'),
hidden: true,
meta: { title: i18n.t('ConnectMethodAclDetail'), activeMenu: '' }
},
{
path: ':id/update',
name: 'ConnectMethodAclUpdate',
component: () => import('@/views/acl/ConnectMethodAcl/ConnectMethodAclCreateUpdate.vue'),
component: () => import('@/views/acls/ConnectMethodAcl/ConnectMethodAclCreateUpdate.vue'),
hidden: true,
meta: { title: i18n.t('ConnectMethodAclUpdate'), activeMenu: '' }
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ li.rmenu i.fa {
&::before {
content: '*';
margin-right: 4px;
color: #ff4d4f;
color: #ed5565;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default {
return {
initial: {},
fields: [
[this.$t('Basic'), ['name', 'type', 'content', 'ignore_case', 'comment']]
[this.$t('Basic'), ['name', 'type', 'content', 'ignore_case']],
[this.$t('Other'), ['comment']]
],
url: `/api/v1/acls/command-groups/`,
createSuccessNextRoute: { name: 'CommandFilterAclList' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default {
const _id = this.$route.query.command_filters
const url = `/api/v1/acls/command-groups/${_id ? `?command_filters=${_id}` : ''}`
return {
createDrawer: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupCreateUpdate.vue'),
detailDrawer: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupDetail/index.vue'),
createDrawer: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupCreateUpdate.vue'),
detailDrawer: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupDetail/index.vue'),
tableConfig: {
url: url,
permissions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ export default {
title: this.$t('CommandFilterACL'),
name: 'CommandFilterACL',
hidden: !this.$hasPerm('acls.view_commandfilteracl'),
component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue'),
component: () => import('@/views/acls/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue'),
helpTip: this.$t('CommandFilterACLHelpMsg')
},
{
title: this.$t('CommandGroup'),
name: 'CommandGroup',
hidden: !this.$hasPerm('acls.view_commandgroup'),
component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue')
component: () => import('@/views/acls/CommandAcl/CommandGroup/CommandGroupList.vue')
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</template>

<script>
import UserLoginACLTable from '@/views/acl/UserLoginACL/UserLoginACLTable.vue'
import UserLoginACLTable from '@/views/acls/UserLoginACL/UserLoginACLTable.vue'
import Page from '@/layout/components/Page'
export default {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/views/users/User/UserDetail/UserLoginAcl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import UserLoginACLTable from '@/views/acl/UserLoginACL/UserLoginACLTable.vue'
import UserLoginACLTable from '@/views/acls/UserLoginACL/UserLoginACLTable.vue'
import TwoCol from '@/layout/components/Page/TwoColPage.vue'
export default {
Expand Down

0 comments on commit 598d380

Please sign in to comment.