Commit 3adb52b7 authored by kpandey's avatar kpandey

Added new xml's and updated landingDashboard xml with new changes.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203133 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a4c451a2
consist all the dashboard cards which on click move on that particullar dashboard.
Provide login history password history and device history of the following user.
\ No newline at end of file
<?xml version='1.0'?>
<Root>
<filters display='N'>
</filters>
<page_title><![CDATA[All Login History]]></page_title>
<datasource id='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/login]]></datasource>
<view id='1' name='SalesOrder'>
<component datasource='1' id='1' type='FEED'>
<component_icon><![CDATA[missedcalls.svg]]></component_icon>
<ComponentTitle><![CDATA[All Login History]]></ComponentTitle>
<ComponentName><![CDATA[All Login History]]></ComponentName>
<component_css><![CDATA[]]>
</component_css>
<component_descr><![CDATA[]]>
</component_descr>
<obj_name><![CDATA[]]>
</obj_name>
<layout protoType='card'>
<html><![CDATA[
<div class="ext-dashboard">
<div *ngFor="let allLoginData of context.lastLogin" style="padding-bottom: 1px;cursor:pointer;">
<details class="details-animated">
<summary>
<div class="summDetails">
<div class="sum-content" style="padding-top: 8px;">
<div class="sumInfo">
<img *ngIf="allLoginData.DEVICE_TYPE == 'Browser'" class="sumImg" src='angplugin/assets/images/svg/desktop.svg'/>
<img *ngIf="allLoginData.DEVICE_TYPE == 'Android Tablet'" class="sumImg" src='angplugin/assets/images/svg/tablet.svg'/>
<img *ngIf="allLoginData.DEVICE_TYPE == 'Android Mobile'" class="sumImg" src='angplugin/assets/images/svg/Mobile.svg'/>
</div>
<div class="sumInfoRes">
<span class="sumOsName">{{allLoginData.DEVICE_TYPE}}</span>
<span class="sumInfoLoginData">Device Logged in : {{allLoginData.LOGIN_TIME | amTimeAgo }}</span>
</div>
</div>
<div class="timeline-expand-icon"></div>
</div>
</summary>
<div class="summaryContent">
<div *ngIf="allLoginData.OS_NAME" class="osHistory">
<span style="font-size:12px;color:#666;">Operating System</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="allLoginData.OS_NAME == 'Linux'" class="osIconImg" src='angplugin/assets/images/Linux.png'/>
<img *ngIf="allLoginData.OS_NAME == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="allLoginData.OS_NAME == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
</div>
<div class="summaryInfoRes">
<span class="summarryOsName">{{allLoginData.OS_NAME}}</span>
</div>
</div>
</div>
<div *ngIf="allLoginData.DEVICE_TYPE" class="osHistory">
<span style="font-size:12px;color:#666;">Browser</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="allLoginData.OS_NAME == 'Linux'" class="osIconImg" src='angplugin/assets/images/chrome.png'/>
<img *ngIf="allLoginData.OS_NAME == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="allLoginData.OS_NAME == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
</div>
<div class="summaryInfoRes">
<span class="summarryOsName">{{allLoginData.CLIENTA_APP}}</span>
<span style="padding-left: 5px;font-size: 10px;">{{allLoginData.CLIENT_APP_VER}}</span>
</div>
</div>
</div>
</div>
</details>
</div>
</div>
]]></html>
</layout>
</component>
</view>
</Root>
<?xml version='1.0'?>
<Root>
<filters display='N'>
</filters>
<page_title><![CDATA[Device History]]></page_title>
<datasource id='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/device]]></datasource>
<view id='1' name='SalesOrder'>
<component datasource='1' id='1' type='FEED'>
<component_icon><![CDATA[my_device.svg]]></component_icon>
<ComponentTitle><![CDATA[Device History]]></ComponentTitle>
<ComponentName><![CDATA[Device History]]></ComponentName>
<component_css><![CDATA[]]>
</component_css>
<component_descr><![CDATA[]]>
</component_descr>
<layout protoType='card'>
<html><![CDATA[
<div class="ext-dashboard">
<div *ngFor="let deviceHisData of context.deviceList" style="padding-bottom: 1px;cursor:pointer;">
<details class="details-animated">
<summary>
<div class="summDetails">
<div class="sum-content" style="padding-top: 8px;">
<div class="sumInfo">
<img *ngIf="deviceHisData.DEVICE_TYPE == 'Browser'" class="sumImg" src='angplugin/assets/images/svg/desktop.svg'/>
<img *ngIf="deviceHisData.DEVICE_TYPE == 'Android Tablet'" class="sumImg" src='angplugin/assets/images/svg/tablet.svg'/>
<img *ngIf="deviceHisData.DEVICE_TYPE == 'Android Mobile'" class="sumImg" src='angplugin/assets/images/svg/Mobile.svg'/>
</div>
<div class="sumInfoRes">
<span class="sumOsName">{{deviceHisData.DEVICE_MAKE}}</span>
<span class="sumInfoLoginData">Device Logged in : {{deviceHisData.CHG_DATE | amTimeAgo }}</span>
</div>
</div>
<div class="timeline-expand-icon"></div>
</div>
</summary>
<div class="row summaryContent">
<div *ngIf="deviceHisData.DEVICE_OS" class="osHistory">
<span style="font-size:12px;color:#666;">Operating System</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="deviceHisData.DEVICE_OS == 'Linux'" class="osIconImg" src='angplugin/assets/images/Linux.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
</div>
<div class="summaryInfoRes">
<span class="summarryOsName">{{deviceHisData.DEVICE_OS}}</span>
</div>
</div>
</div>
<div *ngIf="deviceHisData.DEVICE_TYPE" class="osHistory">
<span style="font-size:12px;color:#666;">Browser</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="deviceHisData.DEVICE_OS == 'Linux'" class="osIconImg" src='angplugin/assets/images/chrome.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
</div>
<div class="summaryInfoRes">
<span *ngIf="deviceHisData.DEVICE_TYPE != 'Browser'" class="summarryOsName">{{deviceHisData.DEVICE_TYPE}}</span>
<span *ngIf="deviceHisData.DEVICE_TYPE == 'Browser'" class="summarryOsName">Chrome</span>
</div>
</div>
</div>
</div>
</details>
</div>
</div>
]]></html>
</layout>
</component>
</view>
</Root>
<?xml version='1.0'?>
<Root>
<filters display='N'>
</filters>
<page_title><![CDATA[Dashboard Links]]></page_title>
<datasource id='1' dataSourceType='jsondata'><![CDATA[{
"image" : "logo_company.png",
"title" : "Proteus Vision",
"subtitle" : "Simple &#149; Smart &#149; Intelligent",
"quicklinks" : [
{
"bgImage":"linear-gradient(-45deg, #007bab, #00c9ff)",
"image" : "location2.svg",
"title" : "My Places",
"subtitle1" : " getUserActSummary('PTE_COUNT') ",
"execFunction" : "openComponentANG('place-time-entity', 'component');"
},
{
"bgImage":"linear-gradient(-45deg, #e47842, #ffac83)",
"image" : "my_activities.svg",
"title" : "My Activities",
"subtitle1" : "getUserActSummary('LAST_LOGIN')",
"subtitle1Click" : "event.stopPropagation(); openComponentANG('allLoginHistory', 'dashboard'); ",
"subtitle2" : "getUserActSummary('LAST_PASS_CHG')",
"subtitle2Click" : "event.stopPropagation(); openComponentANG('passwordHistory', 'dashboard'); ",
"execFunction" : "openComponentANG('accountActivity', 'dashboard');"
},
{
"bgImage":"linear-gradient(-45deg, #7053cc, #c3b3f7)",
"image" : "content_library.svg",
"title" : "Content Library",
"subtitle1" : "getUserActSummary('CLM_COUNT')",
"execFunction" : "openComponentANG('contentLibrary', 'dashboard');"
},
{
"bgImage":"linear-gradient(-45deg, #01a27f, #00e1af)",
"image" : "my_device.svg",
"title" : "My Devices",
"subtitle1" : "getUserActSummary('DEVICE_OWNER')",
"execFunction" : " openComponentANG('deviceHistory', 'dashboard'); "
},
{
"bgImage":"linear-gradient(-45deg, #333333, #666666)",
"image" : "background_progress.svg",
"title" : "Background Job",
"subtitle1" : " 'Background Job' ",
"execFunction" : "openComponentANG('backgroundJobStatus', 'dashboard');"
},
{
"bgImage":"linear-gradient(-45deg, #007bab, #00c9ff)",
"image" : "wallet.svg",
"title" : "My Wallet",
"subtitle1" : " 'My Wallet' ",
"obj_name_rights" : "my_expense"
},
{
"bgImage":"linear-gradient(-45deg, #e47842, #ffac83)",
"image" : "todays.svg",
"title" : "Today's Calls",
"subtitle1" : " getTodaysDashboardStatus('CUST_TYPE') ",
"subtitle2" : " getTodaysDashboardStatus('LISTED') ",
"execFunction" : "openComponentANG('todays', 'dashboard');",
"displayLink" : "Y"
},
{
"bgImage":"linear-gradient(-45deg, #7053cc, #c3b3f7)",
"image" : "auto_sync.svg",
"imageFunction" : " getAutoSyncImgClass() ",
"title" : "Auto Sync",
"subtitle1" : " getAutoSyncStatus('PENDING') ",
"subtitle2" : " getAutoSyncStatus('FAILED') ",
"execFunction" : "openTransactionGWT(' ','sync_dcr','G','Sync');",
"obj_name_rights" : "strg_meet_dcr_realtime_wiz"
}
],
"preload_functions" : [
"preloadDashboardData({'url' : '/ibase/TodaysServlet', 'value' : 'TodaysServlet', 'type' : 'servlet'});",
"preloadDashboardData({'url' : '', 'value' : 'SPRS_CUST_INFO', 'type' : 'datamodel'});",
"preloadDashboardMetadata('customerInfo');",
"preloadDashboardData({'url' : '/ibase/rest/dashboard/userActSummary', 'value' : 'UserActSummary', 'type' : 'servlet'});"
]
}]]></datasource>
<view id='1' name='Default' type='flatonly'>
<component datasource='1' id='1' type='FEED'>
<component_icon><![CDATA[]]>
</component_icon>
<ComponentTitle><![CDATA[Dashboard Links]]></ComponentTitle>
<ComponentName><![CDATA[Dashboard Links]]></ComponentName>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]>
</component_descr>
<layout protoType='card'>
<html><![CDATA[
<div class="quicklink-dashboard">
<div class="qd-header">
<div class="qd-header-content">
<span class="icon-circle"><img src='angplugin/assets/images/{{context.image}}' /></span>
<span class="first-line">{{context.title}}</span>
<span class="second-line" [innerHTML]="context.subtitle"></span>
</div>
</div>
<div class="row feedDataInfo">
<div *ngFor="let quicklink of context.quicklinks" >
<div *ngIf="quicklink.displayLink == 'Y' " class="small-12 medium-6 large-4 column quicklink"
[style.background-image]="quicklink.bgImage" (click)="evalFunction(quicklink.execFunction)">
<div class="feedContetContainer">
<div *ngIf="quicklink.image.indexOf('/') == -1 " class="quicklink-icon">
<img src='angplugin/assets/images/svg/{{quicklink.image}}' [ngClass]="evalFunction(quicklink.imageFunction)" />
</div>
<div *ngIf="quicklink.image.indexOf('/') != -1 " class="quicklink-icon">
<img src='{{quicklink.image}}' [ngClass]="evalFunction(quicklink.imageFunction)" />
</div>
<div class="quicklink-content">
<span class="quicklink-content-first-line">{{quicklink.title}}</span>
<span *ngIf="quicklink.subtitle1Click" class="quicklink-content-second-line" (click)="evalFunction(quicklink.subtitle1Click)">
<a href='#' class="quicklinksubtitle1Click">{{evalFunction(quicklink.subtitle1)}}</a>
</span>
<span *ngIf="!quicklink.subtitle1Click"
class="quicklink-content-second-line">{{evalFunction(quicklink.subtitle1)}}
</span>
<span *ngIf="quicklink.subtitle2Click" class="quicklink-content-second-line" (click)="evalFunction(quicklink.subtitle2Click)">
<a href='#' class="quicklinksubtitle2Click">{{evalFunction(quicklink.subtitle2)}}</a>
</span>
<span *ngIf="!quicklink.subtitle2Click"
class="quicklink-content-second-line">{{evalFunction(quicklink.subtitle2)}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
]]></html>
</layout>
</component>
</view>
</Root>
<?xml version='1.0'?>
<Root>
<filters display='N'>
</filters>
<page_title><![CDATA[Password History]]></page_title>
<datasource id='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/password]]></datasource>
<view id='1' name='SalesOrder'>
<component datasource='1' id='1' type='FEED'>
<component_icon><![CDATA[missedcalls.svg]]></component_icon>
<ComponentTitle><![CDATA[Password History]]></ComponentTitle>
<ComponentName><![CDATA[Password History]]></ComponentName>
<component_css><![CDATA[]]>
</component_css>
<component_descr><![CDATA[]]>
</component_descr>
<obj_name><![CDATA[]]>
</obj_name>
<layout protoType='card'>
<html><![CDATA[
<ng-container *ngIf="context.passwrdHistory && context.passwrdHistory.length &gt; 0 ; else nodata">
<div *ngFor="let passChgHisData of context.passwrdHistory">
<div class="summDetails">
<div class="sum-content" style="padding-top: 8px;">
<div class="sumInfo">
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Browser'" class="sumImg" src='angplugin/assets/images/svg/desktop.svg' />
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Android Tablet'" class="sumImg" src='angplugin/assets/images/svg/tablet.svg' />
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Android Mobile'" class="sumImg" src='angplugin/assets/images/svg/Mobile.svg' />
</div>
<div class="sumInfoRes">
<span class="sumOsName">{{passChgHisData.DEVICE_MAKE}}</span>
<span class="sumInfoLoginData">Last Password Changed : {{passChgHisData.PASS_CHG_DATE | amTimeAgo }}</span>
</div>
</div>
</div>
</div>
</ng-container>
<ng-template #nodata >
<div> No data to display</div>
</ng-template>
]]></html>
</layout>
</component>
</view>
</Root>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment