summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/dependencyInfo.ts32
-rw-r--r--src/misc/fa.ts2
2 files changed, 1 insertions, 33 deletions
diff --git a/src/misc/dependencyInfo.ts b/src/misc/dependencyInfo.ts
deleted file mode 100644
index 09d2828222..0000000000
--- a/src/misc/dependencyInfo.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import Logger from './logger';
-import { execSync } from 'child_process';
-
-export default class {
- private logger: Logger;
-
- constructor() {
- this.logger = new Logger('Deps');
- }
-
- public showAll(): void {
- this.show('MongoDB', 'mongo --version', x => x.match(/^MongoDB shell version:? v(.*)\r?\n/));
- this.show('Redis', 'redis-server --version', x => x.match(/v=([0-9\.]*)/));
- }
-
- public show(serviceName: string, command: string, transform: (x: string) => RegExpMatchArray): void {
- try {
- // ステータス0以外のときにexecSyncはstderrをコンソール上に出力してしまうので
- // プロセスからのstderrをすべて無視するように stdio オプションをセット
- const x = execSync(command, { stdio: ['pipe', 'pipe', 'ignore'] });
- const ver = transform(x.toString());
- if (ver != null) {
- this.logger.succ(`${serviceName} ${ver[1]} found`);
- } else {
- this.logger.warn(`${serviceName} not found`);
- this.logger.warn(`Regexp used for version check of ${serviceName} is probably messed up`);
- }
- } catch (e) {
- this.logger.warn(`${serviceName} not found`);
- }
- }
-}
diff --git a/src/misc/fa.ts b/src/misc/fa.ts
index 8be06362c3..90cdac89b2 100644
--- a/src/misc/fa.ts
+++ b/src/misc/fa.ts
@@ -26,7 +26,7 @@ export const replacement = (match: string, key: string) => {
arg == 'B' ? 'fab' :
'';
} else if (arg.startsWith('.')) {
- classes.push('fa-' + arg.substr(1));
+ classes.push(`fa-${arg.substr(1)}`);
} else if (arg.startsWith('-')) {
transform = arg.substr(1).split('|').join(' ');
} else {