github.com/hernad/nomad@v1.6.112/ui/app/services/config.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import { equal } from '@ember/object/computed'; 7 import Service from '@ember/service'; 8 import { get } from '@ember/object'; 9 import config from '../config/environment'; 10 11 export default class ConfigService extends Service { 12 unknownProperty(path) { 13 return get(config, path); 14 } 15 16 @equal('environment', 'development') isDev; 17 @equal('environment', 'production') isProd; 18 @equal('environment', 'test') isTest; 19 }