Merge branch 'master' of ssh://numinibsd/git/base/enigma-bbs
This commit is contained in:
commit
2dd491b7f4
|
@ -8,7 +8,7 @@ const Errors = require('./enig_error.js').Errors;
|
||||||
const resolveMimeType = require('./mime_util.js').resolveMimeType;
|
const resolveMimeType = require('./mime_util.js').resolveMimeType;
|
||||||
|
|
||||||
// base/modules
|
// base/modules
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const pty = require('ptyw.js');
|
const pty = require('ptyw.js');
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ const aep = require('./ansi_escape_parser.js');
|
||||||
const sauce = require('./sauce.js');
|
const sauce = require('./sauce.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const iconv = require('iconv-lite');
|
const iconv = require('iconv-lite');
|
||||||
|
|
|
@ -17,7 +17,7 @@ const async = require('async');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const mkdirs = require('fs-extra').mkdirs;
|
const mkdirs = require('fs-extra').mkdirs;
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
|
|
||||||
// our main entry point
|
// our main entry point
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
const miscUtil = require('./misc_util.js');
|
const miscUtil = require('./misc_util.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
|
@ -5,7 +5,7 @@ var Config = require('./config.js').config;
|
||||||
var Log = require('./logger.js').log;
|
var Log = require('./logger.js').log;
|
||||||
|
|
||||||
var paths = require('path');
|
var paths = require('path');
|
||||||
var fs = require('fs');
|
var fs = require('graceful-fs');
|
||||||
var Gaze = require('gaze').Gaze;
|
var Gaze = require('gaze').Gaze;
|
||||||
var events = require('events');
|
var events = require('events');
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
var Config = require('./config.js').config;
|
var Config = require('./config.js').config;
|
||||||
const StatLog = require('./stat_log.js');
|
const StatLog = require('./stat_log.js');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('graceful-fs');
|
||||||
var paths = require('path');
|
var paths = require('path');
|
||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
var moment = require('moment');
|
var moment = require('moment');
|
||||||
|
|
|
@ -20,7 +20,7 @@ const hashids = require('hashids');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const mimeTypes = require('mime-types');
|
const mimeTypes = require('mime-types');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ const wordWrapText = require('./word_wrap.js').wordWrapText;
|
||||||
// deps
|
// deps
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const temptmp = require('temptmp').createTrackedSession('file_area');
|
const temptmp = require('temptmp').createTrackedSession('file_area');
|
||||||
|
|
|
@ -17,7 +17,7 @@ const _ = require('lodash');
|
||||||
const pty = require('ptyw.js');
|
const pty = require('ptyw.js');
|
||||||
const temptmp = require('temptmp').createTrackedSession('transfer_file');
|
const temptmp = require('temptmp').createTrackedSession('transfer_file');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const fse = require('fs-extra');
|
const fse = require('fs-extra');
|
||||||
|
|
||||||
// some consts
|
// some consts
|
||||||
|
|
|
@ -11,7 +11,7 @@ const Log = require('./logger.js').log;
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const binary = require('binary');
|
const binary = require('binary');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const iconv = require('iconv-lite');
|
const iconv = require('iconv-lite');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// deps
|
// deps
|
||||||
const bunyan = require('bunyan');
|
const bunyan = require('bunyan');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
||||||
module.exports = class Log {
|
module.exports = class Log {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
const Config = require('./config.js').config;
|
const Config = require('./config.js').config;
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
|
|
@ -996,7 +996,7 @@ MultiLineEditTextView.prototype.setFocus = function(focused) {
|
||||||
};
|
};
|
||||||
|
|
||||||
MultiLineEditTextView.prototype.setText = function(text) {
|
MultiLineEditTextView.prototype.setText = function(text) {
|
||||||
//text = require('fs').readFileSync('/home/nuskooler/Downloads/test_text.txt', { encoding : 'utf-8'});
|
//text = require('graceful-fs').readFileSync('/home/nuskooler/Downloads/test_text.txt', { encoding : 'utf-8'});
|
||||||
|
|
||||||
this.textLines = [ ];
|
this.textLines = [ ];
|
||||||
this.addText(text);
|
this.addText(text);
|
||||||
|
|
|
@ -16,7 +16,7 @@ const Errors = require('../../core/enig_error.js').Errors;
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const inq = require('inquirer');
|
const inq = require('inquirer');
|
||||||
const mkdirsSync = require('fs-extra').mkdirsSync;
|
const mkdirsSync = require('fs-extra').mkdirsSync;
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const hjson = require('hjson');
|
const hjson = require('hjson');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
|
@ -11,7 +11,7 @@ const getAreaAndStorage = require('./oputil_common.js').getAreaAndStorage;
|
||||||
const Errors = require('../../core/enig_error.js').Errors;
|
const Errors = require('../../core/enig_error.js').Errors;
|
||||||
|
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
|
|
|
@ -26,7 +26,7 @@ const moment = require('moment');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const later = require('later');
|
const later = require('later');
|
||||||
const temptmp = require('temptmp').createTrackedSession('ftn_bso');
|
const temptmp = require('temptmp').createTrackedSession('ftn_bso');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
|
|
@ -10,7 +10,7 @@ const Config = require('../../config.js').config;
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
const https = require('https');
|
const https = require('https');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const mimeTypes = require('mime-types');
|
const mimeTypes = require('mime-types');
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ const stringFormat = require('../../string_format.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const ssh2 = require('ssh2');
|
const ssh2 = require('ssh2');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
|
|
@ -509,7 +509,7 @@ function createCleanAnsi(input, options, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
let data = fs.readFileSync('/home/nuskooler/Downloads/art3.ans');
|
let data = fs.readFileSync('/home/nuskooler/Downloads/art3.ans');
|
||||||
data = iconv.decode(data, 'cp437');
|
data = iconv.decode(data, 'cp437');
|
||||||
createCleanAnsi(data, { width : 79, height : 25 }, (out) => {
|
createCleanAnsi(data, { width : 79, height : 25 }, (out) => {
|
||||||
|
|
|
@ -7,7 +7,7 @@ const Config = require('./config.js').config;
|
||||||
const Log = require('./logger.js').log;
|
const Log = require('./logger.js').log;
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
|
|
||||||
exports.validateNonEmpty = validateNonEmpty;
|
exports.validateNonEmpty = validateNonEmpty;
|
||||||
exports.validateMessageSubject = validateMessageSubject;
|
exports.validateMessageSubject = validateMessageSubject;
|
||||||
|
|
|
@ -11,7 +11,7 @@ const asset = require('./asset.js');
|
||||||
const ViewController = require('./view_controller.js').ViewController;
|
const ViewController = require('./view_controller.js').ViewController;
|
||||||
const Errors = require('./enig_error.js').Errors;
|
const Errors = require('./enig_error.js').Errors;
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
|
@ -7,7 +7,7 @@ const Errors = require('./enig_error.js').Errors;
|
||||||
const EnigAssert = require('./enigma_assert.js');
|
const EnigAssert = require('./enigma_assert.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const CRC32 = require('./crc.js').CRC32;
|
const CRC32 = require('./crc.js').CRC32;
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
|
|
|
@ -15,7 +15,7 @@ const Log = require('./logger.js').log;
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const url = require('url');
|
const url = require('url');
|
||||||
const querystring = require('querystring');
|
const querystring = require('querystring');
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ function wordWrapText(text, options) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const iconv = require('iconv-lite');
|
const iconv = require('iconv-lite');
|
||||||
const input = iconv.decode(require('fs').readFileSync('/home/nuskooler/Downloads/msg_out.txt'), 'cp437');
|
const input = iconv.decode(require('graceful-fs').readFileSync('/home/nuskooler/Downloads/msg_out.txt'), 'cp437');
|
||||||
|
|
||||||
const opts = {
|
const opts = {
|
||||||
width : 80,
|
width : 80,
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
"temptmp": "^1.0.0",
|
"temptmp": "^1.0.0",
|
||||||
"uuid": "^3.0.1",
|
"uuid": "^3.0.1",
|
||||||
"uuid-parse": "^1.0.0",
|
"uuid-parse": "^1.0.0",
|
||||||
"ws" : "^2.3.1"
|
"ws" : "^2.3.1",
|
||||||
|
"graceful-fs" : "^4.1.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
// :TODO: Make this it's own sep tool/repo
|
// :TODO: Make this it's own sep tool/repo
|
||||||
|
|
||||||
const exiftool = require('exiftool');
|
const exiftool = require('exiftool');
|
||||||
const fs = require('fs');
|
const fs = require('graceful-fs');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
|
|
||||||
const TOOL_VERSION = '1.0.0.0';
|
const TOOL_VERSION = '1.0.0.0';
|
||||||
|
|
Loading…
Reference in New Issue