Code Monkey home page Code Monkey logo

roundcube-elastic4mobile's People

Contributors

thomascube avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

roundcube-elastic4mobile's Issues

Unable to install via composer

Trying to install on RC 1.4.10:

# composer require roundcube/elastic4mobile
Do not run Composer as root/super user! See https://getcomposer.org/root for details


  [InvalidArgumentException]
  Could not find a matching version of package roundcube/elastic4mobile. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (sta
  ble).

logout goes to desktop login page

Today I updated to roundcube-1.4-rc2 and did also a php composer update.
I use the elastic4mobile plug-in to provide the new elastic skin to mobile phone users. Default skin is not elastic.

During testing I saw a flaw that I overlooked before: After logout on a mobile device the browser first returns to the default login page. When I reload this login page it changes again to the expected elastic login page.

Class 'Mobile_Detect' not found

After installing the plugin, the following error message occurs:
PHP Fatal error: Class 'Mobile_Detect' not found in mydomain.com/plugins/elastic4mobile/elastic4mobile.php on line 19

keyword list displayed over folder list, making it unaccessible

When using elastic skin (by enabling this plugin) and have the folder list of the mailbox displayed the keyword list is laid over the folder names, making them inaccessible. Screenshot will follow.

This may be a problem specific to Kolab, as I'm using Kolab Groupware. It could be an issue with the Elastic skin as well, I just can't tell.

A few issues

  1. When the system default skin is not Elastic and user authentication fails, the skin will be reset to the system default. It is because of rcmail::$default_skin and what we do with it in kill_session().
  2. The plugin MUST be put first on the plugins list otherwise the skin will be set too late and other plugins will use system/user skin instead. E.g. enable Archive plugin before elastic4mobile to see the problem.
  3. $rcmail->output->set_env('skin', $skin); in the code is redundant, because set_skin() will do this.

I encountered these issues in my pwa plugin I'm working on. It also forces elastic skin in pwa mode similar to your plugin.

Maybe we could somehow improve core code to handle issue 1. and 2. more nicely. Something in plugin api that would allow to execute some code before plugin init? Also, rethink that rcmail::$default_skin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.