summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-04 22:06:17 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-04 22:06:17 +0200
commitb1c1b681b9e5f47225e68580ad2e7059ba1d4f1e (patch)
treead531c262186343554910dfdbb84bef0e52ecb59 /cdn
parent:construction: different db engines (diff)
parentMerge pull request #413 from Thesourtimes/master (diff)
downloadserver-b1c1b681b9e5f47225e68580ad2e7059ba1d4f1e.tar.xz
Merge branch 'master' of http://github.com/fosscord/fosscord-server
Diffstat (limited to 'cdn')
-rw-r--r--cdn/package-lock.json13
-rw-r--r--cdn/package.json1
-rw-r--r--cdn/src/util/Storage.ts3
3 files changed, 16 insertions, 1 deletions
diff --git a/cdn/package-lock.json b/cdn/package-lock.json
index d0b2c50e..b8d4f924 100644
--- a/cdn/package-lock.json
+++ b/cdn/package-lock.json
@@ -26,6 +26,7 @@
 				"lambert-server": "^1.2.8",
 				"missing-native-js-functions": "^1.2.15",
 				"multer": "^1.4.2",
+				"nanocolors": "^0.2.12",
 				"node-fetch": "^2.6.1",
 				"supertest": "^6.1.6",
 				"typescript": "^4.1.2",
@@ -65,6 +66,7 @@
 				"lambert-server": "^1.2.10",
 				"missing-native-js-functions": "^1.2.15",
 				"multer": "^1.4.3",
+				"nanocolors": "^0.2.12",
 				"node-fetch": "^2.6.1",
 				"patch-package": "^6.4.7",
 				"pg": "^8.7.1",
@@ -4329,6 +4331,11 @@
 				"node": ">= 0.10.0"
 			}
 		},
+		"node_modules/nanocolors": {
+			"version": "0.2.12",
+			"resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.2.12.tgz",
+			"integrity": "sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug=="
+		},
 		"node_modules/natural-compare": {
 			"version": "1.4.0",
 			"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
@@ -6212,6 +6219,7 @@
 				"lambert-server": "^1.2.10",
 				"missing-native-js-functions": "^1.2.15",
 				"multer": "^1.4.3",
+				"nanocolors": "^0.2.12",
 				"node-fetch": "^2.6.1",
 				"patch-package": "^6.4.7",
 				"pg": "^8.7.1",
@@ -9006,6 +9014,11 @@
 				"xtend": "^4.0.0"
 			}
 		},
+		"nanocolors": {
+			"version": "0.2.12",
+			"resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.2.12.tgz",
+			"integrity": "sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug=="
+		},
 		"natural-compare": {
 			"version": "1.4.0",
 			"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
diff --git a/cdn/package.json b/cdn/package.json
index bb4603be..62c21c9a 100644
--- a/cdn/package.json
+++ b/cdn/package.json
@@ -56,6 +56,7 @@
 		"lambert-server": "^1.2.8",
 		"missing-native-js-functions": "^1.2.15",
 		"multer": "^1.4.2",
+		"nanocolors": "^0.2.12",
 		"node-fetch": "^2.6.1",
 		"supertest": "^6.1.6",
 		"typescript": "^4.1.2",
diff --git a/cdn/src/util/Storage.ts b/cdn/src/util/Storage.ts
index 5cf1eb80..91f841a6 100644
--- a/cdn/src/util/Storage.ts
+++ b/cdn/src/util/Storage.ts
@@ -1,6 +1,7 @@
 import { FileStorage } from "./FileStorage";
 import path from "path";
 import fse from "fs-extra";
+import { bgCyan, black } from "nanocolors";
 process.cwd();
 
 export interface Storage {
@@ -18,7 +19,7 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
 	} else {
 		location = path.join(process.cwd(), "files");
 	}
-	console.log(`[CDN] storage location: ${location}`);
+	console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`);
 	fse.ensureDirSync(location);
 	process.env.STORAGE_LOCATION = location;