Merge pull request #867 from rasika/fix-1142

Fixing UX/UI issues in Virtual Fire Alarm and several other places
revert-dabc3590
Rasika Perera 7 years ago committed by GitHub
commit 5a5372d421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,10 +22,10 @@ import org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.core.AgentConstants
import org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.core.AgentManager; import org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.core.AgentManager;
import org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.virtual.VirtualHardwareManager; import org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.virtual.VirtualHardwareManager;
import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.net.URI;
import java.net.URL; import java.net.URL;
import java.util.Calendar;
import javax.swing.*;
public class AgentUI extends JFrame { public class AgentUI extends JFrame {
@ -193,8 +193,10 @@ public class AgentUI extends JFrame {
lblAgentName.setHorizontalAlignment(SwingConstants.LEFT); lblAgentName.setHorizontalAlignment(SwingConstants.LEFT);
lblAgentName.setText("Device Name: " + AgentManager.getInstance().getDeviceName()); lblAgentName.setText("Device Name: " + AgentManager.getInstance().getDeviceName());
Calendar now = Calendar.getInstance();
int currentYear = now.get(Calendar.YEAR);
jLabel2.setHorizontalAlignment(SwingConstants.CENTER); jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
jLabel2.setText("Copyright (c) 2015, WSO2 Inc."); jLabel2.setText("Copyright (c) " + currentYear + ", WSO2 Inc.");
jPanel1.setBackground(new Color(220, 220, 220)); jPanel1.setBackground(new Color(220, 220, 220));

@ -1,6 +1,6 @@
{ {
"deviceType": { "deviceType": {
"label": "Virtual Firealarm", "label": "Virtual Fire Alarm",
"category": "virtual", "category": "virtual",
"downloadAgentUri": "virtual_firealarm/device/download", "downloadAgentUri": "virtual_firealarm/device/download",
"scopes" : [ "scopes" : [

@ -39,7 +39,7 @@
</li> </li>
<li> <li>
<span class="badge">STEP 02</span> <span class="badge">STEP 02</span>
Follow the steps under <a href="#prepare">[Prepare]</a> Follow the steps under <a href="#prepare">[Prepare]</a> section.
</li> </li>
<li> <li>
<span class="badge">STEP 03</span> <span class="badge">STEP 03</span>
@ -79,7 +79,7 @@
<hr> <hr>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x"> <div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<div class="panel-body col-centered text-center"> <div class="panel-body col-centered text-center">
<h3>Name your device and download the agent from following link.</h3> <h3>Name your device and download the agent.</h3>
<br /> <br />
<form id="downloadForm" method="GET" <form id="downloadForm" method="GET"
action="{{@app.context}}/api/devices/sketch/download"> action="{{@app.context}}/api/devices/sketch/download">
@ -207,11 +207,11 @@
</li> </li>
<li class="padding-top-double"> <li class="padding-top-double">
<span class="badge">02</span> <span class="badge">02</span>
Navigate to the unzipped agent directory via the terminal. Navigate to the unzipped Agent folder via the terminal.
</li> </li>
<li class="padding-top-double"> <li class="padding-top-double">
<span class="badge">03</span> <span class="badge">03</span>
Start the agent using the <span style="font-family: monospace;">sh start-device.sh</span> command. Run this command: <span style="font-family: monospace;">sh start-device.sh</span>.
</li> </li>
</ul> </ul>
<br> <br>

@ -1,7 +1,7 @@
{ {
"deviceType": { "deviceType": {
"label": "Android", "label": "Android",
"virtualLabel": "virtual Android", "virtualLabel": "Virtual Android",
"category": "hybrid", "category": "hybrid",
"analyticsEnabled": "false", "analyticsEnabled": "false",
"groupingEnabled": "true", "groupingEnabled": "true",

Loading…
Cancel
Save