|
@@
-1795,129
+1795,129
b' return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){N.'
|
|
1795
|
}
|
|
1795
|
}
|
|
1796
|
};
|
|
1796
|
};
|
|
1797
|
});
|
|
1797
|
});
|
|
1798
|
;//Copyright (C) 2012 Kory Nunn
|
|
1798
|
;//Copyright (C) 2012 Kory Nunn
|
|
1799
|
|
|
1799
|
|
|
1800
|
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1800
|
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1801
|
|
|
1801
|
|
|
1802
|
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1802
|
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1803
|
|
|
1803
|
|
|
1804
|
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1804
|
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1805
|
|
|
1805
|
|
|
1806
|
/*
|
|
1806
|
/*
|
|
1807
|
|
|
1807
|
|
|
1808
|
This code is not formatted for readability, but rather run-speed and to assist compilers.
|
|
1808
|
This code is not formatted for readability, but rather run-speed and to assist compilers.
|
|
1809
|
|
|
1809
|
|
|
1810
|
However, the code's intention should be transparent.
|
|
1810
|
However, the code's intention should be transparent.
|
|
1811
|
|
|
1811
|
|
|
1812
|
*** IE SUPPORT ***
|
|
1812
|
*** IE SUPPORT ***
|
|
1813
|
|
|
1813
|
|
|
1814
|
If you require this library to work in IE7, add the following after declaring crel.
|
|
1814
|
If you require this library to work in IE7, add the following after declaring crel.
|
|
1815
|
|
|
1815
|
|
|
1816
|
var testDiv = document.createElement('div'),
|
|
1816
|
var testDiv = document.createElement('div'),
|
|
1817
|
testLabel = document.createElement('label');
|
|
1817
|
testLabel = document.createElement('label');
|
|
1818
|
|
|
1818
|
|
|
1819
|
testDiv.setAttribute('class', 'a');
|
|
1819
|
testDiv.setAttribute('class', 'a');
|
|
1820
|
testDiv['className'] !== 'a' ? crel.attrMap['class'] = 'className':undefined;
|
|
1820
|
testDiv['className'] !== 'a' ? crel.attrMap['class'] = 'className':undefined;
|
|
1821
|
testDiv.setAttribute('name','a');
|
|
1821
|
testDiv.setAttribute('name','a');
|
|
1822
|
testDiv['name'] !== 'a' ? crel.attrMap['name'] = function(element, value){
|
|
1822
|
testDiv['name'] !== 'a' ? crel.attrMap['name'] = function(element, value){
|
|
1823
|
element.id = value;
|
|
1823
|
element.id = value;
|
|
1824
|
}:undefined;
|
|
1824
|
}:undefined;
|
|
1825
|
|
|
1825
|
|
|
1826
|
|
|
1826
|
|
|
1827
|
testLabel.setAttribute('for', 'a');
|
|
1827
|
testLabel.setAttribute('for', 'a');
|
|
1828
|
testLabel['htmlFor'] !== 'a' ? crel.attrMap['for'] = 'htmlFor':undefined;
|
|
1828
|
testLabel['htmlFor'] !== 'a' ? crel.attrMap['for'] = 'htmlFor':undefined;
|
|
1829
|
|
|
1829
|
|
|
1830
|
|
|
1830
|
|
|
1831
|
|
|
1831
|
|
|
1832
|
*/
|
|
1832
|
*/
|
|
1833
|
|
|
1833
|
|
|
1834
|
(function (root, factory) {
|
|
1834
|
(function (root, factory) {
|
|
1835
|
if (typeof exports === 'object') {
|
|
1835
|
if (typeof exports === 'object') {
|
|
1836
|
if (!root.window) {
|
|
1836
|
if (!root.window) {
|
|
1837
|
var jsdom = require('jsdom').jsdom;
|
|
1837
|
var jsdom = require('jsdom').jsdom;
|
|
1838
|
root.window = jsdom().parentWindow;
|
|
1838
|
root.window = jsdom().parentWindow;
|
|
1839
|
}
|
|
1839
|
}
|
|
1840
|
module.exports = factory(root.window);
|
|
1840
|
module.exports = factory(root.window);
|
|
1841
|
} else if (typeof define === 'function' && define.amd) {
|
|
1841
|
} else if (typeof define === 'function' && define.amd) {
|
|
1842
|
define(factory.bind(null, window));
|
|
1842
|
define(factory.bind(null, window));
|
|
1843
|
} else {
|
|
1843
|
} else {
|
|
1844
|
root.crel = factory(root.window);
|
|
1844
|
root.crel = factory(root.window);
|
|
1845
|
}
|
|
1845
|
}
|
|
1846
|
}(this, function (window) {
|
|
1846
|
}(this, function (window) {
|
|
1847
|
// based on http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
|
|
1847
|
// based on http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
|
|
1848
|
var isNode = typeof Node === 'object'
|
|
1848
|
var isNode = typeof Node === 'object'
|
|
1849
|
? function (object) { return object instanceof Node }
|
|
1849
|
? function (object) { return object instanceof Node }
|
|
1850
|
: function (object) {
|
|
1850
|
: function (object) {
|
|
1851
|
return object
|
|
1851
|
return object
|
|
1852
|
&& typeof object === 'object'
|
|
1852
|
&& typeof object === 'object'
|
|
1853
|
&& typeof object.nodeType === 'number'
|
|
1853
|
&& typeof object.nodeType === 'number'
|
|
1854
|
&& typeof object.nodeName === 'string';
|
|
1854
|
&& typeof object.nodeName === 'string';
|
|
1855
|
};
|
|
1855
|
};
|
|
1856
|
|
|
1856
|
|
|
1857
|
function crel(){
|
|
1857
|
function crel(){
|
|
1858
|
var document = window.document,
|
|
1858
|
var document = window.document,
|
|
1859
|
args = arguments, //Note: assigned to a variable to assist compilers. Saves about 40 bytes in closure compiler. Has negligable effect on performance.
|
|
1859
|
args = arguments, //Note: assigned to a variable to assist compilers. Saves about 40 bytes in closure compiler. Has negligable effect on performance.
|
|
1860
|
element = document.createElement(args[0]),
|
|
1860
|
element = document.createElement(args[0]),
|
|
1861
|
child,
|
|
1861
|
child,
|
|
1862
|
settings = args[1],
|
|
1862
|
settings = args[1],
|
|
1863
|
childIndex = 2,
|
|
1863
|
childIndex = 2,
|
|
1864
|
argumentsLength = args.length,
|
|
1864
|
argumentsLength = args.length,
|
|
1865
|
attributeMap = crel.attrMap;
|
|
1865
|
attributeMap = crel.attrMap;
|
|
1866
|
|
|
1866
|
|
|
1867
|
// shortcut
|
|
1867
|
// shortcut
|
|
1868
|
if(argumentsLength === 1){
|
|
1868
|
if(argumentsLength === 1){
|
|
1869
|
return element;
|
|
1869
|
return element;
|
|
1870
|
}
|
|
1870
|
}
|
|
1871
|
|
|
1871
|
|
|
1872
|
if(typeof settings !== 'object' || isNode(settings)) {
|
|
1872
|
if(typeof settings !== 'object' || isNode(settings)) {
|
|
1873
|
--childIndex;
|
|
1873
|
--childIndex;
|
|
1874
|
settings = null;
|
|
1874
|
settings = null;
|
|
1875
|
}
|
|
1875
|
}
|
|
1876
|
|
|
1876
|
|
|
1877
|
// shortcut if there is only one child that is a string
|
|
1877
|
// shortcut if there is only one child that is a string
|
|
1878
|
if((argumentsLength - childIndex) === 1 && typeof args[childIndex] === 'string' && element.textContent !== undefined){
|
|
1878
|
if((argumentsLength - childIndex) === 1 && typeof args[childIndex] === 'string' && element.textContent !== undefined){
|
|
1879
|
element.textContent = args[childIndex];
|
|
1879
|
element.textContent = args[childIndex];
|
|
1880
|
}else{
|
|
1880
|
}else{
|
|
1881
|
for(; childIndex < argumentsLength; ++childIndex){
|
|
1881
|
for(; childIndex < argumentsLength; ++childIndex){
|
|
1882
|
child = args[childIndex];
|
|
1882
|
child = args[childIndex];
|
|
1883
|
|
|
1883
|
|
|
1884
|
if(child == null){
|
|
1884
|
if(child == null){
|
|
1885
|
continue;
|
|
1885
|
continue;
|
|
1886
|
}
|
|
1886
|
}
|
|
1887
|
|
|
1887
|
|
|
1888
|
if(!isNode(child)){
|
|
1888
|
if(!isNode(child)){
|
|
1889
|
child = document.createTextNode(child);
|
|
1889
|
child = document.createTextNode(child);
|
|
1890
|
}
|
|
1890
|
}
|
|
1891
|
|
|
1891
|
|
|
1892
|
element.appendChild(child);
|
|
1892
|
element.appendChild(child);
|
|
1893
|
}
|
|
1893
|
}
|
|
1894
|
}
|
|
1894
|
}
|
|
1895
|
|
|
1895
|
|
|
1896
|
for(var key in settings){
|
|
1896
|
for(var key in settings){
|
|
1897
|
if(!attributeMap[key]){
|
|
1897
|
if(!attributeMap[key]){
|
|
1898
|
element.setAttribute(key, settings[key]);
|
|
1898
|
element.setAttribute(key, settings[key]);
|
|
1899
|
}else{
|
|
1899
|
}else{
|
|
1900
|
var attr = crel.attrMap[key];
|
|
1900
|
var attr = crel.attrMap[key];
|
|
1901
|
if(typeof attr === 'function'){
|
|
1901
|
if(typeof attr === 'function'){
|
|
1902
|
attr(element, settings[key]);
|
|
1902
|
attr(element, settings[key]);
|
|
1903
|
}else{
|
|
1903
|
}else{
|
|
1904
|
element.setAttribute(attr, settings[key]);
|
|
1904
|
element.setAttribute(attr, settings[key]);
|
|
1905
|
}
|
|
1905
|
}
|
|
1906
|
}
|
|
1906
|
}
|
|
1907
|
}
|
|
1907
|
}
|
|
1908
|
|
|
1908
|
|
|
1909
|
return element;
|
|
1909
|
return element;
|
|
1910
|
}
|
|
1910
|
}
|
|
1911
|
|
|
1911
|
|
|
1912
|
// Used for mapping one kind of attribute to the supported version of that in bad browsers.
|
|
1912
|
// Used for mapping one kind of attribute to the supported version of that in bad browsers.
|
|
1913
|
// String referenced so that compilers maintain the property name.
|
|
1913
|
// String referenced so that compilers maintain the property name.
|
|
1914
|
crel['attrMap'] = {};
|
|
1914
|
crel['attrMap'] = {};
|
|
1915
|
|
|
1915
|
|
|
1916
|
// String referenced so that compilers maintain the property name.
|
|
1916
|
// String referenced so that compilers maintain the property name.
|
|
1917
|
crel["isNode"] = isNode;
|
|
1917
|
crel["isNode"] = isNode;
|
|
1918
|
|
|
1918
|
|
|
1919
|
return crel;
|
|
1919
|
return crel;
|
|
1920
|
}));
|
|
1920
|
}));
|
|
1921
|
|
|
1921
|
|
|
1922
|
;/*globals define, module, require, document*/
|
|
1922
|
;/*globals define, module, require, document*/
|
|
1923
|
(function (root, factory) {
|
|
1923
|
(function (root, factory) {
|
|
@@
-5748,10
+5748,10
b' function kickstartAE() {'
|
|
5748
|
"\n" +
|
|
5748
|
"\n" +
|
|
5749
|
"<p>\n" +
|
|
5749
|
"<p>\n" +
|
|
5750
|
" <span class=\"point\">1</span>\n" +
|
|
5750
|
" <span class=\"point\">1</span>\n" +
|
|
5751
|
" For App Enlight to operate you need to\n" +
|
|
5751
|
" For App Enlight to operate, you need to\n" +
|
|
5752
|
" <a data-ui-sref=\"applications.update({resourceId:'new'})\" target=\"_blank\"><strong>create app profile</strong></a> that allows\n" +
|
|
5752
|
" <a data-ui-sref=\"applications.update({resourceId:'new'})\" target=\"_blank\"><strong>create an app profile</strong></a> that allows\n" +
|
|
5753
|
" you to\n" +
|
|
5753
|
" you to\n" +
|
|
5754
|
" obtain <strong>API key</strong> that one of the clients can use.\n" +
|
|
5754
|
" obtain an <strong>API key</strong> that one of the clients can use.\n" +
|
|
5755
|
"</p>\n" +
|
|
5755
|
"</p>\n" +
|
|
5756
|
"\n" +
|
|
5756
|
"\n" +
|
|
5757
|
"<div class=\"clear\"></div>\n" +
|
|
5757
|
"<div class=\"clear\"></div>\n" +
|
|
@@
-5767,7
+5767,7
b' function kickstartAE() {'
|
|
5767
|
"\n" +
|
|
5767
|
"\n" +
|
|
5768
|
"<p>\n" +
|
|
5768
|
"<p>\n" +
|
|
5769
|
" It can be the same email account you used to register withing App Enlight -\n" +
|
|
5769
|
" It can be the same email account you used to register withing App Enlight -\n" +
|
|
5770
|
" although we often recommend using separate <em>errors@...</em> account\n" +
|
|
5770
|
" although we often recommend using a separate <em>errors@...</em> account\n" +
|
|
5771
|
" designated for alert notifications.\n" +
|
|
5771
|
" designated for alert notifications.\n" +
|
|
5772
|
"</p>\n" +
|
|
5772
|
"</p>\n" +
|
|
5773
|
"\n" +
|
|
5773
|
"\n" +
|