forked from lensesio/kafka-connect-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (121 loc) · 5.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html>
<head>
<title>Kafka Connect UI</title>
<link rel="stylesheet" href="bower_components/angular-material/angular-material.min.css">
<link rel="stylesheet" href="bower_components/components-font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="src/assets/css/styles.css">
<meta charset=utf-8/>
<meta name="viewport" content="width=device-width">
<meta name="description" content="Kafka Connect UI">
<meta name="keywords"
content="kafka,schema registry,topics,kafka-topic,kafka-rest,kafka-rest-proxy,kafka management,avro">
<meta name="author" content="Landoop Team">
<link rel="shortcut icon" href="src/assets/icons/favicon.png">
</head>
<body ng-app="angularAPP" ng-cloak>
<md-progress-linear md-mode="indeterminate" ng-show="loading || rebalancing"></md-progress-linear>
<header class="header" ng-controller="HeaderCtrl" style="background-color:{{color}}">
<div layout="row" layout-xs="column">
<div flex>
<h5><a href="{{cluster ? '#/cluster/'+cluster.NAME : '#/'}}">KAFKA CONNECT</a></h5>
</div>
<label ng-show="!missingEnvJS && clusters.length > 1" style="color:#ccc; font-size:12px"><b>SELECT CLUSTER :</b></label>
<md-input-container ng-show="!missingEnvJS && clusters.length > 1" class="selectCluster">
<md-select ng-model="connectEndPoint">
<md-option ng-repeat="connectEndPoint in clusters track by $index"
ng-click="updateEndPoint(connectEndPoint.NAME)"
value="{{connectEndPoint.NAME}}" ng-selected="{{cluster.NAME == connectEndPoint.NAME}}"
>{{connectEndPoint.NAME}}</md-option>
</md-select>
</md-input-container>
</div>
</header>
<!--if env.js is not properly defined-->
<div layout="row" flex="100" ng-show="missingEnvJS">
<md-card>
<md-card-content>
<h3 style="font-weight:300; color:red"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Missing Cluster Configuration</h3>
<br>
In order to configure <code>kafka-connect-ui</code> you need to add <code>env.js</code> file in the root directory of the app.
<br>
Example <b>env.js</b> structure:
<pre>
<code>
var clusters = [
{
NAME:"prod", //Required
KAFKA_CONNECT: "http://kafka-connect.url", //Required
KAFKA_TOPICS_UI: "http://kafka-topics-ui.url", //Optional
KAFKA_TOPICS_UI_ENABLED: true, //Optional
COLOR: "#141414" // Optional
},
{
NAME:"dev",
KAFKA_CONNECT: "https://kafka-connec.dev.url",
KAFKA_TOPICS_UI_ENABLED: false
},
{
NAME:"local",
KAFKA_CONNECT: "http://localhost:8083"
}
]
</code>
</pre>
</md-card-content>
</md-card>
</div>
<!--Main Content Starts here-->
<div layout="row" layout-sm="column" layout-xs="column" ng-hide="missingEnvJS">
<div flex-gt-sm="33">
<div ng-controller="KafkaConnectListCtrl" ng-include="'src/kafka-connect/list/list-connectors.html'"></div>
<div ng-include="'src/kafka-connect/config/config.html'"></div>
</div>
<div flex-gt-sm="66" flex>
<ng-view></ng-view>
</div>
</div>
<!-- Landoop team promo -->
<div layout-margin flex>
<div flex="nogrow">
<img ng-src="src/assets/icons/landoop-dark.svg" style="width:20px;float: left;padding-right:5px;"></div>
<div flex>
<p class="md-caption">Powered by <a href="http://www.landoop.com/" target="_blank">LANDOOP</a></p>
</div>
</div>
<!--CUSTOM-FOOTER-->
<!-- analytics -->
<script src="bower_components/ace-builds/src-min-noconflict/ace.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-ui-ace/ui-ace.min.js"></script>
<script src="bower_components/angular-route/angular-route.min.js"></script>
<script src="bower_components/angular-material/angular-material.min.js"></script>
<script src="bower_components/angularUtils-pagination/dirPagination.js"></script>
<script src="bower_components/angular-animate/angular-animate.min.js"></script>
<script src="bower_components/angular-aria/angular-aria.min.js"></script>
<script src="bower_components/angular-messages/angular-messages.min.js"></script>
<script src="bower_components/angular-google-chart/ng-google-chart.min.js"></script>
<!--TODO-->
<!--<script src="//npmcdn.com/angular-formly@latest/dist/formly.js"></script>-->
<script src="env.js"></script>
<!-- build:js src/combined.js -->
<script src="src/app.js"></script>
<script src="src/factories/http-interceptor.factory.js"></script>
<script src="src/supported-connectors.js"></script>
<script src="src/factories/spinner.factory.js"></script>
<script src="src/factories/env.factory.js"></script>
<script src="src/factories/constants.factory.js"></script>
<script src="src/factories/supported-connectors.factory.js"></script>
<script src="src/factories/connector-objects.factory.js"></script>
<script src="src/kafka-connect/home/home.controller.js"></script>
<script src="src/kafka-connect/config/config.controller.js"></script>
<script src="src/kafka-connect/view/view.controller.js"></script>
<script src="src/kafka-connect/list/list.controller.js"></script>
<script src="src/kafka-connect/export-configs/export-configs.controller.js"></script>
<script src="src/kafka-connect/select-type/sink-or-source.controller.js"></script>
<script src="src/kafka-connect/create-connector/create-connector.controller.js"></script>
<script src="src/factories/kafka-connect-api.factory.js"></script>
<script src="src/factories/new-connector-helpers-factory.js"></script>
<!-- endbuild -->
</body>
</html>