nav tabs on admin dashboard
This commit is contained in:
+12
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user