Welcome to mirror list, hosted at ThFree Co, Russian Federation.

app.js « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b41d2aecc10c3708cd36367e81ee069f8f64aa03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
var backupApp = angular.module(
    'backupApp', 
    [
        'ngRoute', 
        'dotjem.angular.tree',
        'ngCookies',
        'ngSanitize'
    ]
);

backupApp.constant('appConfig', {
    login_url: '/login.html'
});

backupApp.config(['$routeProvider',
    function($routeProvider) {
        $routeProvider.
            when('/home', {
                templateUrl: 'templates/home.html'
            }).
            when('/add', {
                templateUrl: 'templates/addoredit.html'
            }).
            when('/edit/:backupid', {
                templateUrl: 'templates/addoredit.html'
            }).
            when('/restoredirect', {
                templateUrl: 'templates/restoredirect.html'
            }).
            when('/restore/:backupid', {
                templateUrl: 'templates/restore.html'
            }).
            when('/settings', {
                templateUrl: 'templates/settings.html'
            }).
            when('/about', {
                templateUrl: 'templates/about.html'
            }).
            when('/log/:backupid', {
                templateUrl: 'templates/log.html'
            }).
            when('/log', {
                templateUrl: 'templates/log.html'
            }).
            when('/updatechangelog', {
                templateUrl: 'templates/updatechangelog.html'
            }).
            when('/export/:backupid', {
                templateUrl: 'templates/export.html'
            }).
            when('/import', {
                templateUrl: 'templates/import.html'
            }).
            when('/localdb/:backupid', {
                templateUrl: 'templates/localdatabase.html'
            }).
            when('/pause', {
                templateUrl: 'templates/pause.html'
            }).
            otherwise({
                templateUrl: 'templates/home.html'
                //redirectTo: '/home'
        });
}]);

backupApp.run(function($injector) {
    try {
        $injector.get('OEMService');
    } catch(e) {}
    try {
        $injector.get('CustomService');
    } catch(e) {}
    try {
        $injector.get('ProxyService');
    } catch(e) {}
});