1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-24 07:06:26 +09:00

fact: change to disableStreamingTimeline

This commit is contained in:
Fairy-Phy 2023-10-22 20:08:19 +09:00
parent 47e994be91
commit aab714b277
No known key found for this signature in database
GPG Key ID: 53E58673D5961DB5
6 changed files with 8 additions and 8 deletions

View File

@ -1142,7 +1142,7 @@ tosAndPrivacyPolicy: "Terms of Service and Privacy Policy"
releaseToRefresh: "Release to reload"
refreshing: "Reloading"
pullDownToRefresh: "Pull down to reload"
disableWebSocket: "Disable realtime update on timeline"
disableStreamingTimeline: "Disable realtime update on timeline"
_announcement:
forExistingUsers: "Existing users only"
forExistingUsersDescription: "This announcement will only be shown to users existing at the point of publishment if enabled. If disabled, those newly signing up after it has been posted will also see it."

2
locales/index.d.ts vendored
View File

@ -1155,7 +1155,7 @@ export interface Locale {
"releaseToRefresh": string;
"refreshing": string;
"pullDownToRefresh": string;
"disableWebSocket": string;
"disableStreamingTimeline": string;
"_announcement": {
"forExistingUsers": string;
"forExistingUsersDescription": string;

View File

@ -1152,7 +1152,7 @@ showAvatarDecorations: "アイコンのデコレーションを表示"
releaseToRefresh: "離してリロード"
refreshing: "リロード中"
pullDownToRefresh: "引っ張ってリロード"
disableWebSocket: "タイムラインのリアルタイム更新を無効にする"
disableStreamingTimeline: "タイムラインのリアルタイム更新を無効にする"
_announcement:
forExistingUsers: "既存ユーザーのみ"

View File

@ -181,7 +181,7 @@ if (props.src === 'antenna') {
};
}
if (!defaultStore.state.disableWebSocket) {
if (!defaultStore.state.disableStreamingTimeline) {
connectChannel();
onUnmounted(() => {

View File

@ -151,7 +151,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="imageNewTab">{{ i18n.ts.openImageInNewTab }}</MkSwitch>
<MkSwitch v-model="enableInfiniteScroll">{{ i18n.ts.enableInfiniteScroll }}</MkSwitch>
<MkSwitch v-model="keepScreenOn">{{ i18n.ts.keepScreenOn }}</MkSwitch>
<MkSwitch v-model="disableWebSocket">{{ i18n.ts.disableWebSocket }}</MkSwitch>
<MkSwitch v-model="disableStreamingTimeline">{{ i18n.ts.disableStreamingTimeline }}</MkSwitch>
</div>
<MkSelect v-model="serverDisconnectedBehavior">
<template #label>{{ i18n.ts.whenServerDisconnected }}</template>
@ -254,7 +254,7 @@ const notificationPosition = computed(defaultStore.makeGetterSetter('notificatio
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
const defaultWithReplies = computed(defaultStore.makeGetterSetter('defaultWithReplies'));
const disableWebSocket = computed(defaultStore.makeGetterSetter('disableWebSocket'));
const disableStreamingTimeline = computed(defaultStore.makeGetterSetter('disableStreamingTimeline'));
watch(lang, () => {
miLocalStorage.setItem('lang', lang.value as string);
@ -291,7 +291,7 @@ watch([
reactionsDisplaySize,
highlightSensitiveMedia,
keepScreenOn,
disableWebSocket,
disableStreamingTimeline,
], async () => {
await reloadAsk();
});

View File

@ -369,7 +369,7 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'account',
default: false,
},
disableWebSocket: {
disableStreamingTimeline: {
where: 'device',
default: false,
},