reorganized sass project files
outsourced sass code from main.sass in order to make maintanance more easy to be performed
This commit is contained in:
149
dist/33f23c9be750d12cdb4f825c7658d390.js
vendored
149
dist/33f23c9be750d12cdb4f825c7658d390.js
vendored
@ -68,6 +68,149 @@ require = (function (modules, cache, entry) {
|
||||
|
||||
// Override the current require with this new one
|
||||
return newRequire;
|
||||
})({6:[function(require,module,exports) {
|
||||
var e=document.querySelectorAll("code");e.forEach(e=>{let a=e.innerHTML.toString();var r="";for(let e=0;e<a.length;e++)switch(a.charAt(e)){default:r+=a.charAt(e);break;case">":r+=">";break;case"<":r+="<";break;case"&":r+="&";break;case'"':r+="""}e.innerHTML=r});
|
||||
},{}]},{},[6])
|
||||
})({10:[function(require,module,exports) {
|
||||
var code = document.querySelectorAll("code");
|
||||
|
||||
// code embed
|
||||
code.forEach(c => {
|
||||
let code = c.innerHTML.toString();
|
||||
var output = "";
|
||||
for(let i = 0; i < code.length; i++){
|
||||
switch(code.charAt(i)){
|
||||
default: output += code.charAt(i); break;
|
||||
case ">": output += ">"; break;
|
||||
case "<": output += "<"; break;
|
||||
case "&": output += "&"; break;
|
||||
case "\"": output += """; break;
|
||||
}
|
||||
}
|
||||
c.innerHTML = output;
|
||||
});
|
||||
|
||||
// TODO JavaScript Input value return
|
||||
// Current way..
|
||||
// -------------------------------------
|
||||
// get input by getting the input object
|
||||
// catch oninput event inside a function
|
||||
// Handle it inside the function
|
||||
// -------------------------------------
|
||||
},{}],0:[function(require,module,exports) {
|
||||
var global = (1, eval)('this');
|
||||
var OldModule = module.bundle.Module;
|
||||
function Module() {
|
||||
OldModule.call(this);
|
||||
this.hot = {
|
||||
accept: function (fn) {
|
||||
this._acceptCallback = fn || function () {};
|
||||
},
|
||||
dispose: function (fn) {
|
||||
this._disposeCallback = fn;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.bundle.Module = Module;
|
||||
|
||||
if (!module.bundle.parent && typeof WebSocket !== 'undefined') {
|
||||
var ws = new WebSocket('ws://localhost:54725/');
|
||||
ws.onmessage = function(event) {
|
||||
var data = JSON.parse(event.data);
|
||||
|
||||
if (data.type === 'update') {
|
||||
data.assets.forEach(function (asset) {
|
||||
hmrApply(global.require, asset);
|
||||
});
|
||||
|
||||
data.assets.forEach(function (asset) {
|
||||
if (!asset.isNew) {
|
||||
hmrAccept(global.require, asset.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (data.type === 'reload') {
|
||||
ws.close();
|
||||
ws.onclose = function () {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
if (data.type === 'error-resolved') {
|
||||
console.log('[parcel] ✨ Error resolved');
|
||||
}
|
||||
|
||||
if (data.type === 'error') {
|
||||
console.error('[parcel] 🚨 ' + data.error.message + '\n' + 'data.error.stack');
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function getParents(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
|
||||
for (k in modules) {
|
||||
for (d in modules[k][1]) {
|
||||
dep = modules[k][1][d];
|
||||
if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {
|
||||
parents.push(+k);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bundle.parent) {
|
||||
parents = parents.concat(getParents(bundle.parent, id));
|
||||
}
|
||||
|
||||
return parents;
|
||||
}
|
||||
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (modules[asset.id] || !bundle.parent) {
|
||||
var fn = new Function('require', 'module', 'exports', asset.generated.js);
|
||||
asset.isNew = !modules[asset.id];
|
||||
modules[asset.id] = [fn, asset.deps];
|
||||
} else if (bundle.parent) {
|
||||
hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
|
||||
function hmrAccept(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!modules[id] && bundle.parent) {
|
||||
return hmrAccept(bundle.parent, id);
|
||||
}
|
||||
|
||||
var cached = bundle.cache[id];
|
||||
if (cached && cached.hot._disposeCallback) {
|
||||
cached.hot._disposeCallback();
|
||||
}
|
||||
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
|
||||
cached = bundle.cache[id];
|
||||
if (cached && cached.hot && cached.hot._acceptCallback) {
|
||||
cached.hot._acceptCallback();
|
||||
return true;
|
||||
}
|
||||
|
||||
return getParents(global.require, id).some(function (id) {
|
||||
return hmrAccept(global.require, id)
|
||||
});
|
||||
}
|
||||
},{}]},{},[0,10])
|
Reference in New Issue
Block a user