Skip to content

Commit 5cca795

Browse files
committed
Added sign out button and upgraded tmi.
1 parent 71e1080 commit 5cca795

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vip-controller",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "An app to help Twitch streamers automate VIP redemption and removal.",
55
"main": "./dist/main/index.js",
66
"scripts": {
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"sqlite3": "^5.0.2",
42-
"tmi.js": "^1.7.1",
42+
"tmi.js": "^1.8.5",
4343
"twitch": "^4.4.11",
4444
"twitch-auth": "^4.4.11",
4545
"twitch-electron-auth-provider": "^4.4.11",

src/renderer/pages/index.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<template>
22
<section class="section">
33
<div class="container">
4+
<b-field>
5+
<b-button type="is-danger" @click="signOut" expanded>Sign Out</b-button>
6+
</b-field>
7+
8+
<hr />
9+
410
<b-field label="VIP Channel Reward">
511
<b-select placeholder="Select a reward" :value="rewardId" @input="updateVipReward" expanded>
612
<option
@@ -245,6 +251,10 @@ export default {
245251
chatAPI.disconnect()
246252
247253
this.started = false
254+
},
255+
signOut() {
256+
this.$store.dispatch('settings/setAccessToken', null)
257+
return this.$router.push('/login')
248258
}
249259
}
250260
}

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8968,13 +8968,13 @@ timsort@^0.3.0:
89688968
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz"
89698969
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
89708970

8971-
tmi.js@^1.7.1:
8972-
version "1.7.1"
8973-
resolved "https://registry.yarnpkg.com/tmi.js/-/tmi.js-1.7.1.tgz#dbd250e49a35ad238eec29bd2237c8efe4db6555"
8974-
integrity sha512-QCGDjVT0i8GZ99paBsaXDvd++A7PzW051S2BSXClMni5gDj5wUV6+YIZAwUtLkvbR/lD9QlqjNJloCNuFYGo+A==
8971+
tmi.js@^1.8.5:
8972+
version "1.8.5"
8973+
resolved "https://registry.yarnpkg.com/tmi.js/-/tmi.js-1.8.5.tgz#8298821677599f163af075113f5d1bd51a648087"
8974+
integrity sha512-A9qrydfe1e0VWM9MViVhhxVgvLpnk7pFShVUWePsSTtoi+A1X+Zjdoa7OJd7/YsgHXGj3GkNEvnWop/1WwZuew==
89758975
dependencies:
8976-
node-fetch "2.6.1"
8977-
ws "7.4.0"
8976+
node-fetch "^2.6.1"
8977+
ws "^8.2.0"
89788978

89798979
tmp@^0.0.33:
89808980
version "0.0.33"
@@ -9874,11 +9874,6 @@ write-json-file@^2.3.0:
98749874
sort-keys "^2.0.0"
98759875
write-file-atomic "^2.0.0"
98769876

9877-
9878-
version "7.4.0"
9879-
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.0.tgz#a5dd76a24197940d4a8bb9e0e152bb4503764da7"
9880-
integrity sha512-kyFwXuV/5ymf+IXhS6f0+eAFvydbaBW3zjpT6hUdAh/hbVjTIB5EHBGi0bPoCLSK2wcuz3BrEkB9LrYv1Nm4NQ==
9881-
98829877
ws@^6.0.0, ws@^6.1.2:
98839878
version "6.2.1"
98849879
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz"
@@ -9891,6 +9886,11 @@ ws@^7.4.2, ws@^7.4.3:
98919886
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.3.tgz#1f9643de34a543b8edb124bdcbc457ae55a6e5cd"
98929887
integrity sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA==
98939888

9889+
ws@^8.2.0:
9890+
version "8.2.0"
9891+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.0.tgz#0b738cd484bfc9303421914b11bb4011e07615bb"
9892+
integrity sha512-uYhVJ/m9oXwEI04iIVmgLmugh2qrZihkywG9y5FfZV2ATeLIzHf93qs+tUNqlttbQK957/VX3mtwAS+UfIwA4g==
9893+
98949894
xdg-basedir@^4.0.0:
98959895
version "4.0.0"
98969896
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz"

0 commit comments

Comments
 (0)