You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2017/11/30 21:35:33 UTC

[11/11] knox git commit: KNOX-1128 - Readonly protection for generated topologies in Knox Admin UI

KNOX-1128 - Readonly protection for generated topologies in Knox Admin UI


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/83186a5c
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/83186a5c
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/83186a5c

Branch: refs/heads/v0.14.0
Commit: 83186a5c6cc85ef2a47795f18286961c5beb9b10
Parents: 57e41cf
Author: Sandeep More <mo...@apache.org>
Authored: Thu Nov 30 16:35:08 2017 -0500
Committer: Sandeep More <mo...@apache.org>
Committed: Thu Nov 30 16:35:08 2017 -0500

----------------------------------------------------------------------
 .gitignore                                      |     1 +
 gateway-admin-ui/README.md                      |    34 +-
 gateway-admin-ui/angular-cli.json               |    22 +-
 gateway-admin-ui/package-lock.json              | 11050 +++++++++++++++++
 gateway-admin-ui/package.json                   |    60 +-
 gateway-admin-ui/src/app/app.module.ts          |     6 +-
 .../src/app/topology-detail.component.ts        |    55 +-
 gateway-admin-ui/src/app/topology.component.ts  |     2 +-
 .../src/assets/knox-logo-transparent.gif        |   Bin 0 -> 19703 bytes
 gateway-admin-ui/src/index.html                 |     4 +-
 gateway-admin-ui/src/tsconfig.json              |     4 +-
 .../app/assets/knox-logo-transparent.gif        |   Bin 0 -> 19703 bytes
 .../applications/admin-ui/app/index.html        |    62 +-
 .../app/inline.b47d11937c275f76ce02.bundle.js   |     1 +
 .../app/inline.d41d8cd98f00b204e980.bundle.js   |     2 -
 .../app/inline.d41d8cd98f00b204e980.bundle.map  |     1 -
 .../app/main.806d67070af66e18c2fc.bundle.js     |     2 -
 .../app/main.806d67070af66e18c2fc.bundle.js.gz  |   Bin 3657 -> 0 bytes
 .../app/main.806d67070af66e18c2fc.bundle.map    |     1 -
 .../app/main.a69408978854e3a77fb2.bundle.js     |     1 +
 .../app/scripts.2c89ed78f648df44c10f.bundle.js  |    12 +
 .../app/styles.b2328beb0372c051d06d.bundle.js   |     2 -
 .../app/styles.b2328beb0372c051d06d.bundle.map  |     1 -
 .../app/styles.d41d8cd98f00b204e980.bundle.css  |     0
 ....d41d8cd98f00b204e9800998ecf8427e.bundle.css |     2 -
 .../app/vendor.48771018d3da89d3269f.bundle.js   |  2035 ---
 .../vendor.48771018d3da89d3269f.bundle.js.gz    |   Bin 459997 -> 0 bytes
 .../app/vendor.48771018d3da89d3269f.bundle.map  |     1 -
 gateway-service-remoteconfig/pom.xml            |     2 +-
 29 files changed, 11178 insertions(+), 2185 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/83186a5c/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 61d27c8..01310ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,6 +64,7 @@ e2e/*.js
 e2e/*.map
 gateway-admin-ui/src/app/**/*.js
 gateway-admin-ui/src/app/**/*.map
+gateway-admin-ui/package-lock.json
 
 #System Files
 Thumbs.db

http://git-wip-us.apache.org/repos/asf/knox/blob/83186a5c/gateway-admin-ui/README.md
----------------------------------------------------------------------
diff --git a/gateway-admin-ui/README.md b/gateway-admin-ui/README.md
index 40a5d3d..c5e8a4e 100644
--- a/gateway-admin-ui/README.md
+++ b/gateway-admin-ui/README.md
@@ -1,23 +1,7 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
+
 # NgKnoxUi
 
-This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.22-1.
+This project was generated with [Angular CLI](https://cli.angular.io/) version 1.5.3.
 
 ## Development server
 Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
@@ -28,8 +12,22 @@ Run `ng generate component component-name` to generate a new component. You can
 
 ## Build
 
+### Using ant
+Run `ant build-admin-ui`
+
+### For direct Angular builds:
 Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
 
+## Install (Debug)
+Install the Admin UI build into the test gateway home installation
+
+Run `ant install-test-admin-ui`
+
+## Checkin / Release
+Copy the build artifacts of the admin UI to the applications module for check-in
+
+Run `ant promote-admin-ui`
+
 ## Running unit tests
 
 Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

http://git-wip-us.apache.org/repos/asf/knox/blob/83186a5c/gateway-admin-ui/angular-cli.json
----------------------------------------------------------------------
diff --git a/gateway-admin-ui/angular-cli.json b/gateway-admin-ui/angular-cli.json
index 832c4f0..b5caba2 100644
--- a/gateway-admin-ui/angular-cli.json
+++ b/gateway-admin-ui/angular-cli.json
@@ -20,9 +20,12 @@
       "styles": [
         "styles.css"
       ],
-      "scripts": [],
+      "scripts": [
+		  "../node_modules/ace-builds/src-min/ace.js",
+		  "../node_modules/ace-builds/src-min/theme-monokai.js"
+      ],
+	    "environmentSource": "environments/environment.ts",
       "environments": {
-        "source": "environments/environment.ts",
         "dev": "environments/environment.ts",
         "prod": "environments/environment.prod.ts"
       }
@@ -42,18 +45,9 @@
   },
   "defaults": {
     "styleExt": "css",
-    "prefixInterfaces": false,
-    "inline": {
-      "style": false,
-      "template": false
-    },
-    "spec": {
-      "class": false,
-      "component": true,
-      "directive": true,
-      "module": false,
-      "pipe": true,
-      "service": true
+    "component": {
+      "inlineTemplate": false,
+      "spec": true
     }
   }
 }