github.com/apremalal/vamps-core@v1.0.1-0.20161221121535-d430b56ec174/server/webapps/app/base/plugins/jarviswidgets/jarvis.config.js (about)

     1  /*         ______________________________________
     2    ________|                                      |_______
     3    \       |           SmartAdmin WebApp          |      /
     4     \      |      Copyright © 2014 MyOrange       |     /
     5     /      |______________________________________|     \
     6    /__________)                                (_________\
     7  
     8   * The above copyright notice and this permission notice shall be
     9   * included in all copies or substantial portions of the Software.
    10   * =======================================================================
    11   * SmartAdmin is FULLY owned and LICENSED by MYORANGE INC.
    12   * This script may NOT be RESOLD or REDISTRUBUTED under any
    13   * circumstances, and is only to be used with this purchased
    14   * copy of SmartAdmin Template.
    15   * =======================================================================
    16   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    17   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    18   * MERCHANTABILITY, IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    19   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    20   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    21   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    22   * =======================================================================
    23   * original filename: app.config.js
    24   * filesize: 12kb
    25   * author: Sunny (@bootstraphunt)
    26   * email: info@myorange.ca
    27   * =======================================================================
    28   * 
    29   * GLOBAL ROOT (DO NOT CHANGE)
    30   */
    31  	$.root_ = $('body');	
    32  /*
    33   * APP CONFIGURATION (HTML/AJAX/PHP Versions ONLY)
    34   * Description: Enable / disable certain theme features here
    35   * GLOBAL: Your left nav in your app will no longer fire ajax calls, set 
    36   * it to false for HTML version
    37   */	
    38  	$.navAsAjax = false; 
    39  /*
    40   * GLOBAL: Sound Config (define sound path, enable or disable all sounds)
    41   */
    42  	$.sound_path = "sound/";
    43  	$.sound_on = true; 
    44  /*
    45   * SAVE INSTANCE REFERENCE (DO NOT CHANGE)
    46   * Save a reference to the global object (window in the browser)
    47   */
    48  	var root = this,	
    49  /*
    50   * DEBUGGING MODE
    51   * debugState = true; will spit all debuging message inside browser console.
    52   * The colors are best displayed in chrome browser.
    53   */
    54  	debugState = false,	
    55  	debugStyle = 'font-weight: bold; color: #00f;',
    56  	debugStyle_green = 'font-weight: bold; font-style:italic; color: #46C246;',
    57  	debugStyle_red = 'font-weight: bold; color: #ed1c24;',
    58  	debugStyle_warning = 'background-color:yellow',
    59  	debugStyle_success = 'background-color:green; font-weight:bold; color:#fff;',
    60  	debugStyle_error = 'background-color:#ed1c24; font-weight:bold; color:#fff;',
    61  /*
    62   * Impacts the responce rate of some of the responsive elements (lower 
    63   * value affects CPU but improves speed)
    64   */
    65  	throttle_delay = 350,
    66  /*
    67   * The rate at which the menu expands revealing child elements on click
    68   */
    69  	menu_speed = 235,	
    70  /*
    71   * Collapse current menu item as other menu items are expanded
    72   * Careful when using this option, if you have a long menu it will
    73   * keep expanding and may distrupt the user experience This is best 
    74   * used with fixed-menu class
    75   */
    76  	menu_accordion = true,	
    77  /*
    78   * Turn on JarvisWidget functionality
    79   * Global JarvisWidget Settings
    80   * For a greater control of the widgets, please check jarvis.js file
    81   * found within COMMON_ASSETS/UNMINIFIED_JS folder and see from line 1355
    82   * dependency: js/jarviswidget/jarvis.widget.min.js
    83   */
    84  	enableJarvisWidgets = true,
    85  /*
    86   * Use localstorage to save widget settings
    87   * turn this off if you prefer to use the onSave hook to save
    88   * these settings to your datatabse instead
    89   */	
    90  	localStorageJarvisWidgets = true,
    91  /*
    92   * Turn off sortable feature for JarvisWidgets 
    93   */	
    94  	sortableJarvisWidgets = true,		
    95  /*
    96   * Warning: Enabling mobile widgets could potentially crash your webApp 
    97   * if you have too many widgets running at once 
    98   * (must have enableJarvisWidgets = true)
    99   */
   100  	enableMobileWidgets = false,	
   101  /*
   102   * Turn on fast click for mobile devices
   103   * Enable this to activate fastclick plugin
   104   * dependency: js/plugin/fastclick/fastclick.js 
   105   */
   106  	fastClick = false,
   107  /*
   108   * SMARTCHAT PLUGIN ARRAYS & CONFIG
   109   * Dependency: js/plugin/moment/moment.min.js 
   110   *             js/plugin/cssemotions/jquery.cssemoticons.min.js 
   111   *             js/smart-chat-ui/smart.chat.ui.js
   112   * (DO NOT CHANGE BELOW) 
   113   */	
   114  	boxList = [],
   115  	showList = [],
   116   	nameList = [],
   117  	idList = [],
   118  /*
   119   * Width of the chat boxes, and the gap inbetween in pixel (minus padding)
   120   */	
   121  	chatbox_config = {
   122  	    width: 200,
   123  	    gap: 35
   124  	},
   125  /*
   126   * These elements are ignored during DOM object deletion for ajax version 
   127   * It will delete all objects during page load with these exceptions:
   128   */
   129  	ignore_key_elms = ["#header, #left-panel, #right-panel, #main, div.page-footer, #shortcut, #divSmallBoxes, #divMiniIcons, #divbigBoxes, #voiceModal, script, .ui-chatbox"],
   130  /*
   131   * VOICE COMMAND CONFIG
   132   * dependency: js/speech/voicecommand.js
   133   */
   134  	voice_command = true,
   135  /*
   136   * Turns on speech as soon as the page is loaded
   137   */	
   138  	voice_command_auto = false,
   139  /*
   140   * 	Sets the language to the default 'en-US'. (supports over 50 languages 
   141   * 	by google)
   142   * 
   143   *  Afrikaans         ['af-ZA']
   144   *  Bahasa Indonesia  ['id-ID']
   145   *  Bahasa Melayu     ['ms-MY']
   146   *  Català            ['ca-ES']
   147   *  Čeština           ['cs-CZ']
   148   *  Deutsch           ['de-DE']
   149   *  English           ['en-AU', 'Australia']
   150   *                    ['en-CA', 'Canada']
   151   *                    ['en-IN', 'India']
   152   *                    ['en-NZ', 'New Zealand']
   153   *                    ['en-ZA', 'South Africa']
   154   *                    ['en-GB', 'United Kingdom']
   155   *                    ['en-US', 'United States']
   156   *  Español           ['es-AR', 'Argentina']
   157   *                    ['es-BO', 'Bolivia']
   158   *                    ['es-CL', 'Chile']
   159   *                    ['es-CO', 'Colombia']
   160   *                    ['es-CR', 'Costa Rica']
   161   *                    ['es-EC', 'Ecuador']
   162   *                    ['es-SV', 'El Salvador']
   163   *                    ['es-ES', 'España']
   164   *                    ['es-US', 'Estados Unidos']
   165   *                    ['es-GT', 'Guatemala']
   166   *                    ['es-HN', 'Honduras']
   167   *                    ['es-MX', 'México']
   168   *                    ['es-NI', 'Nicaragua']
   169   *                    ['es-PA', 'Panamá']
   170   *                    ['es-PY', 'Paraguay']
   171   *                    ['es-PE', 'Perú']
   172   *                    ['es-PR', 'Puerto Rico']
   173   *                    ['es-DO', 'República Dominicana']
   174   *                    ['es-UY', 'Uruguay']
   175   *                    ['es-VE', 'Venezuela']
   176   *  Euskara           ['eu-ES']
   177   *  Français          ['fr-FR']
   178   *  Galego            ['gl-ES']
   179   *  Hrvatski          ['hr_HR']
   180   *  IsiZulu           ['zu-ZA']
   181   *  Íslenska          ['is-IS']
   182   *  Italiano          ['it-IT', 'Italia']
   183   *                    ['it-CH', 'Svizzera']
   184   *  Magyar            ['hu-HU']
   185   *  Nederlands        ['nl-NL']
   186   *  Norsk bokmål      ['nb-NO']
   187   *  Polski            ['pl-PL']
   188   *  Português         ['pt-BR', 'Brasil']
   189   *                    ['pt-PT', 'Portugal']
   190   *  Română            ['ro-RO']
   191   *  Slovenčina        ['sk-SK']
   192   *  Suomi             ['fi-FI']
   193   *  Svenska           ['sv-SE']
   194   *  Türkçe            ['tr-TR']
   195   *  български         ['bg-BG']
   196   *  Pусский           ['ru-RU']
   197   *  Српски            ['sr-RS']
   198   *  한국어          ['ko-KR']
   199   *  中文                            ['cmn-Hans-CN', '普通话 (中国大陆)']
   200   *                    ['cmn-Hans-HK', '普通话 (香港)']
   201   *                    ['cmn-Hant-TW', '中文 (台灣)']
   202   *                    ['yue-Hant-HK', '粵語 (香港)']
   203   *  日本語                         ['ja-JP']
   204   *  Lingua latīna     ['la']
   205   */
   206  	voice_command_lang = 'en-US',
   207  /*
   208   * 	Use localstorage to remember on/off (best used with HTML Version
   209   * 	when going from one page to the next)
   210   */	
   211  	voice_localStorage = true;
   212  /*
   213   * Voice Commands
   214   * Defines voice command variables and functions
   215   */	
   216  
   217  /*
   218   * END APP.CONFIG
   219   */ 
   220   
   221   
   222   
   223   
   224