upgraded modules and upgrades node to 10.16.3

sql-version-freeze
Ro 5 years ago
parent 96654d874a
commit f1b3077f02

@ -20,7 +20,8 @@ export default class DBUtils {
}); });
this.db.postList.toArray(array => { this.db.postList.toArray(array => {
COUNT = array.length; COUNT = array.length;
FINAL_KEY = array[COUNT - 1].id; FINAL_KEY = 0;
if (COUNT != 0) FINAL_KEY = array[COUNT - 1].id;
}); });
} }
//-------------------------- //--------------------------

2246
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -16,54 +16,54 @@
"build-back-kit": "uglifyjs themes/dash/src/libraries/highlight.pack.js node_modules/sortablejs/Sortable.min.js node_modules/scramble-text/dist/ScrambleText.min.js node_modules/animejs/anime.min.js node_modules/reframe.js/dist/reframe.min.js -c -o themes/dash/assets/js/dashkit.min.js" "build-back-kit": "uglifyjs themes/dash/src/libraries/highlight.pack.js node_modules/sortablejs/Sortable.min.js node_modules/scramble-text/dist/ScrambleText.min.js node_modules/animejs/anime.min.js node_modules/reframe.js/dist/reframe.min.js -c -o themes/dash/assets/js/dashkit.min.js"
}, },
"engines": { "engines": {
"node": ">=8.12.0" "node": ">=10.16.0"
}, },
"dependencies": { "dependencies": {
"bcrypt-nodejs": "latest", "bcrypt-nodejs": "latest",
"bluebird": "^3.4.1", "bluebird": "^3.5.5",
"body-parser": "latest", "body-parser": "latest",
"caret-pos": "^1.2.1", "caret-pos": "^1.2.1",
"connect-flash": "latest", "connect-flash": "latest",
"cookie-parser": "~1.3.3", "cookie-parser": "~1.3.3",
"debug": "^4.1.0", "debug": "^4.1.1",
"dexie": "^2.0.4", "dexie": "^2.0.4",
"esm": "^3.0.84", "esm": "^3.2.25",
"express": "^4.16.4", "express": "^4.17.1",
"express-session": "^1.15.6", "express-session": "^1.16.2",
"filehound": "^1.16.5", "filehound": "^1.17.3",
"fs-extra": "latest", "fs-extra": "latest",
"highlight.js": "^9.13.1", "highlight.js": "^9.15.10",
"jsdom": "^12.2.0", "jsdom": "^12.2.0",
"lodash": "^4.17.11", "lodash": "^4.17.15",
"mailgun-js": "^0.18.0", "mailgun-js": "^0.18.0",
"markdown-it": "^8.4.1", "markdown-it": "^8.4.1",
"memorystore": "^1.6.0", "memorystore": "^1.6.1",
"morgan": "latest", "morgan": "latest",
"multer": "latest", "multer": "latest",
"nodemailer": "latest", "nodemailer": "latest",
"nodemailer-mailgun-transport": "^1.4.0", "nodemailer-mailgun-transport": "^1.4.0",
"pg": "^7.5.0", "pg": "^7.12.1",
"pg-hstore": "^2.3.2", "pg-hstore": "^2.3.3",
"pug": "latest", "pug": "latest",
"reframe.js": "^2.2.1", "reframe.js": "^2.2.5",
"request": "^2.88.0", "request": "^2.88.0",
"sanitize-html": "^1.19.1", "sanitize-html": "^1.20.1",
"sequelize": "^4.37.6", "sequelize": "^4.44.3",
"sequelize-cli": "^5.3.0", "sequelize-cli": "^5.5.1",
"serve-favicon": "latest", "serve-favicon": "latest",
"sortable": "^2.0.0", "sortable": "^2.0.0",
"sortablejs": "^1.8.0-rc1", "sortablejs": "^1.10.0",
"tiny-date-picker": "^3.2.6", "tiny-date-picker": "^3.2.8",
"uuid": "^3.2.1" "uuid": "^3.3.3"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.1.2", "@babel/cli": "^7.6.2",
"@babel/core": "^7.1.2", "@babel/core": "^7.6.2",
"@babel/preset-env": "^7.1.0", "@babel/preset-env": "^7.6.2",
"animejs": "^2.2.0", "animejs": "^2.2.0",
"babel-preset-env": "^1.7.0", "babel-preset-env": "^1.7.0",
"bulma.styl": "^0.6.11", "bulma.styl": "^0.6.11",
"scramble-text": "0.0.8", "scramble-text": "0.0.8",
"stylus": "^0.54.5" "stylus": "^0.54.7"
} }
} }

@ -5,8 +5,6 @@
// //
// anything defined in a previous bundle is accessed via the // anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles // orig method which is the require for previous bundles
// eslint-disable-next-line no-global-assign
parcelRequire = (function (modules, cache, entry, globalName) { parcelRequire = (function (modules, cache, entry, globalName) {
// Save the require from previous bundle to this closure if any // Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire; var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
@ -77,8 +75,16 @@ parcelRequire = (function (modules, cache, entry, globalName) {
}, {}]; }, {}];
}; };
var error;
for (var i = 0; i < entry.length; i++) { for (var i = 0; i < entry.length; i++) {
try {
newRequire(entry[i]); newRequire(entry[i]);
} catch (e) {
// Save first error but execute all entries
if (!error) {
error = e;
}
}
} }
if (entry.length) { if (entry.length) {
@ -103,6 +109,13 @@ parcelRequire = (function (modules, cache, entry, globalName) {
} }
// Override the current require with this new one // Override the current require with this new one
parcelRequire = newRequire;
if (error) {
// throw error from earlier, _after updating parcelRequire_
throw error;
}
return newRequire; return newRequire;
})({"../../../../brain/tools/events/EventEmitter.js":[function(require,module,exports) { })({"../../../../brain/tools/events/EventEmitter.js":[function(require,module,exports) {
"use strict"; "use strict";
@ -5608,7 +5621,8 @@ function () {
}); });
this.db.postList.toArray(function (array) { this.db.postList.toArray(function (array) {
exports.COUNT = COUNT = array.length; exports.COUNT = COUNT = array.length;
exports.FINAL_KEY = FINAL_KEY = array[COUNT - 1].id; exports.FINAL_KEY = FINAL_KEY = 0;
if (COUNT != 0) exports.FINAL_KEY = FINAL_KEY = array[COUNT - 1].id;
}); });
} //-------------------------- } //--------------------------
// methods // methods
@ -8969,9 +8983,11 @@ function () {
self.dbUtils.syncLocal(list).then(function () { self.dbUtils.syncLocal(list).then(function () {
self.start(); self.start();
}).catch(function () {//console.log(err); }).catch(function (err) {
console.log(err);
}); });
}).catch(function () {//console.log(err); }).catch(function (err) {
console.log(err);
}); });
} //-------------------------- } //--------------------------
// event handlers // event handlers
@ -8993,7 +9009,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
var base = new _Base.default(); var base = new _Base.default();
}, false); }, false);
},{"./Base":"Base.js"}],"../../../../../../../.nvm/versions/node/v8.15.0/lib/node_modules/parcel/src/builtins/hmr-runtime.js":[function(require,module,exports) { },{"./Base":"Base.js"}],"../../../../../../../../.nvm/versions/node/v10.16.0/lib/node_modules/parcel/src/builtins/hmr-runtime.js":[function(require,module,exports) {
var global = arguments[3]; var global = arguments[3];
var OVERLAY_ID = '__parcel__error__overlay__'; var OVERLAY_ID = '__parcel__error__overlay__';
var OldModule = module.bundle.Module; var OldModule = module.bundle.Module;
@ -9015,26 +9031,46 @@ function Module(moduleName) {
} }
module.bundle.Module = Module; module.bundle.Module = Module;
var checkedAssets, assetsToAccept;
var parent = module.bundle.parent; var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname; var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "60193" + '/'); var ws = new WebSocket(protocol + '://' + hostname + ':' + "52006" + '/');
ws.onmessage = function (event) { ws.onmessage = function (event) {
checkedAssets = {};
assetsToAccept = [];
var data = JSON.parse(event.data); var data = JSON.parse(event.data);
if (data.type === 'update') { if (data.type === 'update') {
var handled = false;
data.assets.forEach(function (asset) {
if (!asset.isNew) {
var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);
if (didAccept) {
handled = true;
}
}
}); // Enable HMR for CSS by default.
handled = handled || data.assets.every(function (asset) {
return asset.type === 'css' && asset.generated.js;
});
if (handled) {
console.clear(); console.clear();
data.assets.forEach(function (asset) { data.assets.forEach(function (asset) {
hmrApply(global.parcelRequire, asset); hmrApply(global.parcelRequire, asset);
}); });
data.assets.forEach(function (asset) { assetsToAccept.forEach(function (v) {
if (!asset.isNew) { hmrAcceptRun(v[0], v[1]);
hmrAccept(global.parcelRequire, asset.id);
}
}); });
} else {
window.location.reload();
}
} }
if (data.type === 'reload') { if (data.type === 'reload') {
@ -9122,7 +9158,7 @@ function hmrApply(bundle, asset) {
} }
} }
function hmrAccept(bundle, id) { function hmrAcceptCheck(bundle, id) {
var modules = bundle.modules; var modules = bundle.modules;
if (!modules) { if (!modules) {
@ -9130,9 +9166,27 @@ function hmrAccept(bundle, id) {
} }
if (!modules[id] && bundle.parent) { if (!modules[id] && bundle.parent) {
return hmrAccept(bundle.parent, id); return hmrAcceptCheck(bundle.parent, id);
}
if (checkedAssets[id]) {
return;
}
checkedAssets[id] = true;
var cached = bundle.cache[id];
assetsToAccept.push([bundle, id]);
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
return true;
} }
return getParents(global.parcelRequire, id).some(function (id) {
return hmrAcceptCheck(global.parcelRequire, id);
});
}
function hmrAcceptRun(bundle, id) {
var cached = bundle.cache[id]; var cached = bundle.cache[id];
bundle.hotData = {}; bundle.hotData = {};
@ -9157,10 +9211,6 @@ function hmrAccept(bundle, id) {
return true; return true;
} }
return getParents(global.parcelRequire, id).some(function (id) {
return hmrAccept(global.parcelRequire, id);
});
} }
},{}]},{},["../../../../../../../.nvm/versions/node/v8.15.0/lib/node_modules/parcel/src/builtins/hmr-runtime.js","Start.js"], null) },{}]},{},["../../../../../../../../.nvm/versions/node/v10.16.0/lib/node_modules/parcel/src/builtins/hmr-runtime.js","Start.js"], null)
//# sourceMappingURL=/dash/assets/js/dash.min.map //# sourceMappingURL=/dash/assets/js/dash.min.js.map

File diff suppressed because one or more lines are too long

@ -8,8 +8,11 @@
a(href='/@/dashboard/posts/add/new') Create Post a(href='/@/dashboard/posts/add/new') Create Post
br br
- var index = 0; - var index = 0;
- var cap = 5; // number of posts to display - var cap = 5; // number of posts to display, get rid of this and put it in the config
- for ( index; index < cap; index++) if(items.lenth == 0)
label this is empty
else
- for ( index; index < items.length; index++)
a.post-link(href="/@/dashboard/posts/edit/"+items[index].post.uuid id=items[index].post.uuid style="background:url("+items[index].post.feature.substr(8)+") no-repeat center center / cover") a.post-link(href="/@/dashboard/posts/edit/"+items[index].post.uuid id=items[index].post.uuid style="background:url("+items[index].post.feature.substr(8)+") no-repeat center center / cover")
div div
label= items[index].post.title label= items[index].post.title

@ -34,12 +34,12 @@ export default class Base {
.then(() => { .then(() => {
self.start(); self.start();
}) })
.catch(() => { .catch(err => {
//console.log(err); console.log(err);
}); });
}) })
.catch(() => { .catch(err => {
//console.log(err); console.log(err);
}); });
} }
//-------------------------- //--------------------------

Loading…
Cancel
Save