##// END OF EJS Templates
documentation edits
lisaq -
Show More
@@ -60,6 +60,9 b' coverage.xml'
60 *.mo
60 *.mo
61 *.pot
61 *.pot
62
62
63 # Mac stuff:
64 *.DS_Store
65
63 # Django stuff:
66 # Django stuff:
64 *.log
67 *.log
65 local_settings.py
68 local_settings.py
@@ -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" +
@@ -13,20 +13,20 b''
13 <h2 style="text-align: center">{{_('App Enlight quickstart')}}</h2>
13 <h2 style="text-align: center">{{_('App Enlight quickstart')}}</h2>
14 <h3 style="text-align: center"><span class="point">1 Create application</span></h3>
14 <h3 style="text-align: center"><span class="point">1 Create application</span></h3>
15 <p>
15 <p>
16 For App Enlight to operate you need to
16 For App Enlight to operate, you need to
17 <a href="{{request.route_url('/', _app_url=_mail_url)}}ui/applications/new/update" target="_blank"><strong>create application profile</strong></a> that allows you to
17 <a href="{{request.route_url('/', _app_url=_mail_url)}}ui/applications/new/update" target="_blank"><strong>create an application profile</strong></a> that allows you to
18 obtain <strong>API key</strong> that one of the clients can use.
18 obtain an <strong>API key</strong> that one of the clients can use.
19 </p>
19 </p>
20 <div class="clear"></div>
20 <div class="clear"></div>
21
21
22 <h3 style="text-align: center"><span class="point">2 Integrate our client</span></h3>
22 <h3 style="text-align: center"><span class="point">2 Integrate our client</span></h3>
23 <p>
23 <p>
24 In order for your application to stream meaningful information you will need to
24 In order for your application to stream meaningful information, you will need to
25 integrate a compatible client for your language of choice.
25 integrate a compatible client for your language of choice.
26 </p>
26 </p>
27
27
28 <p>Head over to <strong>developers section</strong></a> for information on currently available
28 <p>Head over to the <strong>developers section</strong></a> for information on currently available
29 clients that you can plug into your software</p>
29 clients that you can plug into your software</p>.
30
30
31 <p>In case of any issues or questions you might be having with integration,
31 <p>In case of any issues or questions you might be having with integration,
32 feel free to contact us: <a href="mailto:info@appenlight.com"><strong>info@appenlight.com</strong></a></p>
32 feel free to contact us: <a href="mailto:info@appenlight.com"><strong>info@appenlight.com</strong></a></p>
@@ -41,7 +41,7 b''
41
41
42 <p>
42 <p>
43 It can be the same email account you used to register with App Enlight -
43 It can be the same email account you used to register with App Enlight -
44 although we often recommend using separate <em>errors@...</em> account
44 although we often recommend using a separate <em>errors@...</em> account
45 designated for alert notifications.
45 designated for alert notifications.
46 </p>
46 </p>
47 <div class="clear"></div>
47 <div class="clear"></div>
@@ -2,10 +2,10 b''
2
2
3 <p>
3 <p>
4 <span class="point">1</span>
4 <span class="point">1</span>
5 For App Enlight to operate you need to
5 For App Enlight to operate, you need to
6 <a data-ui-sref="applications.update({resourceId:'new'})" target="_blank"><strong>create app profile</strong></a> that allows
6 <a data-ui-sref="applications.update({resourceId:'new'})" target="_blank"><strong>create an app profile</strong></a> that allows
7 you to
7 you to
8 obtain <strong>API key</strong> that one of the clients can use.
8 obtain an <strong>API key</strong> that one of the clients can use.
9 </p>
9 </p>
10
10
11 <div class="clear"></div>
11 <div class="clear"></div>
@@ -21,7 +21,7 b''
21
21
22 <p>
22 <p>
23 It can be the same email account you used to register withing App Enlight -
23 It can be the same email account you used to register withing App Enlight -
24 although we often recommend using separate <em>errors@...</em> account
24 although we often recommend using a separate <em>errors@...</em> account
25 designated for alert notifications.
25 designated for alert notifications.
26 </p>
26 </p>
27
27
@@ -30,10 +30,10 b''
30
30
31 <p>
31 <p>
32 <span class="point">3</span>
32 <span class="point">3</span>
33 In order for your application to stream meaningful information you will need to
33 In order for your application to stream meaningful information, you will need to
34 integrate a compatible client for your language of choice.
34 integrate a compatible client for your language of choice.
35 </p>
35 </p>
36
36
37 <p>Head over to <a href="{{AeConfig.urls.docs}}" target="_blank">
37 <p>Head over to the <a href="{{AeConfig.urls.docs}}" target="_blank">
38 <strong>developers section</strong></a> for information on currently available
38 <strong>developers section</strong></a> for information on currently available
39 clients that you can plug into your software</p>
39 clients that you can plug into your software</p>
General Comments 0
You need to be logged in to leave comments. Login now