1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-28 06:48:36 +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" releaseToRefresh: "Release to reload"
refreshing: "Reloading" refreshing: "Reloading"
pullDownToRefresh: "Pull down to reload" pullDownToRefresh: "Pull down to reload"
disableWebSocket: "Disable realtime update on timeline" disableStreamingTimeline: "Disable realtime update on timeline"
_announcement: _announcement:
forExistingUsers: "Existing users only" 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." 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; "releaseToRefresh": string;
"refreshing": string; "refreshing": string;
"pullDownToRefresh": string; "pullDownToRefresh": string;
"disableWebSocket": string; "disableStreamingTimeline": string;
"_announcement": { "_announcement": {
"forExistingUsers": string; "forExistingUsers": string;
"forExistingUsersDescription": string; "forExistingUsersDescription": string;

View File

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

View File

@ -181,7 +181,7 @@ if (props.src === 'antenna') {
}; };
} }
if (!defaultStore.state.disableWebSocket) { if (!defaultStore.state.disableStreamingTimeline) {
connectChannel(); connectChannel();
onUnmounted(() => { 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="imageNewTab">{{ i18n.ts.openImageInNewTab }}</MkSwitch>
<MkSwitch v-model="enableInfiniteScroll">{{ i18n.ts.enableInfiniteScroll }}</MkSwitch> <MkSwitch v-model="enableInfiniteScroll">{{ i18n.ts.enableInfiniteScroll }}</MkSwitch>
<MkSwitch v-model="keepScreenOn">{{ i18n.ts.keepScreenOn }}</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> </div>
<MkSelect v-model="serverDisconnectedBehavior"> <MkSelect v-model="serverDisconnectedBehavior">
<template #label>{{ i18n.ts.whenServerDisconnected }}</template> <template #label>{{ i18n.ts.whenServerDisconnected }}</template>
@ -254,7 +254,7 @@ const notificationPosition = computed(defaultStore.makeGetterSetter('notificatio
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis')); const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn')); const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
const defaultWithReplies = computed(defaultStore.makeGetterSetter('defaultWithReplies')); const defaultWithReplies = computed(defaultStore.makeGetterSetter('defaultWithReplies'));
const disableWebSocket = computed(defaultStore.makeGetterSetter('disableWebSocket')); const disableStreamingTimeline = computed(defaultStore.makeGetterSetter('disableStreamingTimeline'));
watch(lang, () => { watch(lang, () => {
miLocalStorage.setItem('lang', lang.value as string); miLocalStorage.setItem('lang', lang.value as string);
@ -291,7 +291,7 @@ watch([
reactionsDisplaySize, reactionsDisplaySize,
highlightSensitiveMedia, highlightSensitiveMedia,
keepScreenOn, keepScreenOn,
disableWebSocket, disableStreamingTimeline,
], async () => { ], async () => {
await reloadAsk(); await reloadAsk();
}); });

View File

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