-
Notifications
You must be signed in to change notification settings - Fork 0
/
3.bundle.js.map
executable file
·1 lines (1 loc) · 3.42 KB
/
3.bundle.js.map
1
{"version":3,"sources":["webpack:///./js/views/addUser.js","webpack:///./js/vendors/rest.js","webpack:///./js/template/addUser.html"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA,MAAK;AACL;;AAEA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA,EAAC;AACD;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;;;;;;;;;;AC/DA,2B","file":"3.bundle.js","sourcesContent":["var $http = require('../vendors/rest.js');\nvar grid = Vue.extend({\n template: require('../template/addUser.html'),\n data: function (transition) {\n },\n computed: {\n\n },\n methods: {\n\n },\n route: {\n activate: function (transition) {\n transition.next()\n },\n deactivate: function (transition) {\n console.log('hook-example deactivated!')\n transition.next()\n }\n }\n\n});\nmodule.exports = grid;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./js/views/addUser.js\n ** module id = 17\n ** module chunks = 3\n **/","module.exports = function(url) {\n 'use strict';\n // A small example of object\n var core = {\n // Method that performs the ajax request\n ajax : function (method, url, args) {\n // Creating a promise\n var promise = new Promise( function (resolve, reject) {\n\n // Instantiates the XMLHttpRequesturl\n var client = new XMLHttpRequest();\n var uri = url;\n\n if (args && (method === 'POST' || method === 'PUT')) {\n uri += '?';\n var argcount = 0;\n for (var key in args) {\n if (args.hasOwnProperty(key)) {\n if (argcount++) {\n uri += '&';\n }\n uri += encodeURIComponent(key) + '=' + encodeURIComponent(args[key]);\n }\n }\n }\n\n client.open(method, uri);\n client.send();\n\n client.onload = function () {\n if (this.status >= 200 && this.status < 300) {\n // Performs the function \"resolve\" when this.status is equal to 2xx\n resolve(this.response);\n } else {\n // Performs the function \"reject\" when this.status is different than 2xx\n reject(this.statusText);\n }\n };\n client.onerror = function () {\n reject(this.statusText);\n };\n });\n\n // Return the promise\n return promise;\n }\n };\n\n // Adapter pattern\n return {\n 'get' : function(args) {\n return core.ajax('GET', url, args);\n },\n 'post' : function(args) {\n return core.ajax('POST', url, args);\n },\n 'put' : function(args) {\n return core.ajax('PUT', url, args);\n },\n 'delete' : function(args) {\n return core.ajax('DELETE', url, args);\n }\n };\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./js/vendors/rest.js\n ** module id = 18\n ** module chunks = 3\n **/","module.exports = \"mfmf\\n\";\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./js/template/addUser.html\n ** module id = 19\n ** module chunks = 3\n **/"],"sourceRoot":""}