From 644d755029e318ccc081c36077cf0bfeda13abf2 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Sun, 13 Dec 2015 19:40:30 +0530 Subject: [PATCH 1/3] adding api link for device type page --- .../type-view.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs index d5327320b4..159ad05aba 100644 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs +++ b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs @@ -6,6 +6,7 @@
+

Ingredients


@@ -23,6 +24,7 @@
+ View API   Download
@@ -39,7 +41,7 @@ placeholder="Ex. Lobby_Firealarm" name="deviceName" size="60" required>

- +   
From b1d59d8eda2363db61e31f5240a6b00932455b0c Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Mon, 14 Dec 2015 00:03:35 +0530 Subject: [PATCH 2/3] adding dynamic templates for device types listing --- .../private/conf/device-type.json | 23 +-- .../private/pages/device-type-details.hbs | 151 ------------------ .../public/templates/listing.hbs | 21 +-- .../private/conf/device-type.json | 2 +- .../public/templates/listing.hbs | 30 ---- .../private/conf/device-type.json | 2 +- .../public/templates/listing.hbs | 19 +++ .../private/conf/device-type.json | 2 +- .../public/templates/listing.hbs | 19 +++ 9 files changed, 48 insertions(+), 221 deletions(-) delete mode 100644 features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/pages/device-type-details.hbs delete mode 100644 features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/templates/listing.hbs create mode 100644 features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs create mode 100644 features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/conf/device-type.json b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/conf/device-type.json index a1bdd15a96..fd99106c1b 100644 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/conf/device-type.json +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/conf/device-type.json @@ -1,25 +1,6 @@ { "deviceType": { - "displayName": "Virtual Firealarm", - "image": "/public/cdmf.unit.device.type.virtual_firealarm/images/thumb.png", - "downloadBtnText": "Download", - "ingredients": [ - "Raspberry Pi (Internet Enabled)", - "DHT11 Temperature Sensor", - "LED", - "Buzzer(3v)" - ], - "prepareSteps": [ - "Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.", - "Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.", - "Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS" - ], - "schematicDiagram": "/public/cdmf.unit.device.type.virtual_firealarm/images/schematicsGuide.png", - "quickStartup": [ - "Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files", - "(The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)", - "Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
This will download a zip file named 'Agent.zip'" - ], - "additionalHtml" : "" + "label": "Android Sense", + "category" : "mobile" } } diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/pages/device-type-details.hbs b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/pages/device-type-details.hbs deleted file mode 100644 index 892b231326..0000000000 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/private/pages/device-type-details.hbs +++ /dev/null @@ -1,151 +0,0 @@ -
-

{{@uriParams.deviceType}} Android Sense

-
-

Connect your Android Sense device - to the WSO2 device cloud.

-
-
- -
-
-

Ingredients

-
-

Hardware Requirements

-
-
    - - - - Raspberry Pi (Internet Enabled)
    - - - - DHT11 Temperature Sensor
    - - - - LED
    - - - - Buzzer(3v)
    - -
-
- - - Download - -

-
- -
-

Prepare


-

Get your device ready

-
-
    -

    01 Set up your RaspberryPi device as shown in the schematic below and get the FireAlarm setup.

    -

    02 Connect a monitor to your RaspberryPi via the HDMI cable to get a UI view of the device.

    -

    03 Get the RaspberryPi to connect to the internet (via Ethernet or Wifi) and note its IP_ADDRESS

    -
-
-
- -
-

Schematic Diagram


-

Click on the image to zoom

-
- - - -
-
-
- -
-

Connect (Quick Start)


-

Internet of Things Foundation Quickstart connection

-
-
    -

    01 Click on the 'Create DEB' button above to get the download link for the FireAlarm setup files

    -

    02 (The following commands can be issued by directly typing into the terminal of the device or by an 'ssh' login from a remote PC)

    -

    03 Download the FireAlarm setup files using the following command: 'curl -k < url_link_received_from_the_above_step >> Agent.zip'
    This will download a zip file named 'Agent.zip'

    -
-
-
- -
- - - - - \ No newline at end of file diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs index 78eb9238ae..f4fac14e68 100644 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs @@ -1,14 +1,13 @@ - +
- - +
- {{deviceType.name}} + {{deviceTypeLabel}} - @@ -17,14 +16,4 @@ - - - - - - - - - \ No newline at end of file diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json index f4df5ca45b..d73c4d64ec 100644 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json +++ b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/private/conf/device-type.json @@ -1,6 +1,6 @@ { "deviceType": { - "displayName": "Virtual Firealarm", + "label": "Virtual Firealarm", "category": "iot", "downloadAgentUri": "https://localhost:9443/virtual_firealarm/VirtualFireAlarmDeviceManager/manager/device/virtual_firealarm/download", "downloadAgentLinkGenUri" : "https://localhost:9443/virtual_firealarm/VirtualFireAlarmDeviceManager/manager/device/virtual_firealarm/generate_link" diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/templates/listing.hbs b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/templates/listing.hbs deleted file mode 100644 index 78eb9238ae..0000000000 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/templates/listing.hbs +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - -
- - {{deviceType.name}} - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json index b6586ddde5..3601ecb510 100644 --- a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json +++ b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/conf/device-type.json @@ -1,6 +1,6 @@ { "deviceType": { - "displayName": "Android", + "label": "Android", "category" : "mobile" } } diff --git a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs new file mode 100644 index 0000000000..f4fac14e68 --- /dev/null +++ b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs @@ -0,0 +1,19 @@ + + +
+ +
+ + {{deviceTypeLabel}} + + + + + + + + + + \ No newline at end of file diff --git a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json index 6f2b0650e8..33823e6653 100644 --- a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json +++ b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/private/conf/device-type.json @@ -1,6 +1,6 @@ { "deviceType": { - "displayName": "Windows", + "label": "Windows", "category" : "mobile" } } diff --git a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs new file mode 100644 index 0000000000..3070b1e144 --- /dev/null +++ b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs @@ -0,0 +1,19 @@ + + +
+ +
+ + {{deviceTypeLabel}} + + + + + + + + + + \ No newline at end of file From f29d41a270d7b7c8a882eb256a37d128dbac934f Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Mon, 14 Dec 2015 00:48:06 +0530 Subject: [PATCH 3/3] styling for device type select --- .../public/templates/listing.hbs | 6 +++--- .../public/templates/listing.hbs | 6 +++--- .../public/templates/listing.hbs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs index f4fac14e68..2563f03ced 100644 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/templates/listing.hbs @@ -8,12 +8,12 @@ data-grid-label="Type">{{deviceTypeLabel}} + data-click-event="remove-form" class="btn col-md-12"> - + - + Select \ No newline at end of file diff --git a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs index f4fac14e68..2563f03ced 100644 --- a/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs +++ b/features/device-mgt-mdm-android-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/public/templates/listing.hbs @@ -8,12 +8,12 @@ data-grid-label="Type">{{deviceTypeLabel}} + data-click-event="remove-form" class="btn col-md-12"> - + - + Select \ No newline at end of file diff --git a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs index 3070b1e144..c50b827052 100644 --- a/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs +++ b/features/device-mgt-mdm-windows-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.type-view/public/templates/listing.hbs @@ -8,12 +8,12 @@ data-grid-label="Type">{{deviceTypeLabel}} + data-click-event="remove-form" class="btn col-md-12"> - + - + Select \ No newline at end of file