This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/.cache/babel-loader/d8f8cf5782966bbf8a4660dcf6472ebf.json
2019-08-11 20:48:02 +02:00

1 line
No EOL
3.5 KiB
JSON

{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js!/home/soeren/dev/keksaccountgui/node_modules/eslint-loader/index.js??ref--13-0!/home/soeren/dev/keksaccountgui/src/store/server.js","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/store/server.js","mtime":1558525601846},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/home/soeren/dev/keksaccountgui/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator\";\nimport Server from \"../services/Server\";\nexport default {\n name: 'Server',\n data: function data() {\n return {\n settings: []\n };\n },\n computed: {\n wordMeaning: function wordMeaning() {\n if (this.wordData) {\n return this.wordData.senses[0].definition;\n }\n\n return '';\n }\n },\n methods: {\n getSettings: function () {\n var _getSettings = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee() {\n var response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Server.getSettings();\n\n case 2:\n response = _context.sent;\n console.log(response);\n this.wordData = response.data.results[0];\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getSettings() {\n return _getSettings.apply(this, arguments);\n }\n\n return getSettings;\n }()\n }\n};",{"version":3,"sources":["/home/soeren/dev/keksaccountgui/src/store/server.js"],"names":["Server","name","data","settings","computed","wordMeaning","wordData","senses","definition","methods","getSettings","response","console","log","results"],"mappings":";;AAAA,OAAOA,MAAP;AAEA,eAAe;AACXC,EAAAA,IAAI,EAAE,QADK;AAEXC,EAAAA,IAFW,kBAEH;AACJ,WAAO;AACHC,MAAAA,QAAQ,EAAE;AADP,KAAP;AAGH,GANU;AAOXC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,WADM,yBACS;AACX,UAAI,KAAKC,QAAT,EAAmB;AACf,eAAO,KAAKA,QAAL,CAAcC,MAAd,CAAqB,CAArB,EAAwBC,UAA/B;AACH;;AACD,aAAO,EAAP;AACH;AANK,GAPC;AAeXC,EAAAA,OAAO,EAAE;AACCC,IAAAA,WADD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAEsBV,MAAM,CAACU,WAAP,EAFtB;;AAAA;AAEKC,gBAAAA,QAFL;AAGDC,gBAAAA,OAAO,CAACC,GAAR,CAAYF,QAAZ;AACA,qBAAKL,QAAL,GAAgBK,QAAQ,CAACT,IAAT,CAAcY,OAAd,CAAsB,CAAtB,CAAhB;;AAJC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAfE,CAAf","sourcesContent":["import Server from '../services/Server'\n\nexport default {\n name: 'Server',\n data () {\n return {\n settings: [],\n }\n },\n computed: {\n wordMeaning () {\n if (this.wordData) {\n return this.wordData.senses[0].definition\n }\n return ''\n }\n },\n methods: {\n async getSettings () {\n const response = await Server.getSettings();\n console.log(response);\n this.wordData = response.data.results[0]\n }\n }\n}\n"]}]}