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
+12 -5
View File
@@ -2,12 +2,15 @@
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
function SyncAsyncFileSystemDecorator(fs) {
this.fs = fs;
if(fs.statSync) {
this.stat = function(arg, callback) {
let result;
try {
var result = fs.statSync(arg);
result = fs.statSync(arg);
} catch(e) {
return callback(e);
}
@@ -16,8 +19,9 @@ function SyncAsyncFileSystemDecorator(fs) {
}
if(fs.readdirSync) {
this.readdir = function(arg, callback) {
let result;
try {
var result = fs.readdirSync(arg);
result = fs.readdirSync(arg);
} catch(e) {
return callback(e);
}
@@ -26,8 +30,9 @@ function SyncAsyncFileSystemDecorator(fs) {
}
if(fs.readFileSync) {
this.readFile = function(arg, callback) {
let result;
try {
var result = fs.readFileSync(arg);
result = fs.readFileSync(arg);
} catch(e) {
return callback(e);
}
@@ -36,8 +41,9 @@ function SyncAsyncFileSystemDecorator(fs) {
}
if(fs.readlinkSync) {
this.readlink = function(arg, callback) {
let result;
try {
var result = fs.readlinkSync(arg);
result = fs.readlinkSync(arg);
} catch(e) {
return callback(e);
}
@@ -46,8 +52,9 @@ function SyncAsyncFileSystemDecorator(fs) {
}
if(fs.readJsonSync) {
this.readJson = function(arg, callback) {
let result;
try {
var result = fs.readJsonSync(arg);
result = fs.readJsonSync(arg);
} catch(e) {
return callback(e);
}