From 2dfe3f52d0fd1c18c5ee2a128afa04d51653b675 Mon Sep 17 00:00:00 2001 From: Newnius Date: Mon, 20 May 2019 16:53:28 +0800 Subject: [PATCH] update, add cluster management --- install.php | 20 ------- modals.php | 56 +++++++++++++++++++- static/cluster.js | 131 ++++++++++++++++++++++++++++++++++++++++++++++ static/ucenter.js | 4 ++ ucenter.php | 22 ++++++++ 5 files changed, 211 insertions(+), 22 deletions(-) create mode 100755 static/cluster.js diff --git a/install.php b/install.php index 4ae6f98..89fb9c4 100755 --- a/install.php +++ b/install.php @@ -16,7 +16,6 @@ MysqlPDO::configure($config); create_table_user(); create_table_workspace(); -create_table_cluster(); create_table_agent(); create_table_model(); create_table_log(); @@ -71,25 +70,6 @@ function create_table_workspace() execute_sqls($sqls); } -function create_table_cluster() -{ - $sqls = array( -// 'DROP `yao_cluster`' => 'DROP TABLE IF EXISTS `yao_cluster`', - 'CREATE `yao_cluster`' => - 'CREATE TABLE `yao_cluster`( - `name` VARCHAR(64) NOT NULL, - PRIMARY KEY(`name`), - `created_at` BIGINT NOT NULL, - `created_by` int NOT NULL, - `reserved_nodes` json NOT NULL, - `quota_per_day` int NOT NULL, - `quota_used` int NOT NULL, - `version` int NOT NULL DEFAULT 0 /* for upgrade purpose */ - )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci', - ); - execute_sqls($sqls); -} - function create_table_agent() { $sqls = array( diff --git a/modals.php b/modals.php index a0a8086..8516859 100755 --- a/modals.php +++ b/modals.php @@ -160,14 +160,14 @@
- +
- +
@@ -184,6 +184,58 @@
+ + + + +
+
+
Virtual Clusters
+
+
+
+ +
+ +
+
+
+
+
+
@@ -260,6 +281,7 @@ foreach ($entries as $entry) { +