config.js 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. /*
  2. CalDavZAP - the open source CalDAV Web Client
  3. Copyright (C) 2011-2015
  4. Jan Mate <jan.mate@inf-it.com>
  5. Andrej Lezo <andrej.lezo@inf-it.com>
  6. Matej Mihalik <matej.mihalik@inf-it.com>
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU Affero General Public License as
  9. published by the Free Software Foundation, either version 3 of the
  10. License, or (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Affero General Public License for more details.
  15. You should have received a copy of the GNU Affero General Public License
  16. along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // NOTE: see readme.txt before you start to configure this client!
  19. // NOTE: do not forget to execute the cache_update.sh script every time you
  20. // update this configuration file or any other files (otherwise your browser
  21. // will use the previous version of files stored in HTML5 cache). Alternatively
  22. // you can update the cache.manifest manually - edit the second line beginning
  23. // with "#V 20" to anything else (this file simple needs "some" change)
  24. // Supported setup types (use ONE of them):
  25. // a.) globalAccountSettings => username and password is hardcoded
  26. // in config.js, automatic login without the login screen
  27. // - advantages: fast login process = no username/password is required
  28. // - disadvantages: username/password is visible in your config.js, so
  29. // this type of setup is recommended ONLY for intranet/home users
  30. // b.) globalNetworkCheckSettings => standard setup with login screen
  31. // - advantages: username/password is required (no visible
  32. // username/password in config.js)
  33. // - disadvantages: if a user enters wrong username/password then
  34. // the browser will show authentication popup window (it is NOT
  35. // possible to disable it in JavaScript; see the next option)
  36. // c.) globalNetworkAccountSettings => advanced setup with login screen
  37. // - advantages: no authentication popup if you enter wrong username/
  38. // password, dynamic XML configuration generator (you can generate
  39. // different configurations for your users /by modifying the "auth"
  40. // module configuration or the PHP code itself/)
  41. // - disadvantages: requires PHP >= 5.3 and additional configuration,
  42. // only basic http authentication is supported => always use https!
  43. //
  44. //
  45. // What is a "principal URL"? => Check you server documentation!
  46. // - "principal URL" is NOT "collection URL"
  47. // - this client automatically detects collections for "principal URL"
  48. // - PROPER "principal URL" looks like:
  49. // https://server.com:8443/principals/users/USER/
  50. // https://server.com:8443/caldav.php/USER/
  51. // - INVALID principal URL looks like:
  52. // https://server.com:8443/principals/users/USER/collection/
  53. // => this is a collection URL
  54. // https://server.com:8443/caldav.php/USER/collection/
  55. // => this is a collection URL
  56. // https://server.com:8443/principals/users/USER
  57. // => missing trailing '/'
  58. // https://server.com:8443/caldav.php/USER
  59. // => missing trailing '/'
  60. // /caldav.php/USER/
  61. // => relative URL instead of full URL
  62. //
  63. //
  64. // List of properties used in globalAccountSettings, globalNetworkCheckSettings
  65. // and globalNetworkAccountSettings variables (+ in the "auth" module):
  66. // - href
  67. // Depending on the setup type set the value to:
  68. // a.) globalAccountSettings: full "principal URL"
  69. // b.) globalNetworkCheckSettings: "principal URL" WITHOUT the "USER/" part
  70. // c.) globalNetworkAccountSettings: "full URL" to the "auth" directory
  71. // This property is supported in:
  72. // globalAccountSettings
  73. // globalNetworkCheckSettings
  74. // globalNetworkAccountSettings
  75. // - userAuth
  76. // - userName
  77. // Set the username you want to login.
  78. // - userPassword
  79. // Set the password for the given username.
  80. // This property is supported in:
  81. // globalAccountSettings
  82. // - timeOut
  83. // This option sets the timeout for jQuery .ajax call (in miliseconds).
  84. // Example:
  85. // timeOut: 90000
  86. // This property is supported in:
  87. // globalAccountSettings
  88. // globalNetworkCheckSettings
  89. // globalNetworkAccountSettings
  90. // - lockTimeOut
  91. // NOTE: used only if server supports LOCK requests
  92. // This option sets the LOCK timeout value if resource locking
  93. // is used (in miliseconds).
  94. // Example:
  95. // lockTimeOut: 10000
  96. // This property is supported in:
  97. // globalAccountSettings
  98. // globalNetworkCheckSettings
  99. // globalNetworkAccountSettings (available in auth module only)
  100. // - checkContentType
  101. // This option enables a content-type checking for server response.
  102. // If enabled then only objects with proper content-type are inserted
  103. // into the interface.
  104. // If you cannot see data in the interface you may try to disable it (useful
  105. // if your server returns wrong value in "propstat/prop/getcontenttype").
  106. // If undefined then content-type checking is enabled.
  107. // Examples:
  108. // checkContentType: true
  109. // checkContentType: false
  110. // This property is supported in:
  111. // globalAccountSettings
  112. // globalNetworkCheckSettings
  113. // globalNetworkAccountSettings (available in auth module only)
  114. // - settingsAccount
  115. // NOTE: server support for custom DAV properties is REQUIRED!
  116. // This option sets the account where the client properties such as:
  117. // loaded collections, enabled collections, ... are saved during
  118. // the logout and resource/collection synchronisation
  119. // NOTE: set it to true ONLY for ONE account!
  120. // Examples:
  121. // settingsAccount: true
  122. // settingsAccount: false
  123. // This property is supported in:
  124. // globalAccountSettings
  125. // globalNetworkCheckSettings
  126. // globalNetworkAccountSettings (available in auth module only)
  127. // - delegation
  128. // NOTE: server support for this functionality is REQUIRED!
  129. // This option allows you to load delegated (shared) collections.
  130. // If set to true (default) then delegation functionality is enabled,
  131. // and the interface allows you to load delegated collections.
  132. // If false then delegation functionality is completely disabled.
  133. // Examples:
  134. // delegation: true
  135. // delegation: false
  136. // This property is supported in:
  137. // globalAccountSettings
  138. // globalNetworkCheckSettings
  139. // globalNetworkAccountSettings (available in auth module only)
  140. // - additionalResources
  141. // This options sets the list of additional resources (e.g. shared resources
  142. // accessible by all users). If the server supports delegation (see
  143. // the delegation option above) there is no reason to use this option!
  144. // Supported values:
  145. // - array of URL encoded resource names (not collections), such as:
  146. // 'company'
  147. // 'shared_resource'
  148. // If empty (default) or undefined then shared resources are not loaded
  149. // using this option, but may be loaded using the delegation option.
  150. // Examples:
  151. // additionalResources=[]
  152. // additionalResources=['public', 'shared_resource']
  153. // This property is supported in:
  154. // globalNetworkCheckSettings
  155. // - hrefLabel
  156. // This option sets the server name in the resource header (useful if
  157. // you want to see custom resource header above the collections).
  158. // You can use the following variables in the value:
  159. // %H = full hostname (including the port number)
  160. // %h = full hostname (without the port number)
  161. // %D = full domain name
  162. // %d = only the first and second level domain
  163. // %P = principal name
  164. // %p = principal name without the @domain.com part (if present)
  165. // %U = logged user name
  166. // %u = logged user name without the @domain.com part (if present)
  167. // If undefined, empty or or null then '%d/%p [%u]' is used.
  168. // Examples:
  169. // hrefLabel: '%d/%p [%u]'
  170. // hrefLabel: '%D/%u'
  171. // This property is supported in:
  172. // globalAccountSettings
  173. // globalNetworkCheckSettings
  174. // globalNetworkAccountSettings (available in auth module only)
  175. // - forceReadOnly
  176. // This option sets the list of collections as "read-only".
  177. // Supported values:
  178. // - true
  179. // all collections will be "read-only"
  180. // - array of URL encoded
  181. // - collections, such as:
  182. // '/caldav.php/user/calendar/'
  183. // '/caldav.php/user%40domain.com/calendar/'
  184. // - regexes, such as:
  185. // new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
  186. // specifies the list of collections marked as "read-only"
  187. // If null (default) or undefined then server detected privileges are used.
  188. // Examples:
  189. // forceReadOnly: null
  190. // forceReadOnly: true
  191. // forceReadOnly: ['/caldav.php/user/calendar/',
  192. // '/caldav.php/user/calendar2/']
  193. // forceReadOnly: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
  194. // This property is supported in:
  195. // globalAccountSettings
  196. // globalNetworkCheckSettings
  197. // globalNetworkAccountSettings (available in auth module only, with
  198. // different syntax for regexes)
  199. // - ignoreAlarms
  200. // This option sets list of calendar collections with disabled
  201. // alarm functionality.
  202. // Supported values:
  203. // - true
  204. // alarm functionality is disabled for all collections
  205. // - array of URL encoded
  206. // - collections, such as:
  207. // '/caldav.php/user/calendar/'
  208. // '/caldav.php/user%40domain.com/calendar/'
  209. // - regexes, such as:
  210. // new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
  211. // specifies the list of collections with disabled alarm functionality.
  212. // If false (default) or undefined then alarm functionality is enabled
  213. // for all collections.
  214. // Examples:
  215. // ignoreAlarms: true
  216. // ignoreAlarms: ['/caldav.php/user/calendar/',
  217. // '/caldav.php/user/calendar2/']
  218. // ignoreAlarms: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
  219. // This property is supported in:
  220. // globalAccountSettings
  221. // globalNetworkCheckSettings
  222. // globalNetworkAccountSettings (available in auth module only, with
  223. // different syntax for regexes)
  224. // - backgroundCalendars
  225. // This options defines a list of background calendars. If there is
  226. // at least one event defined for the given day in a background calendar,
  227. // the background color for that day will be pink/light-red.
  228. // Supported values:
  229. // - array of URL encoded
  230. // - collections, such as:
  231. // '/caldav.php/user/calendar/'
  232. // '/caldav.php/user%40domain.com/calendar/'
  233. // - regexes, such as:
  234. // new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
  235. // specifies the list of background calendar collections.
  236. // Examples:
  237. // backgroundCalendars: ['/caldav.php/user/calendar/',
  238. // '/caldav.php/user/calendar2/']
  239. // backgroundCalendars: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
  240. // This property is supported in:
  241. // globalAccountSettings
  242. // globalNetworkCheckSettings
  243. // globalNetworkAccountSettings (available in auth module only, with
  244. // different syntax for regexes)
  245. // Special options not present in configuration examples:
  246. // NOTE: use ONLY if you know what are you doing!
  247. // - crossDomain
  248. // This option sets the crossDomain for jQuery .ajax call. If null (default)
  249. // then the value is autodetected /and the result is shown in the console/
  250. // - withCredentials
  251. // This option sets the withCredentials for jQuery .ajax call. The default
  252. // value is false and there is NO REASON to change it to true!
  253. // NOTE: if true, Access-Control-Allow-Origin "*" (CORS header) not works!
  254. // globalAccountSettings
  255. // Use this option if you want to use automatic login (without a login
  256. // screen) with hardcoded username/password in config.js. Otherwise use
  257. // globalNetworkCheckSettings or globalNetworkAccountSettings (see below).
  258. // NOTE: if this option is used the value must be an array of object(s).
  259. // List of properties used in globalAccountSettings variable:
  260. // - href
  261. // Set this option to the full "principal URL".
  262. // NOTE: the last character in the value must be '/'
  263. // - userAuth
  264. // - userName
  265. // Set the username you want to login.
  266. // - userPassword
  267. // Set the password for the given username.
  268. // NOTE: for description of other properties see comments at the beginning
  269. // of this file.
  270. // NOTE: for minimal/fast setup you need to set only the href and userAuth
  271. // options. It is safe/recommended to keep the remaining options unchanged!
  272. // Example:
  273. //var globalAccountSettings=[
  274. // {
  275. // href: 'https://server1.com:8443/caldav.php/USERNAME1/',
  276. // userAuth:
  277. // {
  278. // userName: 'USERNAME1',
  279. // userPassword: 'PASSWORD1'
  280. // },
  281. // timeOut: 90000,
  282. // lockTimeOut: 10000,
  283. // checkContentType: true,
  284. // settingsAccount: true,
  285. // delegation: true,
  286. // hrefLabel: null,
  287. // forceReadOnly: null,
  288. // ignoreAlarms: false,
  289. // backgroundCalendars: []
  290. // },
  291. // {
  292. // href: 'https://server2.com:8443/caldav.php/USERNAME2/',
  293. // ...
  294. // ...
  295. // }
  296. //];
  297. // globalNetworkCheckSettings
  298. // Use this option if you want to use standard login screen without
  299. // hardcoded username/password in config.js (used by globalAccountSettings).
  300. // NOTE: if this option is used the value must be an object.
  301. // List of properties used in globalAccountSettings variable:
  302. // - href
  303. // Set this option to the "principal URL" WITHOUT the "USERNAME/"
  304. // part (this options uses the username from the login screen).
  305. // NOTE: the last character in the value must be '/'
  306. // NOTE: for description of other properties see comments at the beginning
  307. // of this file.
  308. // NOTE: for minimal/fast setup you need to set only the href option. It is
  309. // safe/recommended to keep the remaining options unchanged!
  310. // Example href values:
  311. // OS X server http example (see misc/readme_osx.txt for server setup):
  312. // href: 'http://osx.server.com:8008/principals/users/'
  313. // OS X server https example (see misc/readme_osx.txt for server setup):
  314. // href: 'https://osx.server.com:8443/principals/users/'
  315. // Cyrus server https example:
  316. // href: 'https://cyrus.server.com/dav/principals/user/'
  317. // Example:
  318. // Davical example which automatically detects the protocol, server name,
  319. // port, ... (client installed into Davical "htdocs" subdirectory;
  320. // works "out of the box", no additional setup required):
  321. var globalNetworkCheckSettings={
  322. href: 'https://dav.hammerle.me/',
  323. timeOut: 90000,
  324. lockTimeOut: 10000,
  325. checkContentType: true,
  326. settingsAccount: false,
  327. delegation: true,
  328. additionalResources: ['family'],
  329. hrefLabel: null,
  330. forceReadOnly: true,
  331. ignoreAlarms: false,
  332. backgroundCalendars: []
  333. }
  334. // globalNetworkAccountSettings
  335. // Try this option ONLY if you have working setup using
  336. // globalNetworkCheckSettings and want to fix the authentication popup
  337. // window problem (if invalid username/password is entered)!
  338. // If you use this option then your browser sends username/password to the PHP
  339. // "auth" module ("auth" directory) instead of the DAV server itself.
  340. // The "auth" module then validates your username/password against your server,
  341. // and if the authentication is successful, then it sends back a configuration
  342. // XML (requires additional configuration). The resulting XML is handled
  343. // IDENTICALLY as the globalAccountSettings configuration option.
  344. // NOTE: for the "auth" module configuration see readme.txt!
  345. // NOTE: this option invokes a login screen and disallows access until
  346. // the client gets correct XML configuration file from the server!
  347. // List of properties used in globalNetworkAccountSettings variable:
  348. // - href
  349. // Set this option to the "full URL" of the "auth" directory
  350. // NOTE: the last character in the value must be '/'
  351. // NOTE: for description of other properties see comments at the beginning
  352. // of this file.
  353. // Example href values:
  354. // href: 'https://server.com/client/auth/'
  355. // Example:
  356. // Use this configuration if the "auth" module is located in the client
  357. // installation subdirectory (default):
  358. //var globalNetworkAccountSettings={
  359. // href: location.protocol+'//'+location.hostname+
  360. // (location.port ? ':'+location.port : '')+
  361. // location.pathname.replace(RegExp('index\.html$'),'')+
  362. // 'auth/',
  363. // timeOut: 30000
  364. //};
  365. // globalUseJqueryAuth
  366. // Use jQuery .ajax() auth or custom header for HTTP basic auth (default).
  367. // Set this option to true if your server uses digest auth (note: you may
  368. // experience auth popups on some browsers).
  369. // If undefined (or empty), custom header for HTTP basic auth is used.
  370. // Example:
  371. //var globalUseJqueryAuth=false;
  372. // globalBackgroundSync
  373. // Enable background synchronization even if the browser window/tab has no
  374. // focus.
  375. // If false, synchronization is performed only if the browser window/tab
  376. // is focused. If undefined or not false, then background sync is enabled.
  377. // Example:
  378. var globalBackgroundSync=true;
  379. // globalSyncResourcesInterval
  380. // This option defines how often (in miliseconds) are resources/collections
  381. // asynchronously synchronized.
  382. // Example:
  383. var globalSyncResourcesInterval=120000;
  384. // globalEnableRefresh
  385. // This option enables or disables the manual synchronization button in
  386. // the interface. If this option is enabled then users can perform server
  387. // synchronization manually. Enabling this option may cause high server
  388. // load (even DDOS) if users will try to manually synchronize data too
  389. // often (instead of waiting for the automatic synchronization).
  390. // If undefined or false, the synchronization button is disabled.
  391. // NOTE: enable this option only if you really know what are you doing!
  392. // Example:
  393. var globalEnableRefresh=false;
  394. // globalEnableKbNavigation
  395. // Enable basic keyboard navigation using arrow keys?
  396. // If undefined or not false, keyboard navigation is enabled.
  397. // Example:
  398. var globalEnableKbNavigation=true;
  399. // globalSettingsType
  400. // Where to store user settings such as: active view, enabled/selected
  401. // collections, ... (the client store them into DAV property on the server).
  402. // NOTE: not all servers support storing DAV properties (some servers support
  403. // only subset /or none/ of these URLs).
  404. // Supported values:
  405. // - 'principal-URL', '', null or undefined (default) => settings are stored
  406. // to principal-URL (recommended for most servers)
  407. // - 'addressbook-home-set' => settings are are stored to addressbook-home-set
  408. // Example:
  409. //var globalSettingsType='';
  410. // globalCrossServerSettingsURL
  411. // Settings such as enabled/selected collections are stored on the server
  412. // (see the previous option) in form of full URL
  413. // (e.g.: https://user@server:port/principal/collection/), but even if this
  414. // approach is "correct" (you can use the same principal URL with multiple
  415. // different logins, ...) it causes a problem if your server is accessible
  416. // from multiple URLs (e.g. http://server/ and https://server/). If you want
  417. // to store only the "principal/collection/" part of the URL (instead of the
  418. // full URL) then enable this option.
  419. // Example:
  420. //var globalCrossServerSettingsURL=false;
  421. // globalInterfaceLanguage
  422. // Default interface language (note: this option is case sensitive):
  423. // cs_CZ (Čeština [Czech])
  424. // da_DK (Dansk [Danish]; thanks Niels Bo Andersen)
  425. // de_DE (Deutsch [German]; thanks Marten Gajda and Thomas Scheel)
  426. // en_US (English [English/US])
  427. // es_ES (Español [Spanish]; thanks Damián Vila)
  428. // fr_FR (Français [French]; thanks John Fischer)
  429. // it_IT (Italiano [Italian]; thanks Luca Ferrario)
  430. // ja_JP (日本語 [Japan]; thanks Muimu Nakayama)
  431. // hu_HU (Magyar [Hungarian])
  432. // nl_NL (Nederlands [Dutch]; thanks Johan Vromans)
  433. // sk_SK (Slovenčina [Slovak])
  434. // tr_TR (Türkçe [Turkish]; thanks Selcuk Pultar)
  435. // ru_RU (Русский [Russian]; thanks Александр Симонов)
  436. // uk_UA (Українська [Ukrainian]; thanks Serge Yakimchuck)
  437. // zh_CN (中国 [Chinese]; thanks Fandy)
  438. // Example:
  439. var globalInterfaceLanguage='en_US';
  440. // globalInterfaceCustomLanguages
  441. // If defined and not empty then only languages listed here are shown
  442. // at the login screen, otherwise (default) all languages are shown
  443. // NOTE: values in the array must refer to an existing localization
  444. // (see the option above)
  445. // Example:
  446. // globalInterfaceCustomLanguages=['en_US', 'sk_SK'];
  447. var globalInterfaceCustomLanguages=[];
  448. // globalSortAlphabet
  449. // Use JavaScript localeCompare() or custom alphabet for data sorting.
  450. // Custom alphabet is used by default because JavaScript localeCompare()
  451. // not supports collation and often returns "wrong" result. If set to null
  452. // then localeCompare() is used.
  453. // Example:
  454. // var globalSortAlphabet=null;
  455. var globalSortAlphabet=' 0123456789'+
  456. 'AÀÁÂÄÆÃÅĀBCÇĆČDĎEÈÉÊËĒĖĘĚFGĞHIÌÍÎİÏĪĮJKLŁĹĽMNŃÑŇOÒÓÔÖŐŒØÕŌ'+
  457. 'PQRŔŘSŚŠȘșŞşẞTŤȚțŢţUÙÚÛÜŰŮŪVWXYÝŸZŹŻŽ'+
  458. 'aàáâäæãåābcçćčdďeèéêëēėęěfgğhiìíîïīįıjklłĺľmnńñňoòóôöőœøõō'+
  459. 'pqrŕřsśšßtťuùúûüűůūvwxyýÿzźżžАБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЮЯ'+
  460. 'Ьабвгґдеєжзиіїйклмнопрстуфхцчшщюяь';
  461. // globalSearchTransformAlphabet
  462. // To support search without diacritics (e.g. search for 'd' will find: 'Ď', 'ď')
  463. // it is required to define something like "character equivalence".
  464. // key = regex text, value = search character
  465. // Example:
  466. var globalSearchTransformAlphabet={
  467. '[ÀàÁáÂâÄäÆæÃãÅåĀā]': 'a', '[ÇçĆćČč]': 'c', '[Ďď]': 'd',
  468. '[ÈèÉéÊêËëĒēĖėĘęĚě]': 'e', '[Ğğ]': 'g', '[ÌìÍíÎîİıÏïĪīĮį]': 'i',
  469. '[ŁłĹ弾]': 'l', '[ŃńÑñŇň]': 'n', '[ÒòÓóÔôÖöŐőŒœØøÕõŌō]': 'o',
  470. '[ŔŕŘř]': 'r', '[ŚśŠšȘșŞşẞß]': 's', '[ŤťȚțŢţ]': 't',
  471. '[ÙùÚúÛûÜüŰűŮůŪū]': 'u', '[ÝýŸÿ]': 'y', '[ŹźŻżŽž]': 'z'
  472. };
  473. // globalResourceAlphabetSorting
  474. // If more than one resource (server account) is configured, sort the
  475. // resources alphabetically?
  476. // Example:
  477. var globalResourceAlphabetSorting=true;
  478. // globalNewVersionNotifyUsers
  479. // Update notification will be shown only to users with login names defined
  480. // in this array.
  481. // If undefined (or empty), update notifications will be shown to all users.
  482. // Example:
  483. // globalNewVersionNotifyUsers=['admin', 'peter'];
  484. var globalNewVersionNotifyUsers=[];
  485. // globalDatepickerFormat
  486. // Set the datepicker format (see
  487. // http://docs.jquery.com/UI/Datepicker/formatDate for valid values).
  488. // NOTE: date format is predefined for each localization - use this option
  489. // ONLY if you want to use custom date format (instead of the localization
  490. // predefined one).
  491. // Example:
  492. //var globalDatepickerFormat='dd.mm.yy';
  493. // globalDatepickerFirstDayOfWeek
  494. // Set the datepicker first day of the week: Sunday is 0, Monday is 1, etc.
  495. // Example:
  496. var globalDatepickerFirstDayOfWeek=1;
  497. // globalHideInfoMessageAfter
  498. // How long are information messages (such as: success, error) displayed
  499. // (in miliseconds).
  500. // Example:
  501. var globalHideInfoMessageAfter=1800;
  502. // globalEditorFadeAnimation
  503. // Set the editor fade in/out animation duration when editing or saving data
  504. // (in miliseconds).
  505. // Example:
  506. var globalEditorFadeAnimation=666;
  507. // globalEventStartPastLimit, globalEventStartFutureLimit, globalTodoPastLimit
  508. // Number of months pre-loaded from past/future in advance for calendars
  509. // and todo lists (if null then date range synchronization is disabled).
  510. // NOTE: interval synchronization is used only if your server supports
  511. // sync-collection REPORT (e.g. DAViCal).
  512. // NOTE: if you experience problems with data loading and your server has
  513. // no time-range filtering support set these variables to null.
  514. // Example:
  515. var globalEventStartPastLimit=3;
  516. var globalEventStartFutureLimit=3;
  517. var globalTodoPastLimit=1;
  518. // globalLoadedCalendarCollections
  519. // This option sets the list of calendar collections (down)loaded after login.
  520. // If empty then all calendar collections for the currently logged user are
  521. // loaded.
  522. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  523. // option.
  524. // Example:
  525. var globalLoadedCalendarCollections=[];
  526. // globalLoadedTodoCollections
  527. // This option sets the list of todo collections (down)loaded after login.
  528. // If empty then all todo collections for the currently logged user are loaded.
  529. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  530. // option.
  531. // Example:
  532. var globalLoadedTodoCollections=[];
  533. // globalActiveCalendarCollections
  534. // This options sets the list of calendar collections checked (enabled
  535. // checkbox => data visible in the interface) by default after login.
  536. // If empty then all loaded calendar collections for the currently logged
  537. // user are checked.
  538. // NOTE: only already (down)loaded collections can be checked (see
  539. // the globalLoadedCalendarCollections option).
  540. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  541. // option.
  542. // Example:
  543. var globalActiveCalendarCollections=[];
  544. // globalActiveTodoCollections
  545. // This options sets the list of todo collections checked (enabled
  546. // checkbox => data visible in the interface) by default after login.
  547. // If empty then all loaded todo collections for the currently logged
  548. // user are checked.
  549. // NOTE: only already (down)loaded collections can be checked (see
  550. // the globalLoadedTodoCollections option).
  551. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  552. // option.
  553. // Example:
  554. var globalActiveTodoCollections=[];
  555. // globalCalendarSelected
  556. // This option sets which calendar collection will be pre-selected
  557. // (if you create a new event) by default after login.
  558. // The value must be URL encoded path to a calendar collection,
  559. // for example: 'USER/calendar/'
  560. // If empty or undefined then the first available calendar collection
  561. // is selected automatically.
  562. // NOTE: only already (down)loaded collections can be pre-selected (see
  563. // the globalLoadedCalendarCollections option).
  564. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  565. // option.
  566. // Example:
  567. //var globalCalendarSelected='';
  568. // globalTodoCalendarSelected
  569. // This option sets which todo collection will be pre-selected
  570. // (if you create a new todo) by default after login.
  571. // The value must be URL encoded path to a todo collection,
  572. // for example: 'USER/todo_calendar/'
  573. // If empty or undefined then the first available todo collection
  574. // is selected automatically.
  575. // NOTE: only already (down)loaded collections can be pre-selected (see
  576. // the globalLoadedTodoCollections option).
  577. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  578. // option.
  579. // Example:
  580. //var globalTodoCalendarSelected='';
  581. // globalActiveView
  582. // This options sets the default fullcalendar view option (the default calendar
  583. // view after the first login).
  584. // Supported values:
  585. // - 'month'
  586. // - 'multiWeek'
  587. // - 'agendaWeek'
  588. // - 'agendaDay'
  589. // NOTE: we use custom and enhanced version of fullcalendar!
  590. // Example:
  591. var globalActiveView='multiWeek';
  592. // globalOpenFormMode
  593. // Open new event form on 'single' or 'double' click.
  594. // If undefined or not 'double', then 'single' is used.
  595. // Example:
  596. var globalOpenFormMode='double';
  597. // globalTodoListFilterSelected
  598. // This options sets the list of filters in todo list that are selected
  599. // after login.
  600. // Supported options:
  601. // - 'filterAction'
  602. // - 'filterProgress' (available only if globalAppleRemindersMode is disabled)
  603. // - 'filterCompleted'
  604. // - 'filterCanceled' (available only if globalAppleRemindersMode is disabled)
  605. // NOTE: settings stored on the server (see settingsAccount) overwrite this
  606. // option.
  607. // Example:
  608. var globalTodoListFilterSelected=['filterAction', 'filterProgress'];
  609. // globalCalendarStartOfBusiness, globalCalendarEndOfBusiness
  610. // These options set the start and end of business hours with 0.5 hour
  611. // precision. Non-business hours are faded out in the calendar interface.
  612. // If both variables are set to the same value then no fade out occurs.
  613. // Example:
  614. var globalCalendarStartOfBusiness=8;
  615. var globalCalendarEndOfBusiness=17;
  616. // globalDefaultEventDuration
  617. // This option sets the default duration (in minutes) for newly created events.
  618. // If undefined or null, globalCalendarEndOfBusiness value will be taken as
  619. // a default end time instead.
  620. // Example:
  621. var globalDefaultEventDuration=120;
  622. // globalAMPMFormat
  623. // This option enables to use 12 hours format (AM/PM) for displaying time.
  624. // NOTE: time format is predefined for each localization - use this option
  625. // ONLY if you want to use custom time format (instead of the localization
  626. // predefined one).
  627. // Example:
  628. //var globalAMPMFormat=false;
  629. // globalTimeFormatBasic
  630. // This option defines the time format information for events in month and
  631. // multiweek views. If undefined or null then default value is used.
  632. // If defined as empty string no time information is shown in these views.
  633. // See http://arshaw.com/fullcalendar/docs/utilities/formatDate/ for exact
  634. // formating rules.
  635. // Example:
  636. //var globalTimeFormatBasic='';
  637. // globalTimeFormatAgenda
  638. // This option defines the time format information for events in day and
  639. // week views. If undefined or null then default value is used.
  640. // If defined as empty string no time information is shown in these views.
  641. // See http://arshaw.com/fullcalendar/docs/utilities/formatDate/ for exact
  642. // formating rules.
  643. // Example:
  644. //var globalTimeFormatAgenda='';
  645. // globalDisplayHiddenEvents
  646. // This option defined whether events from unechecked calendars are displayed
  647. // with certain transparency (true) or completely hidden (false).
  648. // Example:
  649. var globalDisplayHiddenEvents=false;
  650. // globalTimeZoneSupport
  651. // This option enables timezone support in the client.
  652. // NOTE: timezone cannot be specified for all-day events because these don't
  653. // have start and end time.
  654. // If this option is disabled then local time is used.
  655. // Example:
  656. var globalTimeZoneSupport=true;
  657. // globalTimeZone
  658. // If timezone support is enabled, this option sets the default timezone.
  659. // See timezones.js or use the following command to get the list of supported
  660. // timezones (defined in timezones.js):
  661. // grep "'[^']\+': {" timezones.js | sed -Ee "s#(\s*'|':\s*\{)##g"
  662. // Example:
  663. var globalTimeZone='Europe/Vienna';
  664. // globalTimeZonesEnabled
  665. // This option sets the list of available timezones in the interface (for the
  666. // list of supported timezones see the comment for the previous configuration
  667. // option).
  668. // NOTE: if there is at least one event/todo with a certain timezone defined,
  669. // that timezone is enabled (even if it is not present in this list).
  670. // Example:
  671. // var globalTimeZonesEnabled=['America/New_York', 'Europe/Berlin'];
  672. var globalTimeZonesEnabled=[];
  673. // globalRewriteTimezoneComponent
  674. // This options sets whether the client will enhance/replace (if you edit an
  675. // event or todo) the timezone information using the official IANA timezone
  676. // database information (recommended).
  677. // Example:
  678. var globalRewriteTimezoneComponent=true;
  679. // globalRemoveUnknownTimezone
  680. // This options sets whether the client will remove all non-standard timezone
  681. // names from events and todos (if you edit an event or todo)
  682. // (e.g.: /freeassociation.sourceforge.net/Tzfile/Europe/Vienna)
  683. // Example:
  684. var globalRemoveUnknownTimezone=false;
  685. // globalShowHiddenAlarms
  686. // This option sets whether the client will show alarm notifications for
  687. // unchecked calendars. If this option is enabled and you uncheck a calendar
  688. // in the calendar list, alarm notifications will be temporary disabled for
  689. // unchecked calendar(s).
  690. // Example:
  691. var globalShowHiddenAlarms=false;
  692. // globalIgnoreCompletedOrCancelledAlarms
  693. // This options sets whether the client will show alarm notifications for
  694. // already completed or cancelled todos. If enabled then alarm notification
  695. // for completed and cancelled todos are disabled.
  696. // Example:
  697. var globalIgnoreCompletedOrCancelledAlarms=true;
  698. // globalMozillaSupport
  699. // Mozilla automatically treats custom repeating event calculations as if
  700. // the start day of the week is Monday, despite what day is chosen in settings.
  701. // Set this variable to true to use the same approach, ensuring compatible
  702. // event rendering in special cases.
  703. // Example:
  704. var globalMozillaSupport=false;
  705. // globalCalendarColorPropertyXmlns
  706. // This options sets the namespace used for storing the "calendar-color"
  707. // property by the client.
  708. // If true, undefined (or empty) "http://apple.com/ns/ical/" is used (Apple
  709. // compatible). If false, then the calendar color modification functionality
  710. // is completely disabled.
  711. // Example:
  712. //var globalCalendarColorPropertyXmlns=true;
  713. // globalWeekendDays
  714. // This option sets the list of days considered as weekend days (these
  715. // are faded out in the calendar interface). Non-weekend days are automatically
  716. // considered as business days.
  717. // Sunday is 0, Monday is 1, etc.
  718. // Example:
  719. var globalWeekendDays=[0, 6];
  720. // globalAppleRemindersMode
  721. // If this option is enabled then then client will use the same approach
  722. // for handling repeating reminders (todos) as Apple. It is STRONGLY
  723. // recommended to enabled this option if you use any Apple clients for
  724. // reminders (todos).
  725. // Supported options:
  726. // - 'iOS6'
  727. // - 'iOS7'
  728. // - true (support of the latest iOS version - 'iOS8')
  729. // - false
  730. // If this option is enabled:
  731. // - RFC todo support is SEVERELY limited and the client mimics the behaviour
  732. // of Apple Reminders.app (to ensure maximum compatibility)
  733. // - when a single instance of repeating todo is edited, it becomes an
  734. // autonomous non-repeating todo with NO relation to the original repeating
  735. // todo
  736. // - capabilities of repeating todos are limited - only the first instance
  737. // is ever visible in the interface
  738. // - support for todo DTSTART attribute is disabled
  739. // - support for todo STATUS attribute other than COMPLETED and NEEDS-ACTION
  740. // is disabled
  741. // - [iOS6 only] support for LOCATION and URL attributes is disabled
  742. // Example:
  743. var globalAppleRemindersMode=true;
  744. // globalSubscribedCalendars
  745. // This option specifies a list of remote URLs to ics files (e.g.: used
  746. // for distributing holidays information). Subscribed calendars are
  747. // ALWAYS read-only. Remote servers where ics files are hosted MUST
  748. // return proper CORS headers (see readme.txt) otherwise this functionality
  749. // will not work!
  750. // NOTE: subsribed calendars are NOT "shared" calendars. For "shared"
  751. // calendars see the delegation option in globalAccountSettings,
  752. // globalNetworkCheckSettings and globalNetworkAccountSettings.
  753. // List of properties used in globalSubscribedCalendars variable:
  754. // - hrefLabel
  755. // This options defines the header string above the subcsribed calendars.
  756. // - calendars
  757. // This option specifies an array of remote calendar objects with the
  758. // following properties:
  759. // - href
  760. // Set this option to the "full URL" of the remote calendar
  761. // - userAuth
  762. // NOTE: keep empty if remote authentication is not required!
  763. // - userName
  764. // Set the username you want to login.
  765. // - userPassword
  766. // Set the password for the given username.
  767. // - typeList
  768. // Set the list of objects you want to process from remote calendars;
  769. // two options are available:
  770. // - 'vevent' (show remote events in the interface)
  771. // - 'vtodo' (show remote todos in the interface)
  772. // - ignoreAlarm
  773. // Set this option to true if you want to disable alarm notifications
  774. // from the remote calendar.
  775. // - displayName
  776. // Set this option to the name of the calendar you want to see
  777. // in the interface.
  778. // - color
  779. // Set the calendar color you want to see in the interface.
  780. // Example:
  781. //var globalSubscribedCalendars={
  782. // hrefLabel: 'Subscribed',
  783. // calendars: [
  784. // {
  785. // href: 'http://something.com/calendar.ics',
  786. // userAuth: {
  787. // userName: '',
  788. // userPassword: ''
  789. // },
  790. // typeList: ['vevent', 'vtodo'],
  791. // ignoreAlarm: true,
  792. // displayName: 'Remote Calendar 1',
  793. // color: '#ff0000'
  794. // },
  795. // {
  796. // href: 'http://calendar.com/calendar2.ics',
  797. // ...
  798. // ...
  799. // }
  800. // ]
  801. //};