Skip to content

Commit 9b2356f

Browse files
committed
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.
1 parent 6931295 commit 9b2356f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"core-js": "^3.4.4",
1313
"v-click-outside": "^3.0.0",
1414
"vue": "^2.6.10",
15-
"vue-socket.io": "^3.0.7"
15+
"vue-socket.io": "git+https://github.com/PhantasWeng/Vue-Socket.io.git#cef2ca40992500b7ae5dd3917268167446cc509c"
1616
},
1717
"devDependencies": {
1818
"@vue/cli-plugin-babel": "^4.1.0",

frontend/src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Vue.use(vClickOutside);
99
Vue.use(
1010
new VueSocketIO({
1111
debug: true,
12+
darkMode: true,
1213
connection: io(), // eslint-disable-line no-undef
1314
})
1415
);

0 commit comments

Comments
 (0)