1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Renamed FileSystem to Explorer.

This commit is contained in:
Gunther Brunner 2015-10-01 16:55:13 +09:00
parent ae449a631a
commit 82c20c28d1
7 changed files with 13 additions and 13 deletions

View file

@ -23,9 +23,9 @@ module.exports =
filters: ['native', 'web'] filters: ['native', 'web']
}, },
{ {
title: gettext('FileSystem'), title: gettext('Explorer'),
icon: 'fa-info color-orange', icon: 'fa-info color-orange',
templateUrl: 'control-panes/filesystem/fs.jade', templateUrl: 'control-panes/explorer/explorer.jade',
filters: ['native', 'web'] filters: ['native', 'web']
}, },
{ {

View file

@ -1,4 +1,4 @@
module.exports = function FsCtrl($scope) { module.exports = function ExplorerCtrl($scope) {
$scope.search = '' $scope.search = ''
$scope.files = []; $scope.files = [];
$scope.paths = []; $scope.paths = [];

View file

@ -6,7 +6,7 @@ describe('FsCtrl', function () {
beforeEach(inject(function ($rootScope, $controller) { beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new(); scope = $rootScope.$new();
ctrl = $controller('FsCtrl', {$scope: scope}); ctrl = $controller('ExplorerCtrl', {$scope: scope});
})); }));
it('should ...', inject(function () { it('should ...', inject(function () {

View file

@ -1,4 +1,4 @@
.stf-fs(ng-controller='FsCtrl') .stf-fs(ng-controller='ExplorerCtrl')
.row: .col-md-6 .row: .col-md-6
span /{{paths.join("/")}} span /{{paths.join("/")}}
@ -6,11 +6,11 @@
span(translate) Back span(translate) Back
form.input-group.form-inline(ng-submit='dirEnter(search)') 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 span.input-group-btn
button.btn.btn-default.btn-primary-outline(type='submit') button.btn.btn-default.btn-primary-outline(type='submit')
i.fa.fa-search i.fa.fa-search
span(translate) Enter span(translate) Go
table.table table.table
tr(ng-repeat='f in files | filter:search | orderBy: "-mode|isdir"') tr(ng-repeat='f in files | filter:search | orderBy: "-mode|isdir"')

View file

@ -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) { .run(["$templateCache", function ($templateCache) {
$templateCache.put('control-panes/filesystem/fs.jade', $templateCache.put('control-panes/explorer/explorer.jade',
require('./fs.jade') require('./explorer.jade')
) )
}]) }])
.filter('mode2unix', function(){ .filter('mode2unix', function(){
@ -34,4 +34,4 @@ module.exports = angular.module('stf.filesystem', [])
} }
} }
}) })
.controller('FsCtrl', require('./fs-controller')) .controller('ExplorerCtrl', require('./explorer-controller'))

View file

@ -13,7 +13,7 @@ module.exports = angular.module('control-panes', [
require('./logs').name, require('./logs').name,
//require('./resources').name, //require('./resources').name,
require('./screenshots').name, require('./screenshots').name,
require('./filesystem').name, require('./explorer').name,
require('./info').name require('./info').name
]) ])
.config(['$routeProvider', function ($routeProvider) { .config(['$routeProvider', function ($routeProvider) {