From 89a50c2f8f45a4d5a1bfbc2eb8e29e5836feeccb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 2 Apr 2020 21:50:07 +0200 Subject: docs: update js api docs Signed-off-by: Jo-Philipp Wich --- docs/jsapi/rpc.js.html | 464 +++++++++++++++++++++++++------------------------ 1 file changed, 237 insertions(+), 227 deletions(-) (limited to 'docs/jsapi/rpc.js.html') diff --git a/docs/jsapi/rpc.js.html b/docs/jsapi/rpc.js.html index 983f091fba..48e5a95e9f 100644 --- a/docs/jsapi/rpc.js.html +++ b/docs/jsapi/rpc.js.html @@ -43,8 +43,18 @@ Members +
  • Class
  • + +
  • dom
  • +
  • env
  • +
  • Poll
  • + +
  • Request
  • + +
  • view
  • + -
  • +
  • - LuCI.Class + LuCI.baseclass
      @@ -246,9 +256,9 @@
  • -
  • +
  • - LuCI.Headers + LuCI.headers
      @@ -274,9 +284,9 @@
  • -
  • +
  • - LuCI.Network + LuCI.network
      @@ -368,9 +378,9 @@
  • -
  • +
  • - LuCI.Network.Device + LuCI.network.Device
      @@ -436,9 +446,9 @@
  • -
  • +
  • - LuCI.Network.Hosts + LuCI.network.Hosts
      @@ -476,9 +486,9 @@
  • -
  • +
  • - LuCI.Network.Protocol + LuCI.network.Protocol
      @@ -580,9 +588,9 @@
  • -
  • +
  • - LuCI.Network.WifiDevice + LuCI.network.WifiDevice
      @@ -630,9 +638,9 @@
  • -
  • +
  • - LuCI.Network.WifiNetwork + LuCI.network.WifiNetwork
      @@ -728,9 +736,9 @@
  • -
  • +
  • - LuCI.Poll + LuCI.poll
      @@ -762,9 +770,9 @@
  • -
  • +
  • - LuCI.Request + LuCI.request
      @@ -804,9 +812,9 @@
  • -
  • +
  • - LuCI.Request.poll + LuCI.request.poll
      @@ -842,26 +850,26 @@
  • -
  • +
  • - LuCI.Response + LuCI.response
      @@ -1646,9 +1654,9 @@
  • -
  • +
  • - LuCI.XHR + LuCI.xhr
      @@ -1693,6 +1701,8 @@
      'use strict';
      +'require baseclass';
      +'require request';
       
       var rpcRequestID = 1,
           rpcSessionID = L.env.sessionid || '00000000000000000000000000000000',
      @@ -1708,7 +1718,7 @@ var rpcRequestID = 1,
        * The `LuCI.rpc` class provides high level ubus JSON-RPC abstractions
        * and means for listing and invoking remove RPC methods.
        */
      -return L.Class.extend(/** @lends LuCI.rpc.prototype */ {
      +return baseclass.extend(/** @lends LuCI.rpc.prototype */ {
       	/* privates */
       	call: function(req, cb, nobatch) {
       		var q = '';
      @@ -1729,7 +1739,7 @@ return L.Class.extend(/** @lends LuCI.rpc.prototype */ {
       			q += '/%s.%s'.format(req.params[1], req.params[2]);
       		}
       
      -		return L.Request.post(rpcBaseURL + q, req, {
      +		return request.post(rpcBaseURL + q, req, {
       			timeout: (L.env.rpctimeout || 20) * 1000,
       			nobatch: nobatch,
       			credentials: true
      @@ -2181,7 +2191,7 @@ return L.Class.extend(/** @lends LuCI.rpc.prototype */ {
               
       
               
           
       
      -- 
      cgit v1.2.3