]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/environment.ts
Update readme screenshot with new design
[github/Chocobozzz/PeerTube.git] / client / src / app / environment.ts
index 929e09490c763509888426f9302eacd3819c8778..dd327a62e4639886955ba80c5505a415503a6cad 100644 (file)
@@ -1,21 +1,37 @@
+/* tslint:disable */
 
-// Angular 2
-// rc2 workaround
-import { enableDebugTools, disableDebugTools } from '@angular/platform-browser';
-import { enableProdMode, ApplicationRef } from '@angular/core';
-// Environment Providers
+/**
+ * Angular 2
+ */
+import {
+  enableDebugTools,
+  disableDebugTools
+} from '@angular/platform-browser';
+import {
+  ApplicationRef,
+  enableProdMode
+} from '@angular/core';
+/**
+ * Environment Providers
+ */
 let PROVIDERS: any[] = [
-  // common env directives
+  /**
+   * Common env directives
+   */
 ];
 
-// Angular debug tools in the dev console
-// https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md
-let _decorateModuleRef = function identity<T>(value: T): T { return value; };
+/**
+ * Angular debug tools in the dev console
+ * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md
+ */
+let _decorateModuleRef = <T>(value: T): T => { return value; };
 
 if ('production' === ENV) {
   enableProdMode();
 
-  // Production
+  /**
+   * Production
+   */
   _decorateModuleRef = (modRef: any) => {
     disableDebugTools();
 
@@ -24,7 +40,9 @@ if ('production' === ENV) {
 
   PROVIDERS = [
     ...PROVIDERS,
-    // custom providers in production
+    /**
+     * Custom providers in production.
+     */
   ];
 
 } else {
@@ -33,17 +51,21 @@ if ('production' === ENV) {
     const appRef = modRef.injector.get(ApplicationRef);
     const cmpRef = appRef.components[0];
 
-    let _ng = (<any>window).ng;
+    let _ng = (<any> window).ng;
     enableDebugTools(cmpRef);
-    (<any>window).ng.probe = _ng.probe;
-    (<any>window).ng.coreTokens = _ng.coreTokens;
+    (<any> window).ng.probe = _ng.probe;
+    (<any> window).ng.coreTokens = _ng.coreTokens;
     return modRef;
   };
 
-  // Development
+  /**
+   * Development
+   */
   PROVIDERS = [
     ...PROVIDERS,
-    // custom providers in development
+    /**
+     * Custom providers in development.
+     */
   ];
 
 }