mirror of
https://github.com/usememos/memos.git
synced 2025-12-11 06:36:02 +08:00
refactor: remove legacy disable markdown shortcuts setting
- Remove disable_markdown_shortcuts field from proto definitions - Remove setting UI from MemoRelatedSettings component - Enable markdown shortcuts permanently in MemoEditor - Remove translations from all 32 locale files - Fix TypeScript error in useMemoSave hook by using typed translation function 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2b7b70ebfe
commit
5fb6f8eccf
40 changed files with 8 additions and 90 deletions
|
|
@ -163,8 +163,6 @@ message InstanceSetting {
|
|||
bool enable_link_preview = 5;
|
||||
// reactions is the list of reactions.
|
||||
repeated string reactions = 7;
|
||||
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
|
||||
bool disable_markdown_shortcuts = 8;
|
||||
// enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW).
|
||||
bool enable_blur_nsfw_content = 9;
|
||||
// nsfw_tags is the list of tags that mark content as NSFW for blurring.
|
||||
|
|
|
|||
|
|
@ -667,8 +667,6 @@ type InstanceSetting_MemoRelatedSetting struct {
|
|||
EnableLinkPreview bool `protobuf:"varint,5,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
|
||||
// reactions is the list of reactions.
|
||||
Reactions []string `protobuf:"bytes,7,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
||||
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
|
||||
DisableMarkdownShortcuts bool `protobuf:"varint,8,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
||||
// enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW).
|
||||
EnableBlurNsfwContent bool `protobuf:"varint,9,opt,name=enable_blur_nsfw_content,json=enableBlurNsfwContent,proto3" json:"enable_blur_nsfw_content,omitempty"`
|
||||
// nsfw_tags is the list of tags that mark content as NSFW for blurring.
|
||||
|
|
@ -749,13 +747,6 @@ func (x *InstanceSetting_MemoRelatedSetting) GetReactions() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *InstanceSetting_MemoRelatedSetting) GetDisableMarkdownShortcuts() bool {
|
||||
if x != nil {
|
||||
return x.DisableMarkdownShortcuts
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *InstanceSetting_MemoRelatedSetting) GetEnableBlurNsfwContent() bool {
|
||||
if x != nil {
|
||||
return x.EnableBlurNsfwContent
|
||||
|
|
@ -935,7 +926,7 @@ const file_api_v1_instance_service_proto_rawDesc = "" +
|
|||
"\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" +
|
||||
"\x04mode\x18\x03 \x01(\tR\x04mode\x12!\n" +
|
||||
"\finstance_url\x18\x06 \x01(\tR\vinstanceUrl\"\x1b\n" +
|
||||
"\x19GetInstanceProfileRequest\"\x8b\x11\n" +
|
||||
"\x19GetInstanceProfileRequest\"\xcd\x10\n" +
|
||||
"\x0fInstanceSetting\x12\x17\n" +
|
||||
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12W\n" +
|
||||
"\x0fgeneral_setting\x18\x02 \x01(\v2,.memos.api.v1.InstanceSetting.GeneralSettingH\x00R\x0egeneralSetting\x12W\n" +
|
||||
|
|
@ -972,15 +963,14 @@ const file_api_v1_instance_service_proto_rawDesc = "" +
|
|||
"\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\f\n" +
|
||||
"\bDATABASE\x10\x01\x12\t\n" +
|
||||
"\x05LOCAL\x10\x02\x12\x06\n" +
|
||||
"\x02S3\x10\x03\x1a\xd8\x03\n" +
|
||||
"\x02S3\x10\x03\x1a\x9a\x03\n" +
|
||||
"\x12MemoRelatedSetting\x12<\n" +
|
||||
"\x1adisallow_public_visibility\x18\x01 \x01(\bR\x18disallowPublicVisibility\x127\n" +
|
||||
"\x18display_with_update_time\x18\x02 \x01(\bR\x15displayWithUpdateTime\x120\n" +
|
||||
"\x14content_length_limit\x18\x03 \x01(\x05R\x12contentLengthLimit\x127\n" +
|
||||
"\x18enable_double_click_edit\x18\x04 \x01(\bR\x15enableDoubleClickEdit\x12.\n" +
|
||||
"\x13enable_link_preview\x18\x05 \x01(\bR\x11enableLinkPreview\x12\x1c\n" +
|
||||
"\treactions\x18\a \x03(\tR\treactions\x12<\n" +
|
||||
"\x1adisable_markdown_shortcuts\x18\b \x01(\bR\x18disableMarkdownShortcuts\x127\n" +
|
||||
"\treactions\x18\a \x03(\tR\treactions\x127\n" +
|
||||
"\x18enable_blur_nsfw_content\x18\t \x01(\bR\x15enableBlurNsfwContent\x12\x1b\n" +
|
||||
"\tnsfw_tags\x18\n" +
|
||||
" \x03(\tR\bnsfwTags\"F\n" +
|
||||
|
|
|
|||
|
|
@ -2344,9 +2344,6 @@ components:
|
|||
items:
|
||||
type: string
|
||||
description: reactions is the list of reactions.
|
||||
disableMarkdownShortcuts:
|
||||
type: boolean
|
||||
description: disable_markdown_shortcuts disallow the registration of markdown shortcuts.
|
||||
enableBlurNsfwContent:
|
||||
type: boolean
|
||||
description: enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW).
|
||||
|
|
|
|||
|
|
@ -671,8 +671,6 @@ type InstanceMemoRelatedSetting struct {
|
|||
EnableLinkPreview bool `protobuf:"varint,5,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
|
||||
// reactions is the list of reactions.
|
||||
Reactions []string `protobuf:"bytes,7,rep,name=reactions,proto3" json:"reactions,omitempty"`
|
||||
// disable markdown shortcuts
|
||||
DisableMarkdownShortcuts bool `protobuf:"varint,8,opt,name=disable_markdown_shortcuts,json=disableMarkdownShortcuts,proto3" json:"disable_markdown_shortcuts,omitempty"`
|
||||
// enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW).
|
||||
EnableBlurNsfwContent bool `protobuf:"varint,9,opt,name=enable_blur_nsfw_content,json=enableBlurNsfwContent,proto3" json:"enable_blur_nsfw_content,omitempty"`
|
||||
// nsfw_tags is the list of tags that mark content as NSFW for blurring.
|
||||
|
|
@ -753,13 +751,6 @@ func (x *InstanceMemoRelatedSetting) GetReactions() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *InstanceMemoRelatedSetting) GetDisableMarkdownShortcuts() bool {
|
||||
if x != nil {
|
||||
return x.DisableMarkdownShortcuts
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *InstanceMemoRelatedSetting) GetEnableBlurNsfwContent() bool {
|
||||
if x != nil {
|
||||
return x.EnableBlurNsfwContent
|
||||
|
|
@ -821,15 +812,14 @@ const file_store_instance_setting_proto_rawDesc = "" +
|
|||
"\bendpoint\x18\x03 \x01(\tR\bendpoint\x12\x16\n" +
|
||||
"\x06region\x18\x04 \x01(\tR\x06region\x12\x16\n" +
|
||||
"\x06bucket\x18\x05 \x01(\tR\x06bucket\x12$\n" +
|
||||
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\"\xe0\x03\n" +
|
||||
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\"\xa2\x03\n" +
|
||||
"\x1aInstanceMemoRelatedSetting\x12<\n" +
|
||||
"\x1adisallow_public_visibility\x18\x01 \x01(\bR\x18disallowPublicVisibility\x127\n" +
|
||||
"\x18display_with_update_time\x18\x02 \x01(\bR\x15displayWithUpdateTime\x120\n" +
|
||||
"\x14content_length_limit\x18\x03 \x01(\x05R\x12contentLengthLimit\x127\n" +
|
||||
"\x18enable_double_click_edit\x18\x04 \x01(\bR\x15enableDoubleClickEdit\x12.\n" +
|
||||
"\x13enable_link_preview\x18\x05 \x01(\bR\x11enableLinkPreview\x12\x1c\n" +
|
||||
"\treactions\x18\a \x03(\tR\treactions\x12<\n" +
|
||||
"\x1adisable_markdown_shortcuts\x18\b \x01(\bR\x18disableMarkdownShortcuts\x127\n" +
|
||||
"\treactions\x18\a \x03(\tR\treactions\x127\n" +
|
||||
"\x18enable_blur_nsfw_content\x18\t \x01(\bR\x15enableBlurNsfwContent\x12\x1b\n" +
|
||||
"\tnsfw_tags\x18\n" +
|
||||
" \x03(\tR\bnsfwTags*q\n" +
|
||||
|
|
|
|||
|
|
@ -108,8 +108,6 @@ message InstanceMemoRelatedSetting {
|
|||
bool enable_link_preview = 5;
|
||||
// reactions is the list of reactions.
|
||||
repeated string reactions = 7;
|
||||
// disable markdown shortcuts
|
||||
bool disable_markdown_shortcuts = 8;
|
||||
// enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW).
|
||||
bool enable_blur_nsfw_content = 9;
|
||||
// nsfw_tags is the list of tags that mark content as NSFW for blurring.
|
||||
|
|
|
|||
|
|
@ -261,7 +261,6 @@ func convertInstanceMemoRelatedSettingFromStore(setting *storepb.InstanceMemoRel
|
|||
EnableDoubleClickEdit: setting.EnableDoubleClickEdit,
|
||||
EnableLinkPreview: setting.EnableLinkPreview,
|
||||
Reactions: setting.Reactions,
|
||||
DisableMarkdownShortcuts: setting.DisableMarkdownShortcuts,
|
||||
EnableBlurNsfwContent: setting.EnableBlurNsfwContent,
|
||||
NsfwTags: setting.NsfwTags,
|
||||
}
|
||||
|
|
@ -278,7 +277,6 @@ func convertInstanceMemoRelatedSettingToStore(setting *v1pb.InstanceSetting_Memo
|
|||
EnableDoubleClickEdit: setting.EnableDoubleClickEdit,
|
||||
EnableLinkPreview: setting.EnableLinkPreview,
|
||||
Reactions: setting.Reactions,
|
||||
DisableMarkdownShortcuts: setting.DisableMarkdownShortcuts,
|
||||
EnableBlurNsfwContent: setting.EnableBlurNsfwContent,
|
||||
NsfwTags: setting.NsfwTags,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { memoServiceClient } from "@/grpcweb";
|
|||
import { attachmentStore, memoStore } from "@/store";
|
||||
import { Attachment } from "@/types/proto/api/v1/attachment_service";
|
||||
import type { Location, Memo, MemoRelation, Visibility } from "@/types/proto/api/v1/memo_service";
|
||||
import type { Translations } from "@/utils/i18n";
|
||||
|
||||
interface MemoSaveContext {
|
||||
/** Current memo name (for update mode) */
|
||||
|
|
@ -40,7 +41,7 @@ interface MemoSaveCallbacks {
|
|||
/** Called to reset after save */
|
||||
onReset: () => void;
|
||||
/** Translation function */
|
||||
t: (key: string) => string;
|
||||
t: (key: Translations, params?: Record<string, any>) => string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -209,9 +209,7 @@ const MemoEditor = observer((props: MemoEditorProps) => {
|
|||
handleSaveBtnClick();
|
||||
return;
|
||||
}
|
||||
if (!instanceMemoRelatedSetting.disableMarkdownShortcuts) {
|
||||
handleEditorKeydownWithMarkdownShortcuts(event, editorRef.current);
|
||||
}
|
||||
handleEditorKeydownWithMarkdownShortcuts(event, editorRef.current);
|
||||
}
|
||||
if (event.key === "Tab" && !state.isComposing) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
|
|
@ -98,13 +98,6 @@ const MemoRelatedSettings = observer(() => {
|
|||
/>
|
||||
</SettingRow>
|
||||
|
||||
<SettingRow label={t("setting.system-section.disable-markdown-shortcuts-in-editor")}>
|
||||
<Switch
|
||||
checked={memoRelatedSetting.disableMarkdownShortcuts}
|
||||
onCheckedChange={(checked) => updatePartialSetting({ disableMarkdownShortcuts: checked })}
|
||||
/>
|
||||
</SettingRow>
|
||||
|
||||
<SettingRow label={t("setting.memo-related-settings.content-lenght-limit")}>
|
||||
<Input
|
||||
className="w-24"
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "لغة الخادم",
|
||||
"title": "تخصيص الخادم"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "تعطيل اختصارات Markdown في المحرر",
|
||||
"disable-password-login": "تعطيل تسجيل الدخول بكلمة المرور",
|
||||
"disable-password-login-final-warning": "يرجى كتابة \"CONFIRM\" إذا كنت متأكدًا مما تفعله.",
|
||||
"disable-password-login-warning": "سيؤدي ذلك إلى تعطيل تسجيل الدخول بكلمة المرور لجميع المستخدمين. لا يمكن تسجيل الدخول بدون التراجع عن هذا الإعداد في قاعدة البيانات إذا فشل مزودو الهوية. يجب أن تكون حذرًا عند إزالة مزود هوية",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Llengua del servidor",
|
||||
"title": "Personalitza el servidor"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Desactiva dreceres Markdown a l'editor",
|
||||
"disable-password-login": "Desactiva l'inici de sessió amb contrasenya",
|
||||
"disable-password-login-final-warning": "Escriu \"CONFIRM\" si saps el que estàs fent.",
|
||||
"disable-password-login-warning": "Això desactivarà l'inici de sessió amb contrasenya per a tots els usuaris. No serà possible iniciar sessió sense revertir aquesta configuració a la base de dades si els proveïdors d'identitat fallen. Vés amb compte en eliminar un proveïdor d'identitat",
|
||||
|
|
|
|||
|
|
@ -363,7 +363,6 @@
|
|||
"locale": "Lokalizace serveru",
|
||||
"title": "Přizpůsobení serveru"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Zakázat klávesové zkratky Markdown v editoru",
|
||||
"disable-password-login": "Zakázat přihlašování heslem",
|
||||
"disable-password-login-final-warning": "Pokud víte, co děláte, zadejte \"CONFIRM\".",
|
||||
"disable-password-login-warning": "Tímto zakážete přihlašování heslem pro všechny uživatele. Bez obnovení tohoto nastavení v databázi není možné se přihlásit, pokud selžou vámi nakonfigurovaní poskytovatelé identit. Při odebírání poskytovatele identit budete muset být také velmi opatrní.",
|
||||
|
|
|
|||
|
|
@ -365,7 +365,6 @@
|
|||
"locale": "Server-Sprache",
|
||||
"title": "Server anpassen"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Markdown-Shortcuts im Editor deaktivieren",
|
||||
"disable-password-login": "Passwort-Login deaktivieren",
|
||||
"disable-password-login-final-warning": "Bitte tippe \"CONFIRM\", wenn du weißt, was du tust.",
|
||||
"disable-password-login-warning": "Dadurch wird der Passwort-Login für alle Benutzer deaktiviert. Es ist nicht möglich, sich anzumelden, ohne diese Einstellung in der Datenbank rückgängig zu machen, falls deine konfigurierten Identitätsanbieter ausfallen. Sei besonders vorsichtig beim Entfernen eines Identitätsanbieters.",
|
||||
|
|
|
|||
|
|
@ -410,7 +410,6 @@
|
|||
"locale": "Server Locale",
|
||||
"title": "Customize Server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Disable Markdown shortcuts in editor",
|
||||
"disable-password-login": "Disable password login",
|
||||
"disable-password-login-final-warning": "Please type `CONFIRM` if you know what you are doing.",
|
||||
"disable-password-login-warning": "This will disable password login for all users. It is not possible to log in without reverting this setting in the database if your configured identity providers fail. You’ll also have to be extra careful when removing an identity provider",
|
||||
|
|
|
|||
|
|
@ -376,7 +376,6 @@
|
|||
"locale": "Idioma del servidor",
|
||||
"title": "Personalizar servidor"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Desactivar atajos de Markdown en el editor",
|
||||
"disable-password-login": "Desactivar inicio de sesión con contraseña",
|
||||
"disable-password-login-final-warning": "Por favor escribe \"CONFIRM\" si sabes lo que haces.",
|
||||
"disable-password-login-warning": "Esto deshabilitará el inicio de sesión con contraseña para todos los usuarios. No será posible iniciar sesión sin revertir esta configuración en la base de datos si tus proveedores de identidad fallan. Debes tener especial cuidado al eliminar un proveedor de identidad",
|
||||
|
|
|
|||
|
|
@ -355,7 +355,6 @@
|
|||
"locale": "زبان سرور",
|
||||
"title": "سفارشیسازی سرور"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "غیرفعالسازی میانبرهای Markdown در ویرایشگر",
|
||||
"disable-password-login": "غیرفعالسازی ورود با گذرواژه",
|
||||
"disable-password-login-final-warning": "لطفاً اگر مطمئن هستید \"CONFIRM\" را وارد کنید.",
|
||||
"disable-password-login-warning": "این کار ورود با گذرواژه را برای همه کاربران غیرفعال میکند. اگر ارائهدهندگان هویت شما از کار بیفتند، بدون بازگرداندن این تنظیم در پایگاه داده، ورود ممکن نیست. هنگام حذف ارائهدهنده هویت دقت کنید.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Langue du serveur",
|
||||
"title": "Personnaliser le serveur"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Désactiver les raccourcis Markdown dans l'éditeur",
|
||||
"disable-password-login": "Désactiver la connexion par mot de passe",
|
||||
"disable-password-login-final-warning": "Veuillez taper \"CONFIRM\" si vous savez ce que vous faites.",
|
||||
"disable-password-login-warning": "Cela désactivera la connexion par mot de passe pour tous les utilisateurs. Il ne sera pas possible de se connecter sans annuler ce paramètre dans la base de données si vos fournisseurs d'identité échouent. Soyez très prudent lors de la suppression d'un fournisseur d'identité",
|
||||
|
|
|
|||
|
|
@ -381,7 +381,6 @@
|
|||
"locale": "सर्वर लोकेल",
|
||||
"title": "सर्वर अनुकूलित करें"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "एडिटर में मार्कडाउन शॉर्टकट अक्षम करें",
|
||||
"disable-password-login": "पासवर्ड लॉगिन अक्षम करें",
|
||||
"disable-password-login-final-warning": "यदि आप जानते हैं कि आप क्या कर रहे हैं तो कृपया \"CONFIRM\" टाइप करें।",
|
||||
"disable-password-login-warning": "यह सभी उपयोगकर्ताओं के लिए पासवर्ड लॉगिन को अक्षम कर देगा। यदि आपके पहचान प्रदाता विफल हो जाते हैं तो डेटाबेस में इस सेटिंग को वापस किए बिना लॉगिन संभव नहीं होगा। पहचान प्रदाता हटाते समय सावधानी बरतें।",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Lokalizacija servera",
|
||||
"title": "Prilagodi server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Onemogući Markdown prečace u uređivaču",
|
||||
"disable-password-login": "Onemogući prijavu lozinkom",
|
||||
"disable-password-login-final-warning": "Upiši \"CONFIRM\" ako znaš što radiš.",
|
||||
"disable-password-login-warning": "Ovo će onemogućiti prijavu lozinkom za sve korisnike. Nije moguće prijaviti se bez vraćanja ove postavke u bazi podataka ako vaši pružatelji identiteta zakažu. Budite posebno oprezni pri uklanjanju pružatelja identiteta.",
|
||||
|
|
|
|||
|
|
@ -379,7 +379,6 @@
|
|||
"locale": "Szerver nyelve",
|
||||
"title": "Szerver személyre szabása"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Markdown gyorsbillentyűk letiltása a szerkesztőben",
|
||||
"disable-password-login": "Jelszavas bejelentkezés letiltása",
|
||||
"disable-password-login-final-warning": "Írd be, hogy \"CONFIRM\" ha tudod mit csinálsz.",
|
||||
"disable-password-login-warning": "Ez letiltja a jelszavas bejelentkezést minden felhasználó számára. Ha a konfigurált identitásszolgáltatók nem elérhetőek, a bejelentkezés nem lehetséges, ezen beállítás kikapcsolása nélkül az adatbázisban. Ezen kívül fokozott figyelem szükséges identitásszolgálók eltávolítása során is",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Locale Server",
|
||||
"title": "Sesuaikan Server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Nonaktifkan pintasan Markdown di editor",
|
||||
"disable-password-login": "Nonaktifkan login kata sandi",
|
||||
"disable-password-login-final-warning": "Silakan ketik \"KONFIRMASI\" jika Anda tahu apa yang Anda lakukan.",
|
||||
"disable-password-login-warning": "Ini akan menonaktifkan login kata sandi untuk semua pengguna. Tidak mungkin untuk login tanpa mengembalikan pengaturan ini di basis data jika penyedia identitas yang Anda konfigurasikan gagal. Anda juga harus lebih berhati-hati saat menghapus penyedia identitas.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Locale server",
|
||||
"title": "Personalizza server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Disabilita scorciatoie Markdown nell'editor",
|
||||
"disable-password-login": "Disabilita login password",
|
||||
"disable-password-login-final-warning": "Digita \"CONFIRM\" se sai cosa stai facendo.",
|
||||
"disable-password-login-warning": "Ciò disabiliterà l'accesso tramite password per tutti gli utenti. Non è possibile accedere senza ripristinare questa impostazione nel database se i provider di identità configurati falliscono. Dovrai anche prestare molta attenzione quando rimuovi un provider di identità",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "サーバーのロケール",
|
||||
"title": "サーバーをカスタマイズ"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "エディタでMarkdownショートカットを無効化",
|
||||
"disable-password-login": "パスワードログインを無効化",
|
||||
"disable-password-login-final-warning": "「CONFIRM」と入力してください(自己責任)",
|
||||
"disable-password-login-warning": "これにより全ユーザーのパスワードログインが無効になります。IDプロバイダーが失敗した場合、DBでこの設定を戻さないとログインできません。IDプロバイダー削除時はご注意ください。",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "სერვერის ლოკალიზაცია",
|
||||
"title": "სერვერის მორგება"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Markdown-ის მოკლე გზების გამორთვა რედაქტორში",
|
||||
"disable-password-login": "პაროლის-შესვლის ფუნქციის გამორთვა",
|
||||
"disable-password-login-final-warning": "გთხოვთ აკრიფოთ „CONFIRM“, თუ იცით, რას აკეთებთ.",
|
||||
"disable-password-login-warning": "ეს გამორთავს პაროლის შესვლას ყველა მომხმარებლისთვის. შეუძლებელია შესვლა ამ პარამეტრის მონაცემთა ბაზაში დაბრუნების გარეშე, თუ თქვენი კონფიგურირებული იდენტობის პროვაიდერები ვერ იმუშავებენ. ასევე უნდა იყოთ ყურადღებით, როდესაც იდენტობის პროვაიდერს წაშლით",
|
||||
|
|
|
|||
|
|
@ -388,7 +388,6 @@
|
|||
"locale": "서버 언어",
|
||||
"title": "서버 커스터마이징"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "에디터에서 Markdown 단축키 비활성화",
|
||||
"disable-password-login": "비밀번호 로그인 금지",
|
||||
"disable-password-login-final-warning": "이로부터 발생할 수 있는 모든 상황을 이해했다면, 아래에 \"CONFIRM\"을 입력해 주세요.",
|
||||
"disable-password-login-warning": "모든 사용자가 비밀번호를 사용해서 로그인하지 못하게 합니다. 설정된 SSO에 문제가 생겼을 경우, 데이터베이스를 직접 조작해서 이 설정을 끄지 않는 한 절대로 로그인하지 못하게 됩니다. SSO 설정을 수정/제거할 때에는 특히 조심해 주세요",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "सर्व्हर लोकेल",
|
||||
"title": "सर्व्हर सानुकूलित करा"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "एडिटरमध्ये Markdown शॉर्टकट अक्षम करा",
|
||||
"disable-password-login": "पासवर्ड लॉगिन अक्षम करा",
|
||||
"disable-password-login-final-warning": "तुम्ही काय करत आहात हे तुम्हाला माहीत असल्यास कृपया \"CONFIRM\" टाइप करा.",
|
||||
"disable-password-login-warning": "हे सर्व वापरकर्त्यांसाठी पासवर्ड लॉगिन अक्षम करेल. तुमचे कॉन्फिगर केलेले ओळख प्रदाते अयशस्वी झाल्यास डेटाबेसमध्ये ही सेटिंग पूर्ववत केल्याशिवाय लॉग इन करणे शक्य नाही. ओळख प्रदाता काढून टाकताना तुम्हाला अधिक सावधगिरी बाळगावी लागेल",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Serverlokalisering",
|
||||
"title": "Tilpass server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Slå av Markdown-snarveier ved redigering",
|
||||
"disable-password-login": "Slå av passordinnlogging",
|
||||
"disable-password-login-final-warning": "Skriv \"CONFIRM\" hvis du vet hva du gjør.",
|
||||
"disable-password-login-warning": "Dette slår av passordinnlogging for alle brukere. Dersom de konfigurerte identitetsleverandørene mislykkes er det ikke mulig å logge inn uten å tilbakestille denne innstillingen i databasen. Du må også være ekstra forsiktig når du fjerner en identitetsleverandør.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Servertaal",
|
||||
"title": "Server aanpassen"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Markdown-sneltoetsen in editor uitschakelen",
|
||||
"disable-password-login": "Wachtwoordlogin uitzetten",
|
||||
"disable-password-login-final-warning": "Typ \"CONFIRM\" als je zeker weet wat je doet.",
|
||||
"disable-password-login-warning": "Als je dit uitzet, kan je niet meer inloggen met een wachtwoord, zonder de database aan te passen. Als je inlogprovider niet werkt, kan je memos niet in.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Język serwera",
|
||||
"title": "Dostosuj serwer"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Wyłącz skróty Markdown w edytorze",
|
||||
"disable-password-login": "Wyłącz logowanie hasłem",
|
||||
"disable-password-login-final-warning": "Proszę wpisać \"CONFIRM\", jeśli wiesz, co robisz.",
|
||||
"disable-password-login-warning": "To wyłączy logowanie hasłem dla wszystkich użytkowników. Jeśli skonfigurowani dostawcy tożsamości zawiodą, nie będzie możliwe zalogowanie się bez przywrócenia tego ustawienia w bazie danych. Bądź także szczególnie ostrożny przy usuwaniu dostawcy tożsamości",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Localização da instância",
|
||||
"title": "Personalizar instância"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Desabilitar atalhos de Markdown no editor",
|
||||
"disable-password-login": "Desabilitar login com senha",
|
||||
"disable-password-login-final-warning": "Por favor, digite \"CONFIRM\" para prosseguir.",
|
||||
"disable-password-login-warning": "Isso desabilitará o login com senha para todos os usuários. Caso seus provedores de identidade (SSO) configurados falhem, não será possível fazer login sem reverter esse ajuste manualmente no banco de dados. Você também deverá tomar precauções adicionais ao remover qualquer provedor de identidade!",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Localização do Servidor",
|
||||
"title": "Personalizar Servidor"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Desativar atalhos Markdown no editor",
|
||||
"disable-password-login": "Desativar login por palavra-passe",
|
||||
"disable-password-login-final-warning": "Escreva \"CONFIRM\" se tiver a certeza.",
|
||||
"disable-password-login-warning": "Isto desativará o login por palavra-passe para todos os utilizadores. Não será possível iniciar sessão sem reverter esta definição na base de dados se os seus provedores de identidade falharem. Deve ter cuidado ao remover um provedor de identidade.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Jezik strežnika",
|
||||
"title": "Prilagodi strežnik"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Onemogoči bližnjice Markdown v urejevalniku",
|
||||
"disable-password-login": "Onemogoči prijavo z geslom",
|
||||
"disable-password-login-final-warning": "Prosim vnesite \"POTRDI\", če veste kaj počnete.",
|
||||
"disable-password-login-warning": "To bo onemogočilo prijavo z geslom za vse uporabnike. Brez ponovnega vklopa te nastavitve v bazi, prijava ne bo več možna. Enako tudi če identiteta enotne prijave zataji. Bodite tudi zelo previdni pri odstranjevalju identitete enotne prijave",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Serverns språk",
|
||||
"title": "Anpassa server"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Inaktivera Markdown-genvägar i redigeraren",
|
||||
"disable-password-login": "Inaktivera lösenordsinloggning",
|
||||
"disable-password-login-final-warning": "Skriv \"CONFIRM\" om du vet vad du gör.",
|
||||
"disable-password-login-warning": "Detta inaktiverar lösenordsinloggning för alla användare. Det går inte att logga in utan att återställa denna inställning i databasen om dina identitetsleverantörer misslyckas. Var extra försiktig när du tar bort en identitetsleverantör.",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "ตำแหน่งเซิร์ฟเวอร์",
|
||||
"title": "ปรับแต่งเซิร์ฟเวอร์"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "ปิดใช้งานทางลัด Markdown ในตัวแก้ไข",
|
||||
"disable-password-login": "ปิดการใช้งานรหัสผ่านเข้าสู่ระบบ",
|
||||
"disable-password-login-final-warning": "กรุณาพิมพ์ \"CONFIRM\" หากคุณรู้ว่าคุณกำลังทำอะไรอยู่",
|
||||
"disable-password-login-warning": "สิ่งนี้จะปิดการใช้งานการเข้าสู่ระบบด้วยรหัสผ่านสำหรับผู้ใช้ทั้งหมด ไม่สามารถเข้าสู่ระบบโดยไม่คืนการตั้งค่านี้ในฐานข้อมูลได้ หากผู้ให้บริการข้อมูลประจำตัวที่กำหนดค่าไว้ของคุณล้มเหลว คุณจะต้องระมัดระวังเป็นพิเศษเมื่อลบผู้ให้บริการข้อมูลระบุตัวตน",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Sunucu Yerel Ayarı",
|
||||
"title": "Sunucuyu Özelleştir"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Editörde Markdown kısayollarını devre dışı bırak",
|
||||
"disable-password-login": "Şifre ile girişi devre dışı bırak",
|
||||
"disable-password-login-final-warning": "Ne yaptığınızı biliyorsanız lütfen \"CONFIRM\" yazın.",
|
||||
"disable-password-login-warning": "Bu, tüm kullanıcılar için şifre ile girişi devre dışı bırakacaktır. Yapılandırılmış kimlik sağlayıcılarınız başarısız olursa, veritabanında bu ayarı geri almadan giriş yapmak mümkün olmayacaktır. Ayrıca bir kimlik sağlayıcıyı kaldırırken çok dikkatli olmanız gerekecektir",
|
||||
|
|
|
|||
|
|
@ -380,7 +380,6 @@
|
|||
"locale": "Мова сервера",
|
||||
"title": "Налаштування сервера"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Вимкнути гарячі клавіші Markdown в редакторі",
|
||||
"disable-password-login": "Вимкнути вхід за паролем",
|
||||
"disable-password-login-final-warning": "Будь ласка, введіть \"ПІДТВЕРДЖУЮ\", якщо ви знаєте, що робите.",
|
||||
"disable-password-login-warning": "Це вимкне вхід за паролем для всіх користувачів. Вхід без скасування цього налаштування в базі даних неможливий, якщо ваші налаштовані постачальники ідентичності не працюють. Також слід бути особливо обережними при видаленні постачальника ідентичності.",
|
||||
|
|
|
|||
|
|
@ -303,7 +303,6 @@
|
|||
"locale": "Ngôn ngữ máy chủ",
|
||||
"title": "Tùy chỉnh máy chủ"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "Vô hiệu hóa phím tắt Markdown trong trình soạn thảo",
|
||||
"disable-password-login": "Vô hiệu hóa đăng nhập bằng mật khẩu",
|
||||
"disable-password-login-final-warning": "Vui lòng nhập \"CONFIRM\" nếu bạn biết mình đang làm gì.",
|
||||
"disable-password-login-warning": "Điều này sẽ vô hiệu hóa đăng nhập bằng mật khẩu cho tất cả người dùng. Không thể đăng nhập nếu không hoàn tác cài đặt này trong cơ sở dữ liệu khi nhà cung cấp danh tính đã cấu hình gặp sự cố. Bạn cũng cần phải thật cẩn thận khi xóa nhà cung cấp danh tính",
|
||||
|
|
|
|||
|
|
@ -382,7 +382,6 @@
|
|||
"locale": "服务器语言环境",
|
||||
"title": "自定义服务器"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "禁用编辑器中的 Markdown 快捷键",
|
||||
"disable-password-login": "禁用密码登录",
|
||||
"disable-password-login-final-warning": "如果您知道自己在做什么,请输入 \"CONFIRM\"。",
|
||||
"disable-password-login-warning": "所有用户将无法使用密码登录。如果配置的身份提供程序失效,不在数据库中恢复此设置将无法登录。删除身份提供程序时也要格外小心",
|
||||
|
|
|
|||
|
|
@ -399,7 +399,6 @@
|
|||
"locale": "語言",
|
||||
"title": "自訂伺服器"
|
||||
},
|
||||
"disable-markdown-shortcuts-in-editor": "停用編輯器 Markdown 快捷鍵",
|
||||
"disable-password-login": "停用密碼登入",
|
||||
"disable-password-login-final-warning": "如果您知道自己在做什麼,請輸入 `CONFIRM`。",
|
||||
"disable-password-login-warning": "所有使用者將無法使用密碼登入。如果設定的身份識別提供者失效,不在資料庫中恢復此設定將無法登入。刪除身分識別提供者時也要特別小心❗",
|
||||
|
|
|
|||
|
|
@ -224,8 +224,6 @@ export interface InstanceSetting_MemoRelatedSetting {
|
|||
enableLinkPreview: boolean;
|
||||
/** reactions is the list of reactions. */
|
||||
reactions: string[];
|
||||
/** disable_markdown_shortcuts disallow the registration of markdown shortcuts. */
|
||||
disableMarkdownShortcuts: boolean;
|
||||
/** enable_blur_nsfw_content enables blurring of content marked as not safe for work (NSFW). */
|
||||
enableBlurNsfwContent: boolean;
|
||||
/** nsfw_tags is the list of tags that mark content as NSFW for blurring. */
|
||||
|
|
@ -901,7 +899,6 @@ function createBaseInstanceSetting_MemoRelatedSetting(): InstanceSetting_MemoRel
|
|||
enableDoubleClickEdit: false,
|
||||
enableLinkPreview: false,
|
||||
reactions: [],
|
||||
disableMarkdownShortcuts: false,
|
||||
enableBlurNsfwContent: false,
|
||||
nsfwTags: [],
|
||||
};
|
||||
|
|
@ -927,9 +924,6 @@ export const InstanceSetting_MemoRelatedSetting: MessageFns<InstanceSetting_Memo
|
|||
for (const v of message.reactions) {
|
||||
writer.uint32(58).string(v!);
|
||||
}
|
||||
if (message.disableMarkdownShortcuts !== false) {
|
||||
writer.uint32(64).bool(message.disableMarkdownShortcuts);
|
||||
}
|
||||
if (message.enableBlurNsfwContent !== false) {
|
||||
writer.uint32(72).bool(message.enableBlurNsfwContent);
|
||||
}
|
||||
|
|
@ -994,14 +988,6 @@ export const InstanceSetting_MemoRelatedSetting: MessageFns<InstanceSetting_Memo
|
|||
message.reactions.push(reader.string());
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 64) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.disableMarkdownShortcuts = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 72) {
|
||||
break;
|
||||
|
|
@ -1038,7 +1024,6 @@ export const InstanceSetting_MemoRelatedSetting: MessageFns<InstanceSetting_Memo
|
|||
message.enableDoubleClickEdit = object.enableDoubleClickEdit ?? false;
|
||||
message.enableLinkPreview = object.enableLinkPreview ?? false;
|
||||
message.reactions = object.reactions?.map((e) => e) || [];
|
||||
message.disableMarkdownShortcuts = object.disableMarkdownShortcuts ?? false;
|
||||
message.enableBlurNsfwContent = object.enableBlurNsfwContent ?? false;
|
||||
message.nsfwTags = object.nsfwTags?.map((e) => e) || [];
|
||||
return message;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue