Skip to content
Snippets Groups Projects
  1. Apr 17, 2018
  2. Apr 13, 2018
  3. Mar 28, 2018
  4. Mar 27, 2018
    • Andreas Gohr's avatar
      first go at styling · 4bdf82b5
      Andreas Gohr authored
      This removes a lot of reudundant CSS classes in favor of cascading
      selectors. Styling isn't done, yet this is just a first step.
      
      Still to do:
      
      * aria labels
      * styling the toggle mechanism
      * RTL styling
      * making sure everything displays correct when no JS is available
      * translations may be missing
      * refactoring the rest of search.less to make use of LESS features
      4bdf82b5
  5. Mar 26, 2018
  6. Mar 25, 2018
  7. Mar 23, 2018
  8. Mar 20, 2018
    • Michael Große's avatar
      feat(search): add search assistance for simple queries · bb8ef867
      Michael Große authored
      This add some search assistance to simple, single-word search queries
      which may be restricted to a single namespace.
      
      Further improvements:
      * better styling
      * trigger events for other plugins
      * set namespaces directly from fulltext search results
      * some more config options
      bb8ef867
  9. Feb 01, 2018
  10. Dec 19, 2017
  11. Dec 10, 2017
  12. Oct 04, 2017
  13. Aug 16, 2017
  14. Aug 15, 2017
  15. Aug 01, 2017
  16. Jul 28, 2017
  17. May 19, 2017
  18. Feb 27, 2017
  19. Feb 17, 2017
  20. Feb 16, 2017
  21. Feb 08, 2017
  22. Feb 06, 2017
    • Andreas Gohr's avatar
      added RTL styles · 08ee0671
      Andreas Gohr authored
      08ee0671
    • Andreas Gohr's avatar
      smaller icons, less vertical space · a6fbb60b
      Andreas Gohr authored
      a6fbb60b
    • Andreas Gohr's avatar
      created distinct create image, optimized images · 40272563
      Andreas Gohr authored
      I used svgo to strip all unneeded cruft from the svgs
      40272563
    • Andreas Gohr's avatar
      made pageToolItem() more flexible · fb03ffd3
      Andreas Gohr authored
      Now any arbitrary attributes can be passed as 4th argument. This way
      classes etc could be added by plugins.
      fb03ffd3
    • Andreas Gohr's avatar
      adjust the event · db433680
      Andreas Gohr authored
      This will open up the discussion from #236 again and I'm not sure how to
      solve this best.
      
      The TEMPLATE_PAGETOOLS_DISPLAY event is very specific to the dokuwiki
      template in theory. In practice many other templates implemented not
      only the same event but also use the same HTML (and often even the same
      CSS). Which makes the event more like a core event.
      
      This branch now changes the HTML the event expects back from handlers.
      When merged it would immeadiately break all plugins implementing this
      event (and by broken I mean the layout/design of the template breaks).
      
      Since the expected data changes, I would argue this should be a new
      event or at least be implemented in a way to not break the design by
      installing an old plugin and by giving the plugin a chance to know if
      it's running on the old or the new code.
      
      This is what this commit does. By changing the view names, old plugins
      should not display (because they hopefull do not handle those views) but
      gives them an easy way to handle the old and new views in one plugin.
      
      However, I'm not perfectly happy with it, yet.
      
      The way I implemented the new SVG handling is by means of a new class
      dokuwiki\template\dokuwiki\tpl which provides a pageToolAction() method.
      Plugins could use this method to easily return the proper HTML for the
      pagetool items and we could adjust this method later on to make
      adjustments to the pagetools without breaking anything again.
      
      However this method is template specific again. While it would possible
      for plugins to use this method even when the wiki runs another plugin
      emitting the event, it would be a bit weird.
      
      A better way would be for the event to not expect HTML at all, but
      instead a data structure of the data currently passed to
      pageToolAction(). Templates could then decide to implement the event,
      but still render the data in a completely different way...
      
      OTOH this means plugins are no longer free to add whatever they want
      into the pagetools. We once argued plugins might want to add submenus or
      other fancy stuff there. But in fact no plugin ever did.
      
      If we decide to go this new way of making the event more of a first
      class citizen of template development, then we would probably have to
      move parts or all of the tpl class back to the core.
      db433680
    • Andreas Gohr's avatar
      adjusted function name · 07932c8c
      Andreas Gohr authored
      07932c8c
  23. Feb 05, 2017
    • Andreas Gohr's avatar
      proper action handling for pagetools · b4b0a666
      Andreas Gohr authored
      The whole pagetool items are now build in an extra helper class that can
      be reused by plugins.
      b4b0a666
    • Andreas Gohr's avatar
      first very simple attempt at implementing svg pagetools · 5172d49d
      Andreas Gohr authored
      todos:
      
      * edit action (and maybe others) use different icons depending on state,
        we can't rely on passing $post
      * media details screen not adjusted, yet
      * no RTL styles
      * no focus/active styles
      * the event needs to be adjusted (maybe throw it away and do a new one)
      * some icons are not good (create = edit)
      * possibly more
      5172d49d
  24. Jan 31, 2017
Loading