Selaa lähdekoodia

Updated gitignore and added config.js

Torkel Ödegaard 10 vuotta sitten
vanhempi
commit
ce99e7b294
2 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 0 2
      .gitignore
  2. 12 0
      public/app/components/config.js

+ 0 - 2
.gitignore

@@ -13,8 +13,6 @@ docs/changed-files
 docs/changed-files
 
 # locally required config files
-web.config
-config.js
 src/css/*.min.css
 
 # Editor junk

+ 12 - 0
public/app/components/config.js

@@ -0,0 +1,12 @@
+define([
+  'settings',
+],
+function (Settings) {
+  "use strict";
+
+  var bootData = window.grafanaBootData || { settings: {} };
+  var options = bootData.settings;
+
+  return new Settings(options);
+
+});