Merge remote-tracking branch 'origin/pr/634'
* origin/pr/634: Removed unused `optionEditor` directive from app.js Removed unused `clean` filter from app.js. Removed unused `shortPath` filter from app.js. Removed unused `short` filter from app.js.
This commit is contained in:
commit
8c442b72f3
36
gui/app.js
36
gui/app.js
@ -1043,12 +1043,6 @@ syncthing.filter('metric', function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
syncthing.filter('short', function () {
|
|
||||||
return function (input) {
|
|
||||||
return input.substr(0, 6);
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
syncthing.filter('alwaysNumber', function () {
|
syncthing.filter('alwaysNumber', function () {
|
||||||
return function (input) {
|
return function (input) {
|
||||||
if (input === undefined) {
|
if (input === undefined) {
|
||||||
@ -1058,18 +1052,6 @@ syncthing.filter('alwaysNumber', function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
syncthing.filter('shortPath', function () {
|
|
||||||
return function (input) {
|
|
||||||
if (input === undefined)
|
|
||||||
return "";
|
|
||||||
var parts = input.split(/[\/\\]/);
|
|
||||||
if (!parts || parts.length <= 3) {
|
|
||||||
return input;
|
|
||||||
}
|
|
||||||
return ".../" + parts.slice(parts.length-2).join("/");
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
syncthing.filter('basename', function () {
|
syncthing.filter('basename', function () {
|
||||||
return function (input) {
|
return function (input) {
|
||||||
if (input === undefined)
|
if (input === undefined)
|
||||||
@ -1082,24 +1064,6 @@ syncthing.filter('basename', function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
syncthing.filter('clean', function () {
|
|
||||||
return function (input) {
|
|
||||||
return encodeURIComponent(input).replace(/%/g, '');
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
syncthing.directive('optionEditor', function () {
|
|
||||||
return {
|
|
||||||
restrict: 'C',
|
|
||||||
replace: true,
|
|
||||||
transclude: true,
|
|
||||||
scope: {
|
|
||||||
setting: '=setting',
|
|
||||||
},
|
|
||||||
template: '<input type="text" ng-model="config.Options[setting.id]"></input>',
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
syncthing.directive('uniqueRepo', function() {
|
syncthing.directive('uniqueRepo', function() {
|
||||||
return {
|
return {
|
||||||
require: 'ngModel',
|
require: 'ngModel',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user