-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lcx960324/master
basic functions finished
- Loading branch information
Showing
18 changed files
with
351 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ angular.module('Macaron_WebClient', [ | |
'basicInfo', | ||
'status', | ||
'list', | ||
'logs' | ||
'logs', | ||
'live' | ||
]); |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
/** | ||
* Created by Lawrence on 16/9/10. | ||
*/ | ||
'use strict' | ||
'use strict'; | ||
|
||
angular. | ||
module('list'). | ||
component('list', { | ||
templateUrl: 'list/list.template.html', | ||
controller: function basicInfoController() { | ||
|
||
controller: function listController($http) { | ||
var self = this; | ||
self.devices = [ | ||
// { | ||
// deviceName: 'Test1', | ||
// registerTime: '2016.1.1', | ||
// deviceLocate: 'B623' | ||
// } | ||
]; | ||
$http({ | ||
method: 'POST', | ||
url: 'http://192.168.50.197:8082/user/getDevices.do', | ||
withCredentials: true | ||
}).success(function(data) { | ||
if(data) { | ||
self.devices = data; | ||
} | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Created by Lawrence on 16/9/11. | ||
*/ | ||
'use strict'; | ||
|
||
angular. | ||
module('live'). | ||
component('live', { | ||
templateUrl: 'live/live.template.html', | ||
controller: function liveController() { | ||
var self = this; | ||
self.deviceList = [ | ||
{ | ||
deviceName: 'Test1', | ||
videoUrl: 'assets/movie.ogg' | ||
}, | ||
{ | ||
deviceName: 'Test2', | ||
videoUrl: 'assets/movie.ogg' | ||
} | ||
]; | ||
self.selected = self.deviceList[0]; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Created by Lawrence on 16/9/11. | ||
*/ | ||
'use strict'; | ||
|
||
angular.module('live', []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
<div class="uk-container uk-container-center"> | ||
<div class="uk-button-dropdown" data-uk-dropdown="{mode:'click'}"> | ||
<button class="uk-button" style="margin: 10px 0;">{{$ctrl.selected.deviceName}} <i class="uk-icon-caret-down"></i></button> | ||
<div class="uk-dropdown uk-dropdown-close"> | ||
<ul class="uk-nav uk-nav-navbar"> | ||
<li ng-repeat="device in $ctrl.deviceList"> | ||
<a ng-click="$ctrl.selected = device">{{device.deviceName}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="uk-grid uk-grid-small" data-uk-grid-match> | ||
<video src="{{$ctrl.selected.videoUrl}}" controls="controls"></video> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.