1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
|
{"ast":null,"code":"import _classCallCheck from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport axios from 'axios';\nexport var NodeService = /*#__PURE__*/function () {\n function NodeService() {\n _classCallCheck(this, NodeService);\n }\n\n _createClass(NodeService, [{\n key: \"getTreeNodes\",\n value: function getTreeNodes() {\n return axios.get('assets/demo/data/treenodes.json').then(function (res) {\n return res.data.root;\n });\n }\n }, {\n key: \"getTreeTableNodes\",\n value: function getTreeTableNodes() {\n return axios.get('assets/demo/data/treetablenodes.json').then(function (res) {\n return res.data.root;\n });\n }\n }]);\n\n return NodeService;\n}();","map":{"version":3,"names":["axios","NodeService","get","then","res","data","root"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/service/NodeService.js"],"sourcesContent":["import axios from 'axios';\n\nexport class NodeService {\n getTreeNodes() {\n return axios.get('assets/demo/data/treenodes.json')\n .then(res => res.data.root);\n }\n\n\tgetTreeTableNodes() {\n\t\treturn axios.get('assets/demo/data/treetablenodes.json')\n\t\t\t.then(res => res.data.root);\n\t}\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,WAAaC,WAAb;EAAA;IAAA;EAAA;;EAAA;IAAA;IAAA,OACI,wBAAe;MACX,OAAOD,KAAK,CAACE,GAAN,CAAU,iCAAV,EACFC,IADE,CACG,UAAAC,GAAG;QAAA,OAAIA,GAAG,CAACC,IAAJ,CAASC,IAAb;MAAA,CADN,CAAP;IAEH;EAJL;IAAA;IAAA,OAMC,6BAAoB;MACnB,OAAON,KAAK,CAACE,GAAN,CAAU,sCAAV,EACLC,IADK,CACA,UAAAC,GAAG;QAAA,OAAIA,GAAG,CAACC,IAAJ,CAASC,IAAb;MAAA,CADH,CAAP;IAEA;EATF;;EAAA;AAAA"},"metadata":{},"sourceType":"module"}
|