mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Added translate to everything.
Added new version update modal.
This commit is contained in:
parent
1e0a145490
commit
6b67d66a93
22 changed files with 157 additions and 89 deletions
|
@ -1,24 +0,0 @@
|
||||||
.stf-fatal-message .dialog-header-error {
|
|
||||||
background-color: #d2322d;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stf-fatal-message .dialog-header-wait {
|
|
||||||
background-color: #428bca;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stf-fatal-message .dialog-header-notify {
|
|
||||||
background-color: #eeeeee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stf-fatal-message .dialog-header-confirm {
|
|
||||||
background-color: #333333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stf-fatal-message .dialog-header-error span,
|
|
||||||
.stf-fatal-message .dialog-header-error h4,
|
|
||||||
.stf-fatal-message .dialog-header-wait span,
|
|
||||||
.stf-fatal-message .dialog-header-wait h4,
|
|
||||||
.stf-fatal-message .dialog-header-confirm span,
|
|
||||||
.stf-fatal-message .dialog-header-confirm h4 {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
|
@ -8,5 +8,5 @@ module.exports = angular.module('stf/common-ui', [
|
||||||
require('./ng-enter').name,
|
require('./ng-enter').name,
|
||||||
require('./tooltips').name,
|
require('./tooltips').name,
|
||||||
//require('./tree').name,
|
//require('./tree').name,
|
||||||
require('./fatal-message').name
|
require('./modals').name
|
||||||
])
|
])
|
||||||
|
|
4
res/app/components/stf/common-ui/modals/common/index.js
Normal file
4
res/app/components/stf/common-ui/modals/common/index.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require('./modals.css')
|
||||||
|
|
||||||
|
module.exports = angular.module('stf.modals.common', [
|
||||||
|
])
|
28
res/app/components/stf/common-ui/modals/common/modals.css
Normal file
28
res/app/components/stf/common-ui/modals/common/modals.css
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
.stf-modal {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.stf-modal .dialog-header-error {
|
||||||
|
background-color: #d2322d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stf-modal .dialog-header-wait {
|
||||||
|
background-color: #428bca;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stf-modal .dialog-header-notify {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stf-modal .dialog-header-confirm {
|
||||||
|
background-color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stf-modal .dialog-header-error span,
|
||||||
|
.stf-modal .dialog-header-error h4,
|
||||||
|
.stf-modal .dialog-header-wait span,
|
||||||
|
.stf-modal .dialog-header-wait h4,
|
||||||
|
.stf-modal .dialog-header-confirm span,
|
||||||
|
.stf-modal .dialog-header-confirm h4 {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
|
@ -29,7 +29,6 @@ module.exports = function FatalMessageServiceFactory($modal, $location, $route)
|
||||||
})
|
})
|
||||||
|
|
||||||
modalInstance.result.then(function (selectedItem) {
|
modalInstance.result.then(function (selectedItem) {
|
||||||
console.log(selectedItem)
|
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
||||||
})
|
})
|
|
@ -1,18 +1,18 @@
|
||||||
.stf-fatal-message
|
.stf-fatal-message.stf-modal
|
||||||
.modal-header.dialog-header-error
|
.modal-header.dialog-header-error
|
||||||
button(type='button', ng-click='cancel()').close ×
|
button(type='button', ng-click='cancel()').close ×
|
||||||
h4.modal-title.text-danger
|
h4.modal-title.text-danger
|
||||||
i.fa.fa-warning
|
i.fa.fa-warning
|
||||||
span Device was disconnected
|
span(translate) Device was disconnected
|
||||||
.modal-body.text-danger Device is not in use anymore
|
.modal-body.text-danger(translate) Device is not in use anymore
|
||||||
.modal-footer
|
.modal-footer
|
||||||
button.btn.btn-primary(type='button', ng-click='ok()')
|
button.btn.btn-primary(type='button', ng-click='ok()')
|
||||||
i.fa.fa-refresh
|
i.fa.fa-refresh
|
||||||
span Try to reconnect
|
span(translate) Try to reconnect
|
||||||
button.btn.btn-success(ng-click='second()')
|
button.btn.btn-success(ng-click='second()')
|
||||||
i.fa.fa-sitemap
|
i.fa.fa-sitemap
|
||||||
span Go to Device List
|
span(translate) Go to Device List
|
||||||
//button.btn.btn-warning(translate, ng-click='cancel()') Close
|
//button.btn.btn-warning(ng-click='cancel()') Close
|
||||||
|
|
||||||
//'<div class="modal-header dialog-header-error">
|
//'<div class="modal-header dialog-header-error">
|
||||||
// <button type="button" class="close" ng-click="close()">×</button>
|
// <button type="button" class="close" ng-click="close()">×</button>
|
|
@ -1,6 +1,4 @@
|
||||||
require('./fatal-message.css')
|
|
||||||
|
|
||||||
module.exports = angular.module('stf.fatal-message', [
|
module.exports = angular.module('stf.fatal-message', [
|
||||||
|
require('stf/common-ui/modals/common').name
|
||||||
])
|
])
|
||||||
.factory('FatalMessageService', require('./fatal-message-service'))
|
.factory('FatalMessageService', require('./fatal-message-service'))
|
4
res/app/components/stf/common-ui/modals/index.js
Normal file
4
res/app/components/stf/common-ui/modals/index.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
module.exports = angular.module('stf.modals', [
|
||||||
|
require('./fatal-message').name,
|
||||||
|
require('./version-update').name
|
||||||
|
])
|
|
@ -0,0 +1,4 @@
|
||||||
|
module.exports = angular.module('stf.version-update', [
|
||||||
|
require('stf/common-ui/modals/common').name
|
||||||
|
])
|
||||||
|
.factory('VersionUpdateService', require('./version-update-service'))
|
|
@ -0,0 +1,27 @@
|
||||||
|
module.exports = function FatalMessageServiceFactory($modal, $location, socket) {
|
||||||
|
var service = {}
|
||||||
|
|
||||||
|
var ModalInstanceCtrl = function ($scope, $modalInstance, device) {
|
||||||
|
$scope.ok = function () {
|
||||||
|
$modalInstance.close(true)
|
||||||
|
$location.path('/')
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.cancel = function () {
|
||||||
|
$modalInstance.dismiss('cancel')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
service.open = function () {
|
||||||
|
var modalInstance = $modal.open({
|
||||||
|
template: require('./version-update.jade'),
|
||||||
|
controller: ModalInstanceCtrl
|
||||||
|
})
|
||||||
|
|
||||||
|
modalInstance.result.then(function (selectedItem) {
|
||||||
|
}, function () {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return service
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
describe('VersionUpdateService', function() {
|
||||||
|
|
||||||
|
beforeEach(module('stf.version-update'));
|
||||||
|
|
||||||
|
it('should ...', inject(function(FatalMessageService) {
|
||||||
|
|
||||||
|
//expect(FatalMessageService.doSomething()).toEqual('something');
|
||||||
|
|
||||||
|
}));
|
||||||
|
|
||||||
|
})
|
|
@ -0,0 +1,11 @@
|
||||||
|
.stf-fatal-message.stf-modal
|
||||||
|
.modal-header.dialog-header-notify
|
||||||
|
button(type='button', ng-click='cancel()').close ×
|
||||||
|
h4.modal-title.text-danger
|
||||||
|
i.fa.fa-exclamation-circle.fa-fw
|
||||||
|
span(translate) Version Update
|
||||||
|
.modal-body(translate) A new version of STF is available
|
||||||
|
.modal-footer
|
||||||
|
button.btn.btn-primary(type='button', ng-click='ok()')
|
||||||
|
i.fa.fa-refresh
|
||||||
|
span(translate) Reload
|
|
@ -1,2 +1,4 @@
|
||||||
module.exports = angular.module('stf/socket', [])
|
module.exports = angular.module('stf/socket', [
|
||||||
|
require('stf/common-ui/modals/version-update').name
|
||||||
|
])
|
||||||
.factory('socket', require('./socket-service'))
|
.factory('socket', require('./socket-service'))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var io = require('socket.io')
|
var io = require('socket.io')
|
||||||
|
|
||||||
module.exports = function SocketFactory($rootScope) {
|
module.exports = function SocketFactory($rootScope, VersionUpdateService) {
|
||||||
var socket = io.connect(null, {
|
var socket = io.connect(null, {
|
||||||
reconnect: false
|
reconnect: false
|
||||||
})
|
})
|
||||||
|
@ -26,6 +26,10 @@ module.exports = function SocketFactory($rootScope) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
socket.on('outdated', function () {
|
||||||
|
VersionUpdateService.open()
|
||||||
|
})
|
||||||
|
|
||||||
socket.on('socket.ip', function(ip) {
|
socket.on('socket.ip', function(ip) {
|
||||||
$rootScope.$apply(function() {
|
$rootScope.$apply(function() {
|
||||||
socket.ip = ip
|
socket.ip = ip
|
||||||
|
|
|
@ -6,49 +6,49 @@
|
||||||
div
|
div
|
||||||
h6(translate) Special Keys
|
h6(translate) Special Keys
|
||||||
div.special-keys-buttons
|
div.special-keys-buttons
|
||||||
button(title='Power', ng-click='press("power")').btn.btn-danger
|
button(tooltip='{{ "Power" | translate }}', ng-click='press("power")').btn.btn-danger
|
||||||
i.fa.fa-power-off
|
i.fa.fa-power-off
|
||||||
button(title='Camera', ng-click='press("camera")').btn.btn-primary
|
button(tooltip='{{ "Camera" | translate }}', ng-click='press("camera")').btn.btn-primary
|
||||||
i.fa.fa-camera
|
i.fa.fa-camera
|
||||||
button(title='Switch Charset', ng-click='press("switch_charset")').btn.btn-primary.btn-info
|
button(tooltip='{{ "Switch Charset" | translate }}', ng-click='press("switch_charset")').btn.btn-primary.btn-info
|
||||||
i.fa Aa
|
i.fa Aa
|
||||||
button(title='Search', ng-click='press("search")').btn.btn-primary
|
button(tooltip='{{ "Search" | translate }}', ng-click='press("search")').btn.btn-primary
|
||||||
i.fa.fa-search
|
i.fa.fa-search
|
||||||
|
|
||||||
h6(translate) Volume
|
h6(translate) Volume
|
||||||
.btn-group
|
.btn-group
|
||||||
button(title='Mute', ng-click='press("mute")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Mute" | translate }}', ng-click='press("mute")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-volume-off
|
i.fa.fa-volume-off
|
||||||
button(title='Volume Down', ng-click='press("volume_down")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Volume Down" | translate }}', ng-click='press("volume_down")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-volume-down
|
i.fa.fa-volume-down
|
||||||
button(title='Volume Up', ng-click='press("volume_up")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Volume Up" | translate }}', ng-click='press("volume_up")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-volume-up
|
i.fa.fa-volume-up
|
||||||
|
|
||||||
h6(translate) Media
|
h6(translate) Media
|
||||||
.btn-group
|
.btn-group
|
||||||
button(title='Rewind', ng-click='press("media_rewind")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Rewind" | translate }}', ng-click='press("media_rewind")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-fast-backward
|
i.fa.fa-fast-backward
|
||||||
button(title='Previous', ng-click='press("media_previous")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Previous" | translate }}', ng-click='press("media_previous")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-step-backward
|
i.fa.fa-step-backward
|
||||||
button(title='Play/Pause', ng-click='press("media_play_pause")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Play/Pause" | translate }}', ng-click='press("media_play_pause")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-youtube-play
|
i.fa.fa-youtube-play
|
||||||
button(title='Stop', ng-click='press("media_stop")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Stop" | translate }}', ng-click='press("media_stop")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-stop
|
i.fa.fa-stop
|
||||||
button(title='Next', ng-click='press("media_next")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Next" | translate }}', ng-click='press("media_next")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-step-forward
|
i.fa.fa-step-forward
|
||||||
button(title='Fast Forward', ng-click='press("media_fast_forward")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Fast Forward" | translate }}', ng-click='press("media_fast_forward")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-fast-forward
|
i.fa.fa-fast-forward
|
||||||
//h6 Physical Media
|
//h6 Physical Media
|
||||||
//.btn-group
|
//.btn-group
|
||||||
button(title='Play', ng-click='press("KEYCODE_MEDIA_PLAY")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Play" | translate }}', ng-click='press("KEYCODE_MEDIA_PLAY")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-play
|
i.fa.fa-play
|
||||||
button(title='Pause', ng-click='press("KEYCODE_MEDIA_PAUSE")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Pause" | translate }}', ng-click='press("KEYCODE_MEDIA_PAUSE")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-pause
|
i.fa.fa-pause
|
||||||
button(title='Close', ng-click='press("KEYCODE_MEDIA_CLOSE")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Close" | translate }}', ng-click='press("KEYCODE_MEDIA_CLOSE")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-sign-out
|
i.fa.fa-sign-out
|
||||||
button(title='Eject', ng-click='press("KEYCODE_MEDIA_EJECT")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Eject" | translate }}', ng-click='press("KEYCODE_MEDIA_EJECT")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-eject
|
i.fa.fa-eject
|
||||||
button(title='Record', ng-click='press("KEYCODE_MEDIA_RECORD")').btn.btn-primary.btn-xs
|
button(tooltip='{{ "Record" | translate }}', ng-click='press("KEYCODE_MEDIA_RECORD")').btn.btn-primary.btn-xs
|
||||||
i.fa.fa-circle
|
i.fa.fa-circle
|
||||||
//h6(translate) Other Keys
|
//h6(translate) Other Keys
|
||||||
//div.special-other-keys-buttons
|
//div.special-other-keys-buttons
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
i.fa かな
|
i.fa かな
|
||||||
button(ng-click='press("KEYCODE_ASSIST")').btn.btn-default.btn-xs
|
button(ng-click='press("KEYCODE_ASSIST")').btn.btn-default.btn-xs
|
||||||
i.fa Assist
|
i.fa Assist
|
||||||
//button(title='Switch Charset', ng-click='press(80)').btn.btn-primary
|
//button(tooltip='{{ "Switch Charset" | translate }}', ng-click='press(80)').btn.btn-primary
|
||||||
i.fa TST
|
i.fa TST
|
||||||
//button(ng-click='press("KEYCODE_CLEAR")').btn.btn-primary.btn-sm
|
//button(ng-click='press("KEYCODE_CLEAR")').btn.btn-primary.btn-sm
|
||||||
i.fa Clear
|
i.fa Clear
|
||||||
|
@ -93,22 +93,22 @@
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
td
|
td
|
||||||
button(title='D-pad Up', ng-click='press("dpad_up")').btn.btn-info.btn-xs
|
button(tooltip='{{ "D-pad Up" | translate }}', ng-click='press("dpad_up")').btn.btn-info.btn-xs
|
||||||
i.fa.fa-chevron-up
|
i.fa.fa-chevron-up
|
||||||
td
|
td
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
button(title='D-pad Left', ng-click='press("dpad_left")').btn.btn-info.btn-xs
|
button(tooltip='{{ "D-pad Left" | translate }}', ng-click='press("dpad_left")').btn.btn-info.btn-xs
|
||||||
i.fa.fa-chevron-left
|
i.fa.fa-chevron-left
|
||||||
td
|
td
|
||||||
button(title='D-pad Center', ng-click='press("dpad_center")').btn.btn-info.btn-xs
|
button(tooltip='{{ "D-pad Center" | translate }}', ng-click='press("dpad_center")').btn.btn-info.btn-xs
|
||||||
i.fa.fa-circle-o
|
i.fa.fa-circle-o
|
||||||
td
|
td
|
||||||
button(title='D-pad Right', ng-click='press("dpad_right")').btn.btn-info.btn-xs
|
button(tooltip='{{ "D-pad Right" | translate }}', ng-click='press("dpad_right")').btn.btn-info.btn-xs
|
||||||
i.fa.fa-chevron-right
|
i.fa.fa-chevron-right
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
td
|
td
|
||||||
button(title='D-pad Down', ng-click='press("dpad_down")').btn.btn-info.btn-xs
|
button(tooltip='{{ "D-pad Down" | translate }}', ng-click='press("dpad_down")').btn.btn-info.btn-xs
|
||||||
i.fa.fa-chevron-down
|
i.fa.fa-chevron-down
|
||||||
td
|
td
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
i.fa.fa-globe
|
i.fa.fa-globe
|
||||||
span(translate) Navigation
|
span(translate) Navigation
|
||||||
span
|
span
|
||||||
button.btn.btn-xs.btn-danger-outline.pull-right(ng-click='clearSettings()', title='{{"Reset all browser settings"|translate}}')
|
button.btn.btn-xs.btn-danger-outline.pull-right(ng-click='clearSettings()', tooltip='{{ "Reset all browser settings" | translate }}')
|
||||||
i.fa.fa-trash-o
|
i.fa.fa-trash-o
|
||||||
span(translate) Reset
|
span(translate) Reset
|
||||||
//.button-spacer.pull-right
|
//.button-spacer.pull-right
|
||||||
|
|
|
@ -3,27 +3,27 @@ div(ng-controller='ActivitiesCtrl')
|
||||||
table.table.table-condensed
|
table.table.table-condensed
|
||||||
tbody
|
tbody
|
||||||
tr
|
tr
|
||||||
td Package
|
td(translate) Package
|
||||||
td
|
td
|
||||||
input.form-control(type='text', placeholder='', ng-model='selectedPackageName',
|
input.form-control(type='text', placeholder='', ng-model='selectedPackageName',
|
||||||
typeahead='packageName for packageName in packageNames')
|
typeahead='packageName for packageName in packageNames')
|
||||||
tr
|
tr
|
||||||
td Activity
|
td(translate) Activity
|
||||||
td
|
td
|
||||||
input.form-control(type='text', placeholder='', ng-model='selectedActivityName',
|
input.form-control(type='text', placeholder='', ng-model='selectedActivityName',
|
||||||
typeahead='activityName for activityName in activityNames')
|
typeahead='activityName for activityName in activityNames')
|
||||||
tr
|
tr
|
||||||
td Action
|
td(translate) Action
|
||||||
td
|
td
|
||||||
input.form-control(type='text', placeholder='', ng-model='selectedAction',
|
input.form-control(type='text', placeholder='', ng-model='selectedAction',
|
||||||
typeahead='action for action in activityActions')
|
typeahead='action for action in activityActions')
|
||||||
tr
|
tr
|
||||||
td Category
|
td(translate) Category
|
||||||
td
|
td
|
||||||
input.form-control(type='text', placeholder='', ng-model='selectedCategory',
|
input.form-control(type='text', placeholder='', ng-model='selectedCategory',
|
||||||
typeahead='category for category in activityCategories')
|
typeahead='category for category in activityCategories')
|
||||||
tr
|
tr
|
||||||
td Data
|
td(translate) Data
|
||||||
td
|
td
|
||||||
input.form-control(type='text', placeholder='', ng-model='selectedData',
|
input.form-control(type='text', placeholder='', ng-model='selectedData',
|
||||||
typeahead='data for data in activityData', id='selectedData')
|
typeahead='data for data in activityData', id='selectedData')
|
||||||
|
|
|
@ -9,7 +9,7 @@ angular-packery='{draggable: true, draggableHandle: ".heading i"}')
|
||||||
.pull-right
|
.pull-right
|
||||||
button(ng-click='control.identify()').btn.btn-xs.btn-primary-outline
|
button(ng-click='control.identify()').btn.btn-xs.btn-primary-outline
|
||||||
i.fa.fa-info
|
i.fa.fa-info
|
||||||
span Find Device
|
span(translate) Find Device
|
||||||
.widget-content.padded-small
|
.widget-content.padded-small
|
||||||
table.table.table-condensed.table-hover.table-infocard
|
table.table.table-condensed.table-hover.table-infocard
|
||||||
tbody
|
tbody
|
||||||
|
@ -29,21 +29,21 @@ angular-packery='{draggable: true, draggableHandle: ".heading i"}')
|
||||||
td(translate) Health
|
td(translate) Health
|
||||||
td {{device.battery.health | batteryHealth}}
|
td {{device.battery.health | batteryHealth}}
|
||||||
tr
|
tr
|
||||||
td Power Source
|
td(translate) Power Source
|
||||||
td {{device.battery.source | batterySource}}
|
td {{device.battery.source | batterySource}}
|
||||||
tr
|
tr
|
||||||
td Status
|
td(translate) Status
|
||||||
td {{device.battery.status | batteryStatus}}
|
td {{device.battery.status | batteryStatus}}
|
||||||
tr
|
tr
|
||||||
td Level
|
td(translate) Level
|
||||||
td
|
td
|
||||||
progressbar(value='device.battery.level', animate='false', max='device.battery.scale', type='success')
|
progressbar(value='device.battery.level', animate='false', max='device.battery.scale', type='success')
|
||||||
span {{ device.battery.level / device.battery.scale * 100 }}%
|
span {{ device.battery.level / device.battery.scale * 100 }}%
|
||||||
tr
|
tr
|
||||||
td Temperature
|
td(translate) Temperature
|
||||||
td {{device.battery.temp}} °C
|
td {{device.battery.temp}} °C
|
||||||
tr
|
tr
|
||||||
td Voltage
|
td(translate) Voltage
|
||||||
td {{device.battery.voltage}} v
|
td {{device.battery.voltage}} v
|
||||||
|
|
||||||
.col-md-4-x.packery-item
|
.col-md-4-x.packery-item
|
||||||
|
@ -61,25 +61,25 @@ angular-packery='{draggable: true, draggableHandle: ".heading i"}')
|
||||||
td(translate) FPS
|
td(translate) FPS
|
||||||
td {{device.display.fps}}
|
td {{device.display.fps}}
|
||||||
tr
|
tr
|
||||||
td Width
|
td(translate) Width
|
||||||
td {{device.display.width}} px
|
td {{device.display.width}} px
|
||||||
tr
|
tr
|
||||||
td Height
|
td(translate) Height
|
||||||
td {{device.display.height}} px
|
td {{device.display.height}} px
|
||||||
tr
|
tr
|
||||||
td ID
|
td(translate) ID
|
||||||
td {{device.display.id}}
|
td {{device.display.id}}
|
||||||
tr
|
tr
|
||||||
td Orientation
|
td(translate) Orientation
|
||||||
td {{device.display.orientation}}°
|
td {{device.display.orientation}}°
|
||||||
tr
|
tr
|
||||||
td Encrypted
|
td(translate) Encrypted
|
||||||
td {{device.display.secure | humanizedBool}}
|
td {{device.display.secure | humanizedBool}}
|
||||||
tr
|
tr
|
||||||
td X DPI
|
td(translate) X DPI
|
||||||
td {{device.display.xdpi}}
|
td {{device.display.xdpi}}
|
||||||
tr
|
tr
|
||||||
td Y DPI
|
td(translate) Y DPI
|
||||||
td {{device.display.ydpi}}
|
td {{device.display.ydpi}}
|
||||||
|
|
||||||
.col-md-4-x.packery-item
|
.col-md-4-x.packery-item
|
||||||
|
@ -100,13 +100,13 @@ angular-packery='{draggable: true, draggableHandle: ".heading i"}')
|
||||||
td(translate) Using Fallback
|
td(translate) Using Fallback
|
||||||
td {{device.network.failover | humanizedBool}}
|
td {{device.network.failover | humanizedBool}}
|
||||||
tr
|
tr
|
||||||
td Roaming
|
td(translate) Roaming
|
||||||
td {{device.network.roaming | humanizedBool}}
|
td {{device.network.roaming | humanizedBool}}
|
||||||
tr
|
tr
|
||||||
td Type
|
td(translate) Type
|
||||||
td {{device.network.type | networkType}}
|
td {{device.network.type | networkType}}
|
||||||
tr
|
tr
|
||||||
td Sub Type
|
td(translate) Sub Type
|
||||||
td {{device.network.subtype | networkSubType}}
|
td {{device.network.subtype | networkSubType}}
|
||||||
|
|
||||||
.col-md-4-x.packery-item
|
.col-md-4-x.packery-item
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
title='{{"Take Screenshot"|translate}}')
|
title='{{"Take Screenshot"|translate}}')
|
||||||
i.fa.fa-camera
|
i.fa.fa-camera
|
||||||
span(translate) Screenshot
|
span(translate) Screenshot
|
||||||
button.btn.btn-sm.btn-info-outline(ng-click='takePageShot()',
|
//button.btn.btn-sm.btn-info-outline(ng-click='takePageShot()',
|
||||||
title='{{"Take Pageshot (Needs WebView running)"|translate}}',
|
title='{{"Take Pageshot (Needs WebView running)"|translate}}',
|
||||||
ng-if='$root.platform == "web" && $root.browser == "webview"')
|
ng-if='$root.platform == "web" && $root.browser == "webview"')
|
||||||
i.fa.fa-camera-retro(translate)
|
i.fa.fa-camera-retro(translate)
|
||||||
span(translate) Pageshot
|
span(translate) Pageshot
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = function MenuCtrl($scope, $rootScope, SettingsService) {
|
module.exports = function MenuCtrl($scope, $rootScope, SettingsService) {
|
||||||
$rootScope.platform = 'web'
|
$rootScope.platform = 'native'
|
||||||
SettingsService.bind($rootScope, {
|
SettingsService.bind($rootScope, {
|
||||||
key: 'platform',
|
key: 'platform',
|
||||||
storeName: 'Platform'
|
storeName: 'Platform'
|
||||||
|
|
|
@ -16,10 +16,10 @@ html
|
||||||
.pane-top(pane).fill-height
|
.pane-top(pane).fill-height
|
||||||
.pane-top-bar(pane, pane-anchor='north', pane-size='44px', pane-min='44px', pane-max='44px', pane-handle='')
|
.pane-top-bar(pane, pane-anchor='north', pane-size='44px', pane-min='44px', pane-max='44px', pane-handle='')
|
||||||
div(ng-include='"menu.jade"')
|
div(ng-include='"menu.jade"')
|
||||||
socket-state
|
|
||||||
div(growl)
|
|
||||||
|
|
||||||
.pane-center(pane, pane-anchor='center').fill-height
|
.pane-center(pane, pane-anchor='center').fill-height
|
||||||
|
socket-state
|
||||||
|
div(growl)
|
||||||
div(ng-view).fill-height
|
div(ng-view).fill-height
|
||||||
|
|
||||||
script(src='/static/build/bundle.js')
|
script(src='/static/build/bundle.js')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue