chore(electron): remove offline mode (#10152)

close AF-2177
This commit is contained in:
forehalo
2025-02-14 10:04:00 +00:00
parent 981b4efecf
commit cc6fdef10e
22 changed files with 38 additions and 99 deletions

View File

@@ -4,7 +4,6 @@ import { net, protocol, session } from 'electron';
import cookieParser from 'set-cookie-parser';
import { logger } from './logger';
import { isOfflineModeEnabled } from './utils';
protocol.registerSchemesAsPrivileged([
{
@@ -141,36 +140,6 @@ export function registerProtocol() {
session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
const url = new URL(details.url);
const pathname = url.pathname;
const protocol = url.protocol;
const origin = url.origin;
// offline whitelist
// 1. do not block non-api request for http://localhost || file:// (local dev assets)
// 2. do not block devtools
// 3. block all other requests
const blocked = (() => {
if (!isOfflineModeEnabled()) {
return false;
}
if (
(protocol === 'file:' || origin.startsWith('http://localhost')) &&
!isNetworkResource(pathname)
) {
return false;
}
if ('devtools:' === protocol) {
return false;
}
return true;
})();
if (blocked) {
logger.debug('blocked request', details.url);
callback({
cancel: true,
});
return;
}
(async () => {
// session cookies are set to file:// on production

View File

@@ -3,7 +3,6 @@ import { autoUpdater as defaultAutoUpdater } from 'electron-updater';
import { buildType } from '../config';
import { logger } from '../logger';
import { isOfflineModeEnabled } from '../utils';
import { AFFiNEUpdateProvider } from './affine-update-provider';
import { updaterSubjects } from './event';
import { WindowsUpdater } from './windows-updater';
@@ -55,7 +54,7 @@ export const setConfig = (newConfig: Partial<UpdaterConfig> = {}): void => {
};
export const checkForUpdates = async () => {
if (disabled || checkingUpdate || isOfflineModeEnabled()) {
if (disabled || checkingUpdate) {
return;
}
checkingUpdate = true;

View File

@@ -1,8 +1,5 @@
import type { CookiesSetDetails } from 'electron';
import { logger } from './logger';
import { globalStateStorage } from './shared-storage/storage';
export function parseCookie(
cookieString: string,
url: string
@@ -55,16 +52,3 @@ export function parseCookie(
return details;
}
export const isOfflineModeEnabled = () => {
try {
return (
// todo(pengx17): better abstraction for syncing flags with electron
// packages/common/infra/src/modules/feature-flag/entities/flags.ts
globalStateStorage.get('affine-flag:enable_offline_mode') ?? false
);
} catch (error) {
logger.error('Failed to get offline mode flag', error);
return false;
}
};

View File

@@ -147,15 +147,6 @@ export const AFFINE_FLAGS = {
configurable: false,
defaultState: true,
},
enable_offline_mode: {
category: 'affine',
displayName:
'com.affine.settings.workspace.experimental-features.enable-offline-mode.name',
description:
'com.affine.settings.workspace.experimental-features.enable-offline-mode.description',
configurable: isDesktopEnvironment,
defaultState: false,
},
enable_theme_editor: {
category: 'affine',
displayName:

View File

@@ -6,7 +6,7 @@
"el-GR": 88,
"en": 100,
"es-AR": 88,
"es-CL": 90,
"es-CL": 89,
"es": 88,
"fa": 88,
"fr": 88,

View File

@@ -5357,14 +5357,6 @@ export function useAFFiNEI18N(): {
* `Enables editor settings.`
*/
["com.affine.settings.workspace.experimental-features.enable-editor-settings.description"](): string;
/**
* `Offline Mode`
*/
["com.affine.settings.workspace.experimental-features.enable-offline-mode.name"](): string;
/**
* `Stop Connecting to the Internet. Even with AFFiNE Cloud, enabling this toggle stops internet connection and keeps everything local, but syncing will be disabled.`
*/
["com.affine.settings.workspace.experimental-features.enable-offline-mode.description"](): string;
/**
* `Theme Editor`
*/
@@ -7009,6 +7001,10 @@ export function useAFFiNEI18N(): {
* `Resource not found.`
*/
["error.NOT_FOUND"](): string;
/**
* `Bad request.`
*/
["error.BAD_REQUEST"](): string;
/**
* `Query is too long, max length is {{max}}.`
*/
@@ -7377,6 +7373,33 @@ export function useAFFiNEI18N(): {
kind: string;
message: string;
}>): string;
/**
* `Invalid copilot context {{contextId}}.`
*/
["error.COPILOT_INVALID_CONTEXT"](options: {
readonly contextId: string;
}): string;
/**
* `File {{fileName}} is not supported to use as context: {{message}}`
*/
["error.COPILOT_CONTEXT_FILE_NOT_SUPPORTED"](options: Readonly<{
fileName: string;
message: string;
}>): string;
/**
* `Failed to modify context {{contextId}}: {{message}}`
*/
["error.COPILOT_FAILED_TO_MODIFY_CONTEXT"](options: Readonly<{
contextId: string;
message: string;
}>): string;
/**
* `Failed to match context {{contextId}} with "%7B%7Bcontent%7D%7D": {{message}}`
*/
["error.COPILOT_FAILED_TO_MATCH_CONTEXT"](options: Readonly<{
contextId: string;
message: string;
}>): string;
/**
* `You have exceeded your blob storage quota.`
*/

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "بمجرد التمكين، يمكنك استخدام إيموجي كأيقونة للوثيقة. عندما يكون الحرف الأول من اسم الوثيقة إيموجي، سيتم استخراجه واستخدامه كأيقونته.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "إعدادات المحرر",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "تمكين إعدادات المحرر.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "وضع عدم الاتصال",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "إيقاف الاتصال بالإنترنت. حتى مع AFFiNE Cloud، فإن تفعيل هذا الخيار يوقف اتصال الإنترنت ويحتفظ بكل شيء محليًا، لكن المزامنة ستتوقف.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "محرر الثيمات",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "تمكين محرر الثيمات.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "السماح بإنشاء مساحة عمل محلية",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Sobald aktiviert, kann ein Emoji als Seitensymbol verwendet werden. Wenn das erste Zeichen des Seitennamens ein Emoji ist, wird es extrahiert und als deren Symbol verwendet.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Editor-Einstellungen",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Aktiviert Editor-Einstellungen.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Offline-Modus",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Internetverbindung trennen. Auch mit AFFiNE Cloud wird durch Aktivieren dieses Schalters die Internetverbindung getrennt und alles lokal gehalten, aber die Synchronisierung wird deaktiviert.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Theme-Editor",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Aktiviert den Theme-Editor.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Erstellen eines lokalen Workspaces zulassen",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Μόλις ενεργοποιηθεί, μπορείτε να χρησιμοποιήσετε ένα emoji ως το εικονίδιο του εγγράφου. Όταν ο πρώτος χαρακτήρας του ονόματος εγγράφου είναι emoji, θα εξαχθεί και θα χρησιμοποιηθεί ως το εικονίδιο του.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Ρυθμίσεις Επεξεργαστή",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Ενεργοποιεί τις ρυθμίσεις του επεξεργαστή.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Λειτουργία Εκτός Σύνδεσης",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Σταματήστε τη σύνδεση στο Διαδίκτυο. Ακόμα και με το AFFiNE Cloud, η ενεργοποίηση αυτής της επιλογής σταματάει τη σύνδεση στο διαδίκτυο και διατηρεί τα πάντα τοπικά, αλλά ο συγχρονισμός θα απενεργοποιηθεί.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Επεξεργαστής Θέματος",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Ενεργοποιεί τον επεξεργαστή θέματος.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Επιτρέπεται η δημιουργία τοπικού χώρου εργασίας",

View File

@@ -1337,8 +1337,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Once enabled, you can use an emoji as the doc icon. When the first character of the doc name is an emoji, it will be extracted and used as its icon.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Editor Settings",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Enables editor settings.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Offline Mode",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Stop Connecting to the Internet. Even with AFFiNE Cloud, enabling this toggle stops internet connection and keeps everything local, but syncing will be disabled.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Theme Editor",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Enables theme editor.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Allow create local workspace",
@@ -1745,6 +1743,7 @@
"error.INTERNAL_SERVER_ERROR": "An internal error occurred.",
"error.TOO_MANY_REQUEST": "Too many requests.",
"error.NOT_FOUND": "Resource not found.",
"error.BAD_REQUEST": "Bad request.",
"error.QUERY_TOO_LONG": "Query is too long, max length is {{max}}.",
"error.USER_NOT_FOUND": "User not found.",
"error.USER_AVATAR_NOT_FOUND": "User avatar not found.",
@@ -1820,6 +1819,10 @@
"error.COPILOT_PROMPT_NOT_FOUND": "Copilot prompt {{name}} not found.",
"error.COPILOT_PROMPT_INVALID": "Copilot prompt is invalid.",
"error.COPILOT_PROVIDER_SIDE_ERROR": "Provider {{provider}} failed with {{kind}} error: {{message}}",
"error.COPILOT_INVALID_CONTEXT": "Invalid copilot context {{contextId}}.",
"error.COPILOT_CONTEXT_FILE_NOT_SUPPORTED": "File {{fileName}} is not supported to use as context: {{message}}",
"error.COPILOT_FAILED_TO_MODIFY_CONTEXT": "Failed to modify context {{contextId}}: {{message}}",
"error.COPILOT_FAILED_TO_MATCH_CONTEXT": "Failed to match context {{contextId}} with \"%7B%7Bcontent%7D%7D\": {{message}}",
"error.BLOB_QUOTA_EXCEEDED": "You have exceeded your blob storage quota.",
"error.MEMBER_QUOTA_EXCEEDED": "You have exceeded your workspace member quota.",
"error.COPILOT_QUOTA_EXCEEDED": "You have reached the limit of actions in this workspace, please upgrade your plan.",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Una vez habilitado, puede usar un emoji como ícono del documento. Cuando el primer carácter del nombre del documento es un emoji, se extraerá y utilizará como su icono.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Configuraciones del Editor",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Habilita configuraciones del editor.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Modo Offline",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Dejar de conectarse a Internet. Incluso con AFFiNE Cloud, habilitar este interruptor detiene la conexión a Internet y mantiene todo local, pero la sincronización se desactivará.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Editor de Temas",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Habilita el editor de temas.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Permitir crear espacio de trabajo local",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "پس از فعال‌سازی، می‌توانید از یک ایموجی به عنوان آیکون سند استفاده کنید. وقتی اولین کاراکتر نام سند یک ایموجی باشد، آن استخراج شده و به عنوان آیکون آن استفاده می‌شود.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "تنظیمات ویرایشگر",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "تنظیمات ویرایشگر را فعال می‌کند.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "حالت آفلاین",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "اتصال به اینترنت را متوقف کنید. حتی با AFFiNE Cloud، فعال‌سازی این گزینه اتصال به اینترنت را متوقف کرده و همه چیز را محلی نگه می‌دارد، اما همگام‌سازی غیرفعال خواهد شد.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "ویرایشگر تم",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "ویرایشگر تم را فعال می‌کند.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "اجازه ایجاد فضای کاری محلی",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Une fois activé, vous pouvez utiliser un emoji comme icône du document. Lorsque le premier caractère du nom du document est un emoji, il sera extrait et utilisé comme icône.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Paramètres de l'éditeur",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Active les paramètres de l'éditeur.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Mode hors ligne",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Arrêter la connexion à Internet. Même avec AFFiNE Cloud, l'activation de ce basculement arrête la connexion Internet et conserve tout en local, mais la synchronisation sera désactivée.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Éditeur de thèmes",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Active l'éditeur de thèmes.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Autoriser la création d'un espace de travail local",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Una volta abilitata, puoi usare un'emoji come icona del documento. Quando il primo carattere del nome del documento è un'emoji, verrà estratto e usato come sua icona.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Impostazioni dell'Editor",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Abilita le impostazioni dell'editor.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Modalità offline",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Interrompe la connessione a Internet. Anche con AFFiNE Cloud, abilitando questo interruttore si interrompe la connessione a Internet e tutto viene mantenuto locale, ma la sincronizzazione sarà disabilitata.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Editor di temi",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Abilita l'editor di temi.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Consenti la creazione di uno spazio di lavoro locale",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "一度有効にすると、絵文字をドキュメントのアイコンとして使用できるようになります。ドキュメント名の最初の文字が絵文字の場合、その文字が抽出され、アイコンとして使用されます。",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "エディター設定",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "エディター設定を有効にします。",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "オフラインモード",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "インターネットへの接続を停止します。AFFiNE Cloudを使用していても、このトグルを有効にすると、インターネット接続が停止し、すべてがローカルに保持されますが、同期は無効になります。",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "テーマエディター",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "テーマエディタを有効にします。",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "ローカルワークスペースを作成します",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Po włączeniu możesz użyć emotikonu jako ikony dokumentu. Kiedy pierwszym znakiem nazwy dokumentu jest emotikon, zostanie on wyodrębniony i użyty jako jego ikona.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Ustawienia edytora",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Umożliwia ustawienia edytora.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Tryb offline",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Przestań łączyć się z Internetem. Nawet z AFFiNE Cloud, włączenie tego przełącznika wyłącza połączenie z internetem i zachowuje wszystko lokalnie, ale synchronizacja zostanie wyłączona.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Edytor motywów",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Umożliwia edytor motywów.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Zezwól na utworzenie lokalnego miejsca pracy",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Depois de habilitado, você pode usar um emoji como ícone do documento. Quando o primeiro caractere do nome do documento é um emoji, ele será extraído e usado como ícone.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Configurações do editor",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Ativa as configurações do editor.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Modo offline",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Pare de se conectar à Internet. Mesmo com o AFFiNE Cloud, habilitar este botão interrompe a conexão de internet e mantém tudo local, mas a sincronização será desabilitada.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Editor de Tema",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Ativa o editor de temas.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Permitir criar espaço de trabalho local",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "После включения вы можете использовать эмодзи в качестве значка документа. Если первый символ имени документа — эмодзи, он будет извлечен и использован в качестве значка.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Настройки редактора",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Включает настройки редактора.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Офлайн режим",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Прекратить подключение к Интернету. Даже с AFFiNE Cloud, включение этого переключателя разрывает подключение к Интернету и сохраняет всё локально, но синхронизация будет отключена.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Редактор темы",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Включает редактор темы.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Разрешить создание локального рабочего пространства",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "När det är aktiverat kan du använda en emoji som dokumentikon. När det första tecknet i dokumentnamnet är en emoji kommer det att extraheras och användas som ikon.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Editor Inställningar",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Aktiverar redaktörsinställningar.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Offline-läge",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Stoppa anslutning till Internet. Även med AFFiNE Cloud kommer denna växelspak att stoppa internetanslutningen och hålla allting lokalt, men synkronisering kommer att inaktiveras.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Temaeditor",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Aktiverar temaeditorn.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Tillåt skapande av lokal arbetsyta",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "Після увімкнення ви можете використовувати емодзі як значок документа. Коли перший символ назви документа є емодзі, він буде витягнутий і використаний як його значок.",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "Налаштування редактора",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "Увімкнення налаштувань редактора.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "Офлайн режим",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "Зупинити підключення до Інтернету. Навіть при підключенні до AFFiNE Cloud, увімкнення цього перемикача зупиняє з'єднання з Інтернетом і зберігає все локально, але синхронізація буде відключена.",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "Редактор теми",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "Увімкнення редактора теми.",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "Дозволити створення локального робочого простору",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "启用后,您可以使用表情符号作为文档图标。当文档名称的第一个字符是表情符号时,它将被提取并用作其图标。",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "编辑器设置",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "启用编辑器设置。",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "离线模式",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "停止连接互联网。即使使用 AFFiNE Cloud启用此开关也将断开互联网连接并保持所有内容本地化但同步功能将被禁用。",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "主题编辑器",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "启用主题编辑器功能。",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "允许创建本地工作区",

View File

@@ -1298,8 +1298,6 @@
"com.affine.settings.workspace.experimental-features.enable-emoji-doc-icon.description": "啟用後,您可以使用表情符號作為文件圖標。當文件名稱的第一個字符是表情符號時,它將被提取並用作其圖標。",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.name": "編輯器設定",
"com.affine.settings.workspace.experimental-features.enable-editor-settings.description": "啟用編輯器設定.",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.name": "離線模式",
"com.affine.settings.workspace.experimental-features.enable-offline-mode.description": "停止連接到互聯網。即使使用 AFFiNE Cloud啟用此開關後將停止互聯網連接並保持所有內容在本地但同步功能將被禁用。",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.name": "主題編輯器",
"com.affine.settings.workspace.experimental-features.enable-theme-editor.description": "啟用主題編輯器。",
"com.affine.settings.workspace.experimental-features.enable-local-workspace.name": "允許創建本地工作區",