All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.protostuff.generator.html.js.app.js Maven / Gradle / Ivy

There is a newer version: 3.1.40
Show newest version
var app = angular.module('app', [
    'controllers',
    'filters',
    'factories',
    'typeRefDirective',
    'ngAnimate',
    'ngRoute',
    'angularBootstrapNavTree',
    'ngMaterial',
    'ngSanitize'
]);

app.config(['$httpProvider', function ($httpProvider) {
    // Enable http caching
    $httpProvider.defaults.cache = true;
}]);

app.config(['$sceProvider', function($sceProvider) {
    // Completely disable SCE in order to fix problem with embedded image rendering.
    $sceProvider.enabled(false);
}]);

app.config(['$routeProvider', function ($routeProvider) {
    var scalars = [
        'double',
        'float',
        'int32',
        'int64',
        'uint32',
        'uint64',
        'sint32',
        'sint64',
        'fixed32',
        'fixed64',
        'sfixed32',
        'sfixed64',
        'bool',
        'string',
        'bytes'
    ];

    scalars.forEach(function (value) {
        $routeProvider.when('/types/' + value, {
            templateUrl: 'partials/scalar-value-types.html'
        });
    });

    $routeProvider.when('/types', {
        templateUrl: 'partials/type-list.html',
        controller: 'TypeListCtrl as ctrl'
    });
    $routeProvider.when('/types/:typeId', {
        templateUrl: 'partials/type-detail.html',
        controller: 'TypeDetailCtrl as ctrl'
    });
    $routeProvider.when('/protos/:protoId', {
        templateUrl: 'partials/proto-detail.html',
        controller: 'ProtoDetailCtrl as ctrl'
    });
    $routeProvider.when('/pages/:pageId', {
        templateUrl: 'partials/page.html',
        controller: 'PageCtrl as ctrl'
    });
    $routeProvider.when('/search/:searchText', {
        templateUrl: 'partials/search-result.html',
        controller: 'SearchResultCtrl as ctrl'
    });
    $routeProvider.otherwise({redirectTo: '/'});
}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy