upgraded modules and upgrades node to 10.16.3
This commit is contained in:
parent
96654d874a
commit
f1b3077f02
7 changed files with 1242 additions and 1161 deletions
|
@ -20,7 +20,8 @@ export default class DBUtils {
|
|||
});
|
||||
this.db.postList.toArray(array => {
|
||||
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
2246
package-lock.json
generated
File diff suppressed because it is too large
Load diff
46
package.json
46
package.json
|
@ -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"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.12.0"
|
||||
"node": ">=10.16.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"bcrypt-nodejs": "latest",
|
||||
"bluebird": "^3.4.1",
|
||||
"bluebird": "^3.5.5",
|
||||
"body-parser": "latest",
|
||||
"caret-pos": "^1.2.1",
|
||||
"connect-flash": "latest",
|
||||
"cookie-parser": "~1.3.3",
|
||||
"debug": "^4.1.0",
|
||||
"debug": "^4.1.1",
|
||||
"dexie": "^2.0.4",
|
||||
"esm": "^3.0.84",
|
||||
"express": "^4.16.4",
|
||||
"express-session": "^1.15.6",
|
||||
"filehound": "^1.16.5",
|
||||
"esm": "^3.2.25",
|
||||
"express": "^4.17.1",
|
||||
"express-session": "^1.16.2",
|
||||
"filehound": "^1.17.3",
|
||||
"fs-extra": "latest",
|
||||
"highlight.js": "^9.13.1",
|
||||
"highlight.js": "^9.15.10",
|
||||
"jsdom": "^12.2.0",
|
||||
"lodash": "^4.17.11",
|
||||
"lodash": "^4.17.15",
|
||||
"mailgun-js": "^0.18.0",
|
||||
"markdown-it": "^8.4.1",
|
||||
"memorystore": "^1.6.0",
|
||||
"memorystore": "^1.6.1",
|
||||
"morgan": "latest",
|
||||
"multer": "latest",
|
||||
"nodemailer": "latest",
|
||||
"nodemailer-mailgun-transport": "^1.4.0",
|
||||
"pg": "^7.5.0",
|
||||
"pg-hstore": "^2.3.2",
|
||||
"pg": "^7.12.1",
|
||||
"pg-hstore": "^2.3.3",
|
||||
"pug": "latest",
|
||||
"reframe.js": "^2.2.1",
|
||||
"reframe.js": "^2.2.5",
|
||||
"request": "^2.88.0",
|
||||
"sanitize-html": "^1.19.1",
|
||||
"sequelize": "^4.37.6",
|
||||
"sequelize-cli": "^5.3.0",
|
||||
"sanitize-html": "^1.20.1",
|
||||
"sequelize": "^4.44.3",
|
||||
"sequelize-cli": "^5.5.1",
|
||||
"serve-favicon": "latest",
|
||||
"sortable": "^2.0.0",
|
||||
"sortablejs": "^1.8.0-rc1",
|
||||
"tiny-date-picker": "^3.2.6",
|
||||
"uuid": "^3.2.1"
|
||||
"sortablejs": "^1.10.0",
|
||||
"tiny-date-picker": "^3.2.8",
|
||||
"uuid": "^3.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.1.2",
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/cli": "^7.6.2",
|
||||
"@babel/core": "^7.6.2",
|
||||
"@babel/preset-env": "^7.6.2",
|
||||
"animejs": "^2.2.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"bulma.styl": "^0.6.11",
|
||||
"scramble-text": "0.0.8",
|
||||
"stylus": "^0.54.5"
|
||||
"stylus": "^0.54.7"
|
||||
}
|
||||
}
|
||||
|
|
92
themes/dash/assets/js/dash.min.js
vendored
92
themes/dash/assets/js/dash.min.js
vendored
|
@ -5,8 +5,6 @@
|
|||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
// eslint-disable-next-line no-global-assign
|
||||
parcelRequire = (function (modules, cache, entry, globalName) {
|
||||
// Save the require from previous bundle to this closure if any
|
||||
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++) {
|
||||
newRequire(entry[i]);
|
||||
try {
|
||||
newRequire(entry[i]);
|
||||
} catch (e) {
|
||||
// Save first error but execute all entries
|
||||
if (!error) {
|
||||
error = e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (entry.length) {
|
||||
|
@ -103,6 +109,13 @@ parcelRequire = (function (modules, cache, entry, globalName) {
|
|||
}
|
||||
|
||||
// Override the current require with this new one
|
||||
parcelRequire = newRequire;
|
||||
|
||||
if (error) {
|
||||
// throw error from earlier, _after updating parcelRequire_
|
||||
throw error;
|
||||
}
|
||||
|
||||
return newRequire;
|
||||
})({"../../../../brain/tools/events/EventEmitter.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
|
@ -5608,7 +5621,8 @@ function () {
|
|||
});
|
||||
this.db.postList.toArray(function (array) {
|
||||
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
|
||||
|
@ -8969,9 +8983,11 @@ function () {
|
|||
|
||||
self.dbUtils.syncLocal(list).then(function () {
|
||||
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
|
||||
|
@ -8993,7 +9009,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var base = new _Base.default();
|
||||
}, 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 OVERLAY_ID = '__parcel__error__overlay__';
|
||||
var OldModule = module.bundle.Module;
|
||||
|
@ -9015,26 +9031,46 @@ function Module(moduleName) {
|
|||
}
|
||||
|
||||
module.bundle.Module = Module;
|
||||
var checkedAssets, assetsToAccept;
|
||||
var parent = module.bundle.parent;
|
||||
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||
var hostname = "" || location.hostname;
|
||||
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) {
|
||||
checkedAssets = {};
|
||||
assetsToAccept = [];
|
||||
var data = JSON.parse(event.data);
|
||||
|
||||
if (data.type === 'update') {
|
||||
console.clear();
|
||||
data.assets.forEach(function (asset) {
|
||||
hmrApply(global.parcelRequire, asset);
|
||||
});
|
||||
var handled = false;
|
||||
data.assets.forEach(function (asset) {
|
||||
if (!asset.isNew) {
|
||||
hmrAccept(global.parcelRequire, asset.id);
|
||||
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();
|
||||
data.assets.forEach(function (asset) {
|
||||
hmrApply(global.parcelRequire, asset);
|
||||
});
|
||||
assetsToAccept.forEach(function (v) {
|
||||
hmrAcceptRun(v[0], v[1]);
|
||||
});
|
||||
} else {
|
||||
window.location.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;
|
||||
|
||||
if (!modules) {
|
||||
|
@ -9130,9 +9166,27 @@ function hmrAccept(bundle, id) {
|
|||
}
|
||||
|
||||
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];
|
||||
bundle.hotData = {};
|
||||
|
||||
|
@ -9157,10 +9211,6 @@ function hmrAccept(bundle, id) {
|
|||
|
||||
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)
|
||||
//# sourceMappingURL=/dash/assets/js/dash.min.map
|
||||
},{}]},{},["../../../../../../../../.nvm/versions/node/v10.16.0/lib/node_modules/parcel/src/builtins/hmr-runtime.js","Start.js"], null)
|
||||
//# sourceMappingURL=/dash/assets/js/dash.min.js.map
|
1
themes/dash/assets/js/dash.min.js.map
Normal file
1
themes/dash/assets/js/dash.min.js.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -8,8 +8,11 @@
|
|||
a(href='/@/dashboard/posts/add/new') Create Post
|
||||
br
|
||||
- var index = 0;
|
||||
- var cap = 5; // number of posts to display
|
||||
- for ( index; index < cap; index++)
|
||||
- var cap = 5; // number of posts to display, get rid of this and put it in the config
|
||||
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")
|
||||
div
|
||||
label= items[index].post.title
|
||||
|
|
|
@ -34,12 +34,12 @@ export default class Base {
|
|||
.then(() => {
|
||||
self.start();
|
||||
})
|
||||
.catch(() => {
|
||||
//console.log(err);
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
//console.log(err);
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
//--------------------------
|
||||
|
|
Loading…
Reference in a new issue