mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14:06 -06:00
Remove unused field from translations
This commit is contained in:
parent
4e02f7810e
commit
d527797fa2
@ -128,17 +128,6 @@ const notifyNav = (url: FullSlug) => {
|
|||||||
document.dispatchEvent(event)
|
document.dispatchEvent(event)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getFirstParentWithClass = (container: HTMLElement, className: string): HTMLElement | null => {
|
|
||||||
let current = container.parentElement
|
|
||||||
while (current) {
|
|
||||||
if (current.classList.contains(className)) {
|
|
||||||
return current
|
|
||||||
}
|
|
||||||
current = current.parentElement
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateTitle(container: HTMLElement | null) {
|
function updateTitle(container: HTMLElement | null) {
|
||||||
console.log(container)
|
console.log(container)
|
||||||
if (container) {
|
if (container) {
|
||||||
|
|||||||
@ -66,7 +66,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ محتوى محدود 🛡️",
|
title: "🛡️ محتوى محدود 🛡️",
|
||||||
restricted: "هذا المحتوى محدود. ادخل كلمة المرور للعرض:",
|
|
||||||
enterPassword: "ادخل كلمة المرور",
|
enterPassword: "ادخل كلمة المرور",
|
||||||
decrypt: "فك التشفير",
|
decrypt: "فك التشفير",
|
||||||
decrypting: "جاري فك التشفير...",
|
decrypting: "جاري فك التشفير...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Contingut Restringit 🛡️",
|
title: "🛡️ Contingut Restringit 🛡️",
|
||||||
restricted: "Aquest contingut està restringit. Introduïu la contrasenya per veure:",
|
|
||||||
enterPassword: "Introduïu la contrasenya",
|
enterPassword: "Introduïu la contrasenya",
|
||||||
decrypt: "Desxifrar",
|
decrypt: "Desxifrar",
|
||||||
decrypting: "Desxifrant...",
|
decrypting: "Desxifrant...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Omezený obsah 🛡️",
|
title: "🛡️ Omezený obsah 🛡️",
|
||||||
restricted: "Tento obsah je omezen. Zadejte heslo pro zobrazení:",
|
|
||||||
enterPassword: "Zadejte heslo",
|
enterPassword: "Zadejte heslo",
|
||||||
decrypt: "Dešifrovat",
|
decrypt: "Dešifrovat",
|
||||||
decrypting: "Dešifruji...",
|
decrypting: "Dešifruji...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Eingeschränkter Inhalt 🛡️",
|
title: "🛡️ Eingeschränkter Inhalt 🛡️",
|
||||||
restricted: "Dieser Inhalt ist eingeschränkt. Geben Sie das Passwort ein, um ihn anzuzeigen:",
|
|
||||||
enterPassword: "Passwort eingeben",
|
enterPassword: "Passwort eingeben",
|
||||||
decrypt: "Entschlüsseln",
|
decrypt: "Entschlüsseln",
|
||||||
decrypting: "Entschlüsselt...",
|
decrypting: "Entschlüsselt...",
|
||||||
|
|||||||
@ -63,7 +63,6 @@ export interface Translation {
|
|||||||
}
|
}
|
||||||
encryption: {
|
encryption: {
|
||||||
title: string
|
title: string
|
||||||
restricted: string
|
|
||||||
enterPassword: string
|
enterPassword: string
|
||||||
decrypt: string
|
decrypt: string
|
||||||
decrypting: string
|
decrypting: string
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Restricted Content 🛡️",
|
title: "🛡️ Restricted Content 🛡️",
|
||||||
restricted: "This content is restricted. Enter the password to view:",
|
|
||||||
enterPassword: "Enter password",
|
enterPassword: "Enter password",
|
||||||
decrypt: "Decrypt",
|
decrypt: "Decrypt",
|
||||||
decrypting: "Decrypting...",
|
decrypting: "Decrypting...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Restricted Content 🛡️",
|
title: "🛡️ Restricted Content 🛡️",
|
||||||
restricted: "This content is restricted. Enter the password to view:",
|
|
||||||
enterPassword: "Enter password",
|
enterPassword: "Enter password",
|
||||||
decrypt: "Decrypt",
|
decrypt: "Decrypt",
|
||||||
decrypting: "Decrypting...",
|
decrypting: "Decrypting...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Contenido Restringido 🛡️",
|
title: "🛡️ Contenido Restringido 🛡️",
|
||||||
restricted: "Este contenido está restringido. Ingrese la contraseña para ver:",
|
|
||||||
enterPassword: "Ingrese contraseña",
|
enterPassword: "Ingrese contraseña",
|
||||||
decrypt: "Desencriptar",
|
decrypt: "Desencriptar",
|
||||||
decrypting: "Desencriptando...",
|
decrypting: "Desencriptando...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ محتوای محدود 🛡️",
|
title: "🛡️ محتوای محدود 🛡️",
|
||||||
restricted: "این محتوا محدود است. رمز عبور را وارد کنید:",
|
|
||||||
enterPassword: "رمز عبور را وارد کنید",
|
enterPassword: "رمز عبور را وارد کنید",
|
||||||
decrypt: "رمزگشایی",
|
decrypt: "رمزگشایی",
|
||||||
decrypting: "در حال رمزگشایی...",
|
decrypting: "در حال رمزگشایی...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Rajoitettu Sisältö 🛡️",
|
title: "🛡️ Rajoitettu Sisältö 🛡️",
|
||||||
restricted: "Tämä sisältö on rajoitettu. Anna salasana nähdäksesi:",
|
|
||||||
enterPassword: "Anna salasana",
|
enterPassword: "Anna salasana",
|
||||||
decrypt: "Pura salaus",
|
decrypt: "Pura salaus",
|
||||||
decrypting: "Puretaan salausta...",
|
decrypting: "Puretaan salausta...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Contenu Restreint 🛡️",
|
title: "🛡️ Contenu Restreint 🛡️",
|
||||||
restricted: "Ce contenu est restreint. Entrez le mot de passe pour l'afficher :",
|
|
||||||
enterPassword: "Entrez le mot de passe",
|
enterPassword: "Entrez le mot de passe",
|
||||||
decrypt: "Déchiffrer",
|
decrypt: "Déchiffrer",
|
||||||
decrypting: "Déchiffrement...",
|
decrypting: "Déchiffrement...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Korlátozott Tartalom 🛡️",
|
title: "🛡️ Korlátozott Tartalom 🛡️",
|
||||||
restricted: "Ez a tartalom korlátozott. Adja meg a jelszót a megtekintéshez:",
|
|
||||||
enterPassword: "Jelszó megadása",
|
enterPassword: "Jelszó megadása",
|
||||||
decrypt: "Visszafejtés",
|
decrypt: "Visszafejtés",
|
||||||
decrypting: "Visszafejtés...",
|
decrypting: "Visszafejtés...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Konten Terbatas 🛡️",
|
title: "🛡️ Konten Terbatas 🛡️",
|
||||||
restricted: "Konten ini terbatas. Masukkan kata sandi untuk melihat:",
|
|
||||||
enterPassword: "Masukkan kata sandi",
|
enterPassword: "Masukkan kata sandi",
|
||||||
decrypt: "Dekripsi",
|
decrypt: "Dekripsi",
|
||||||
decrypting: "Mendekripsi...",
|
decrypting: "Mendekripsi...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Contenuto Riservato 🛡️",
|
title: "🛡️ Contenuto Riservato 🛡️",
|
||||||
restricted: "Questo contenuto è riservato. Inserisci la password per visualizzare:",
|
|
||||||
enterPassword: "Inserisci password",
|
enterPassword: "Inserisci password",
|
||||||
decrypt: "Decripta",
|
decrypt: "Decripta",
|
||||||
decrypting: "Decriptando...",
|
decrypting: "Decriptando...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ 制限されたコンテンツ 🛡️",
|
title: "🛡️ 制限されたコンテンツ 🛡️",
|
||||||
restricted: "このコンテンツは制限されています。表示するにはパスワードを入力してください:",
|
|
||||||
enterPassword: "パスワードを入力",
|
enterPassword: "パスワードを入力",
|
||||||
decrypt: "復号化",
|
decrypt: "復号化",
|
||||||
decrypting: "復号化中...",
|
decrypting: "復号化中...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ 제한된 콘텐츠 🛡️",
|
title: "🛡️ 제한된 콘텐츠 🛡️",
|
||||||
restricted: "이 콘텐츠는 제한되어 있습니다. 보려면 비밀번호를 입력하세요:",
|
|
||||||
enterPassword: "비밀번호 입력",
|
enterPassword: "비밀번호 입력",
|
||||||
decrypt: "복호화",
|
decrypt: "복호화",
|
||||||
decrypting: "복호화 중...",
|
decrypting: "복호화 중...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Apribotas Turinys 🛡️",
|
title: "🛡️ Apribotas Turinys 🛡️",
|
||||||
restricted: "Šis turinys yra apribotas. Įveskite slaptažodį, kad peržiūrėtumėte:",
|
|
||||||
enterPassword: "Įvesti slaptažodį",
|
enterPassword: "Įvesti slaptažodį",
|
||||||
decrypt: "Iššifruoti",
|
decrypt: "Iššifruoti",
|
||||||
decrypting: "Iššifruojama...",
|
decrypting: "Iššifruojama...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Begrenset Innhold 🛡️",
|
title: "🛡️ Begrenset Innhold 🛡️",
|
||||||
restricted: "Dette innholdet er begrenset. Skriv inn passord for å vise:",
|
|
||||||
enterPassword: "Skriv inn passord",
|
enterPassword: "Skriv inn passord",
|
||||||
decrypt: "Dekrypter",
|
decrypt: "Dekrypter",
|
||||||
decrypting: "Dekrypterer...",
|
decrypting: "Dekrypterer...",
|
||||||
|
|||||||
@ -62,7 +62,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Beperkte Inhoud 🛡️",
|
title: "🛡️ Beperkte Inhoud 🛡️",
|
||||||
restricted: "Deze inhoud is beperkt. Voer het wachtwoord in om te bekijken:",
|
|
||||||
enterPassword: "Voer wachtwoord in",
|
enterPassword: "Voer wachtwoord in",
|
||||||
decrypt: "Ontsleutelen",
|
decrypt: "Ontsleutelen",
|
||||||
decrypting: "Ontsleutelen...",
|
decrypting: "Ontsleutelen...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Ograniczona Treść 🛡️",
|
title: "🛡️ Ograniczona Treść 🛡️",
|
||||||
restricted: "Ta treść jest ograniczona. Wprowadź hasło, aby wyświetlić:",
|
|
||||||
enterPassword: "Wprowadź hasło",
|
enterPassword: "Wprowadź hasło",
|
||||||
decrypt: "Odszyfruj",
|
decrypt: "Odszyfruj",
|
||||||
decrypting: "Odszyfrowywanie...",
|
decrypting: "Odszyfrowywanie...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Conteúdo Restrito 🛡️",
|
title: "🛡️ Conteúdo Restrito 🛡️",
|
||||||
restricted: "Este conteúdo é restrito. Digite a senha para visualizar:",
|
|
||||||
enterPassword: "Digite a senha",
|
enterPassword: "Digite a senha",
|
||||||
decrypt: "Descriptografar",
|
decrypt: "Descriptografar",
|
||||||
decrypting: "Descriptografando...",
|
decrypting: "Descriptografando...",
|
||||||
|
|||||||
@ -62,7 +62,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Conținut Restricționat 🛡️",
|
title: "🛡️ Conținut Restricționat 🛡️",
|
||||||
restricted: "Acest conținut este restricționat. Introduceți parola pentru a vizualiza:",
|
|
||||||
enterPassword: "Introduceți parola",
|
enterPassword: "Introduceți parola",
|
||||||
decrypt: "Decriptați",
|
decrypt: "Decriptați",
|
||||||
decrypting: "Se decriptează...",
|
decrypting: "Se decriptează...",
|
||||||
|
|||||||
@ -62,7 +62,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Ограниченный Контент 🛡️",
|
title: "🛡️ Ограниченный Контент 🛡️",
|
||||||
restricted: "Этот контент ограничен. Введите пароль для просмотра:",
|
|
||||||
enterPassword: "Введите пароль",
|
enterPassword: "Введите пароль",
|
||||||
decrypt: "Расшифровать",
|
decrypt: "Расшифровать",
|
||||||
decrypting: "Расшифровка...",
|
decrypting: "Расшифровка...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ เนื้อหาถูกจำกัด 🛡️",
|
title: "🛡️ เนื้อหาถูกจำกัด 🛡️",
|
||||||
restricted: "เนื้อหานี้ถูกจำกัด กรุณาใส่รหัสผ่านเพื่อดู:",
|
|
||||||
enterPassword: "ใส่รหัสผ่าน",
|
enterPassword: "ใส่รหัสผ่าน",
|
||||||
decrypt: "ถอดรหัส",
|
decrypt: "ถอดรหัส",
|
||||||
decrypting: "กำลังถอดรหัส...",
|
decrypting: "กำลังถอดรหัส...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Kısıtlı İçerik 🛡️",
|
title: "🛡️ Kısıtlı İçerik 🛡️",
|
||||||
restricted: "Bu içerik şifreli. Görüntülemek için şifreyi girin:",
|
|
||||||
enterPassword: "Şifreyi girin",
|
enterPassword: "Şifreyi girin",
|
||||||
decrypt: "Şifreyi Çöz",
|
decrypt: "Şifreyi Çöz",
|
||||||
decrypting: "Şifre çözülüyor...",
|
decrypting: "Şifre çözülüyor...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Обмежений Контент 🛡️",
|
title: "🛡️ Обмежений Контент 🛡️",
|
||||||
restricted: "Цей контент обмежений. Введіть пароль, щоб переглянути:",
|
|
||||||
enterPassword: "Введіть пароль",
|
enterPassword: "Введіть пароль",
|
||||||
decrypt: "Розшифрувати",
|
decrypt: "Розшифрувати",
|
||||||
decrypting: "Розшифрування...",
|
decrypting: "Розшифрування...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ Nội Dung Bị Hạn Chế 🛡️",
|
title: "🛡️ Nội Dung Bị Hạn Chế 🛡️",
|
||||||
restricted: "Nội dung này bị hạn chế. Nhập mật khẩu để xem:",
|
|
||||||
enterPassword: "Nhập mật khẩu",
|
enterPassword: "Nhập mật khẩu",
|
||||||
decrypt: "Giải mã",
|
decrypt: "Giải mã",
|
||||||
decrypting: "Đang giải mã...",
|
decrypting: "Đang giải mã...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ 受限内容 🛡️",
|
title: "🛡️ 受限内容 🛡️",
|
||||||
restricted: "此内容受限制。输入密码以查看:",
|
|
||||||
enterPassword: "输入密码",
|
enterPassword: "输入密码",
|
||||||
decrypt: "解密",
|
decrypt: "解密",
|
||||||
decrypting: "解密中...",
|
decrypting: "解密中...",
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
},
|
},
|
||||||
encryption: {
|
encryption: {
|
||||||
title: "🛡️ 受限內容 🛡️",
|
title: "🛡️ 受限內容 🛡️",
|
||||||
restricted: "此內容受限制。輸入密碼以檢視:",
|
|
||||||
enterPassword: "輸入密碼",
|
enterPassword: "輸入密碼",
|
||||||
decrypt: "解密",
|
decrypt: "解密",
|
||||||
decrypting: "解密中...",
|
decrypting: "解密中...",
|
||||||
|
|||||||
@ -34,7 +34,10 @@ export const Encrypt: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =>
|
|||||||
const opts = { ...defaultOptions, ...userOpts }
|
const opts = { ...defaultOptions, ...userOpts }
|
||||||
|
|
||||||
// Validate algorithm at build time
|
// Validate algorithm at build time
|
||||||
if (opts.algorithm && !SUPPORTED_ALGORITHMS.includes(opts.algorithm as SupportedEncryptionAlgorithm)) {
|
if (
|
||||||
|
opts.algorithm &&
|
||||||
|
!SUPPORTED_ALGORITHMS.includes(opts.algorithm as SupportedEncryptionAlgorithm)
|
||||||
|
) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`[EncryptPlugin] Unsupported encryption algorithm: ${opts.algorithm}. Supported algorithms: ${SUPPORTED_ALGORITHMS.join(", ")}`,
|
`[EncryptPlugin] Unsupported encryption algorithm: ${opts.algorithm}. Supported algorithms: ${SUPPORTED_ALGORITHMS.join(", ")}`,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user