From 0e550d251196cd81b058ed74107616810abf11f6 Mon Sep 17 00:00:00 2001 From: codytseng Date: Fri, 7 Nov 2025 10:54:04 +0800 Subject: [PATCH] style: format --- docker-compose.dev.yml | 6 +++--- docker-compose.yml | 6 +++--- index.html | 7 ++----- src/hooks/useFetchWebMetadata.tsx | 2 +- src/i18n/locales/ar.ts | 2 +- src/i18n/locales/de.ts | 3 ++- src/i18n/locales/en.ts | 3 ++- src/i18n/locales/es.ts | 3 ++- src/i18n/locales/fa.ts | 3 ++- src/i18n/locales/fr.ts | 3 ++- src/i18n/locales/hi.ts | 3 ++- src/i18n/locales/hu.ts | 21 ++++++++++++--------- src/i18n/locales/it.ts | 3 ++- src/i18n/locales/ja.ts | 3 ++- src/i18n/locales/ko.ts | 3 ++- src/i18n/locales/pl.ts | 3 ++- src/i18n/locales/pt-BR.ts | 3 ++- src/i18n/locales/pt-PT.ts | 3 ++- src/i18n/locales/ru.ts | 3 ++- src/i18n/locales/th.ts | 3 ++- src/i18n/locales/zh.ts | 2 +- src/lib/lightning.ts | 2 +- 22 files changed, 52 insertions(+), 38 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 966627b0..8000eca0 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -7,7 +7,7 @@ services: args: VITE_PROXY_SERVER: ${JUMBLE_PROXY_SERVER_URL:-http://localhost:8090} ports: - - "8089:80" + - '8089:80' restart: unless-stopped networks: - jumble @@ -20,7 +20,7 @@ services: - ENABLE_PPROF=true - PORT=8080 ports: - - "8090:8080" + - '8090:8080' networks: - jumble @@ -28,7 +28,7 @@ services: image: scsibug/nostr-rs-relay:latest container_name: jumble-nostr-relay ports: - - "7000:8080" + - '7000:8080' environment: - RUST_LOG=warn,nostr_rs_relay=info volumes: diff --git a/docker-compose.yml b/docker-compose.yml index 7f446478..facef6ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.8" +version: '3.8' services: jumble: @@ -9,7 +9,7 @@ services: args: VITE_PROXY_SERVER: ${JUMBLE_PROXY_SERVER_URL:-http://localhost:8090} ports: - - "8089:80" + - '8089:80' restart: unless-stopped networks: - jumble @@ -22,7 +22,7 @@ services: - ENABLE_PPROF=true - PORT=8080 ports: - - "8090:8080" + - '8090:8080' networks: - jumble diff --git a/index.html b/index.html index 912f0018..4e55457e 100644 --- a/index.html +++ b/index.html @@ -5,16 +5,13 @@ Jumble - + - + diff --git a/src/hooks/useFetchWebMetadata.tsx b/src/hooks/useFetchWebMetadata.tsx index dff352d6..56a84556 100644 --- a/src/hooks/useFetchWebMetadata.tsx +++ b/src/hooks/useFetchWebMetadata.tsx @@ -6,7 +6,7 @@ export function useFetchWebMetadata(url: string) { const [metadata, setMetadata] = useState({}) const proxyServer = import.meta.env.VITE_PROXY_SERVER if (proxyServer) { - url = `${proxyServer}/sites/${encodeURIComponent(url)}` + url = `${proxyServer}/sites/${encodeURIComponent(url)}` } useEffect(() => { diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index 86c78bc3..5ab28450 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -491,6 +491,6 @@ export default { 'Explore Relays': 'استكشف المرحلات', 'Choose a feed': 'اختر خلاصة', 'and {{x}} others': 'و {{x}} آخرون', - selfZapWarning: 'Jumble غير مسؤولة عما يحدث إذا أرسلت zap لنفسك. تابع على مسؤوليتك الخاصة. 😉⚡', + selfZapWarning: 'Jumble غير مسؤولة عما يحدث إذا أرسلت zap لنفسك. تابع على مسؤوليتك الخاصة. 😉⚡' } } diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index e2ba7f54..afcbecbb 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -505,6 +505,7 @@ export default { 'Explore Relays': 'Relays erkunden', 'Choose a feed': 'Wähle einen Feed', 'and {{x}} others': 'und {{x}} andere', - selfZapWarning: 'Jumble ist nicht verantwortlich für das, was passiert, wenn Sie sich selbst zappen. Fahren Sie auf eigene Gefahr fort. 😉⚡', + selfZapWarning: + 'Jumble ist nicht verantwortlich für das, was passiert, wenn Sie sich selbst zappen. Fahren Sie auf eigene Gefahr fort. 😉⚡' } } diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index f873880c..7ffd24d6 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -490,6 +490,7 @@ export default { 'Explore Relays': 'Explore Relays', 'Choose a feed': 'Choose a feed', 'and {{x}} others': 'and {{x}} others', - selfZapWarning: 'Jumble is not responsible for what happens if you zap yourself. Proceed at your own risk. 😉⚡', + selfZapWarning: + 'Jumble is not responsible for what happens if you zap yourself. Proceed at your own risk. 😉⚡' } } diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 0e6db2ed..a6912bd9 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -499,6 +499,7 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Elige un feed', 'and {{x}} others': 'y {{x}} otros', - selfZapWarning: 'Jumble no se hace responsable de lo que suceda si te zapeas a ti mismo. Procede bajo tu propio riesgo. 😉⚡', + selfZapWarning: + 'Jumble no se hace responsable de lo que suceda si te zapeas a ti mismo. Procede bajo tu propio riesgo. 😉⚡' } } diff --git a/src/i18n/locales/fa.ts b/src/i18n/locales/fa.ts index 9f704a29..68f717b0 100644 --- a/src/i18n/locales/fa.ts +++ b/src/i18n/locales/fa.ts @@ -494,6 +494,7 @@ export default { 'Explore Relays': 'کاوش در رله‌ها', 'Choose a feed': 'یک فید انتخاب کنید', 'and {{x}} others': 'و {{x}} دیگر', - selfZapWarning: 'Jumble مسئولیتی در قبال اتفاقاتی که در صورت ارسال zap به خودتان می‌افتد ندارد. با مسئولیت خود ادامه دهید. 😉⚡', + selfZapWarning: + 'Jumble مسئولیتی در قبال اتفاقاتی که در صورت ارسال zap به خودتان می‌افتد ندارد. با مسئولیت خود ادامه دهید. 😉⚡' } } diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index a93a62a6..41a04ec3 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -504,6 +504,7 @@ export default { 'Explore Relays': 'Explorer les relais', 'Choose a feed': 'Choisir un fil', 'and {{x}} others': 'et {{x}} autres', - selfZapWarning: "Jumble n'est pas responsable de ce qui se passe si vous vous zappez vous-même. Procédez à vos risques et périls. 😉⚡", + selfZapWarning: + "Jumble n'est pas responsable de ce qui se passe si vous vous zappez vous-même. Procédez à vos risques et périls. 😉⚡" } } diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index 333e743b..f7f78d22 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -496,6 +496,7 @@ export default { 'Explore Relays': 'रिले एक्सप्लोर करें', 'Choose a feed': 'एक फीड चुनें', 'and {{x}} others': 'और {{x}} अन्य', - selfZapWarning: 'Jumble आपके द्वारा स्वयं को zap करने पर क्या होता है, इसके लिए जिम्मेदार नहीं है। अपनी जोखिम पर आगे बढ़ें। 😉⚡', + selfZapWarning: + 'Jumble आपके द्वारा स्वयं को zap करने पर क्या होता है, इसके लिए जिम्मेदार नहीं है। अपनी जोखिम पर आगे बढ़ें। 😉⚡' } } diff --git a/src/i18n/locales/hu.ts b/src/i18n/locales/hu.ts index 40685dbf..69c591b7 100644 --- a/src/i18n/locales/hu.ts +++ b/src/i18n/locales/hu.ts @@ -51,9 +51,9 @@ export default { 'switch to system theme': 'alapértelmezett téma', Note: 'Poszt', note: 'poszt', - "username's following": "{{username}} követi", - "username's used relays": "{{username}} csomópontjai", - "username's muted": "{{username}} némításai", + "username's following": '{{username}} követi', + "username's used relays": '{{username}} csomópontjai', + "username's muted": '{{username}} némításai', Login: 'Belépés', 'Follows you': 'Követ téged', 'Relay Settings': 'Csomópont Beállítások', @@ -128,7 +128,7 @@ export default { 'Az írt csomópontokra küldöd a saját eseményeidet. Mások itt fogják keresni az általad publikált eseményeket.', 'read & write relays notice': 'Az írt és az olvasott csomópontok száma általában 2 és 4 között ideális.', - "Don't have an account yet?": "Nincs még profilod?", + "Don't have an account yet?": 'Nincs még profilod?', 'or simply generate a private key': 'vagy generálj egy titkos kulcsot', 'This is a private key. Do not share it with anyone. Keep it safe and secure. You will not be able to recover it if you lose it.': 'Ez egy titkos kulcs. Ne mutasd meg senkinek. Tartsd biztonságos helyen. Ha elveszíted, nem fogsz tudhi hozzáférni a profilodhoz.', @@ -139,7 +139,8 @@ export default { 'Nostr Address (NIP-05)': 'Nostr Cím (NIP-05)', 'Invalid NIP-05 address': 'Hibás NIP-05 cím', 'Copy private key': 'Titkos kulcs másolása', - 'Enter the password to decrypt your ncryptsec': 'Írd be a jelszót a titkos kulcsodhoz (ncryptsec)', + 'Enter the password to decrypt your ncryptsec': + 'Írd be a jelszót a titkos kulcsodhoz (ncryptsec)', Back: 'Vissza', 'optional: encrypt nsec': 'opcionális: titkos kulcs védelme jelszóval', password: 'jelszó', @@ -207,7 +208,7 @@ export default { 'no more replies': 'nincs több válasz', 'Relay sets': 'Csomópont listák', 'Favorite Relays': 'Kedvenc Csomópontok', - "Following's Favorites": "Követettek kedvencei", + "Following's Favorites": 'Követettek kedvencei', 'no more relays': 'nincs több csomópont', 'Favorited by': 'Kedvencnek beállították', 'Post settings': 'Poszt beállítások', @@ -310,7 +311,8 @@ export default { 'Allow multiple choices': 'Több is megjelölhető', 'End Date (optional)': 'Szavazás Vége (opcionális)', 'Clear end date': 'Vége Időpont törlése', - 'Relay URLs (optional, comma-separated)': 'Csomópont URL-ek (opcionális, vesszővel elválasztva)', + 'Relay URLs (optional, comma-separated)': + 'Csomópont URL-ek (opcionális, vesszővel elválasztva)', 'Remove poll': 'Szavazás törlése', 'Refresh results': 'Eredmények frissítése', Poll: 'Szavazás', @@ -353,7 +355,7 @@ export default { 'A csomópont beállításaid nem optimálisak. Ez megnehezítheti, hogy mások olvassák a posztjaidat és az értesítéseid is hiányosak lehetnek.', 'Optimize Now': 'Optimizálás Most', 'Maybe Later': 'Talán Később', - "Don't remind me again": "Nem kérek emlékeztetőt", + "Don't remind me again": 'Nem kérek emlékeztetőt', Posts: 'Posztok', Articles: 'Cikkek', Highlights: 'Kiemelések', @@ -442,7 +444,8 @@ export default { 'Connect to your Rizful Vault': 'Csatlakoztasd a Rizful Vault-odat', 'Paste your one-time code here': 'Másold ide az egyszeri kódot', Connect: 'Csatlakoztatás', - 'Set up your wallet to send and receive sats!': 'Állítsd be a tárcát, hogy küldhess és fogadhass satokat!', + 'Set up your wallet to send and receive sats!': + 'Állítsd be a tárcát, hogy küldhess és fogadhass satokat!', 'Set up': 'Beállítás', Pinned: 'Kitűzve', Unpin: 'Kitűzés eltávolítása', diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index 98474e6e..f119393d 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -499,6 +499,7 @@ export default { 'Explore Relays': 'Esplora Relay', 'Choose a feed': 'Scegli un feed', 'and {{x}} others': 'e altri {{x}}', - selfZapWarning: 'Jumble non è responsabile di ciò che accade se zappi te stesso. Procedi a tuo rischio e pericolo. 😉⚡', + selfZapWarning: + 'Jumble non è responsabile di ciò che accade se zappi te stesso. Procedi a tuo rischio e pericolo. 😉⚡' } } diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 6c1ef977..7fcf1deb 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -495,6 +495,7 @@ export default { 'Explore Relays': 'リレーを探索', 'Choose a feed': 'フィードを選択', 'and {{x}} others': 'および他{{x}}人', - selfZapWarning: 'Jumble は、あなたが自分自身にザップした場合の結果について責任を負いません。自己責任で続行してください。😉⚡', + selfZapWarning: + 'Jumble は、あなたが自分自身にザップした場合の結果について責任を負いません。自己責任で続行してください。😉⚡' } } diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 4f5976d3..4e82de91 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -495,6 +495,7 @@ export default { 'Explore Relays': '릴레이 탐색', 'Choose a feed': '피드 선택', 'and {{x}} others': '및 기타 {{x}}명', - selfZapWarning: 'Jumble은 자신에게 Zap을 보낼 때 발생하는 일에 대해 책임을 지지 않습니다. 본인의 책임 하에 진행하세요. 😉⚡', + selfZapWarning: + 'Jumble은 자신에게 Zap을 보낼 때 발생하는 일에 대해 책임을 지지 않습니다. 본인의 책임 하에 진행하세요. 😉⚡' } } diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index b51a4eae..48e5e555 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -499,6 +499,7 @@ export default { 'Explore Relays': 'Eksploruj Relay', 'Choose a feed': 'Wybierz feed', 'and {{x}} others': 'i {{x}} innych', - selfZapWarning: 'Jumble nie ponosi odpowiedzialności za to, co się stanie, jeśli zappujesz samego siebie. Kontynuuj na własne ryzyko. 😉⚡', + selfZapWarning: + 'Jumble nie ponosi odpowiedzialności za to, co się stanie, jeśli zappujesz samego siebie. Kontynuuj na własne ryzyko. 😉⚡' } } diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index 4c16f9af..407cc746 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -496,6 +496,7 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Escolha um feed', 'and {{x}} others': 'e {{x}} outros', - selfZapWarning: 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡', + selfZapWarning: + 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡' } } diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index b75d4cec..c2c5c8f2 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -499,6 +499,7 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Escolha um feed', 'and {{x}} others': 'e {{x}} outros', - selfZapWarning: 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡', + selfZapWarning: + 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡' } } diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index d8b71170..0b11a111 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -501,6 +501,7 @@ export default { 'Explore Relays': 'Исследовать Relay', 'Choose a feed': 'Выберите ленту', 'and {{x}} others': 'и {{x}} других', - selfZapWarning: 'Jumble не несет ответственности за то, что произойдет, если вы отправите zap самому себе. Продолжайте на свой страх и риск. 😉⚡', + selfZapWarning: + 'Jumble не несет ответственности за то, что произойдет, если вы отправите zap самому себе. Продолжайте на свой страх и риск. 😉⚡' } } diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index 0e354b25..0cd3b92d 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -489,6 +489,7 @@ export default { 'Explore Relays': 'สำรวจรีเลย์', 'Choose a feed': 'เลือกฟีด', 'and {{x}} others': 'และอื่น ๆ {{x}} รายการ', - selfZapWarning: 'Jumble ไม่รับผิดชอบต่อสิ่งที่เกิดขึ้นหากคุณ zap ตัวเอง ดำเนินการด้วยความเสี่ยงของคุณเอง 😉⚡', + selfZapWarning: + 'Jumble ไม่รับผิดชอบต่อสิ่งที่เกิดขึ้นหากคุณ zap ตัวเอง ดำเนินการด้วยความเสี่ยงของคุณเอง 😉⚡' } } diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index 3b46db7f..76242744 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -487,6 +487,6 @@ export default { 'Explore Relays': '探索服务器', 'Choose a feed': '选择一个动态', 'and {{x}} others': '和其他 {{x}} 人', - selfZapWarning: 'Jumble 对您给自己打赏所发生的事情概不负责。风险自负。😉⚡', + selfZapWarning: 'Jumble 对您给自己打赏所发生的事情概不负责。风险自负。😉⚡' } } diff --git a/src/lib/lightning.ts b/src/lib/lightning.ts index f5d29d7a..55823de6 100644 --- a/src/lib/lightning.ts +++ b/src/lib/lightning.ts @@ -11,7 +11,7 @@ export function getInvoiceDetails(invoice: string): { amount: number; descriptio const _invoice = new Invoice({ pr: invoice }) // TODO: need to validate return { amount: _invoice.satoshi, - description: _invoice.description, + description: _invoice.description } }