From 9b2356f2b3795c7bc2863d737840c1006eea4e01 Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Fri, 17 Jan 2020 16:40:29 -0600 Subject: [PATCH] Enable dark mode logging The default colors in the debug output of vue-socket.io are tuned for light mode consoles, and viewing them in dark mode is effectively impossible. Since the base version does not yet support switching the output color, we instead switch to PhantasWeng's patched version, pending MetinSeylan/Vue-Socket.io#231. --- frontend/package-lock.json | 5 ++--- frontend/package.json | 2 +- frontend/src/main.js | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 3525730..b0cb256 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -11163,9 +11163,8 @@ } }, "vue-socket.io": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/vue-socket.io/-/vue-socket.io-3.0.7.tgz", - "integrity": "sha512-dTo0Vr6jIziIax5/m+mY+iwzSBdH9ZgcUR0FkyfFNklBYvb6bdNbo5tJTydMh0DTZ8f+gK4Xl6Ihtnv6YIsulQ==", + "version": "git+https://github.com/PhantasWeng/Vue-Socket.io.git#cef2ca40992500b7ae5dd3917268167446cc509c", + "from": "git+https://github.com/PhantasWeng/Vue-Socket.io.git#cef2ca40992500b7ae5dd3917268167446cc509c", "requires": { "socket.io-client": "^2.1.1" } diff --git a/frontend/package.json b/frontend/package.json index b26e3e5..2b4b26c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,7 +12,7 @@ "core-js": "^3.4.4", "v-click-outside": "^3.0.0", "vue": "^2.6.10", - "vue-socket.io": "^3.0.7" + "vue-socket.io": "git+https://github.com/PhantasWeng/Vue-Socket.io.git#cef2ca40992500b7ae5dd3917268167446cc509c" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.1.0", diff --git a/frontend/src/main.js b/frontend/src/main.js index 9218c79..2394b4a 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -9,6 +9,7 @@ Vue.use(vClickOutside); Vue.use( new VueSocketIO({ debug: true, + darkMode: true, connection: io(), // eslint-disable-line no-undef }) );