mao-service-discovery 1.6.9-rc1-master-fd05bc36c3fa2cf30166682e7412cf7904d67475.0 → 1.6.9-rc1-master-87e0425a0a76287b98aaeb3d7a9160b5743ad038.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mao-service-discovery",
3
- "version": "1.6.9-rc1-master-fd05bc36c3fa2cf30166682e7412cf7904d67475.0",
3
+ "version": "1.6.9-rc1-master-87e0425a0a76287b98aaeb3d7a9160b5743ad038.0",
4
4
  "description": "Discover your services by using gRPC stream, ICMP or etcd. Come with WebGUI, Restful API and Config Persistence ability.",
5
5
  "main": "MaoServiceDiscovery",
6
6
  "scripts": {
@@ -0,0 +1,36 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Title</title>
6
+ </head>
7
+ <body>
8
+ <!--enctype="application/json"-->
9
+ <form action="/addMysqlInfo" method="post">
10
+ Username :<br/>
11
+ <textarea rows="1" cols="50" name="username" id="username"></textarea><br/>
12
+ Password :<br/>
13
+ <textarea rows="1" cols="50" name="password" id="password"></textarea><br/>
14
+ MYSQL Server address (e.g. mysql.mao.com) :<br/>
15
+ <textarea rows="1" cols="50" name="mysqlServerAddr" id="mysqlServerAddr"></textarea><br/>
16
+ MYSQL Server port (e.g. 3306) :<br/>
17
+ <textarea rows="1" cols="50" name="mysqlServerPort" id="mysqlServerPort"></textarea><br/>
18
+ Database Name :<br/>
19
+ <textarea rows="1" cols="50" name="databaseName" id="databaseName"></textarea><br/>
20
+ <input type="submit" value="Add" />
21
+ </form>
22
+ <br/>
23
+ <br/>
24
+ <script src="/static/jquery-3.6.0.min.js" type="text/javascript"></script>
25
+ <script>
26
+ $.get("/getMysqlInfo",function (response, status, xhr) {
27
+ $("#username").text(response['username']!=null?response['username']:"N/A")
28
+ $("#password").text(" --- --- ")
29
+ $("#mysqlServerAddr").text(response['mysqlServerAddr']!=null?response['mysqlServerAddr']:"N/A")
30
+ $("#mysqlServerPort").text(response['mysqlServerPort']!=null?response['mysqlServerPort']:"N/A")
31
+ $("#databaseName").text(response['databaseName']!=null?response['databaseName']:"N/A")
32
+ })
33
+ </script>
34
+
35
+ </body>
36
+ </html>