Skip to content

Commit

Permalink
feat(frontend): redis安装module #8020
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25393
  • Loading branch information
JustaCattt authored and jinquantianxia committed Nov 29, 2024
1 parent e54a499 commit d47d8c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/common/const/clusterTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum ClusterTypes {
// redis
export enum ClusterTypes {
REDIS = 'redis', // Redis
PREDIXY_REDIS_CLUSTER = 'PredixyRedisCluster', // Redis集群
PREDIXY_REDIS_CLUSTER = 'PredixyRedisCluster', // RedisCluster集群
PREDIXY_TENDISPLUS_CLUSTER = 'PredixyTendisplusCluster', // Tendisplus存储版集群
TWEMPROXY_REDIS_INSTANCE = 'TwemproxyRedisInstance', // TendisCache集群
TWEMPROXY_TENDIS_SSD_INSTANCE = 'TwemproxyTendisSSDInstance', // TendisSSD集群
Expand Down
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/types/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@
[ClusterTypes.REDIS]: {
getResourceList: (params: ServiceParameters<typeof getRedisList>) =>
getRedisList({
cluster_type: [
ClusterTypes.TWEMPROXY_REDIS_INSTANCE,
ClusterTypes.PREDIXY_REDIS_CLUSTER,
ClusterTypes.PREDIXY_TENDISPLUS_CLUSTER,
ClusterTypes.TWEMPROXY_TENDIS_SSD_INSTANCE,
ClusterTypes.REDIS_INSTANCE,
].join(','),
cluster_type: [ClusterTypes.PREDIXY_REDIS_CLUSTER, ClusterTypes.REDIS_INSTANCE].join(','),
...params,
}),
},
Expand Down
12 changes: 6 additions & 6 deletions dbm-ui/frontend/src/views/db-manage/redis/toolbox-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export default [
parentId: 'common-manage',
dbConsoleValue: 'redis.toolbox.versionUpgrade',
},
{
name: t('安装 Module'),
id: 'RedisInstallModule',
parentId: 'cluster-manage',
dbConsoleValue: 'redis.toolbox.installModule',
},
],
},
{
Expand Down Expand Up @@ -139,12 +145,6 @@ export default [
id: 'cluster-manage',
icon: 'db-icon-cluster',
children: [
{
name: t('安装 Module'),
id: 'RedisInstallModule',
parentId: 'cluster-manage',
dbConsoleValue: 'redis.toolbox.installModule',
},
{
name: t('扩容接入层'),
id: 'RedisProxyScaleUp',
Expand Down

0 comments on commit d47d8c2

Please sign in to comment.