|
@@ -1,20 +1,34 @@
|
|
import { ClusterName, SchemaName, TopicName } from 'redux/interfaces';
|
|
import { ClusterName, SchemaName, TopicName } from 'redux/interfaces';
|
|
|
|
+import { GIT_REPO_LINK } from './constants';
|
|
|
|
+
|
|
|
|
+export const gitCommitPath = (commit: string) =>
|
|
|
|
+ `${GIT_REPO_LINK}/commit/${commit}`;
|
|
|
|
|
|
const clusterPath = (clusterName: ClusterName) => `/ui/clusters/${clusterName}`;
|
|
const clusterPath = (clusterName: ClusterName) => `/ui/clusters/${clusterName}`;
|
|
|
|
|
|
|
|
+// Brokers
|
|
export const clusterBrokersPath = (clusterName: ClusterName) =>
|
|
export const clusterBrokersPath = (clusterName: ClusterName) =>
|
|
`${clusterPath(clusterName)}/brokers`;
|
|
`${clusterPath(clusterName)}/brokers`;
|
|
-export const clusterTopicsPath = (clusterName: ClusterName) =>
|
|
|
|
- `${clusterPath(clusterName)}/topics`;
|
|
|
|
-export const clusterTopicNewPath = (clusterName: ClusterName) =>
|
|
|
|
- `${clusterPath(clusterName)}/topics/new`;
|
|
|
|
|
|
+
|
|
|
|
+// Consumer Groups
|
|
export const clusterConsumerGroupsPath = (clusterName: ClusterName) =>
|
|
export const clusterConsumerGroupsPath = (clusterName: ClusterName) =>
|
|
`${clusterPath(clusterName)}/consumer-groups`;
|
|
`${clusterPath(clusterName)}/consumer-groups`;
|
|
|
|
+
|
|
|
|
+// Schemas
|
|
export const clusterSchemasPath = (clusterName: ClusterName) =>
|
|
export const clusterSchemasPath = (clusterName: ClusterName) =>
|
|
`${clusterPath(clusterName)}/schemas`;
|
|
`${clusterPath(clusterName)}/schemas`;
|
|
export const clusterSchemaNewPath = (clusterName: ClusterName) =>
|
|
export const clusterSchemaNewPath = (clusterName: ClusterName) =>
|
|
- `${clusterPath(clusterName)}/schemas/new`;
|
|
|
|
|
|
+ `${clusterPath(clusterName)}/schemas/create_new`;
|
|
|
|
+export const clusterSchemaPath = (
|
|
|
|
+ clusterName: ClusterName,
|
|
|
|
+ subject: SchemaName
|
|
|
|
+) => `${clusterSchemasPath(clusterName)}/${subject}/latest`;
|
|
|
|
|
|
|
|
+// Topics
|
|
|
|
+export const clusterTopicsPath = (clusterName: ClusterName) =>
|
|
|
|
+ `${clusterPath(clusterName)}/topics`;
|
|
|
|
+export const clusterTopicNewPath = (clusterName: ClusterName) =>
|
|
|
|
+ `${clusterPath(clusterName)}/topics/create_new`;
|
|
export const clusterTopicPath = (
|
|
export const clusterTopicPath = (
|
|
clusterName: ClusterName,
|
|
clusterName: ClusterName,
|
|
topicName: TopicName
|
|
topicName: TopicName
|
|
@@ -27,13 +41,7 @@ export const clusterTopicMessagesPath = (
|
|
clusterName: ClusterName,
|
|
clusterName: ClusterName,
|
|
topicName: TopicName
|
|
topicName: TopicName
|
|
) => `${clusterTopicsPath(clusterName)}/${topicName}/messages`;
|
|
) => `${clusterTopicsPath(clusterName)}/${topicName}/messages`;
|
|
-
|
|
|
|
export const clusterTopicsTopicEditPath = (
|
|
export const clusterTopicsTopicEditPath = (
|
|
clusterName: ClusterName,
|
|
clusterName: ClusterName,
|
|
topicName: TopicName
|
|
topicName: TopicName
|
|
) => `${clusterTopicsPath(clusterName)}/${topicName}/edit`;
|
|
) => `${clusterTopicsPath(clusterName)}/${topicName}/edit`;
|
|
-
|
|
|
|
-export const clusterSchemaPath = (
|
|
|
|
- clusterName: ClusterName,
|
|
|
|
- subject: SchemaName
|
|
|
|
-) => `${clusterSchemasPath(clusterName)}/${subject}/latest`;
|
|
|