Markdown parsing + tree parsing + content display

This commit is contained in:
NGPixel committed 2016-08-20 17:20:53 -04:00
1 parent ca1882a9c3
commit 1ad03a3d1f
16 files changed
+1057 -56

No files matched your search

+1 -1
View File
@@ -1 +1 @@
.card,.highlight,.highlight pre,.textarea,embed,img,object{max-width:100%}a,hr{padding:0}a,button,input[type=button],input[type=file],input[type=submit],label{cursor:pointer}a,button,input,select,textarea{margin:0}a,input[type=radio],input[type=checkbox]{vertical-align:baseline}a:hover,strong,table th{color:#222324}body,pre,pre code{color:#69707a}.container,sub,sup{position:relative}.is-block,article,aside,details,figure,footer,header,hgroup,hr,nav,pre code,section,summary{display:block}.button,.delete,.input,.modal-close,.progress,.select select,.textarea{-moz-appearance:none;-webkit-appearance:none}.heading,.menu-label{letter-spacing:1px;text-transform:uppercase}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Thin.woff) format("woff");font-weight:100;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-ThinItalic.woff) format("woff");font-weight:100;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Light.woff) format("woff");font-weight:300;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-LightItalic.woff) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Regular.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-RegularItalic.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Medium.woff) format("woff");font-weight:500;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-MediumItalic.woff) format("woff");font-weight:500;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Bold.woff) format("woff");font-weight:700;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-BoldItalic.woff) format("woff");font-weight:700;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Black.woff) format("woff");font-weight:900;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-BlackItalic.woff) format("woff");font-weight:900;font-style:italic}abbr,address,article,aside,audio,b,blockquote,body,body div,caption,cite,code,dd,del,details,dfn,dl,dt,em,fieldset,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font-weight:400;vertical-align:baseline;background:0 0}td,td img{vertical-align:top}code,html,pre,pre code{background-color:#f5f7fa}*,:after,:before{box-sizing:inherit}ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}.is-clearfix:after,.notification:after,.select:after{content:" "}a{font-size:100%;background:0 0;color:#1fc8db;text-decoration:none;transition:none 86ms ease-out}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help}th{font-weight:700;vertical-align:bottom}td{font-weight:400}hr{height:1px;border:0;border-top:1px solid #ccc;border-top-color:#d3d6db;margin:40px 0}input,select{vertical-align:middle}input,select,textarea{font:99% sans-serif}table{border-collapse:collapse;border-spacing:0;font:100%;width:100%}body,code{font-weight:400}sub,sup{font-size:75%;line-height:0}sup{top:-.5em}sub{bottom:-.25em}code,kbd,pre,samp{font-family:monospace,sans-serif}button,input[type=button]{width:auto;overflow:visible}@keyframes spin-around{from{transform:rotate(0)}to{transform:rotate(359deg)}}html{box-sizing:border-box;font-size:14px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility}body,button,input,select,textarea{font-family:Roboto,Helvetica,Arial,sans-serif}code,pre{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;font-family:"Source Code Pro",Monaco,Inconsolata,monospace;line-height:1.25}body{font-size:1rem;line-height:1.428571428571429}code{color:#ed6c63;font-size:12px;padding:1px 2px 2px}.button,.fa,.input,.textarea,table td,table th{vertical-align:top}small{font-size:11px}span{font-style:inherit;font-weight:inherit}.label,strong{font-weight:700}pre{white-space:pre;word-wrap:normal}.button,.nav-left,.table td.is-icon,.table th.is-icon,.tabs,.tag{white-space:nowrap}pre code{overflow-x:auto;padding:16px 20px}.box,.button{background-color:#fff}table td,table th{text-align:left}.fa,.has-text-centered{text-align:center}.block:not(:last-child),.box:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:20px}@media screen and (min-width:980px){.container{margin:0 auto;max-width:960px}.container.is-fluid{margin:0 20px;max-width:none}.is-block-desktop{display:block!important}}.fa{font-sizLine truncated
.card,.highlight,.highlight pre,.textarea,embed,img,object{max-width:100%}a,hr{padding:0}a,button,input[type=button],input[type=file],input[type=submit],label{cursor:pointer}a,button,input,select,textarea{margin:0}a,input[type=radio],input[type=checkbox]{vertical-align:baseline}a:hover,strong,table th{color:#222324}body,pre,pre code{color:#69707a}.container,sub,sup{position:relative}.is-block,article,aside,details,figure,footer,header,hgroup,hr,nav,pre code,section,summary{display:block}.button,.delete,.input,.modal-close,.progress,.select select,.textarea{-moz-appearance:none;-webkit-appearance:none}.heading,.menu-label{letter-spacing:1px;text-transform:uppercase}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Thin.woff) format("woff");font-weight:100;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-ThinItalic.woff) format("woff");font-weight:100;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Light.woff) format("woff");font-weight:300;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-LightItalic.woff) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Regular.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-RegularItalic.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Medium.woff) format("woff");font-weight:500;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-MediumItalic.woff) format("woff");font-weight:500;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Bold.woff) format("woff");font-weight:700;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-BoldItalic.woff) format("woff");font-weight:700;font-style:italic}@font-face{font-family:Roboto;src:url(/fonts/Roboto-Black.woff) format("woff");font-weight:900;font-style:normal}@font-face{font-family:Roboto;src:url(/fonts/Roboto-BlackItalic.woff) format("woff");font-weight:900;font-style:italic}abbr,address,article,aside,audio,b,blockquote,body,body div,caption,cite,code,dd,del,details,dfn,dl,dt,em,fieldset,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font-weight:400;vertical-align:baseline;background:0 0}td,td img{vertical-align:top}code,html,pre,pre code{background-color:#f5f7fa}*,:after,:before{box-sizing:inherit}ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}.is-clearfix:after,.notification:after,.select:after{content:" "}a{font-size:100%;background:0 0;color:#1fc8db;text-decoration:none;transition:none 86ms ease-out}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help}th{font-weight:700;vertical-align:bottom}td{font-weight:400}hr{height:1px;border:0;border-top:1px solid #ccc;border-top-color:#d3d6db;margin:40px 0}input,select{vertical-align:middle}input,select,textarea{font:99% sans-serif}table{border-collapse:collapse;border-spacing:0;font:100%;width:100%}body,code{font-weight:400}sub,sup{font-size:75%;line-height:0}sup{top:-.5em}sub{bottom:-.25em}code,kbd,pre,samp{font-family:monospace,sans-serif}button,input[type=button]{width:auto;overflow:visible}@keyframes spin-around{from{transform:rotate(0)}to{transform:rotate(359deg)}}html{box-sizing:border-box;font-size:14px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility}body,button,input,select,textarea{font-family:Roboto,Helvetica,Arial,sans-serif}code,pre{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;font-family:"Source Code Pro",Monaco,Inconsolata,monospace;line-height:1.25}body{font-size:1rem;line-height:1.428571428571429}code{color:#ed6c63;font-size:12px;padding:1px 2px 2px}.button,.fa,.input,.textarea,table td,table th{vertical-align:top}small{font-size:11px}span{font-style:inherit;font-weight:inherit}.label,strong{font-weight:700}pre{white-space:pre;word-wrap:normal}.button,.nav-left,.table td.is-icon,.table th.is-icon,.tabs,.tag{white-space:nowrap}pre code{overflow-x:auto;padding:16px 20px}.box,.button{background-color:#fff}table td,table th{text-align:left}.fa,.has-text-centered{text-align:center}.block:not(:last-child),.box:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:20px}@media screen and (min-width:980px){.container{margin:0 auto;max-width:960px}.container.is-fluid{margin:0 20px;max-width:none}.is-block-desktop{display:block!important}}.fa{font-sizLine truncated
+1
View File
@@ -0,0 +1 @@
"use strict";jQuery(document).ready(function(e){e("a").smoothScroll({speed:"auto"})});
+1 -1
View File
@@ -5,4 +5,4 @@ Dt["[object Float32Array]"]=Dt["[object Float64Array]"]=Dt["[object Int8Array]"]
Xa.prototype={constructor:Xa,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Xa.propHooks[this.prop];return a&&a.get?a.get(this):Xa.propHooks._default.get(this)},run:function(a){var b,c=Xa.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Xa.propHooks._default.set(this),this}},Xa.prototype.init.prototype=Xa.prototype,Xa.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Xa.propHooks.scrollTop=Xa.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Xa.prototype.init,r.fx.step={};var Ya,Za,$a=/^(?:toggle|show|hide)$/,_a=/queueHooks$/;r.Animation=r.extend(gb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return da(c.elem,a,_.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(K);for(var c,d=0,e=a.length;d<e;d++)c=a[d],gb.tweeners[c]=gb.tweeners[c]||[],gb.tweeners[c].unshift(b)},prefilters:[eb],prefilter:function(a,b){b?gb.prefilters.unshift(a):gb.prefilters.push(a)}}),r.speed=function(a,b,c){var e=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off||d.hidden?e.duration=0:e.duration="number"==typeof e.duration?e.duration:e.duration in r.fx.speeds?r.fx.speeds[e.duration]:r.fx.speeds._default,null!=e.queue&&e.queue!==!0||(e.queue="fx"),e.old=e.complete,e.complete=function(){r.isFunction(e.old)&&e.old.call(this),e.queue&&r.dequeue(this,e.queue)},e},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(ba).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=gb(this,r.extend({},a),f);(e||V.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=V.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&_a.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=V.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(cb(b,!0),a,d,e)}}),r.each({slideDown:cb("show"),slideUp:cb("hide"),slideToggle:cb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(Ya=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),Ya=void 0},r.fx.timer=function(a){r.timers.push(a),a()?r.fx.start():r.timers.pop()},r.fx.interval=13,r.fx.start=function(){Za||(Za=a.requestAnimationFrame?a.requestAnimationFrame(ab):a.setInterval(r.fx.tick,r.fx.interval))},r.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame(Za):a.clearInterval(Za),Za=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var hb,ib=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return S(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==fLine truncated
}function it(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function nt(t,e){var i=An.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function rt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;n>i;i++){var r=e[i].name;if(Nn.test(r))return l(r.replace(Nn,""))}}function st(t,e,i){for(var n;t!==e;)n=t.nextSibling,i(t),t=n;i(e)}function ot(t,e,i,n,r){function s(){if(a++,o&&a>=h.length){for(var t=0;t<h.length;t++)n.appendChild(h[t]);r&&r()}}var o=!1,a=0,h=[];st(t,e,function(t){t===e&&(o=!0),h.push(t),P(t,i,s)})}function at(t){return t&&11===t.nodeType}function ht(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function lt(t,e){var i=t.tagName.toLowerCase(),n=t.hasAttributes();if(jn.test(i)||En.test(i)){if(n)return ct(t,e)}else{if(gt(e,"components",i))return{id:i};var r=n&&ct(t,e);if(r)return r}}function ct(t,e){var i=t.getAttribute("is");if(null!=i){if(gt(e,"components",i))return t.removeAttribute("is"),{id:i}}else if(i=M(t,"is"),null!=i)return{id:i,dynamic:!0}}function ut(e,n){var r,s,o;for(r in n)s=e[r],o=n[r],i(e,r)?m(s)&&m(o)&&ut(s,o):t(e,r,o);return e}function ft(t,e){var i=Object.create(t||null);return e?v(i,vt(e)):i}function pt(t){if(t.components)for(var e,i=t.components=vt(t.components),n=Object.keys(i),r=0,s=n.length;s>r;r++){var o=n[r];jn.test(o)||En.test(o)||(e=i[o],g(e)&&(i[o]=wi.extend(e)))}}function dt(t){var e,i,n=t.props;if(Di(n))for(t.props={},e=n.length;e--;)i=n[e],"string"==typeof i?t.props[i]=null:i.name&&(t.props[i.name]=i);else if(g(n)){var r=Object.keys(n);for(e=r.length;e--;)i=n[r[e]],"function"==typeof i&&(n[r[e]]={type:i})}}function vt(t){if(Di(t)){for(var e,i={},n=t.length;n--;){e=t[n];var r="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;r&&(i[r]=e)}return i}return t}function mt(t,e,n){function r(i){var r=Sn[i]||Fn;o[i]=r(t[i],e[i],n,i)}pt(e),dt(e);var s,o={};if(e.extends&&(t="function"==typeof e.extends?mt(t,e.extends.options,n):mt(t,e.extends,n)),e.mixins)for(var a=0,h=e.mixins.length;h>a;a++){var l=e.mixins[a],c=l.prototype instanceof wi?l.options:l;t=mt(t,c,n)}for(s in t)r(s);for(s in e)i(t,s)||r(s);return o}function gt(t,e,i,n){if("string"==typeof i){var r,s=t[e],o=s[i]||s[r=l(i)]||s[r.charAt(0).toUpperCase()+r.slice(1)];return o}}function _t(){this.id=Dn++,this.subs=[]}function yt(t){Hn=!1,t(),Hn=!0}function bt(t){if(this.value=t,this.dep=new _t,_(t,"__ob__",this),Di(t)){var e=Pi?wt:Ct;e(t,Rn,Ln),this.observeArray(t)}else this.walk(t)}function wt(t,e){t.__proto__=e}function Ct(t,e,i){for(var n=0,r=i.length;r>n;n++){var s=i[n];_(t,s,e[s])}}function $t(t,e){if(t&&"object"==typeof t){var n;return i(t,"__ob__")&&t.__ob__ instanceof bt?n=t.__ob__:Hn&&(Di(t)||g(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new bt(t)),n&&e&&n.addVm(e),n}}function kt(t,e,i){var n=new _t,r=Object.getOwnPropertyDescriptor(t,e);if(!r||r.configurable!==!1){var s=r&&r.get,o=r&&r.set,a=$t(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):i;if(_t.target&&(n.depend(),a&&a.dep.depend(),Di(e)))for(var r,o=0,h=e.length;h>o;o++)r=e[o],r&&r.__ob__&&r.__ob__.dep.depend();return e},set:function(e){var r=s?s.call(t):i;e!==r&&(o?o.call(t,e):i=e,a=$t(e),n.notify())}})}}function xt(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Mn++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=mt(this.constructor.options,t,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function At(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function Ot(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(n(e)?h(e):"*"+e)}function Tt(t){function e(){var e=t[c+1];return u===Xn&&"'"===e||u===Yn&&'"'===e?(c++,n="\\"+e,p[Bn](),!0):void 0}var i,n,r,s,o,a,h,l=[],c=-1,u=Jn,f=0,p=[];for(p[Wn]=function(){void 0!==r&&(l.push(r),r=void 0)},p[Bn]=function(){void 0===r?r=n:r+=n},p[zn]=function(){p[Bn](),f++},p[Un]=function(){if(f>0)f--,u=Zn,p[Bn]();else{if(f=0,r=Ot(r),r===!1)return!1;p[Wn]()}};null!=u;)if(c++,i=t[c],"\\"!==i||!e()){if(s=At(i),h=er[u],Line truncated
for(;o--;)if(r=h[o],"$key"===r&&xi(n.$key,e)||xi(jt(s,r),e)){l.push(n);break}}else xi(n,e)&&l.push(n);return l}function ki(t){function e(t,e,i){var r=n[i];return r&&("$key"!==r&&(m(t)&&"$value"in t&&(t=t.$value),m(e)&&"$value"in e&&(e=e.$value)),t=m(t)?jt(t,r):t,e=m(e)?jt(e,r):e),t===e?0:t>e?s:-s}var i=null,n=void 0;t=Ks(t);var r=d(arguments,1),s=r[r.length-1];"number"==typeof s?(s=0>s?-1:1,r=r.length>1?r.slice(0,-1):r):s=1;var o=r[0];return o?("function"==typeof o?i=function(t,e){return o(t,e)*s}:(n=Array.prototype.concat.apply([],r),i=function(t,r,s){return s=s||0,s>=n.length-1?e(t,r,s):e(t,r,s)||i(t,r,s+1)}),t.slice().sort(i)):t}function xi(t,e){var i;if(g(t)){var n=Object.keys(t);for(i=n.length;i--;)if(xi(t[n[i]],e))return!0}else if(Di(t)){for(i=t.length;i--;)if(xi(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function Ai(i){function n(t){return new Function("return function "+f(t)+" (options) { this._init(options) }")()}i.options={directives:bs,elementDirectives:Ys,filters:eo,transitions:{},components:{},partials:{},replace:!0},i.util=In,i.config=An,i.set=t,i.delete=e,i.nextTick=Yi,i.compiler=qs,i.FragmentFactory=se,i.internalDirectives=Hs,i.parsers={path:ir,text:$n,template:Fr,directive:gn,expression:mr},i.cid=0;var r=1;i.extend=function(t){t=t||{};var e=this,i=0===e.cid;if(i&&t._Ctor)return t._Ctor;var s=t.name||e.options.name,o=n(s||"VueComponent");return o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.cid=r++,o.options=mt(e.options,t),o.super=e,o.extend=e.extend,An._assetTypes.forEach(function(t){o[t]=e[t]}),s&&(o.options.components[s]=o),i&&(t._Ctor=o),o},i.use=function(t){if(!t.installed){var e=d(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},i.mixin=function(t){i.options=mt(i.options,t)},An._assetTypes.forEach(function(t){i[t]=function(e,n){return n?("component"===t&&g(n)&&(n.name||(n.name=e),n=i.extend(n)),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}),v(i.transition,Tn)}var Oi=Object.prototype.hasOwnProperty,Ti=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Ni=/-(\w)/g,ji=/([a-z\d])([A-Z])/g,Ei=/(?:^|[-_\/])(\w)/g,Si=Object.prototype.toString,Fi="[object Object]",Di=Array.isArray,Pi="__proto__"in{},Ri="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Li=Ri&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Hi=Ri&&window.navigator.userAgent.toLowerCase(),Ii=Hi&&Hi.indexOf("trident")>0,Mi=Hi&&Hi.indexOf("msie 9.0")>0,Vi=Hi&&Hi.indexOf("android")>0,Bi=Hi&&/(iphone|ipad|ipod|ios)/i.test(Hi),Wi=Bi&&Hi.match(/os ([\d_]+)/),zi=Wi&&Wi[1].split("_"),Ui=zi&&Number(zi[0])>=9&&Number(zi[1])>=3&&!window.indexedDB,Ji=void 0,qi=void 0,Qi=void 0,Gi=void 0;if(Ri&&!Mi){var Zi=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,Xi=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Ji=Zi?"WebkitTransition":"transition",qi=Zi?"webkitTransitionEnd":"transitionend",Qi=Xi?"WebkitAnimation":"animation",Gi=Xi?"webkitAnimationEnd":"animationend"}var Yi=function(){function t(){n=!1;var t=i.slice(0);i=[];for(var e=0;e<t.length;e++)t[e]()}var e,i=[],n=!1;if("undefined"==typeof MutationObserver||Ui){var r=Ri?window:"undefined"!=typeof global?global:{};e=r.setImmediate||setTimeout}else{var s=1,o=new MutationObserver(t),a=document.createTextNode(s);o.observe(a,{characterData:!0}),e=function(){s=(s+1)%2,a.data=s}}return function(r,s){var o=s?function(){r.call(s)}:r;i.push(o),n||(n=!0,e(t,0))}}(),Ki=void 0;"undefined"!=typeof Set&&Set.toString().match(/native code/)?Ki=Set:(Ki=function(){this.set=Object.create(null)},Ki.prototype.has=function(t){return void 0!==this.set[t]},Ki.prototype.add=function(t){this.set[t]=1},Ki.prototype.clear=function(){this.set=Object.create(null)});var tn=$.prototype;tn.put=function(t,e){var i,n=this.get(t,!0);return n||(this.size===this.limit&&(i=this.shift()),n={key:t},this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size++),n.value=e,i},tn.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0,this.size--),t},tn.get=function(t,e){var i=this._keymap[t];if(void 0!==i)return i===this.tail?e?i:i.value:(i.newer&&(i===this.head&&(this.head=i.newer),i.newer.older=i.older),i.older&&(i.older.newer=i.newer),i.newer=void 0,i.older=this.tail,this.tail&&(this.tail.newer=i),this.tail=i,e?i:i.value)};var en,nn,rn,sn,on,an,hn,ln,cn,un,fn,pn,dn=new $(1e3),vn=/[^\s'"]+|'[^']*'|"[^"]*"/g,mn=/^in$|^-?\d+/,gn=Object.freeze({parseDirective:A}),_n=/[-.*+?^${}()|[\]\/\\]/g,yn=void 0,bn=void 0,wn=void 0,Cn=/[^|]\|[^|]/,$n=Object.freeze({compileRegex:T,parseText:N,tokensToExp:j}),kn=["{{","}}"],xn=["{{{","}}}"],An=Object.defineProperties({debug:!1,silent:!1,async:!0,warnExpressionErrors:!0,devtools:!1,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transLine truncated
}else this.leaveDone()},Rs.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Y(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},Rs.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,Q(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Y(this.el,this.enterClass),Y(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},Rs.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},Rs.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=w(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},Rs.getCssTransitionType=function(t){if(!(!qi||document.hidden||this.hooks&&this.hooks.css===!1||Fe(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),r=i[Ss]||n[Ss];if(r&&"0s"!==r)e=js;else{var s=i[Fs]||n[Fs];s&&"0s"!==s&&(e=Es)}return e&&(this.typeCache[t]=e),e}},Rs.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,r=this.pendingCssCb=function(s){s.target===n&&(Q(n,t,r),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};q(n,t,r)};var Ls={priority:Ir,update:function(t,e){var i=this.el,n=gt(this.vm.$options,"transitions",t);t=t||"v",e=e||"v",i.__v_trans=new Se(i,t,n,this.vm),Y(i,e+"-transition"),X(i,t+"-transition")}},Hs={style:ls,class:ws,component:Cs,prop:Os,transition:Ls},Is=/^v-bind:|^:/,Ms=/^v-on:|^@/,Vs=/^v-([^:]+)(?:$|:(.*)$)/,Bs=/\.[^\.]+/g,Ws=/^(v-bind:|:)?transition$/,zs=1e3,Us=2e3;Ye.terminal=!0;var Js=/[^\w\-:\.]/,qs=Object.freeze({compile:De,compileAndLinkProps:Ie,compileRoot:Me,transclude:si,resolveSlots:li}),Qs=/^v-on:|^@/;di.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:v(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=pi;var s=this._preProcess?p(this._preProcess,this):null,o=this._postProcess?p(this._postProcess,this):null,a=this._watcher=new Ut(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:s,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},di.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,r=t.length;r--;)e=u(t[r]),n=l(e),i=M(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=I(this.el,e),null!=i&&(this.params[n]=""===i||i))}},di.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(i.params[t]=e,n){var s=i.paramWatchers&&i.paramWatchers[t];s&&s.call(i,e,r)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},di.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Mt(t)){var e=It(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},di.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},di.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Yi(function(){e._locked=!1})},di.prototype.on=function(t,e,i){q(this.el,t,e,i),(this._listeners||(this._listeners=[])).push([t,e])},di.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)Q(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Gs=/[^|]\|[^|]/;xt(wi),ui(wi),fi(wi),vi(wi),mi(wi),gi(wi),_i(wi),yi(wi),bi(wi);var Zs={priority:Ur,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,i){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var n=document.createElement("template");n.setAttribute("v-else",""),n.innerHTML=this.el.innerHTML,n._context=this.vm,t.appendChild(n)}var r=i?i._scope:this._scope;this.unlink=e.$compile(t,i,r,this._frag)}t?J(this.el,t):z(this.el)},fallback:function(){this.compile(K(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Xs={priority:Br,params:["name"],paramLine truncated
}else this.leaveDone()},Rs.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Y(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},Rs.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,Q(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Y(this.el,this.enterClass),Y(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},Rs.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},Rs.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=w(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},Rs.getCssTransitionType=function(t){if(!(!qi||document.hidden||this.hooks&&this.hooks.css===!1||Fe(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),r=i[Ss]||n[Ss];if(r&&"0s"!==r)e=js;else{var s=i[Fs]||n[Fs];s&&"0s"!==s&&(e=Es)}return e&&(this.typeCache[t]=e),e}},Rs.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,r=this.pendingCssCb=function(s){s.target===n&&(Q(n,t,r),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};q(n,t,r)};var Ls={priority:Ir,update:function(t,e){var i=this.el,n=gt(this.vm.$options,"transitions",t);t=t||"v",e=e||"v",i.__v_trans=new Se(i,t,n,this.vm),Y(i,e+"-transition"),X(i,t+"-transition")}},Hs={style:ls,class:ws,component:Cs,prop:Os,transition:Ls},Is=/^v-bind:|^:/,Ms=/^v-on:|^@/,Vs=/^v-([^:]+)(?:$|:(.*)$)/,Bs=/\.[^\.]+/g,Ws=/^(v-bind:|:)?transition$/,zs=1e3,Us=2e3;Ye.terminal=!0;var Js=/[^\w\-:\.]/,qs=Object.freeze({compile:De,compileAndLinkProps:Ie,compileRoot:Me,transclude:si,resolveSlots:li}),Qs=/^v-on:|^@/;di.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:v(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=pi;var s=this._preProcess?p(this._preProcess,this):null,o=this._postProcess?p(this._postProcess,this):null,a=this._watcher=new Ut(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:s,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},di.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,r=t.length;r--;)e=u(t[r]),n=l(e),i=M(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=I(this.el,e),null!=i&&(this.params[n]=""===i||i))}},di.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(i.params[t]=e,n){var s=i.paramWatchers&&i.paramWatchers[t];s&&s.call(i,e,r)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},di.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Mt(t)){var e=It(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},di.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},di.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Yi(function(){e._locked=!1})},di.prototype.on=function(t,e,i){q(this.el,t,e,i),(this._listeners||(this._listeners=[])).push([t,e])},di.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)Q(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Gs=/[^|]\|[^|]/;xt(wi),ui(wi),fi(wi),vi(wi),mi(wi),gi(wi),_i(wi),yi(wi),bi(wi);var Zs={priority:Ur,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,i){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var n=document.createElement("template");n.setAttribute("v-else",""),n.innerHTML=this.el.innerHTML,n._context=this.vm,t.appendChild(n)}var r=i?i._scope:this._scope;this.unlink=e.$compile(t,i,r,this._frag)}t?J(this.el,t):z(this.el)},fallback:function(){this.compile(K(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Xs={priority:Br,params:["name"],paramLine truncated
+9
View File
@@ -0,0 +1,9 @@
"use strict";
jQuery( document ).ready(function( $ ) {
$('a').smoothScroll({
speed: 'auto'
});
});
+3 -1
View File
@@ -4,6 +4,8 @@
$warning: #f68b39;
@import 'bulma';
@import './libs/twemoji-awesome';
@import './layout/_header';
@import './layout/_footer';
@import './layout/_footer';
+864
View File
@@ -0,0 +1,864 @@
.twa {
display: inline-block;
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
vertical-align: -0.1em;
background-repeat: no-repeat;
background-position: center center;
background-size: 1em 1em;
}
$size-map: (
"lg": 1.33,
"2x": 2,
"3x": 3,
"4x": 4,
"5x": 5
);
@each $name, $size in $size-map {
.twa-#{$name} {
height: 1em * $size;
width: 1em * $size;
margin: 0 .05em * $size 0 .1em * $size;
vertical-align: -0.1em * $size;
background-size: 1em * $size 1em * $size;
}
}
$emoji-map: (
"1f604": "smile",
"1f606": "laughing",
"1f60a": "blush",
"1f603": "smiley",
"263a": "relaxed",
"1f60f": "smirk",
"1f60d": "heart-eyes",
"1f618": "kissing-heart",
"1f61a": "kissing-closed-eyes",
"1f633": "flushed",
"1f625": "relieved",
"1f60c": "satisfied",
"1f601": "grin",
"1f609": "wink",
"1f61c": "stuck-out-tongue-winking-eye",
"1f61d": "stuck-out-tongue-closed-eyes",
"1f600": "grinning",
"1f617": "kissing",
"1f619": "kissing-smiling-eyes",
"1f61b": "stuck-out-tongue",
"1f634": "sleeping",
"1f61f": "worried",
"1f626": "frowning",
"1f627": "anguished",
"1f62e": "open-mouth",
"1f62c": "grimacing",
"1f615": "confused",
"1f62f": "hushed",
"1f611": "expressionless",
"1f612": "unamused",
"1f605": "sweat-smile",
"1f613": "sweat",
"1f629": "weary",
"1f614": "pensive",
"1f61e": "disappointed",
"1f616": "confounded",
"1f628": "fearful",
"1f630": "cold-sweat",
"1f623": "persevere",
"1f622": "cry",
"1f62d": "sob",
"1f602": "joy",
"1f632": "astonished",
"1f631": "scream",
"1f62b": "tired-face",
"1f620": "angry",
"1f621": "rage",
"1f624": "triumph",
"1f62a": "sleepy",
"1f60b": "yum",
"1f637": "mask",
"1f60e": "sunglasses",
"1f635": "dizzy-face",
"1f47f": "imp",
"1f608": "smiling-imp",
"1f610": "neutral-face",
"1f636": "no-mouth",
"1f607": "innocent",
"1f47d": "alien",
"1f49b": "yellow-heart",
"1f499": "blue-heart",
"1f49c": "purple-heart",
"2764": "heart",
"1f49a": "green-heart",
"1f494": "broken-heart",
"1f493": "heartbeat",
"1f497": "heartpulse",
"1f495": "two-hearts",
"1f49e": "revolving-hearts",
"1f498": "cupid",
"1f496": "sparkling-heart",
"2728": "sparkles",
"2b50": "star",
"1f31f": "star2",
"1f4ab": "dizzy",
"1f4a5": "boom",
"1f4a2": "anger",
"2757": "exclamation",
"2753": "question",
"2755": "grey-exclamation",
"2754": "grey-question",
"1f4a4": "zzz",
"1f4a8": "dash",
"1f4a6": "sweat-drops",
"1f3b6": "notes",
"1f3b5": "musical-note",
"1f525": "fire",
"1f4a9": "poop",
"1f44d": "thumbsup",
"1f44e": "thumbsdown",
"1f44c": "ok-hand",
"1f44a": "punch",
"270a": "fist",
"270c": "v",
"1f44b": "wave",
"270b": "hand",
"1f450": "open-hands",
"261d": "point-up",
"1f447": "point-down",
"1f448": "point-left",
"1f449": "point-right",
"1f64c": "raised-hands",
"1f64f": "pray",
"1f446": "point-up-2",
"1f44f": "clap",
"1f4aa": "muscle",
"1f6b6": "walking",
"1f3c3": "runner",
"1f46b": "couple",
"1f46a": "family",
"1f46c": "two-men-holding-hands",
"1f46d": "two-women-holding-hands",
"1f483": "dancer",
"1f46f": "dancers",
"1f646": "ok-woman",
"1f645": "no-good",
"1f481": "information-desk-person",
"1f64b": "raised-hand",
"1f470": "bride-with-veil",
"1f64e": "person-with-pouting-face",
"1f64d": "person-frowning",
"1f647": "bow",
"1f48f": "couplekiss",
"1f491": "couple-with-heart",
"1f486": "massage",
"1f487": "haircut",
"1f485": "nail-care",
"1f466": "boy",
"1f467": "girl",
"1f469": "woman",
"1f468": "man",
"1f476": "baby",
"1f475": "older-woman",
"1f474": "older-man",
"1f471": "person-with-blond-hair",
"1f472": "man-with-gua-pi-mao",
"1f473": "man-with-turban",
"1f477": "construction-worker",
"1f46e": "cop",
"1f47c": "angel",
"1f478": "princess",
"1f63a": "smiley-cat",
"1f638": "smile-cat",
"1f63b": "heart-eyes-cat",
"1f63d": "kissing-cat",
"1f63c": "smirk-cat",
"1f640": "scream-cat",
"1f63f": "crying-cat-face",
"1f639": "joy-cat",
"1f63e": "pouting-cat",
"1f479": "japanese-ogre",
"1f47a": "japanese-goblin",
"1f648": "see-no-evil",
"1f649": "hear-no-evil",
"1f64a": "speak-no-evil",
"1f482": "guardsman",
"1f480": "skull",
"1f463": "feet",
"1f444": "lips",
"1f48b": "kiss",
"1f4a7": "droplet",
"1f442": "ear",
"1f440": "eyes",
"1f443": "nose",
"1f445": "tongue",
"1f48c": "love-letter",
"1f464": "bust-in-silhouette",
"1f465": "busts-in-silhouette",
"1f4ac": "speech-balloon",
"1f4ad": "thought-balloon",
"2600": "sunny",
"2614": "umbrella",
"2601": "cloud",
"2744": "snowflake",
"26c4": "snowman",
"26a1": "zap",
"1f300": "cyclone",
"1f301": "foggy",
"1f30a": "ocean",
"1f431": "cat",
"1f436": "dog",
"1f42d": "mouse",
"1f439": "hamster",
"1f430": "rabbit",
"1f43a": "wolf",
"1f438": "frog",
"1f42f": "tiger",
"1f428": "koala",
"1f43b": "bear",
"1f437": "pig",
"1f43d": "pig-nose",
"1f42e": "cow",
"1f417": "boar",
"1f435": "monkey-face",
"1f412": "monkey",
"1f434": "horse",
"1f40e": "racehorse",
"1f42b": "camel",
"1f411": "sheep",
"1f418": "elephant",
"1f43c": "panda-face",
"1f40d": "snake",
"1f426": "bird",
"1f424": "baby-chick",
"1f425": "hatched-chick",
"1f423": "hatching-chick",
"1f414": "chicken",
"1f427": "penguin",
"1f422": "turtle",
"1f41b": "bug",
"1f41d": "honeybee",
"1f41c": "ant",
"1f41e": "beetle",
"1f40c": "snail",
"1f419": "octopus",
"1f420": "tropical-fish",
"1f41f": "fish",
"1f433": "whale",
"1f40b": "whale2",
"1f42c": "dolphin",
"1f404": "cow2",
"1f40f": "ram",
"1f400": "rat",
"1f403": "water-buffalo",
"1f405": "tiger2",
"1f407": "rabbit2",
"1f409": "dragon",
"1f410": "goat",
"1f413": "rooster",
"1f415": "dog2",
"1f416": "pig2",
"1f401": "mouse2",
"1f402": "ox",
"1f432": "dragon-face",
"1f421": "blowfish",
"1f40a": "crocodile",
"1f42a": "dromedary-camel",
"1f406": "leopard",
"1f408": "cat2",
"1f429": "poodle",
"1f43e": "paw-prints",
"1f490": "bouquet",
"1f338": "cherry-blossom",
"1f337": "tulip",
"1f340": "four-leaf-clover",
"1f339": "rose",
"1f33b": "sunflower",
"1f33a": "hibiscus",
"1f341": "maple-leaf",
"1f343": "leaves",
"1f342": "fallen-leaf",
"1f33f": "herb",
"1f344": "mushroom",
"1f335": "cactus",
"1f334": "palm-tree",
"1f332": "evergreen-tree",
"1f333": "deciduous-tree",
"1f330": "chestnut",
"1f331": "seedling",
"1f33c": "blossom",
"1f33e": "ear-of-rice",
"1f41a": "shell",
"1f310": "globe-with-meridians",
"1f31e": "sun-with-face",
"1f31d": "full-moon-with-face",
"1f31a": "new-moon-with-face",
"1f311": "new-moon",
"1f312": "waxing-crescent-moon",
"1f313": "first-quarter-moon",
"1f314": "waxing-gibbous-moon",
"1f315": "full-moon",
"1f316": "waning-gibbous-moon",
"1f317": "last-quarter-moon",
"1f318": "waning-crescent-moon",
"1f31c": "last-quarter-moon-with-face",
"1f31b": "first-quarter-moon-with-face",
"1f319": "moon",
"1f30d": "earth-africa",
"1f30e": "earth-americas",
"1f30f": "earth-asia",
"1f30b": "volcano",
"1f30c": "milky-way",
"26c5": "partly-sunny",
"1f38d": "bamboo",
"1f49d": "gift-heart",
"1f38e": "dolls",
"1f392": "school-satchel",
"1f393": "mortar-board",
"1f38f": "flags",
"1f386": "fireworks",
"1f387": "sparkler",
"1f390": "wind-chime",
"1f391": "rice-scene",
"1f383": "jack-o-lantern",
"1f47b": "ghost",
"1f385": "santa",
"1f3b1": "8ball",
"23f0": "alarm-clock",
"1f34e": "apple",
"1f3a8": "art",
"1f37c": "baby-bottle",
"1f388": "balloon",
"1f34c": "banana",
"1f4ca": "bar-chart",
"26be": "baseball",
"1f3c0": "basketball",
"1f6c0": "bath",
"1f6c1": "bathtub",
"1f50b": "battery",
"1f37a": "beer",
"1f37b": "beers",
"1f514": "bell",
"1f371": "bento",
"1f6b4": "bicyclist",
"1f459": "bikini",
"1f382": "birthday",
"1f0cf": "black-joker",
"2712": "black-nib",
"1f4d8": "blue-book",
"1f4a3": "bomb",
"1f516": "bookmark",
"1f4d1": "bookmark-tabs",
"1f4da": "books",
"1f462": "boot",
"1f3b3": "bowling",
"1f35e": "bread",
"1f4bc": "briefcase",
"1f4a1": "bulb",
"1f370": "cake",
"1f4c6": "calendar",
"1f4f2": "calling",
"1f4f7": "camera",
"1f36c": "candy",
"1f4c7": "card-index",
"1f4bf": "cd",
"1f4c9": "chart-with-downwards-trend",
"1f4c8": "chart-with-upwards-trend",
"1f352": "cherries",
"1f36b": "chocolate-bar",
"1f384": "christmas-tree",
"1f3ac": "clapper",
"1f4cb": "clipboard",
"1f4d5": "closed-book",
"1f510": "closed-lock-with-key",
"1f302": "closed-umbrella",
"2663": "clubs",
"1f378": "cocktail",
"2615": "coffee",
"1f4bb": "computer",
"1f38a": "confetti-ball",
"1f36a": "cookie",
"1f33d": "corn",
"1f4b3": "credit-card",
"1f451": "crown",
"1f52e": "crystal-ball",
"1f35b": "curry",
"1f36e": "custard",
"1f361": "dango",
"1f3af": "dart",
"1f4c5": "date",
"2666": "diamonds",
"1f4b5": "dollar",
"1f6aa": "door",
"1f369": "doughnut",
"1f457": "dress",
"1f4c0": "dvd",
"1f4e7": "e-mail",
"1f373": "egg",
"1f346": "eggplant",
"1f50c": "electric-plug",
"2709": "email",
"1f4b6": "euro",
"1f453": "eyeglasses",
"1f4e0": "fax",
"1f4c1": "file-folder",
"1f365": "fish-cake",
"1f3a3": "fishing-pole-and-fish",
"1f526": "flashlight",
"1f4be": "floppy-disk",
"1f3b4": "flower-playing-cards",
"1f3c8": "football",
"1f374": "fork-and-knife",
"1f364": "fried-shrimp",
"1f35f": "fries",
"1f3b2": "game-die",
"1f48e": "gem",
"1f381": "gift",
"26f3": "golf",
"1f347": "grapes",
"1f34f": "green-apple",
"1f4d7": "green-book",
"1f3b8": "guitar",
"1f52b": "gun",
"1f354": "hamburger",
"1f528": "hammer",
"1f45c": "handbag",
"1f3a7": "headphones",
"2665": "hearts",
"1f506": "high-brightness",
"1f460": "high-heel",
"1f52a": "hocho",
"1f36f": "honey-pot",
"1f3c7": "horse-racing",
"231b": "hourglass",
"23f3": "hourglass-flowing-sand",
"1f368": "ice-cream",
"1f366": "icecream",
"1f4e5": "inbox-tray",
"1f4e8": "incoming-envelope",
"1f4f1": "iphone",
"1f456": "jeans",
"1f511": "key",
"1f458": "kimono",
"1f4d2": "ledger",
"1f34b": "lemon",
"1f484": "lipstick",
"1f512": "lock",
"1f50f": "lock-with-ink-pen",
"1f36d": "lollipop",
"27bf": "loop",
"1f4e2": "loudspeaker",
"1f505": "low-brightness",
"1f50d": "mag",
"1f50e": "mag-right",
"1f004": "mahjong",
"1f4eb": "mailbox",
"1f4ea": "mailbox-closed",
"1f4ec": "mailbox-with-mail",
"1f4ed": "mailbox-with-no-mail",
"1f45e": "mans-shoe",
"1f356": "meat-on-bone",
"1f4e3": "mega",
"1f348": "melon",
"1f4dd": "memo",
"1f3a4": "microphone",
"1f52c": "microscope",
"1f4bd": "minidisc",
"1f4b8": "money-with-wings",
"1f4b0": "moneybag",
"1f6b5": "mountain-bicyclist",
"1f3a5": "movie-camera",
"1f3b9": "musical-keyboard",
"1f3bc": "musical-score",
"1f507": "mute",
"1f4db": "name-badge",
"1f454": "necktie",
"1f4f0": "newspaper",
"1f515": "no-bell",
"1f4d3": "notebook",
"1f4d4": "notebook-with-decorative-cover",
"1f529": "nut-and-bolt",
"1f362": "oden",
"1f4c2": "open-file-folder",
"1f4d9": "orange-book",
"1f4e4": "outbox-tray",
"1f4c4": "page-facing-up",
"1f4c3": "page-with-curl",
"1f4df": "pager",
"1f4ce": "paperclip",
"1f351": "peach",
"1f350": "pear",
"270f": "pencil2",
"260e": "phone",
"1f48a": "pill",
"1f34d": "pineapple",
"1f355": "pizza",
"1f4ef": "postal-horn",
"1f4ee": "postbox",
"1f45d": "pouch",
"1f357": "poultry-leg",
"1f4b7": "pound",
"1f45b": "purse",
"1f4cc": "pushpin",
"1f4fb": "radio",
"1f35c": "ramen",
"1f380": "ribbon",
"1f35a": "rice",
"1f359": "rice-ball",
"1f358": "rice-cracker",
"1f48d": "ring",
"1f3c9": "rugby-football",
"1f3bd": "running-shirt-with-sash",
"1f376": "sake",
"1f461": "sandal",
"1f4e1": "satellite",
"1f3b7": "saxophone",
"2702": "scissors",
"1f4dc": "scroll",
"1f4ba": "seat",
"1f367": "shaved-ice",
"1f455": "shirt",
"1f6bf": "shower",
"1f3bf": "ski",
"1f6ac": "smoking",
"1f3c2": "snowboarder",
"26bd": "soccer",
"1f509": "sound",
"1f47e": "space-invader",
"2660": "spades",
"1f35d": "spaghetti",
"1f50a": "speaker",
"1f372": "stew",
"1f4cf": "straight-ruler",
"1f353": "strawberry",
"1f3c4": "surfer",
"1f363": "sushi",
"1f360": "sweet-potato",
"1f3ca": "swimmer",
"1f489": "syringe",
"1f389": "tada",
"1f38b": "tanabata-tree",
"1f34a": "tangerine",
"1f375": "tea",
"1f4de": "telephone-receiver",
"1f52d": "telescope",
"1f3be": "tennis",
"1f6bd": "toilet",
"1f345": "tomato",
"1f3a9": "tophat",
"1f4d0": "triangular-ruler",
"1f3c6": "trophy",
"1f379": "tropical-drink",
"1f3ba": "trumpet",
"1f4fa": "tv",
"1f513": "unlock",
"1f4fc": "vhs",
"1f4f9": "video-camera",
"1f3ae": "video-game",
"1f3bb": "violin",
"231a": "watch",
"1f349": "watermelon",
"1f377": "wine-glass",
"1f45a": "womans-clothes",
"1f452": "womans-hat",
"1f527": "wrench",
"1f4b4": "yen",
"1f6a1": "aerial-tramway",
"2708": "airplane",
"1f691": "ambulance",
"2693": "anchor",
"1f69b": "articulated-lorry",
"1f3e7": "atm",
"1f3e6": "bank",
"1f488": "barber",
"1f530": "beginner",
"1f6b2": "bike",
"1f699": "blue-car",
"26f5": "boat",
"1f309": "bridge-at-night",
"1f685": "bullettrain-front",
"1f684": "bullettrain-side",
"1f68c": "bus",
"1f68f": "busstop",
"1f697": "car",
"1f3a0": "carousel-horse",
"1f3c1": "checkered-flag",
"26ea": "church",
"1f3aa": "circus-tent",
"1f307": "city-sunrise",
"1f306": "city-sunset",
"1f6a7": "construction",
"1f3ea": "convenience-store",
"1f38c": "crossed-flags",
"1f3ec": "department-store",
"1f3f0": "european-castle",
"1f3e4": "european-post-office",
"1f3ed": "factory",
"1f3a1": "ferris-wheel",
"1f692": "fire-engine",
"26f2": "fountain",
"26fd": "fuelpump",
"1f681": "helicopter",
"1f3e5": "hospital",
"1f3e8": "hotel",
"2668": "hotsprings",
"1f3e0": "house",
"1f3e1": "house-with-garden",
"1f5fe": "japan",
"1f3ef": "japanese-castle",
"1f688": "light-rail",
"1f3e9": "love-hotel",
"1f690": "minibus",
"1f69d": "monorail",
"1f5fb": "mount-fuji",
"1f6a0": "mountain-cableway",
"1f69e": "mountain-railway",
"1f5ff": "moyai",
"1f3e2": "office",
"1f698": "oncoming-automobile",
"1f68d": "oncoming-bus",
"1f694": "oncoming-police-car",
"1f696": "oncoming-taxi",
"1f3ad": "performing-arts",
"1f693": "police-car",
"1f3e3": "post-office",
"1f683": "railway-car",
"1f308": "rainbow",
"1f680": "rocket",
"1f3a2": "roller-coaster",
"1f6a8": "rotating-light",
"1f4cd": "round-pushpin",
"1f6a3": "rowboat",
"1f3eb": "school",
"1f6a2": "ship",
"1f3b0": "slot-machine",
"1f6a4": "speedboat",
"1f303": "stars",
"1f689": "station",
"1f5fd": "statue-of-liberty",
"1f682": "steam-locomotive",
"1f305": "sunrise",
"1f304": "sunrise-over-mountains",
"1f69f": "suspension-railway",
"1f695": "taxi",
"26fa": "tent",
"1f3ab": "ticket",
"1f5fc": "tokyo-tower",
"1f69c": "tractor",
"1f6a5": "traffic-light",
"1f686": "train2",
"1f68a": "tram",
"1f6a9": "triangular-flag-on-post",
"1f68e": "trolleybus",
"1f69a": "truck",
"1f6a6": "vertical-traffic-light",
"26a0": "warning",
"1f492": "wedding",
"1f1ef-1f1f5": "jp",
"1f1f0-1f1f7": "kr",
"1f1e8-1f1f3": "cn",
"1f1fa-1f1f8": "us",
"1f1eb-1f1f7": "fr",
"1f1ea-1f1f8": "es",
"1f1ee-1f1f9": "it",
"1f1f7-1f1fa": "ru",
"1f1ec-1f1e7": "gb",
"1f1e9-1f1ea": "de",
"1f4af": "100",
"1f522": "1234",
"1f170": "a",
"1f18e": "ab",
"1f524": "abc",
"1f521": "abcd",
"1f251": "accept",
"2652": "aquarius",
"2648": "aries",
"25c0": "arrow-backward",
"23ec": "arrow-double-down",
"23eb": "arrow-double-up",
"2b07": "arrow-down",
"1f53d": "arrow-down-small",
"25b6": "arrow-forward",
"2935": "arrow-heading-down",
"2934": "arrow-heading-up",
"2b05": "arrow-left",
"2199": "arrow-lower-left",
"2198": "arrow-lower-right",
"27a1": "arrow-right",
"21aa": "arrow-right-hook",
"2b06": "arrow-up",
"2195": "arrow-up-down",
"1f53c": "arrow-up-small",
"2196": "arrow-upper-left",
"2197": "arrow-upper-right",
"1f503": "arrows-clockwise",
"1f504": "arrows-counterclockwise",
"1f171": "b",
"1f6bc": "baby-symbol",
"1f6c4": "baggage-claim",
"2611": "ballot-box-with-check",
"203c": "bangbang",
"26ab": "black-circle",
"1f532": "black-square-button",
"264b": "cancer",
"1f520": "capital-abcd",
"2651": "capricorn",
"1f4b9": "chart",
"1f6b8": "children-crossing",
"1f3a6": "cinema",
"1f191": "cl",
"1f550": "clock1",
"1f559": "clock10",
"1f565": "clock1030",
"1f55a": "clock11",
"1f566": "clock1130",
"1f55b": "clock12",
"1f567": "clock1230",
"1f55c": "clock130",
"1f551": "clock2",
"1f55d": "clock230",
"1f552": "clock3",
"1f55e": "clock330",
"1f553": "clock4",
"1f55f": "clock430",
"1f554": "clock5",
"1f560": "clock530",
"1f555": "clock6",
"1f561": "clock630",
"1f556": "clock7",
"1f562": "clock730",
"1f557": "clock8",
"1f563": "clock830",
"1f558": "clock9",
"1f564": "clock930",
"3297": "congratulations",
"1f192": "cool",
"a9": "copyright",
"27b0": "curly-loop",
"1f4b1": "currency-exchange",
"1f6c3": "customs",
"1f4a0": "diamond-shape-with-a-dot-inside",
"1f6af": "do-not-litter",
"38-20e3": "eight",
"2734": "eight-pointed-black-star",
"2733": "eight-spoked-asterisk",
"1f51a": "end",
"23e9": "fast-forward",
"35-20e3": "five",
"34-20e3": "four",
"1f193": "free",
"264a": "gemini",
"23-20e3": "hash",
"1f49f": "heart-decoration",
"2714": "heavy-check-mark",
"2797": "heavy-division-sign",
"1f4b2": "heavy-dollar-sign",
"2796": "heavy-minus-sign",
"2716": "heavy-multiplication-x",
"2795": "heavy-plus-sign",
"1f194": "id",
"1f250": "ideograph-advantage",
"2139": "information-source",
"2049": "interrobang",
"1f51f": "keycap-ten",
"1f201": "koko",
"1f535": "large-blue-circle",
"1f537": "large-blue-diamond",
"1f536": "large-orange-diamond",
"1f6c5": "left-luggage",
"2194": "left-right-arrow",
"21a9": "leftwards-arrow-with-hook",
"264c": "leo",
"264e": "libra",
"1f517": "link",
"24c2": "m",
"1f6b9": "mens",
"1f687": "metro",
"1f4f4": "mobile-phone-off",
"274e": "negative-squared-cross-mark",
"1f195": "new",
"1f196": "ng",
"39-20e3": "nine",
"1f6b3": "no-bicycles",
"26d4": "no-entry",
"1f6ab": "no-entry-sign",
"1f4f5": "no-mobile-phones",
"1f6b7": "no-pedestrians",
"1f6ad": "no-smoking",
"1f6b1": "non-potable-water",
"2b55": "o",
"1f17e": "o2",
"1f197": "ok",
"1f51b": "on",
"31-20e3": "one",
"26ce": "ophiuchus",
"1f17f": "parking",
"303d": "part-alternation-mark",
"1f6c2": "passport-control",
"2653": "pisces",
"1f6b0": "potable-water",
"1f6ae": "put-litter-in-its-place",
"1f518": "radio-button",
"267b": "recycle",
"1f534": "red-circle",
"ae": "registered",
"1f501": "repeat",
"1f502": "repeat-one",
"1f6bb": "restroom",
"23ea": "rewind",
"1f202": "sa",
"2650": "sagittarius",
"264f": "scorpius",
"3299": "secret",
"37-20e3": "seven",
"1f4f6": "signal-strength",
"36-20e3": "six",
"1f52f": "six-pointed-star",
"1f539": "small-blue-diamond",
"1f538": "small-orange-diamond",
"1f53a": "small-red-triangle",
"1f53b": "small-red-triangle-down",
"1f51c": "soon",
"1f198": "sos",
"1f523": "symbols",
"2649": "taurus",
"33-20e3": "three",
"2122": "tm",
"1f51d": "top",
"1f531": "trident",
"1f500": "twisted-rightwards-arrows",
"32-20e3": "two",
"1f239": "u5272",
"1f234": "u5408",
"1f23a": "u55b6",
"1f22f": "u6307",
"1f237": "u6708",
"1f236": "u6709",
"1f235": "u6e80",
"1f21a": "u7121",
"1f238": "u7533",
"1f232": "u7981",
"1f233": "u7a7a",
"1f51e": "underage",
"1f199": "up",
"1f4f3": "vibration-mode",
"264d": "virgo",
"1f19a": "vs",
"3030": "wavy-dash",
"1f6be": "wc",
"267f": "wheelchair",
"2705": "white-check-mark",
"26aa": "white-circle",
"1f4ae": "white-flower",
"1f533": "white-square-button",
"1f6ba": "womens",
"274c": "x",
"30-20e3": "zero"
);
@each $code, $name in $emoji-map {
.twa-#{$name} {
background-image: url("https://twemoji.maxcdn.com/svg/#{$code}.svg");
}
}
+6 -7
View File
@@ -8,16 +8,15 @@ var router = express.Router();
*/
router.get('/', (req, res) => {
var md = require('markdown-it')({
breaks: true,
linkify: true,
typographer: true
});
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require("fs"));
fs.readFileAsync("repo/Gollum.md", "utf8").then(function(contents) {
res.render('pages/view', { contents: md.render(contents) });
let pageData = mark.parse(contents);
if(!pageData.title) {
pageData.title = 'Gollum';
}
res.render('pages/view', { pageData });
});
});
+3 -3
View File
@@ -21,7 +21,8 @@ var paths = {
scriptlibs: [
'./node_modules/lodash/lodash.min.js',
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/vue/dist/vue.min.js'
'./node_modules/vue/dist/vue.min.js',
'./node_modules/jquery-smooth-scroll/jquery.smooth-scroll.min.js'
],
scriptapps: [
'./client/js/components/*.js',
@@ -31,8 +32,7 @@ var paths = {
'./client/js/**/*.js'
],
csslibs: [
'./node_modules/font-awesome/css/font-awesome.min.css',
'./node_modules/font-awesome/css/font-awesome.min.css'
],
cssapps: [
'./client/scss/app.scss'
File renamed without changes.
File renamed without changes.
+122
View File
@@ -0,0 +1,122 @@
"use strict";
var Promise = require('bluebird'),
md = require('markdown-it'),
mdEmoji = require('markdown-it-emoji'),
mdTaskLists = require('markdown-it-task-lists'),
mdAbbr = require('markdown-it-abbr'),
mdAnchor = require('markdown-it-toc-and-anchor').default,
mdFootnote = require('markdown-it-footnote'),
mdExternalLinks = require('markdown-it-external-links'),
mdExpandTabs = require('markdown-it-expand-tabs'),
slug = require('slug'),
_ = require('lodash');
// Load plugins
var mkdown = md({
html: true,
linkify: true,
typography: true
})
.use(mdEmoji)
.use(mdTaskLists)
.use(mdAbbr)
.use(mdAnchor, {
tocClassName: 'toc',
anchorClassName: 'toc-anchor'
})
.use(mdFootnote)
.use(mdExternalLinks, {
externalClassName: 'external-link',
internalClassName: 'internal-link'
})
.use(mdExpandTabs, {
tabWidth: 4
});
// Rendering rules
mkdown.renderer.rules.emoji = function(token, idx) {
return '<i class="twa twa-' + token[idx].markup + '"></i>';
};
// Parse markdown headings tree
const parseTree = (content) => {
let tokens = md().parse(content, {});
let tocArray = [];
for (let i = 0; i < tokens.length; i++) {
if (tokens[i].type !== "heading_close") {
continue
}
const heading = tokens[i - 1]
const heading_close = tokens[i]
if (heading.type === "inline") {
let content = "";
let anchor = "";
if (heading.children && heading.children[0].type === "link_open") {
content = heading.children[1].content
anchor = slug(content, {lower: true});
} else {
content = heading.content
anchor = slug(heading.children.reduce((acc, t) => acc + t.content, ""), {lower: true});
}
tocArray.push({
content,
anchor,
level: +heading_close.tag.substr(1, 1)
})
}
}
return _.reduce(tocArray, (tree, v) => {
let treeLength = tree.length - 1;
if(v.level < 2) {
tree.push({
content: v.content,
anchor: v.anchor,
nodes: []
});
} else {
let lastNodeLevel = 1;
let GetNodePath = (startPos) => {
lastNodeLevel++;
if(_.isEmpty(startPos)) {
startPos = 'nodes';
}
if(lastNodeLevel === v.level) {
return startPos;
} else {
return GetNodePath(startPos + '[' + (_.at(tree[treeLength], startPos).length - 1) + '].nodes');
}
};
let lastNodePath = GetNodePath();
let lastNode = _.get(tree[treeLength], lastNodePath);
lastNode.push({
content: v.content,
anchor: v.anchor,
nodes: []
});
_.set(tree[treeLength], lastNodePath, lastNode);
}
return tree;
}, []);
};
module.exports = {
parse(content) {
return {
html: mkdown.render(content),
tree: parseTree(content)
};
}
};
+10 -1
View File
@@ -44,7 +44,6 @@
"express-brute-redis": "0.0.1",
"express-session": "^1.14.0",
"express-validator": "^2.20.8",
"gridlex": "^2.1.1",
"i18next": "^3.4.1",
"i18next-express-middleware": "^1.0.1",
"i18next-node-fs-backend": "^0.1.2",
@@ -52,6 +51,14 @@
"js-yaml": "^3.6.1",
"lodash": "^4.15.0",
"markdown-it": "^7.0.1",
"markdown-it-abbr": "^1.0.3",
"markdown-it-anchor": "^2.5.0",
"markdown-it-emoji": "^1.2.0",
"markdown-it-expand-tabs": "^1.0.11",
"markdown-it-external-links": "0.0.5",
"markdown-it-footnote": "^3.0.1",
"markdown-it-task-lists": "^1.4.1",
"markdown-it-toc-and-anchor": "^4.1.1",
"moment": "^2.14.1",
"moment-timezone": "^0.5.5",
"mongoose": "^4.5.9",
@@ -63,6 +70,8 @@
"roboto-fontface": "^0.6.0",
"serve-favicon": "^2.3.0",
"simplemde": "^1.11.2",
"slug": "^0.9.1",
"twemoji-awesome": "^1.0.4",
"validator": "^5.5.0",
"validator-as-promised": "^1.0.2",
"winston": "^2.2.0"
+8 -3
View File
@@ -4,19 +4,24 @@
// Licensed under AGPLv3
// ===========================================
global.ROOTPATH = __dirname;
// ----------------------------------------
// Load modules
// Load global modules
// ----------------------------------------
global.winston = require('winston');
winston.info('[SERVER] Requarks Wiki is initializing...');
global.ROOTPATH = __dirname;
var appconfig = require('./models/config')('./config.yml');
global.db = require('./models/mongodb')(appconfig);
global.red = require('./models/redis')(appconfig);
global.git = require('./models/git').init(appconfig);
global.mark = require('./models/markdown');
// ----------------------------------------
// Load modules
// ----------------------------------------
var _ = require('lodash');
var express = require('express');
-2
View File
@@ -16,8 +16,6 @@ nav.nav.has-shadow
span
span
.nav-right.nav-menu
a.nav-item(href='#')
| Account
a.nav-item(href='#')
| History
a.nav-item(href='#')
+4
View File
@@ -21,6 +21,10 @@ html
link(type='text/css', rel='stylesheet', href='/css/libs.css')
link(type='text/css', rel='stylesheet', href='/css/app.css')
// JS
script(type='text/javascript', src='/js/libs.js')
script(type='text/javascript', src='/js/app.js')
block head
body
+25 -37
View File
@@ -1,5 +1,13 @@
extends ../layout
mixin tocMenu(ti)
each node in ti
li
a(href='#' + node.anchor, title=node.content)= node.content
if node.nodes.length > 0
ul
+tocMenu(node.nodes)
block content
section.section
@@ -8,47 +16,27 @@ block content
.column.is-narrow
aside.menu
p.menu-label
| General
ul.menu-list
li
a(href='#') Dashboard
li
a(href='#') Customers
p.menu-label
| Administration
ul.menu-list
li
a(href='#') Team Settings
.box
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Navigation
ul.menu-list
li
a.is-active(href='#') Manage Your Team
ul
li
a(href='#') Members
li
a(href='#') Plugins
li
a(href='#') Add a member
li
a(href='#') Invitations
li
a(href='#') Authentication
p.menu-label
| Transactions
ul.menu-list
li
a(href='#') Payments
li
a(href='#') Transfers
li
a(href='#') Balance
a(href='/') Home
li
a(href='/account') Account
.box
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Contents
ul.menu-list
+tocMenu(pageData.tree)
.column
h1.title
| Primary bold title
h1.title= pageData.title
h2.subtitle
| Primary bold subtitle
.content
!= contents
!= pageData.html