-
Notifications
You must be signed in to change notification settings - Fork 13
/
bundle.js
1 lines (1 loc) · 3.12 KB
/
bundle.js
1
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e){e.exports=JSON.parse('{"name":"Nex Zhu","skillset":{"Assembly Language":2,"DLT":{".level":2,"Blockchain":2,"Consensus Mechanism":2,"Smart Contract":2},"C#":1,"C/C++":2,"Dart":1,"Data Mining":2,"Data Store":{"NoSQL":{"LevelDB":1,"MongoDB":2,"Neo4j":1,"Redis":3},"RDBMS":{"MySQL/MariaDB":2,"PostgreSQL":2,"SQL":2}},"Front-end":{"Angular":1,"Backbone/Marionette":3,"CSS":{".level":3,"Bootstrap":2,"Foundation":2,"SASS/SCSS":2,"Semantic UI":1},"HTML":3,"Polymer":1,"React":2,"Redux":2,"Underscore/Lo-Dash":3,"Vue":2,"jQuery":3,"webpack":2},"Functional Programming":2,"Go":3,"Java":{".level":3,"Dropwizard":3,"Eclipse RCP":1,"Hibernate":2,"Spring":2,"SWT":1},"JavaScript":{".level":3,"CoffeeScript":1,"TypeScript":3},"Kotlin":{".level":2,"Ktor":2},"Lua":1,"Machine Learning":{".level":2,"NLP":1},"MATLAB/Octave":2,"Mobile":{"Android":1,"Cordova":1,"iOS":1,"jQuery Mobile":3},"Node.js":{".level":3,"Connect":3,"Curveball":3,"Express":3,"FoalTS":3,"hapi":2,"Meteor":2,"Micro":3,"Sails":3,"Socket.IO":2},"Objec-Oriented Programming":3,"Operation":{"Docker":{".level":2,"Docker Compose":2},"Kubernetes":{".level":1,"Helm":1},"Linux":2,"Salt":1,"Shell script":1,"Vagrant":1},"P2P network":2,"Pascal":2,"PHP":1,"Python":2,"Visual Basic":1}}')},function(e,t,n){"use strict";function r(e){e=JSON.parse(e);try{let t={root:{data:{text:e.name+"'s Skill Set"},children:[]}};return function e(t,n){for(let r in t){if(!t.hasOwnProperty(r)||r.startsWith("."))continue;let o={data:{text:r},children:[]},i=t[r];"object"==typeof i||"string"==typeof i?(i[".level"]&&(o.data.priority=i[".level"]),e(i,o.children)):o.data.priority=i,n.push(o)}}(e.skillset,t.root.children),JSON.stringify(t)}catch(e){return null}}n.r(t);var o=n(0);window.onload=()=>{const e=ace.edit("editor"),t=ace.require("ace/mode/json").Mode;e.session.setMode(new t),e.setValue(JSON.stringify(o,null," "));const n=window.km=new kityminder.Minder;function i(){n.importData("json",r(e.getValue()))}n.renderTo("#minder-view"),i(),n.disable(),n.execCommand("hand"),document.querySelector("#generate-btn").onclick=i,document.querySelector("#save-btn").onclick=function(){n.exportData("png").then(e=>{const t=document.createElement("a");t.href=e,t.download="skill-set.png",t.click(),document.querySelector("canvas").remove()})}}}]);