Newer
Older
open-logistic-tycoon / app.js.map
{"version":3,"sources":["config.js","kernel/Boot.js","kernel/Loader.js"],"names":["config","version","build","title","include","css","modules","square","plugins","sample","Boot","constructor","app","console","log","this","renderTitle","includeCSS","loader","Loader","cssfile","head","document","querySelector","innerHTML","kernelInit","boot","addEventListener","e","kernel"],"mappings":"AAAA,IAAAA,OAAA,CACAC,QAAA,WACAC,MAAA,EACAC,MAAA,uBACAC,QAAA,CACAC,IAAA,CACA,8BAEA,EACAC,QAAA,CACAC,OAAA,CAAA,CACA,EACAC,QAAA,CACAC,OAAA,CAAA,CACA,CACA,QCfAC,KACAC,YAAAC,GACAC,QAAAC,IAAA,WAAA,EAEAC,KAAAH,IAAAA,EACAG,KAAAC,YAAA,EACAD,KAAAE,WAAA,EACAF,KAAAG,OAAA,IAAAC,MACA,CAEAF,aACA,IACAG,EADAC,EAAAC,SAAAC,cAAA,MAAA,EACA,IAAAH,KAAApB,OAAAI,QAAAC,IACAgB,EAAAG,UAAAH,EAAAG,0DAAAJ,KAEA,CAEAJ,cACAM,SAAAC,cAAA,OAAA,EAAAC,UAAAxB,OAAAG,MAAA,IAAAH,OAAAC,OACA,CACA,CAEA,IAAAwB,WAAA,SAAAb,GAGA,OAFAG,KAAAW,KAAA,IAAAhB,KAAAE,CAAA,EAEAG,IACA,EAEAH,IAAA,GAEAU,SAAAK,iBAAA,mBAAAC,IACAhB,IAAAiB,OAAAJ,WAAA,CACA,CAAA,QChCAN,OACAR,cACAE,QAAAC,IAAA,aAAA,CAGA,CACA","file":"app.js","sourcesContent":["const config = {\n\t\"version\": \"v0.1 dev\",\n\t\"build\": 1,\n\t\"title\": \"Open Logistic Tycoon\",\n\t\"include\": {\n\t\t\"css\": [\n\t\t\t\"game/resources/dist.min.css\"\n\t\t]\n\t},\n\t\"modules\": {\n\t\t\"square\": true\t\n\t},\n\t\"plugins\": {\n\t\t\"sample\": false\n\t}\n}","class Boot {\n\tconstructor(app) {\n\t\tconsole.log(\"Init Boot\");\n\n\t\tthis.app = app;\n\t\tthis.renderTitle();\n\t\tthis.includeCSS();\n\t\tthis.loader = new Loader();\n\t}\n\n\tincludeCSS() {\n\t\tconst head = document.querySelector('head');\n\t\tfor(let cssfile of config.include.css) {\n\t\t\thead.innerHTML = head.innerHTML + `<style type=\"text/css\" rel=\"stylesheet\" src=\"${cssfile}\">`;\n\t\t}\n\t}\n\n\trenderTitle() {\n\t\tdocument.querySelector('title').innerHTML = config.title + \" \" + config.version;\n\t}\n}\n\nconst kernelInit = (function(app){\n\tthis.boot = new Boot(app);\n\n\treturn this;\n});\n\nlet app = {};\n\ndocument.addEventListener(\"DOMContentLoaded\", e => {\n\tapp.kernel = kernelInit();\n});\n","class Loader {\n\tconstructor() {\n\t\tconsole.log(\"Init Loader\");\n\n\t\t\n\t}\n}"]}