mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Renamed FileSystem to Explorer.
This commit is contained in:
parent
ae449a631a
commit
82c20c28d1
7 changed files with 13 additions and 13 deletions
|
@ -23,9 +23,9 @@ module.exports =
|
|||
filters: ['native', 'web']
|
||||
},
|
||||
{
|
||||
title: gettext('FileSystem'),
|
||||
title: gettext('Explorer'),
|
||||
icon: 'fa-info color-orange',
|
||||
templateUrl: 'control-panes/filesystem/fs.jade',
|
||||
templateUrl: 'control-panes/explorer/explorer.jade',
|
||||
filters: ['native', 'web']
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = function FsCtrl($scope) {
|
||||
module.exports = function ExplorerCtrl($scope) {
|
||||
$scope.search = ''
|
||||
$scope.files = [];
|
||||
$scope.paths = [];
|
|
@ -6,7 +6,7 @@ describe('FsCtrl', function () {
|
|||
|
||||
beforeEach(inject(function ($rootScope, $controller) {
|
||||
scope = $rootScope.$new();
|
||||
ctrl = $controller('FsCtrl', {$scope: scope});
|
||||
ctrl = $controller('ExplorerCtrl', {$scope: scope});
|
||||
}));
|
||||
|
||||
it('should ...', inject(function () {
|
|
@ -1,4 +1,4 @@
|
|||
.stf-fs(ng-controller='FsCtrl')
|
||||
.stf-fs(ng-controller='ExplorerCtrl')
|
||||
.row: .col-md-6
|
||||
|
||||
span /{{paths.join("/")}}
|
||||
|
@ -6,11 +6,11 @@
|
|||
span(translate) Back
|
||||
|
||||
form.input-group.form-inline(ng-submit='dirEnter(search)')
|
||||
input(type=text, ng-model='search', placeholder="dir or file ...").form-control
|
||||
input(type=text, ng-model='search', placeholder="Dir or file ...").form-control
|
||||
span.input-group-btn
|
||||
button.btn.btn-default.btn-primary-outline(type='submit')
|
||||
i.fa.fa-search
|
||||
span(translate) Enter
|
||||
span(translate) Go
|
||||
|
||||
table.table
|
||||
tr(ng-repeat='f in files | filter:search | orderBy: "-mode|isdir"')
|
|
@ -1,9 +1,9 @@
|
|||
require('./fs.less')
|
||||
require('./explorer.css')
|
||||
|
||||
module.exports = angular.module('stf.filesystem', [])
|
||||
module.exports = angular.module('stf.explorer', [])
|
||||
.run(["$templateCache", function ($templateCache) {
|
||||
$templateCache.put('control-panes/filesystem/fs.jade',
|
||||
require('./fs.jade')
|
||||
$templateCache.put('control-panes/explorer/explorer.jade',
|
||||
require('./explorer.jade')
|
||||
)
|
||||
}])
|
||||
.filter('mode2unix', function(){
|
||||
|
@ -34,4 +34,4 @@ module.exports = angular.module('stf.filesystem', [])
|
|||
}
|
||||
}
|
||||
})
|
||||
.controller('FsCtrl', require('./fs-controller'))
|
||||
.controller('ExplorerCtrl', require('./explorer-controller'))
|
|
@ -13,7 +13,7 @@ module.exports = angular.module('control-panes', [
|
|||
require('./logs').name,
|
||||
//require('./resources').name,
|
||||
require('./screenshots').name,
|
||||
require('./filesystem').name,
|
||||
require('./explorer').name,
|
||||
require('./info').name
|
||||
])
|
||||
.config(['$routeProvider', function ($routeProvider) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue