AppSuite:Debugging the UI: Difference between revisions
From Open-Xchange
No edit summary |
|||
Line 3: | Line 3: | ||
__TOC__ | __TOC__ | ||
== What capabilities are available? == | == What capabilities are available? == | ||
<pre class="language- | <pre class="language-javascript"> | ||
_(ox.serverConfig.capabilities).pluck("id").sort(); | _(ox.serverConfig.capabilities).pluck("id").sort(); | ||
</pre> | </pre> | ||
== Check settings == | == Check settings == | ||
<pre class="language- | <pre class="language-javascript"> | ||
// check core settings | // check core settings | ||
require('settings!io.ox/core').get(); | require('settings!io.ox/core').get(); | ||
// check mail settings | // check mail settings | ||
require('settings!io.ox/mail').get(); | require('settings!io.ox/mail').get(); | ||
</pre> | |||
== Clear all persistent caches == | |||
<pre class="language-javascript"> | |||
ox.cache.clear(); | |||
</pre> | </pre> | ||
== Debug relogin == | == Debug relogin == | ||
<pre class="language- | <pre class="language-javascript"> | ||
ox.autoLogoutRestartDebug(); | ox.autoLogoutRestartDebug(); | ||
</pre> | </pre> | ||
Line 25: | Line 30: | ||
...&cap=emoji,-calendar | ...&cap=emoji,-calendar | ||
</pre> | </pre> | ||
[[Category:AppSuite]] | [[Category:AppSuite]] | ||
[[Category:UI]] | [[Category:UI]] | ||
[[Category:Developer]] | [[Category:Developer]] |
Revision as of 10:06, 29 August 2013
Debugging the UI
Synopsis: A collection of hints to debug during UI development
What capabilities are available?
_(ox.serverConfig.capabilities).pluck("id").sort();
Check settings
// check core settings require('settings!io.ox/core').get(); // check mail settings require('settings!io.ox/mail').get();
Clear all persistent caches
ox.cache.clear();
Debug relogin
ox.autoLogoutRestartDebug();
Enable/disable capability via URL hash
Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:
...&cap=emoji,-calendar