Skip to content
  1. Jun 08, 2018
    • Jo-Philipp Wich's avatar
      treewide: switch firewall zone, network and iface lists to dropdown code · 74be6f39
      Jo-Philipp Wich authored
      
      
      Also switch the weekday and monthday lists in the firewall rule details to
      cbi dropdowns, vastly uncluttering the form.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      74be6f39
    • Jo-Philipp Wich's avatar
      luci-base: add markup, JS and CSS for new dropdown · 9d484907
      Jo-Philipp Wich authored
      
      
      This commit introduces the required code for a new, markup based dropdown
      widget which can be used as a styleable alternative to select boxes or
      radio/checkbox button groups.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      9d484907
    • Jo-Philipp Wich's avatar
      luci-base: support option aliases in luci.cbi · 4cca96ef
      Jo-Philipp Wich authored
      
      
      AbstractValue descendants may now specify a new optional property `alias`
      which refers to a uci option to read/write/remove that differs from the
      option name itself.
      
      This is mainly useful for widgets that are toggled based on dependencies,
      e.g. for alternating between SingleValue and MultiValue, but which are
      intented to write into the same uci option.
      
      Such a setup was previously possible already by overriding the .cfgvalue(),
      .write() and .remove() callbacks with custom implementations, but that
      required a lot of boiler plate code and was rather fragile.
      
      With the `alias` property, CBI now takes care of the details and tracks
      aliased fields within a section accordingly.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      4cca96ef
  2. Jun 06, 2018
  3. Jun 03, 2018
    • Jo-Philipp Wich's avatar
      luci-base: cbi: atomically reorder uci sections · 2d352a92
      Jo-Philipp Wich authored
      
      
      Since the switch to ubus uci operations we do not have a local application-
      side cursor cache anymore, instead uci operations happen synchronously in
      the rpcd backend server.
      
      This may cause cbi section reorder operations involving multiple elements
      to fail, because anonymous section hashes may change due to rehashing
      between consecutive ubus uci reorder calls.
      
      In order to avoid that problem, use the ubus uci batch reorder extension,
      which allows to pass a complete (or partial) list of section ids in the
      desired order in one call, bypassing the volatile section id problem.
      
      Fixes #1844.
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      2d352a92
  4. May 31, 2018
  5. May 30, 2018
  6. May 28, 2018
  7. May 27, 2018
  8. May 25, 2018
  9. May 23, 2018
  10. May 20, 2018
  11. May 19, 2018
  12. May 18, 2018
  13. May 15, 2018
  14. May 13, 2018
  15. May 07, 2018