From ce99e7b294087e731a19fb612fea2f5f90fe9399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 29 Mar 2015 13:41:01 +0200 Subject: [PATCH] Updated gitignore and added config.js --- .gitignore | 2 -- public/app/components/config.js | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 public/app/components/config.js diff --git a/.gitignore b/.gitignore index 94b9e97f0e1..92d45effb87 100644 --- a/.gitignore +++ b/.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 diff --git a/public/app/components/config.js b/public/app/components/config.js new file mode 100644 index 00000000000..e26a55e097b --- /dev/null +++ b/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); + +});