e-ucm/rage-analytics-frontend

View on GitHub
app/public/js/env-vars-example.js

Summary

Maintainability
A
0 mins
Test Coverage
/*
 * Copyright 2016 e-UCM (http://www.e-ucm.es/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * This project has received funding from the European Union’s Horizon
 * 2020 research and innovation programme under grant agreement No 644187.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0 (link is external)
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

'use strict';

var envVars = angular.module('env-vars', []);

envVars.constant('CONSTANTS', {
    APIPATH: location.origin + '/api',
    PREFIX: '{{appPrefix}}',
    PROXY: location.origin + '/api/proxy/{{appPrefix}}',
    KIBANA: location.origin + '/api/proxy/{{kibanaPrefix}}',
    DOCS: {
        LTI: '{{docs.lti}}',
        KIBANAINDEX: '{{docs.kibanaIndex}}',
        CONFIGUREFIELDS: '{{docs.configureFields}}',
        KIBANAVISUALIZATIONS: '{{docs.kibanaVisualizations}}',
        STORMANALYSIS: '{{docs.stormAnalysis}}',
        TRACES: '{{docs.traces}}',
        DEVELOPERSTEPS: '{{docs.developerSteps}}',
        QUICKSTART: '{{docs.quickstart}}'
    }
});