From 9b38eddd092c7c5a1d2ac23f7fb3d325b813f22d Mon Sep 17 00:00:00 2001 From: GPrathap Date: Sun, 13 Mar 2016 22:01:28 +0530 Subject: [PATCH] relocated ui component --- .../device-view.hbs | 127 -------- .../device-view.js | 57 ---- .../device-view.json | 4 - .../policy-edit.hbs | 18 -- .../policy-edit.json | 3 - .../policy-view.hbs | 18 -- .../policy-view.json | 3 - .../policy-wizard.hbs | 18 -- .../policy-wizard.json | 3 - .../type-view.hbs | 282 ------------------ .../type-view.json | 20 -- modules/samples/doormanager/feature/pom.xml | 13 +- 12 files changed, 8 insertions(+), 558 deletions(-) delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.hbs delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.js delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.json delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.hbs delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.json delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.hbs delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.json delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.hbs delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.json delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.hbs delete mode 100644 modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.json diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.hbs b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.hbs deleted file mode 100644 index 7506942d..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.hbs +++ /dev/null @@ -1,127 +0,0 @@ - -{{#zone "topCss"}} - -{{/zone}} - -{{#zone "device-thumbnail"}} - -{{/zone}} - -{{#zone "operation-status"}} - -{{/zone}} - -{{#zone "device-opetations"}} -
- Operations -
-
- {{unit "iot.unit.device.operation-bar" device=device}} -
-{{/zone}} - -{{#zone "device-detail-properties"}} -
- -
-
-
-
Device Statistics
- {{unit "iot.unit.device.stats" device=device}} -
-
-
Policy Compliance -
-
-
Policies
-
- -
-
- No policies found -
-
-
-
-
- - - - - Add device specific policy -
-
-
Operations Log
-
- -
-
- Not available yet -
-
-
-
-
-
-
-
-{{/zone}} - - - diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.js b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.js deleted file mode 100644 index 646a4db0..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. 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. - */ - - -/* - * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. 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. - */ - -function onRequest(context) { - - var log = new Log("device-view.js"); - var deviceType = context.uriParams.deviceType; - var deviceId = request.getParameter("id"); - - var getProperty = require("process").getProperty; - var port = getProperty("carbon.https.port"); - var host = getProperty("carbon.local.ip"); - var sessionId = session.getId(); - if (deviceType != null && deviceType != undefined && deviceId != null && deviceId != undefined) { - var deviceModule = require("/app/modules/device.js").deviceModule; - var device = deviceModule.viewDevice(deviceType, deviceId); - - if (device && device.status != "error") { - log.info(device); - return {"device": device, "port" : port, "host" : host , "sessionId" : sessionId}; - } - } -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.json b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.json deleted file mode 100644 index 3c9e4e4c..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.device-view/device-view.json +++ /dev/null @@ -1,4 +0,0 @@ - -{ - "version": "1.0.0" -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.hbs b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.hbs deleted file mode 100644 index cf80b006..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.hbs +++ /dev/null @@ -1,18 +0,0 @@ - -{{unit "iot.unit.policy.edit"}} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.json b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.json deleted file mode 100644 index 9eecd8f5..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-edit/policy-edit.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "1.0.0" -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.hbs b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.hbs deleted file mode 100644 index c2a4706b..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.hbs +++ /dev/null @@ -1,18 +0,0 @@ - -{{unit "iot.unit.policy.view"}} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.json b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.json deleted file mode 100644 index 9eecd8f5..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-view/policy-view.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "1.0.0" -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.hbs b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.hbs deleted file mode 100644 index 7b94f953..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.hbs +++ /dev/null @@ -1,18 +0,0 @@ - -{{unit "iot.unit.policy.wizard"}} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.json b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.json deleted file mode 100644 index 9eecd8f5..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.policy-wizard/policy-wizard.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "1.0.0" -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.hbs b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.hbs deleted file mode 100644 index 16c36759..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.hbs +++ /dev/null @@ -1,282 +0,0 @@ -
-

Door Manager

-
-
- -
- -
- -
- - -
- -
- -

What it Does

-
-

Connect an Automatic Door Locker to WSO2 IoT Server and control and view current state - of door locker.

-
-

What You Need

-
- -
- - View API   - Register New Lock Safe - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -

-
- - -
-

Prepare

-
- -
-
- -
-

SCHEMATIC DIAGRAM

-
-

Click on the image to zoom

-
- - - -
-
-
- - -
-

Try Out

-
- -
- -

Click on the image to zoom

-
- - - -
- -
- -{{#zone "topCss"}} - -{{/zone}} - -{{#zone "bottomJs"}} - {{js "/js/download.js"}} - {{js "/js/jquery.validate.js"}} -{{/zone}} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.json b/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.json deleted file mode 100644 index 2def3808..00000000 --- a/modules/samples/doormanager/feature/feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.doormanager.type-view/type-view.json +++ /dev/null @@ -1,20 +0,0 @@ -/**/ -{ - "version": "1.0.0" -} \ No newline at end of file diff --git a/modules/samples/doormanager/feature/pom.xml b/modules/samples/doormanager/feature/pom.xml index 66655a65..28e141e1 100644 --- a/modules/samples/doormanager/feature/pom.xml +++ b/modules/samples/doormanager/feature/pom.xml @@ -15,18 +15,21 @@ ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. - --> + --> + + org.homeautomation doormanager 1.0.0-SNAPSHOT ../pom.xml - feature + doormanager-feature 4.0.0 pom 1.0.0-SNAPSHOT - - feature - + + feature + \ No newline at end of file