nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions
+7 -9
View File
@@ -2,11 +2,9 @@
const path = require('path');
const locatePath = require('locate-path');
module.exports = (filename, opts) => {
opts = opts || {};
module.exports = (filename, opts = {}) => {
const startDir = path.resolve(opts.cwd || '');
const root = path.parse(startDir).root;
const {root} = path.parse(startDir);
const filenames = [].concat(filename);
@@ -25,11 +23,9 @@ module.exports = (filename, opts) => {
});
};
module.exports.sync = (filename, opts) => {
opts = opts || {};
module.exports.sync = (filename, opts = {}) => {
let dir = path.resolve(opts.cwd || '');
const root = path.parse(dir).root;
const {root} = path.parse(dir);
const filenames = [].concat(filename);
@@ -39,7 +35,9 @@ module.exports.sync = (filename, opts) => {
if (file) {
return path.join(dir, file);
} else if (dir === root) {
}
if (dir === root) {
return null;
}