Skip to content

Commit f59ec0f

Browse files
authored
Merge pull request #675 from HolodexNet/dev
Deploy 2.31
2 parents a608f9f + 881cbe1 commit f59ec0f

File tree

17 files changed

+158
-10
lines changed

17 files changed

+158
-10
lines changed

docs/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
- Development of Vue3 Holodex (release 3.0 ?!?!) is underway... If you like to influence how it looks, now is the best time to let us know.
66

7-
### 2.30 Holodex [*January 19th, 2022*]
7+
### 2.31 Holodex [*Feb 6th, 2023*]
8+
9+
- Twitter Login may be at risk and we added a notification for that. Sorry if you find it annoying. It goes away after you link another login method.
10+
- Some minor changes have been added, such as wrapping Live Viewer / Subscriber Count info into id'd spans so you can hide it with adblockers. (Thanks Livia)
11+
12+
### 2.30 Holodex [*January 19th, 2023*]
813

914
This release puts out several community contributed changes.
1015

src/App.vue

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,38 @@
1616
<PWAUpdate />
1717
<ReportDialog />
1818
<InstallPrompt v-if="$store.state.isMobile" />
19+
<v-snackbar
20+
v-model="showTwitter"
21+
color="warning"
22+
top
23+
transition="scroll-y-transition"
24+
timeout="25000"
25+
>
26+
<b>{{ $t("views.login.twitterMsg.0") }}</b>
27+
<template #action="{ attrs }">
28+
<div class="flex flex-col">
29+
<v-btn
30+
color="blue"
31+
class="mt-2 mb-2"
32+
v-bind="attrs"
33+
to="/login"
34+
@click="showTwitter = false"
35+
>
36+
{{ $t("views.login.linkAcc") }}
37+
</v-btn>
38+
39+
<v-btn
40+
color="red"
41+
v-bind="attrs"
42+
block
43+
class="mb-2"
44+
@click="showTwitter = false"
45+
>
46+
{{ $t("views.app.close_btn") }}
47+
</v-btn>
48+
</div>
49+
</template>
50+
</v-snackbar>
1951
</v-app>
2052
</template>
2153

@@ -45,6 +77,7 @@ export default {
4577
return {
4678
needRefresh: false,
4779
favoritesUpdateTask: null,
80+
showTwitter: false,
4881
};
4982
},
5083
computed: {
@@ -93,6 +126,13 @@ export default {
93126
this.syncThemeColor();
94127
},
95128
},
129+
mounted() {
130+
if (this.$store.state.userdata?.user?.twitter_id
131+
&& !this.$store.state.userdata?.user?.discord_id
132+
&& !this.$store.state.userdata?.user?.google_id) {
133+
this.showTwitter = true;
134+
}
135+
},
96136
async created() {
97137
this.$store.commit("setVisiblityState", document.visibilityState);
98138
document.addEventListener("visibilitychange", () => {
@@ -132,7 +172,10 @@ export default {
132172
},
133173
methods: {
134174
updateIsMobile() {
135-
this.$store.commit("setIsMobile", ["xs", "sm"].includes(this.$vuetify.breakpoint.name));
175+
this.$store.commit(
176+
"setIsMobile",
177+
["xs", "sm"].includes(this.$vuetify.breakpoint.name),
178+
);
136179
},
137180
interceptError(error) {
138181
// Any status codes that falls outside the range of 2xx cause this function to trigger
@@ -174,7 +217,9 @@ export default {
174217
},
175218
syncThemeColor() {
176219
const themeColor = this.$vuetify.theme.themes.dark.secondary;
177-
window.document.head.querySelector<HTMLMetaElement>("meta[name=theme-color]").content = themeColor;
220+
window.document.head.querySelector<HTMLMetaElement>(
221+
"meta[name=theme-color]",
222+
).content = themeColor;
178223
},
179224
},
180225
};

src/components/channel/ChannelInfo.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@
3535
</span>
3636
</v-list-item-title>
3737
<v-list-item-subtitle>
38-
<template v-if="!noSubscriberCount">
38+
<span
39+
v-if="!noSubscriberCount"
40+
class="subscriber-count"
41+
>
3942
{{ subscriberCount }}
40-
</template>
43+
</span>
4144
<template v-if="includeVideoCount">
4245
4346
{{ $t("component.channelInfo.videoCount", [channel.video_count]) }}

src/components/video/VideoCard.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@
220220
}}
221221
</span>
222222
</template>
223-
<template v-else-if="data.status === 'live' && data.live_viewers > 0">
223+
<span
224+
v-else-if="data.status === 'live' && data.live_viewers > 0"
225+
class="live-viewers"
226+
>
224227
225228
{{
226229
$tc(
@@ -229,7 +232,7 @@
229232
[formatCount(data.live_viewers, lang)]
230233
)
231234
}}
232-
</template>
235+
</span>
233236
</div>
234237
</div>
235238
<!-- Vertical dots menu -->

src/components/watch/WatchInfo.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@
2323
</v-card-title>
2424
<v-card-subtitle>
2525
{{ formattedTime }}
26-
<template v-if="video.status === 'live' && liveViewers">
26+
<span
27+
v-if="video.status === 'live' && liveViewers"
28+
class="live-viewers"
29+
>
2730
• {{ $t("component.videoCard.watching", [liveViewers]) }}
2831
<span
2932
v-if="liveViewerChange"
3033
:class="liveViewerChange > 0 ? 'green--text' : 'red--text'"
3134
>
3235
({{ (liveViewerChange > 0 ? "+ " : "") + liveViewerChange }})
3336
</span>
34-
</template>
37+
</span>
3538
<span
3639
v-if="video.topic_id"
3740
class="mx-1"

src/locales/de-DE/ui.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ component:
1616
subscriberCount: '{n} Abonnenten'
1717
subscriberNA: Abonnentenzahl nicht verfügbar
1818
totalViews: Aufrufe insgesamt
19+
inactiveChannel: Dieser Kanal ist nicht mehr aktiv.
1920
channelSocials:
2021
addToFavorites: Zu Favoriten hinzufügen
2122
removeFromFavorites: Aus Favoriten entfernen
@@ -48,14 +49,18 @@ component:
4849
googleCalendar: Zu Google Kalender hinzufügen
4950
totalTLs: Anzahl an Übersetzungen im Live-Chat
5051
tlPresence: Aktiver Übersetzer in den letzten 30 Minuten
52+
uncertainPlaceholder: Diese Startzeit ist nicht offiziell bestätigt, die tatsächliche Startzeit kann variieren.
5153
typeScheduledYT: Geplanter Stream
5254
typeExternalStream: Externer Stream
5355
typeEventPlaceholder: Geplantes Event
5456
openClient: TL-Client öffnen
5557
openScriptEditor: Skript-Editor öffnen
58+
popoutChat: YouTube-Chat rauslösen
5659
uploadScript: TL-Skript hochladen
5760
videoDescription:
5861
description: Beschreibung
62+
video:
63+
comment: { }
5964
description:
6065
showLess: Weniger anzeigen
6166
showMore: Mehr anzeigen
@@ -73,6 +78,7 @@ component:
7378
org: Organisation
7479
titledesc: Titel/Beschreibung
7580
title: titel
81+
description: beschreibung
7682
comments: Kommentare
7783
videourl: Video-URL
7884
relatedVideo:
@@ -267,6 +273,9 @@ views:
267273
update_btn: Update
268274
close_btn: Schließen
269275
check_about_page: Besuche die Info-Seite um neue Änderungen zu sehen
276+
nowSupportsMultiOrg: >-
277+
Tipp: Hier kannst du die Organisation ändern!
278+
loginCallToAction: Melde dich an, um deine eigenen Favoriten festzulegen.
270279
about:
271280
add_my_channel: Kanalanfrage
272281
watch:
@@ -347,6 +356,10 @@ views:
347356
- Mit Google anmelden
348357
- Mit Discord anmelden
349358
- Mit Twitter anmelden
359+
twitterMsg:
360+
- Aufgrund von Änderungen an den Twitter-API-Richtlinien funktioniert die Twitter-Anmeldung nach dem 9. Februar wahrscheinlich nicht mehr.
361+
- Du verwendest derzeit nur die Twitter-Anmeldung. Wir empfehlen dringend, jetzt eine andere Anmeldemethode zu verknüpfen, um zu verhindern, dass du dich künftig aussperrst. (Auf einem neuen Gerät oder nachdem du deinen Browserverlauf löschst).
362+
- Wenn du Probleme bei der Twitter-Anmeldung hast (und noch keine andere Login-Methode verknüpft hast), dann bitte uns in unseren Twitter-DMs oder auf Discord um Hilfe.
350363
username: Benutzername
351364
usernameBtn:
352365
- Ändern

src/locales/en/ui.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ views:
383383
- Login with Google
384384
- Login with Discord
385385
- Login with Twitter
386+
twitterMsg:
387+
- Due to Twitter API policy change, Twitter Login is likely to no longer work after Feb 9th.
388+
- You are only using Twitter Login at the moment. We strongly recommend linking a different login method now to prevent lockout. (on different devices or after a browser wipe).
389+
- If you are failing to log into Holodex user via Twitter account (and have not bound any other login methods), please contact us on Twitter DMs or Discord for support.
386390
username: Username
387391
usernameBtn:
388392
- Change

src/locales/hu-HU/ui.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ component:
1616
subscriberCount: '{n} Feliratkozó'
1717
subscriberNA: Feliratkozók száma nem elérhető
1818
totalViews: Megtekintések
19+
inactiveChannel: Ez a csatorna már nem aktív.
1920
channelSocials:
2021
addToFavorites: Hozzáadás kedvencekhez
2122
removeFromFavorites: Eltávolítás kedvencek közül
@@ -48,14 +49,18 @@ component:
4849
googleCalendar: Hozzáadás a Google naptárhoz
4950
totalTLs: Összes élő chat fordítás
5051
tlPresence: Aktív fordító az utolsó 30 percben
52+
uncertainPlaceholder: A kezdés időpontja nincs hivatalosan megerősítve, eltérhet a valóságtól.
5153
typeScheduledYT: Beütemezett stream
5254
typeExternalStream: Külső Stream
5355
typeEventPlaceholder: Beütemezett esemény
5456
openClient: Fordító kliens megnyitása
5557
openScriptEditor: Script szerkesztő megnyitása
58+
popoutChat: Felugró ablak YouTube chat
5659
uploadScript: Fordítás script feltöltése
5760
videoDescription:
5861
description: Leírás
62+
video:
63+
comment: { }
5964
description:
6065
showLess: Kevesebb megjelenítése
6166
showMore: Továbbiak megjelenítése
@@ -73,6 +78,7 @@ component:
7378
org: org
7479
titledesc: cím/leírás
7580
title: cím
81+
description: leírás
7682
comments: hozzászólások
7783
videourl: videó URL-címe
7884
relatedVideo:
@@ -267,6 +273,9 @@ views:
267273
update_btn: Frissítés
268274
close_btn: Bezárás
269275
check_about_page: Látogasd meg az Információ oldalt, hogy lásd a változásokat
276+
nowSupportsMultiOrg: >-
277+
Tipp: Itt tudod megváltoztatni az ügynökséget!
278+
loginCallToAction: Jelentkezz be, hogy kedvenceket állíts.
270279
about:
271280
add_my_channel: Csatorna igénylés
272281
watch:
@@ -347,6 +356,10 @@ views:
347356
- Bejelentkezés Google fiókkal
348357
- Bejelentkezés Discorddal
349358
- Bejelentkezés Twitter fiókkal
359+
twitterMsg:
360+
- A Twitter API irányelvek változások miatt a bejelentkezés Twitterrel előreláthatólag nem fog működni február 9.-e után.
361+
- Jelenleg csak Twitter bejelentkezést használsz. Erősen ajánljuk, hogy más bejelentkezési módot is állíts, hogy megelőzzük a fiókból való kizárást. (Más eszközökön vagy böngésző törlés után)
362+
- Ha nem tudsz belépni Holodex fiókodba Twitter felhasználóval (valamint nincs más bejelentkezési módot beállítva) kérlek keress minket Twitteren privát üzenetben vagy Discordon segítségért.
350363
username: Felhasználónév
351364
usernameBtn:
352365
- Megváltoztatás

src/locales/id-ID/ui.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ component:
1616
subscriberCount: '{n} Subscriber'
1717
subscriberNA: Jumlah Subscriber tidak tersedia
1818
totalViews: Jumlah Ditonton
19+
inactiveChannel: Channel ini sudah tidak aktif.
1920
channelSocials:
2021
addToFavorites: Tambahkan ke Favorit
2122
removeFromFavorites: Hapus dari Favorit
@@ -48,14 +49,18 @@ component:
4849
googleCalendar: Tambahkan ke Kalender Google
4950
totalTLs: Jumlah Terjemahan Obrolan
5051
tlPresence: Penerjemah aktif dalam 30 menit terakhir
52+
uncertainPlaceholder: Waktu mulai tidak terkonfirmasi secara resmi, waktu mulai sebenarnya bisa saja berbeda.
5153
typeScheduledYT: Stream Terjadwal
5254
typeExternalStream: Stream Eksternal
5355
typeEventPlaceholder: Acara Terjadwal
5456
openClient: Buka Klien TL
5557
openScriptEditor: Buka Editor Naskah
58+
popoutChat: Pindahkan YouTube Chat
5659
uploadScript: Unggah Naskah TL
5760
videoDescription:
5861
description: Deskripsi
62+
video:
63+
comment: { }
5964
description:
6065
showLess: Tampilkan lebih sedikit
6166
showMore: Tampilkan lebih banyak
@@ -73,6 +78,7 @@ component:
7378
org: org
7479
titledesc: judul/desk
7580
title: judul
81+
description: deskripsi
7682
comments: Komen
7783
videourl: url video
7884
relatedVideo:
@@ -267,6 +273,9 @@ views:
267273
update_btn: Perbarui
268274
close_btn: Tutup
269275
check_about_page: Kunjungi halaman Tentang untuk melihat pembaharuan
276+
nowSupportsMultiOrg: >-
277+
Tip: Kamu dapat mengubah organisasi disini!
278+
loginCallToAction: Masuk untuk mengatur favoritmu.
270279
about:
271280
add_my_channel: Mengajukan Channel
272281
watch:
@@ -347,6 +356,10 @@ views:
347356
- Masuk dengan Google
348357
- Masuk dengan Discord
349358
- Masuk dengan Twitter
359+
twitterMsg:
360+
- Karena perubahan kebijakan API Twitter, Masuk dengan Twitter kemungkinan tidak lagi berfungsi setelah 9 Februari.
361+
- Kamu hanya memakai Twitter sebagai sarana masuk. Kami sarankan untuk mengkaitkan metode masuk lain sekarang untuk mencegah penguncian. (pada perangkat lain atau setelah penghapusan browser).
362+
- Jika kamu gagal masuk ke dalam Holodex via akun Twitter (dan tidak mengkaitkan akun dengan metode masuk lainnya), mohon hubungi kami untuk mendapatkan bantuan melalui DM Twitter atau Discord.
350363
username: Nama Pengguna
351364
usernameBtn:
352365
- Ubah

src/locales/ja-JP/ui.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ views:
356356
- Googleでログイン
357357
- Discordでログイン
358358
- Twitterでログイン
359+
twitterMsg:
360+
- Twitter APIポリシーの変更により、2月9日以降、Twitterログインは機能しなくなる可能性があります。
361+
- 現時点であなたはTwitterログインのみを使用しています。(異なるデバイスからログインする場合、またはブラウザのサイト情報を消去した後の) ロックアウトを防ぐため、今すぐ別のログイン方法をリンクすることを強くお勧めします。
362+
- Twitterアカウント経由でHolodex ユーザーにログインできない場合 (また、他のログイン方法を紐付けていない場合) TwitterのDMまたはDiscordからお問い合わせください。
359363
username: ユーザー名
360364
usernameBtn:
361365
- 更新

0 commit comments

Comments
 (0)