Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/droplab/plugins/ajax.js.map')
-rw-r--r--app/assets/javascripts/droplab/plugins/ajax.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/droplab/plugins/ajax.js.map b/app/assets/javascripts/droplab/plugins/ajax.js.map
new file mode 100644
index 00000000000..fd89dfb9cf8
--- /dev/null
+++ b/app/assets/javascripts/droplab/plugins/ajax.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///dist/plugins/ajax.js","webpack:///webpack/bootstrap 595d943f775089263f5d?9279**","webpack:///./src/plugins/ajax.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","10","droplabAjaxException","message","this","droplabAjax","_loadUrlData","url","self","Promise","resolve","reject","xhr","XMLHttpRequest","open","onreadystatechange","readyState","DONE","status","data","JSON","parse","responseText","cache","send","_loadData","config","loadingTemplate","dataLoadingTemplate","hook","list","querySelector","outerHTML","listTemplate","method","init","endpoint","dynamicList","document","createElement","innerHTML","setAttribute","then","catch","e","destroy","window","default"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAK,EAAA,SAAAK,GAA2C,MAAAA,IAG3CV,EAAAW,EAAA,SAAAR,E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e,MAAQf,EAAKe,SAClB,IAAIG,GAASG,EAAKH,OAAOrB,WAEzB,IADAD,KAAKyB,KAAOA,EACPH,GAAWA,EAAOU,UAAaV,EAAOQ,SAGrB,YAAlBR,EAAOQ,QAA0C,YAAlBR,EAAOQ,QAA1C,CAGA,GAAIR,EAAOC,gBAAiB,CAC1B,GAAIU,GAAcR,EAAKC,KAAKA,KAAKC,cAAc,kBAC3CJ,EAAkBW,SAASC,cAAc,MAC7CZ,GAAgBa,UAAYd,EAAOC,gBACnCA,EAAgBc,aAAa,wBAAyB,IACtDrC,KAAK6B,aAAeI,EAAYL,UAChCK,EAAYL,UAAYL,EAAgBK,UAEtCxB,EAAKe,MAAMG,EAAOU,UACpB5B,EAAKiB,UAAUjB,EAAKe,MAAMG,EAAOU,UAAWV,EAAQlB,GAEpDJ,KAAKE,aAAaoB,EAAOU,UACtBM,KAAK,SAAS1D,GACbwB,EAAKiB,UAAUzC,EAAG0C,EAAQlB,KACzBmC,MAAM,SAASC,GAChB,KAAM,IAAI1C,GAAqB0C,EAAEzC,SAAWyC,OAIpDC,QAAS,WACP,GAAIR,GAAcjC,KAAKyB,KAAKC,KAAKA,KAAKC,cAAc,iBAChD3B,MAAK6B,cAAgBI,IACvBA,EAAYL,UAAY5B,KAAK6B,eAKnCa,QAAOzC,YAAcA,EFgFrB7B,EAAQuE,QE9EO1C","file":"./dist/plugins/ajax.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 10);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 10:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction droplabAjaxException(message) {\n this.message = message;\n}\n\nvar droplabAjax = {\n _loadUrlData: function _loadUrlData(url) {\n var self = this;\n return new Promise(function (resolve, reject) {\n var xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n if (xhr.status === 200) {\n var data = JSON.parse(xhr.responseText);\n self.cache[url] = data;\n return resolve(data);\n } else {\n return reject([xhr.responseText, xhr.status]);\n }\n }\n };\n xhr.send();\n });\n },\n _loadData: function _loadData(data, config, self) {\n if (config.loadingTemplate) {\n var dataLoadingTemplate = self.hook.list.list.querySelector('[data-loading-template]');\n if (dataLoadingTemplate) {\n dataLoadingTemplate.outerHTML = self.listTemplate;\n }\n }\n self.hook.list[config.method].call(self.hook.list, data);\n },\n init: function init(hook) {\n var self = this;\n self.cache = self.cache || {};\n var config = hook.config.droplabAjax;\n this.hook = hook;\n if (!config || !config.endpoint || !config.method) {\n return;\n }\n if (config.method !== 'setData' && config.method !== 'addData') {\n return;\n }\n if (config.loadingTemplate) {\n var dynamicList = hook.list.list.querySelector('[data-dynamic]');\n var loadingTemplate = document.createElement('div');\n loadingTemplate.innerHTML = config.loadingTemplate;\n loadingTemplate.setAttribute('data-loading-template', '');\n this.listTemplate = dynamicList.outerHTML;\n dynamicList.outerHTML = loadingTemplate.outerHTML;\n }\n if (self.cache[config.endpoint]) {\n self._loadData(self.cache[config.endpoint], config, self);\n } else {\n this._loadUrlData(config.endpoint).then(function (d) {\n self._loadData(d, config, self);\n }).catch(function (e) {\n throw new droplabAjaxException(e.message || e);\n });\n }\n },\n destroy: function destroy() {\n var dynamicList = this.hook.list.list.querySelector('[data-dynamic]');\n if (this.listTemplate && dynamicList) {\n dynamicList.outerHTML = this.listTemplate;\n }\n }\n};\n\nwindow.droplabAjax = droplabAjax;\n\nexports.default = droplabAjax;\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// dist/plugins/ajax.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 10);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 595d943f775089263f5d","function droplabAjaxException(message) {\n this.message = message;\n}\n\nconst droplabAjax = {\n _loadUrlData: function _loadUrlData(url) {\n var self = this;\n return new Promise(function(resolve, reject) {\n var xhr = new XMLHttpRequest;\n xhr.open('GET', url, true);\n xhr.onreadystatechange = function () {\n if(xhr.readyState === XMLHttpRequest.DONE) {\n if (xhr.status === 200) {\n var data = JSON.parse(xhr.responseText);\n self.cache[url] = data;\n return resolve(data);\n } else {\n return reject([xhr.responseText, xhr.status]);\n }\n }\n };\n xhr.send();\n });\n },\n _loadData: function _loadData(data, config, self) {\n if (config.loadingTemplate) {\n var dataLoadingTemplate = self.hook.list.list.querySelector('[data-loading-template]');\n if (dataLoadingTemplate) {\n dataLoadingTemplate.outerHTML = self.listTemplate;\n }\n }\n self.hook.list[config.method].call(self.hook.list, data);\n },\n init: function init(hook) {\n var self = this;\n self.cache = self.cache || {};\n var config = hook.config.droplabAjax;\n this.hook = hook;\n if (!config || !config.endpoint || !config.method) {\n return;\n }\n if (config.method !== 'setData' && config.method !== 'addData') {\n return;\n }\n if (config.loadingTemplate) {\n var dynamicList = hook.list.list.querySelector('[data-dynamic]');\n var loadingTemplate = document.createElement('div');\n loadingTemplate.innerHTML = config.loadingTemplate;\n loadingTemplate.setAttribute('data-loading-template', '');\n this.listTemplate = dynamicList.outerHTML;\n dynamicList.outerHTML = loadingTemplate.outerHTML;\n }\n if (self.cache[config.endpoint]) {\n self._loadData(self.cache[config.endpoint], config, self);\n } else {\n this._loadUrlData(config.endpoint)\n .then(function(d) {\n self._loadData(d, config, self);\n }).catch(function(e) {\n throw new droplabAjaxException(e.message || e);\n });\n }\n },\n destroy: function() {\n var dynamicList = this.hook.list.list.querySelector('[data-dynamic]');\n if (this.listTemplate && dynamicList) {\n dynamicList.outerHTML = this.listTemplate;\n }\n }\n};\n\nwindow.droplabAjax = droplabAjax;\n\nexport default droplabAjax;\n\n\n\n// WEBPACK FOOTER //\n// ./src/plugins/ajax.js"],"sourceRoot":""} \ No newline at end of file