forked from Qortal/qortal-ui
Merge branch 'Qortal:master' into wallet-profile-update
This commit is contained in:
commit
4a79bc83d3
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Актуализацията е готова за инсталиране",
|
||||
"electron_translate_8": "Беше изтеглена нова версия на Qortal UI.",
|
||||
"electron_translate_9": "Щракнете върху ИНСТАЛИРАНЕ СЕГА, за да приложите актуализация, МОЖЕ БИ ПО-КЪСНО, за да не актуализирате потребителския интерфейс.",
|
||||
"electron_translate_10": "Грешка при актуализиране...",
|
||||
"electron_translate_10": "Временна неуспешна актуализация, ще опитаме отново по-късно",
|
||||
"electron_translate_11": "ИЗТЕГЛЕТЕ АКТУАЛИЗАЦИЯТА",
|
||||
"electron_translate_12": "Ще бъде изтеглено ⌛️ във фонов режим!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Update zur Installation bereit",
|
||||
"electron_translate_8": "Eine neue Qortal-UI-Version wurde heruntergeladen.",
|
||||
"electron_translate_9": "Klicken Sie auf JETZT INSTALLIEREN, um das Update anzuwenden, VIELLEICHT SPÄTER, um die Benutzeroberfläche nicht zu aktualisieren.",
|
||||
"electron_translate_10": "Fehler beim Aktualisieren...",
|
||||
"electron_translate_10": "Vorübergehender Aktualisierungsfehler, wir versuchen es später erneut",
|
||||
"electron_translate_11": "UPDATE HERUNTERLADEN",
|
||||
"electron_translate_12": "Das Update wird im Hintergrund heruntergeladen ⌛️!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Update ready to install",
|
||||
"electron_translate_8": "A new Qortal UI version has been downloaded.",
|
||||
"electron_translate_9": "Click INSTALL NOW to apply update, MAYBE LATER to not update the UI.",
|
||||
"electron_translate_10": "Error while Updating...",
|
||||
"electron_translate_10": "Temporary update failure, will try again later",
|
||||
"electron_translate_11": "DOWNLOAD UPDATE",
|
||||
"electron_translate_12": "It will be downloaded ⌛️ in the background!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Actualización lista para instalar",
|
||||
"electron_translate_8": "Se ha descargado una nueva versión de la interfaz de usuario de Qortal.",
|
||||
"electron_translate_9": "Haz clic en INSTALAR AHORA para aplicar la actualización, QUIZÁS MÁS TARDE para no actualizar la interfaz de usuario".,
|
||||
"electron_translate_10": "Error al actualizar...",
|
||||
"electron_translate_10": "Error de actualización temporal, lo intentaré más tarde",
|
||||
"electron_translate_11": "DESCARGAR ACTUALIZACIÓN",
|
||||
"electron_translate_12": "¡Se descargará ⌛️ en segundo plano!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Mise à jour prête à installer",
|
||||
"electron_translate_8": "Une nouvelle version de l'interface utilisateur de Qortal a été téléchargée.",
|
||||
"electron_translate_9": "Cliquez sur INSTALLER MAINTENANT pour appliquer la mise à jour, PEUT-ÊTRE PLUS TARD pour ne pas mettre à jour l'interface utilisateur.",
|
||||
"electron_translate_10": "Erreur lors de la mise à jour...",
|
||||
"electron_translate_10": "Échec de la mise à jour temporaire, réessayera plus tard",
|
||||
"electron_translate_11": "TÉLÉCHARGER LA MISE À JOUR",
|
||||
"electron_translate_12": "Il sera téléchargé ⌛️ en arrière-plan !"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Aggiornamento pronto per l'installazione",
|
||||
"electron_translate_8": "È stata scaricata una nuova versione dell'interfaccia utente di Qortal.",
|
||||
"electron_translate_9": "Fai clic su INSTALLA ORA per applicare l'aggiornamento, FORSE DOPO per non aggiornare l'interfaccia utente.",
|
||||
"electron_translate_10": "Errore durante l'aggiornamento...",
|
||||
"electron_translate_10": "Errore di aggiornamento temporaneo, riproverà più tardi",
|
||||
"electron_translate_11": "SCARICA AGGIORNAMENTO",
|
||||
"electron_translate_12": "Verrà scaricato ⌛️ in background!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "업데이트 설치 준비 완료",
|
||||
"electron_translate_8": "새로운 Qortal UI 버전이 다운로드되었습니다.",
|
||||
"electron_translate_9": "업데이트를 적용하려면 지금 설치를 클릭하고 UI를 업데이트하지 않으려면 나중에 할 수도 있습니다.",
|
||||
"electron_translate_10": "업데이트 중 오류...",
|
||||
"electron_translate_10": "임시 업데이트 실패, 나중에 다시 시도합니다.",
|
||||
"electron_translate_11": "업데이트 다운로드",
|
||||
"electron_translate_12": "백그라운드에서 ⌛️ 다운로드됩니다!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Update klaar om te installeren",
|
||||
"electron_translate_8": "Er is een nieuwe Qortal UI-versie gedownload.",
|
||||
"electron_translate_9": "Klik op NU INSTALLEREN om de update toe te passen, MISSCHIEN LATER om de gebruikersinterface niet bij te werken.",
|
||||
"electron_translate_10": "Fout tijdens updaten...",
|
||||
"electron_translate_10": "Tijdelijke update mislukt, zal het later opnieuw proberen",
|
||||
"electron_translate_11": "UPDATE DOWNLOADEN",
|
||||
"electron_translate_12": "Het wordt ⌛️ op de achtergrond gedownload!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Atualização pronta para instalar",
|
||||
"electron_translate_8": "Uma nova versão Qortal UI foi baixada.",
|
||||
"electron_translate_9": "Clique em INSTALAR AGORA para aplicar a atualização, TALVEZ MAIS TARDE para não atualizar a UI.",
|
||||
"electron_translate_10": "Erro ao atualizar...",
|
||||
"electron_translate_10": "Falha de atualização temporária, tentará novamente mais tarde",
|
||||
"electron_translate_11": "BAIXAR ATUALIZAÇÃO",
|
||||
"electron_translate_12": "Será baixado ⌛️ em segundo plano!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Atualização pronta para instalar",
|
||||
"electron_translate_8": "Uma nova versão Qortal UI foi baixada.",
|
||||
"electron_translate_9": "Clique em INSTALAR AGORA para aplicar a atualização, TALVEZ MAIS TARDE para não atualizar a UI.",
|
||||
"electron_translate_10": "Erro ao atualizar...",
|
||||
"electron_translate_10": "Falha de atualização temporária, tentará novamente mais tarde",
|
||||
"electron_translate_11": "BAIXAR ATUALIZAÇÃO",
|
||||
"electron_translate_12": "Será baixado ⌛️ em segundo plano!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Обновление готово к установке",
|
||||
"electron_translate_8": "Загружена новая версия пользовательского интерфейса Qortal.",
|
||||
"electron_translate_9": "Нажмите УСТАНОВИТЬ СЕЙЧАС, чтобы применить обновление, МОЖЕТ БЫТЬ ПОЗЖЕ, чтобы не обновлять пользовательский интерфейс.",
|
||||
"electron_translate_10": "Ошибка при обновлении...",
|
||||
"electron_translate_10": "Временная ошибка обновления, повторите попытку позже",
|
||||
"electron_translate_11": "СКАЧАТЬ ОБНОВЛЕНИЕ",
|
||||
"electron_translate_12": "Он будет загружен ⌛️ в фоновом режиме!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Güncelleme yüklenmeye hazır",
|
||||
"electron_translate_8": "Yeni bir Qortal UI sürümü indirildi.",
|
||||
"electron_translate_9": "Güncellemeyi uygulamak için ŞİMDİ YÜKLE'ye tıklayın, kullanıcı arayüzünü güncellememek için MAYBE SONRA tıklayın.",
|
||||
"electron_translate_10": "Güncelleme Sırasında Hata...",
|
||||
"electron_translate_10": "Geçici güncelleme hatası, daha sonra tekrar denenecek",
|
||||
"electron_translate_11": "GÜNCELLEMEYİ İNDİRİN",
|
||||
"electron_translate_12": "Arka planda ⌛️ indirilecek!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "Update ready to install",
|
||||
"electron_translate_8": "A new Qortal UI version has been downloaded.",
|
||||
"electron_translate_9": "Click INSTALL NOW to apply update, MAYBE LATER to not update the UI.",
|
||||
"electron_translate_10": "Error while Updating...",
|
||||
"electron_translate_10": "Temporary update failure, will try again later",
|
||||
"electron_translate_11": "DOWNLOAD UPDATE",
|
||||
"electron_translate_12": "It will be downloaded ⌛️ in the background!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "更新准备安装",
|
||||
"electron_translate_8": "已下载新的 Qortal UI 版本。",
|
||||
"electron_translate_9": "点击现在安装应用更新,可能稍后不更新用户界面。",
|
||||
"electron_translate_10": "更新时出错...",
|
||||
"electron_translate_10": "暂时更新失败,稍后再试",
|
||||
"electron_translate_11": "下载更新",
|
||||
"electron_translate_12": "它将在后台下载 ⌛️!"
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
"electron_translate_7": "更新準備安裝",
|
||||
"electron_translate_8": "已下載新的 Qortal UI 版本。",
|
||||
"electron_translate_9": "點擊現在安裝應用更新,可能稍後不更新用戶界面。",
|
||||
"electron_translate_10": "更新時出錯...",
|
||||
"electron_translate_10": "暫時更新失敗,稍後再試",
|
||||
"electron_translate_11": "下載更新",
|
||||
"electron_translate_12": "它將在後台下載 ⌛️!"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "qortal-ui",
|
||||
"version": "3.0.1",
|
||||
"version": "3.1.0",
|
||||
"description": "Qortal Project - decentralize the world - Data storage, communications, web hosting, decentralized trading, complete infrastructure for the future blockchain-based Internet",
|
||||
"keywords": [
|
||||
"QORT",
|
||||
@ -37,7 +37,7 @@
|
||||
"os-locale": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "22.0.3",
|
||||
"electron": "22.2.1",
|
||||
"electron-builder": "23.6.0",
|
||||
"electron-packager": "17.1.1",
|
||||
"shelljs": "0.8.5"
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Adressbuch exportieren",
|
||||
"wchange55": "Ihr bestehendes Adressbuch wird gelöscht und aus einem Backup neu erstellt.",
|
||||
"wchange56": "WARNUNG!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "Neue Adresse"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Handelsportal",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Bitte geben Sie einen Empfänger ein",
|
||||
"cchange66": "Beantwortete Nachricht kann nicht abgerufen werden. Nachricht ist zu alt.",
|
||||
"cchange68": "bearbeitet",
|
||||
"cchange69": "Zeige Bilder automatisch"
|
||||
"cchange69": "Zeige Bilder automatisch",
|
||||
"cchange70": "Dieser Bildtyp wird nicht unterstützt",
|
||||
"cchange71": "und",
|
||||
"cchange72": "andere",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagiert mit",
|
||||
"cchange90": "Keine Nachrichten"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Willkommen zu Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENÜ",
|
||||
"bcchange8": "Adresse Kopieren",
|
||||
"bcchange9": "Private Nachricht",
|
||||
"bcchange10": "Mehr"
|
||||
"bcchange10": "Mehr",
|
||||
"bcchange11": "Antworten",
|
||||
"bcchange12": "Bearbeiten",
|
||||
"bcchange13": "Reaktion",
|
||||
"bcchange14": "Weiterleiten",
|
||||
"bcchange15": "Nachricht weitergeleitet",
|
||||
"bcchange16": "Empfänger auswählen oder darunter suchen",
|
||||
"bcchange17": "WEITERGELEITET",
|
||||
"bcchange18": "Tipp Benutzer"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal-Gruppen",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Private Gruppe suchen",
|
||||
"gchange56": "Zu suchender Gruppenname",
|
||||
"gchange57": "Privater Gruppenname nicht gefunden",
|
||||
"gchange58": "Beachten Sie, dass der Gruppenname genau übereinstimmen muss."
|
||||
"gchange58": "Beachten Sie, dass der Gruppenname genau übereinstimmen muss.",
|
||||
"gchange59": "Ticker ein-/ausblenden"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Rätsel",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Exportar libreta de direcciones",
|
||||
"wchange55": "Su libreta de direcciones existente se eliminará y se creará una nueva copia de seguridad.",
|
||||
"wchange56": "ADVERTENCIA!",
|
||||
"wchange57": "Memorándum"
|
||||
"wchange57": "Memorándum",
|
||||
"wchange58": "Nueva Dirección"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portal de Comercio",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Ingrese un destinatario",
|
||||
"cchange66": "No se puede recuperar el mensaje respondido. El mensaje es demasiado antiguo.",
|
||||
"cchange68": "editado",
|
||||
"cchange69": "Mostrar imágenes automáticamente"
|
||||
"cchange69": "Mostrar imágenes automáticamente",
|
||||
"cchange70": "Este tipo de imagen no es compatible",
|
||||
"cchange71": "y",
|
||||
"cchange72": "otro",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reaccionó con",
|
||||
"cchange90": "Sin mensajes"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Bienvenido al Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENÚ",
|
||||
"bcchange8": "Copiar Dirección",
|
||||
"bcchange9": "Mensaje Privado",
|
||||
"bcchange10": "Más"
|
||||
"bcchange10": "Más",
|
||||
"bcchange11": "Responder",
|
||||
"bcchange12": "Editar",
|
||||
"bcchange13": "Reacción",
|
||||
"bcchange14": "Adelante",
|
||||
"bcchange15": "Mensaje reenviado",
|
||||
"bcchange16": "Elegir destinatario o buscar uno a continuación",
|
||||
"bcchange17": "REENVIADO",
|
||||
"bcchange18": "Sugerencia para el usuario"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Grupos Qortal",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Buscar grupo privado",
|
||||
"gchange56": "Nombre del grupo a buscar",
|
||||
"gchange57": "Nombre de grupo privado no encontrado",
|
||||
"gchange58": "Tenga en cuenta que el nombre del grupo debe coincidir exactamente."
|
||||
"gchange58": "Tenga en cuenta que el nombre del grupo debe coincidir exactamente.",
|
||||
"gchange59": "Mostrar/ocultar teletipo"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Rompecabezas",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Exporter le carnet d'adresses",
|
||||
"wchange55": "Votre carnet d'adresses existant sera supprimé et une nouvelle sauvegarde sera créée.",
|
||||
"wchange56": "ATTENTION!",
|
||||
"wchange57": "Mémo"
|
||||
"wchange57": "Mémo",
|
||||
"wchange58": "Nouvelle Adresse"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portail de commerce",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Veuillez saisir un destinataire",
|
||||
"cchange66": "Impossible de récupérer le message auquel vous avez répondu. Le message est trop ancien.",
|
||||
"cchange68": "modifié",
|
||||
"cchange69": "Afficher automatiquement les images"
|
||||
"cchange69": "Afficher automatiquement les images",
|
||||
"cchange70": "Ce type d'image n'est pas pris en charge",
|
||||
"cchange71": "et",
|
||||
"cchange72": "autre",
|
||||
"cchange73": "s",
|
||||
"cchange74": "a réagi avec",
|
||||
"cchange90": "Aucun message"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Bienvenue dans Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENU",
|
||||
"bcchange8": "Copier l'Adresse",
|
||||
"bcchange9": "Message Privé",
|
||||
"bcchange10": "Suite"
|
||||
"bcchange10": "Suite",
|
||||
"bcchange11": "Répondre",
|
||||
"bcchange12": "Modifier",
|
||||
"bcchange13": "Réaction",
|
||||
"bcchange14": "En avant",
|
||||
"bcchange15": "Message transféré",
|
||||
"bcchange16": "Choisissez le destinataire ou recherchez-en un ci-dessous",
|
||||
"bcchange17": "TRANSMIS",
|
||||
"bcchange18": "Astuce à l'utilisateur"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Groupes Qortal",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Rechercher un groupe privé",
|
||||
"gchange56": "Nom du groupe à rechercher",
|
||||
"gchange57": "Nom de groupe privé introuvable",
|
||||
"gchange58": "Notez que le nom du groupe doit correspondre exactement."
|
||||
"gchange58": "Notez que le nom du groupe doit correspondre exactement.",
|
||||
"gchange59": "Afficher / Masquer le téléscripteur"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Puzzles",
|
||||
|
@ -284,7 +284,8 @@
|
||||
"wchange54": "निर्यात पता पुस्तिका",
|
||||
"wchange55": "आपकी मौजूदा पता पुस्तिका हटा दी जाएगी और बैकअप से नया बनाया जाएगा।",
|
||||
"wchange56": "चेतावनी!",
|
||||
"wchange57": "ज्ञापन"
|
||||
"wchange57": "ज्ञापन",
|
||||
"wchange58": "नया पता"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "व्यापार पोर्टल",
|
||||
@ -575,7 +576,13 @@
|
||||
"cchange65": "कृपया एक प्राप्तकर्ता दर्ज करें",
|
||||
"cchange66": "इसका उत्तर दिया गया संदेश प्राप्त नहीं किया जा सकता। संदेश बहुत पुराना है।",
|
||||
"cchange68": "संपादित",
|
||||
"cchange69": "ऑटो-शो छवियां"
|
||||
"cchange69": "ऑटो-शो छवियां",
|
||||
"cchange70": "यह छवि प्रकार समर्थित नहीं है",
|
||||
"cchange71": "और",
|
||||
"cchange72": "अन्य",
|
||||
"cchange73": "s",
|
||||
"cchange74": "के साथ प्रतिक्रिया",
|
||||
"cchange90": "कोई संदेश नहीं"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "क्यू-चैट में आपका स्वागत है",
|
||||
@ -598,7 +605,15 @@
|
||||
"bcchange7": "मेन्यू",
|
||||
"bcchange8": "कॉपी पता",
|
||||
"bcchange9": "निजी संदेश",
|
||||
"bcchange10": "अधिक"
|
||||
"bcchange10": "अधिक",
|
||||
"bcchange11": "उत्तर",
|
||||
"bcchange12": "संपादित करें",
|
||||
"bcchange13": "प्रतिक्रिया",
|
||||
"bcchange14": "आगे",
|
||||
"bcchange15": "संदेश अग्रेषित किया गया",
|
||||
"bcchange16": "प्राप्तकर्ता चुनें या नीचे किसी को खोजें",
|
||||
"bcchange17": "अग्रेषित",
|
||||
"bcchange18": "टिप उपयोगकर्ता"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "क्वॉर्टल समूह",
|
||||
@ -658,7 +673,8 @@
|
||||
"gchange55": "निजी समूह खोजें",
|
||||
"gchange56": "खोजने के लिए समूह का नाम",
|
||||
"gchange57": "निजी समूह का नाम नहीं मिला",
|
||||
"gchange58": "ध्यान दें कि समूह का नाम सटीक मेल खाना चाहिए।"
|
||||
"gchange58": "ध्यान दें कि समूह का नाम सटीक मेल खाना चाहिए।",
|
||||
"gchange59": "टिकर दिखाएं / छुपाएं"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "पहेलि",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Izvezi adresar",
|
||||
"wchange55": "Vaš postojeći adresar bit će izbrisan i novi će se stvoriti iz sigurnosne kopije.",
|
||||
"wchange56": "UPOZORENJE!",
|
||||
"wchange57": "Dopis"
|
||||
"wchange57": "Dopis",
|
||||
"wchange58": "Nova Adresa"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portal razmjene",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Molimo unesite primatelja",
|
||||
"cchange66": "Ne mogu dohvatiti poruku s odgovorom. Poruka je prestara.",
|
||||
"cchange68": "uređeno",
|
||||
"cchange69": "Automatsko prikazivanje slika"
|
||||
"cchange69": "Automatsko prikazivanje slika",
|
||||
"cchange70": "Ova vrsta slike nije podržana",
|
||||
"cchange71": "i",
|
||||
"cchange72": "ostalo",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagirao sa",
|
||||
"cchange90": "Nema poruka"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Dobrodošli u Q-Čavrljanje",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENI",
|
||||
"bcchange8": "Kopiraj Adresu",
|
||||
"bcchange9": "Privatna Poruka",
|
||||
"bcchange10": "Više"
|
||||
"bcchange10": "Više",
|
||||
"bcchange11": "Odgovori",
|
||||
"bcchange12": "Uredi",
|
||||
"bcchange13": "Reakcija",
|
||||
"bcchange14": "Naprijed",
|
||||
"bcchange15": "Poruka proslijeđena",
|
||||
"bcchange16": "Odaberite primatelja ili potražite jednog ispod",
|
||||
"bcchange17": "PROSLJEĐENO",
|
||||
"bcchange18": "Savjet korisniku"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal Grupe",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Traži privatnu grupu",
|
||||
"gchange56": "Naziv grupe za pretraživanje",
|
||||
"gchange57": "Ime privatne grupe nije pronađeno",
|
||||
"gchange58": "Imajte na umu da se naziv grupe mora točno podudarati."
|
||||
"gchange58": "Imajte na umu da se naziv grupe mora točno podudarati.",
|
||||
"gchange59": "Prikaži / sakrij ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Zagonetke",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Címjegyzék exportálása",
|
||||
"wchange55": "Meglévő címjegyzéke törlésre kerül, és a biztonsági másolatból új jön létre.",
|
||||
"wchange56": "FIGYELEM!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "Új Cím"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Kereskedelmi Portál",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Kérjük, adjon meg egy címzettet",
|
||||
"cchange66": "Nem sikerült lekérni a válaszolt üzenetet. Az üzenet túl régi.",
|
||||
"cchange68": "szerkesztve",
|
||||
"cchange69": "Képek automatikus megjelenítése"
|
||||
"cchange69": "Képek automatikus megjelenítése",
|
||||
"cchange70": "Ez a képtípus nem támogatott",
|
||||
"cchange71": "és",
|
||||
"cchange72": "egyéb",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagált:",
|
||||
"cchange90": "Nincs üzenet"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Üdvözöljük a Q-Chathoz",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENÜ",
|
||||
"bcchange8": "Cím Másolása",
|
||||
"bcchange9": "Privát Üzenet",
|
||||
"bcchange10": "Több"
|
||||
"bcchange10": "Több",
|
||||
"bcchange11": "Válasz",
|
||||
"bcchange12": "Szerkesztés",
|
||||
"bcchange13": "Reakció",
|
||||
"bcchange14": "Tovább",
|
||||
"bcchange15": "Üzenet továbbítva",
|
||||
"bcchange16": "Válasszon címzettet vagy keressen egyet lent",
|
||||
"bcchange17": "TOVÁLTVA",
|
||||
"bcchange18": "Tipp felhasználó"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal Csoportok",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Keresés privát csoportban",
|
||||
"gchange56": "A keresendő csoport neve",
|
||||
"gchange57": "A privát csoport neve nem található",
|
||||
"gchange58": "Ne feledje, hogy a csoport nevének pontosan meg kell egyeznie."
|
||||
"gchange58": "Ne feledje, hogy a csoport nevének pontosan meg kell egyeznie.",
|
||||
"gchange59": "Ticker megjelenítése / elrejtése"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Rejtvények",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Esporta rubrica",
|
||||
"wchange55": "La tua rubrica esistente verrà eliminata e dal backup verrà creata una nuova.",
|
||||
"wchange56": "AVVERTIMENTO!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "Nuovo Indirizzo"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portale commerciale",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Inserisci un destinatario",
|
||||
"cchange66": "Impossibile recuperare il messaggio di risposta. Il messaggio è troppo vecchio.",
|
||||
"cchange68": "modificato",
|
||||
"cchange69": "Mostra automaticamente le immagini"
|
||||
"cchange69": "Mostra automaticamente le immagini",
|
||||
"cchange70": "Questo tipo di immagine non è supportato",
|
||||
"cchange71": "e",
|
||||
"cchange72": "altro",
|
||||
"cchange73": "s",
|
||||
"cchange74": "ha reagito con",
|
||||
"cchange90": "Nessun messaggio"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Benvenuto in Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENÙ",
|
||||
"bcchange8": "Copia Indirizzo",
|
||||
"bcchange9": "Messaggio Privato",
|
||||
"bcchange10": "Di più"
|
||||
"bcchange10": "Di più",
|
||||
"bcchange11": "Rispondi",
|
||||
"bcchange12": "Modifica",
|
||||
"bcchange13": "Reazione",
|
||||
"bcchange14": "Avanti",
|
||||
"bcchange15": "Messaggio inoltrato",
|
||||
"bcchange16": "Scegli il destinatario o cercane uno qui sotto",
|
||||
"bcchange17": "INOLTRATO",
|
||||
"bcchange18": "Suggerimento utente"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Gruppi Qortal",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Cerca gruppo privato",
|
||||
"gchange56": "Nome gruppo da cercare",
|
||||
"gchange57": "Nome gruppo privato non trovato",
|
||||
"gchange58": "Nota che il nome del gruppo deve corrispondere esattamente."
|
||||
"gchange58": "Nota che il nome del gruppo deve corrispondere esattamente.",
|
||||
"gchange59": "Mostra / Nascondi ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Puzzle",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "주소록 내보내기",
|
||||
"wchange55": "기존 주소록이 삭제되고 백업에서 새로 생성됩니다.",
|
||||
"wchange56": "경고!",
|
||||
"wchange57": "메모"
|
||||
"wchange57": "메모",
|
||||
"wchange58": "새 주소"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "무역 포털",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "받는 사람을 입력하세요",
|
||||
"cchange66": "답장한 메시지를 가져올 수 없습니다. 메시지가 너무 오래되었습니다.",
|
||||
"cchange68": "편집됨",
|
||||
"cchange69": "이미지 자동 표시"
|
||||
"cchange69": "이미지 자동 표시",
|
||||
"cchange70": "이 이미지 유형은 지원되지 않습니다",
|
||||
"cchange71": "그리고",
|
||||
"cchange72": "기타",
|
||||
"cchange73": "들",
|
||||
"cchange74": "반응",
|
||||
"cchange90": "메시지 없음"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Q-Chat에 오신 것을 환영합니다.",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "메뉴",
|
||||
"bcchange8": "주소 복사",
|
||||
"bcchange9": "개인 메시지",
|
||||
"bcchange10": "더"
|
||||
"bcchange10": "더",
|
||||
"bcchange11": "답장",
|
||||
"bcchange12": "편집",
|
||||
"bcchange13": "반응",
|
||||
"bcchange14": "앞으로",
|
||||
"bcchange15": "전달된 메시지",
|
||||
"bcchange16": "받는 사람을 선택하거나 아래에서 검색하십시오",
|
||||
"bcchange17": "전달됨",
|
||||
"bcchange18": "팁 사용자"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal 그룹",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "비공개 그룹 검색",
|
||||
"gchange56": "검색할 그룹 이름",
|
||||
"gchange57": "비공개 그룹 이름을 찾을 수 없음",
|
||||
"gchange58": "그룹 이름이 정확히 일치해야 합니다."
|
||||
"gchange58": "그룹 이름이 정확히 일치해야 합니다.",
|
||||
"gchange59": "티커 표시/숨기기"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "퍼즐",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Eksporter adressebok",
|
||||
"wchange55": "Din eksisterende adressebok vil bli slettet og ny opprettet fra sikkerhetskopi.",
|
||||
"wchange56": "ADVARSEL!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "Ny Adresse"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Handelsportal",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Vennligst skriv inn en mottaker",
|
||||
"cchange66": "Kan ikke hente besvart melding. Meldingen er for gammel.",
|
||||
"cchange68": "redigert",
|
||||
"cchange69": "Vis bilder automatisk"
|
||||
"cchange69": "Vis bilder automatisk",
|
||||
"cchange70": "Denne bildetypen støttes ikke",
|
||||
"cchange71": "og",
|
||||
"cchange72": "annet",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagerte med",
|
||||
"cchange90": "Ingen meldinger"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Velkommen til Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENY",
|
||||
"bcchange8": "Kopier adresse",
|
||||
"bcchange9": "Privat melding",
|
||||
"bcchange10": "Mer"
|
||||
"bcchange10": "Mer",
|
||||
"bcchange11": "Svar",
|
||||
"bcchange12": "Rediger",
|
||||
"bcchange13": "Reaksjon",
|
||||
"bcchange14": "Videresend",
|
||||
"bcchange15": "Melding videresendt",
|
||||
"bcchange16": "Velg mottaker eller søk etter en nedenfor",
|
||||
"bcchange17": "VIDERESENDE",
|
||||
"bcchange18": "Tipsbruker"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal-grupper",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Søk i privat gruppe",
|
||||
"gchange56": "Gruppenavn å søke",
|
||||
"gchange57": "Privat gruppenavn ikke funnet",
|
||||
"gchange58": "Merk at gruppenavnet må samsvare nøyaktig."
|
||||
"gchange58": "Merk at gruppenavnet må samsvare nøyaktig.",
|
||||
"gchange59": "Vis / Skjul Ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Puzzles",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Eksportuj książkę adresową",
|
||||
"wchange55": "Twoja istniejąca książka adresowa zostanie usunięta, az kopii zapasowej utworzona nowa.",
|
||||
"wchange56": "OSTRZEŻENIE!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "Nowy Adres"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portal Handlowy",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Wprowadź odbiorcę",
|
||||
"cchange66": "Nie można pobrać wiadomości, na którą udzielono odpowiedzi. Wiadomość jest za stara.",
|
||||
"cchange68": "edytowano",
|
||||
"cchange69": "Automatyczne wyświetlanie obrazów"
|
||||
"cchange69": "Automatyczne wyświetlanie obrazów",
|
||||
"cchange70": "Ten typ obrazu nie jest obsługiwany",
|
||||
"cchange71": "i",
|
||||
"cchange72": "inne",
|
||||
"cchange73": "s",
|
||||
"cchange74": "zareagował z",
|
||||
"cchange90": "Brak wiadomości"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Witamy w Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENU",
|
||||
"bcchange8": "Kopiuj Adres",
|
||||
"bcchange9": "Prywatna Wiadomość",
|
||||
"bcchange10": "Więcej"
|
||||
"bcchange10": "Więcej",
|
||||
"bcchange11": "Odpowiedz",
|
||||
"bcchange12": "Edytuj",
|
||||
"bcchange13": "Reakcja",
|
||||
"bcchange14": "Przekaż",
|
||||
"bcchange15": "Wiadomość przekazana",
|
||||
"bcchange16": "Wybierz odbiorcę lub wyszukaj poniżej",
|
||||
"bcchange17": "PRZEKAZANA",
|
||||
"bcchange18": "Użytkownik napiwku"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Grupy Qortal",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Wyszukaj grupę prywatną",
|
||||
"gchange56": "Nazwa grupy do wyszukania",
|
||||
"gchange57": "Nie znaleziono nazwy grupy prywatnej",
|
||||
"gchange58": "Zauważ, że nazwa grupy musi dokładnie pasować."
|
||||
"gchange58": "Zauważ, że nazwa grupy musi dokładnie pasować.",
|
||||
"gchange59": "Pokaż / Ukryj Znacznik"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Zagadki",
|
||||
@ -868,7 +884,7 @@
|
||||
"inf9": "„Automatyczne kupowanie” to funkcja umożliwiająca składanie „zleceń kupna” w portalu handlowym. Te „zlecenia kupna” są widoczne tylko dla osoby, która je składa. Nie są to „publiczne” zlecenia kupna, jak np. „sprzedaże z otwartego rynku” są i NIE są przechowywane w łańcuchu blokowym Qortal. Auto Buy to funkcja interfejsu użytkownika i jako taka wymaga, aby interfejs użytkownika URUCHAMIAŁ.",
|
||||
"inf10": "Aby złożyć zamówienie automatycznego zakupu, kliknij przycisk „Dodaj zamówienie automatycznego zakupu” i wypełnij pole, które się pojawi. Wprowadź KWOTĘ KWARTOŚCI, którą chcesz KUPIĆ, oraz CENĘ, do której chcesz KUPIĆ. Raz zamówienie jest aktywne, Auto Buy kupi dla ciebie DO tej kwoty QORT, po MAKSYMALNIE ustalonej cenie (zaczynając od najniższego zamówienia i przesuwając się w górę).",
|
||||
"inf11": "Po prostu ZOSTAW DZIAŁAJĄCY UI, a Auto Buy zrobi resztę automatycznie!",
|
||||
"inf12": "MOŻESZ przeglądać inne wtyczki w interfejsie użytkownika (Q-Chat, portfele itp.), ale NIE MOŻESZ ZAMKNĄĆ interfejsu użytkownika, jeśli chcesz, aby zakup automatyczny został zakończony. Pozostawienie interfejsu użytkownika „zminimalizowanego” na „pasku zadań” lub „panel” jest w porządku, o ile interfejs użytkownika pozostaje OTWARTY, Auto Buy będzie działać."
|
||||
"inf12": "MOŻESZ przeglądać inne wtyczki w interfejsie użytkownika (Q-Chat, portfele itp.), ale NIE MOŻESZ ZAMKNĄĆ interfejsu użytkownika, jeśli chcesz, aby zakup automatyczny został zakończony. Pozostawienie interfejsu użytkownika „zminimalizowanego” na „pasku zadań” lub „panel” jest w porządku, o ile interfejs użytkownika pozostaje OTWARTY, Auto Buy będzie działać.",
|
||||
"inf13": "Kup automatycznie",
|
||||
"inf14": "z",
|
||||
"inf15": "Aktywne automatyczne zamówienia zakupu",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Exportar catálogo de endereços",
|
||||
"wchange55": "Seu catálogo de endereços existente será excluído e o backup será criado novamente.",
|
||||
"wchange56": "AVISO!",
|
||||
"wchange57": "Memorando"
|
||||
"wchange57": "Memorando",
|
||||
"wchange58": "Novo Endereço"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portal do Comércio",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Insira um destinatário",
|
||||
"cchange66": "Não foi possível buscar a mensagem respondida. A mensagem é muito antiga.",
|
||||
"cchange68": "editado",
|
||||
"cchange69": "Mostrar imagens automaticamente"
|
||||
"cchange69": "Mostrar imagens automaticamente",
|
||||
"cchange70": "Este tipo de imagem não é suportado",
|
||||
"cchange71": "e",
|
||||
"cchange72": "outro",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagiu com",
|
||||
"cchange90": "Sem mensagens"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Bem-vindo ao Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENU",
|
||||
"bcchange8": "Copiar Endereço",
|
||||
"bcchange9": "Mensagem Privada",
|
||||
"bcchange10": "Mais"
|
||||
"bcchange10": "Mais",
|
||||
"bcchange11": "Responder",
|
||||
"bcchange12": "Editar",
|
||||
"bcchange13": "Reação",
|
||||
"bcchange14": "Avançar",
|
||||
"bcchange15": "Mensagem encaminhada",
|
||||
"bcchange16": "Escolha o destinatário ou procure um abaixo",
|
||||
"bcchange17": "ENCAMINHADO",
|
||||
"bcchange18": "Dica de usuário"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Grupos Qortal",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Pesquisar Grupo Privado",
|
||||
"gchange56": "Nome do grupo para pesquisar",
|
||||
"gchange57": "Nome do grupo privado não encontrado",
|
||||
"gchange58": "Observe que o nome do grupo deve corresponder exatamente."
|
||||
"gchange58": "Observe que o nome do grupo deve corresponder exatamente.",
|
||||
"gchange59": "Mostrar / Ocultar Ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Enigmas",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Exportati agenda de adrese",
|
||||
"wchange55": "Agenda dvs. existenta va fi stearsa si din backup va fi creata o noua.",
|
||||
"wchange56": "AVERTIZARE!",
|
||||
"wchange57": "Nota"
|
||||
"wchange57": "Nota",
|
||||
"wchange58": "Adresa noua"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Portal de Tranzactionare",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Vă rugăm să introduceți un destinatar",
|
||||
"cchange66": "Nu se poate prelua mesajul la care sa răspuns. Mesajul este prea vechi.",
|
||||
"cchange68": "editat",
|
||||
"cchange69": "Afișează automat imaginile"
|
||||
"cchange69": "Afișează automat imaginile",
|
||||
"cchange70": "Acest tip de imagine nu este acceptat",
|
||||
"cchange71": "și",
|
||||
"cchange72": "altul",
|
||||
"cchange73": "s",
|
||||
"cchange74": "a reacționat cu",
|
||||
"cchange90": "Fără mesaje"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Bine ai venit la Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENIU",
|
||||
"bcchange8": "Copiati adresa",
|
||||
"bcchange9": "Mesaj privat",
|
||||
"bcchange10": "Mai mult"
|
||||
"bcchange10": "Mai mult",
|
||||
"bcchange11": "Răspuns",
|
||||
"bcchange12": "Editați",
|
||||
"bcchange13": "Reacție",
|
||||
"bcchange14": "Înainte",
|
||||
"bcchange15": "Mesajul redirecționat",
|
||||
"bcchange16": "Alegeți destinatarul sau căutați unul mai jos",
|
||||
"bcchange17": "REMISE",
|
||||
"bcchange18": "Sfat utilizator"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Grupuri Qortal Groups",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Căutați grup privat",
|
||||
"gchange56": "Numele grupului de căutat",
|
||||
"gchange57": "Numele grupului privat nu a fost găsit",
|
||||
"gchange58": "Rețineți că numele grupului trebuie să se potrivească exact."
|
||||
"gchange58": "Rețineți că numele grupului trebuie să se potrivească exact.",
|
||||
"gchange59": "Afișează / Ascunde Ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Puzzle-uri",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Izvezi adresar",
|
||||
"wchange55": "Vaš postojeći adresar će biti obrisan, a iz rezervne kopije biće kreiran novi.",
|
||||
"wchange56": "UPOZORENJE!",
|
||||
"wchange57": "Beleška"
|
||||
"wchange57": "Beleška",
|
||||
"wchange58": "Nova Adresa"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Trgovinski prozor",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Unesite primaoca",
|
||||
"cchange66": "Ne mogu preuzeti odgovor na poruku. Poruka je prestara.",
|
||||
"cchange68": "uređeno",
|
||||
"cchange69": "Automatski prikaži slike"
|
||||
"cchange69": "Automatski prikaži slike",
|
||||
"cchange70": "Ovaj tip slike nije podržan",
|
||||
"cchange71": "i",
|
||||
"cchange72": "drugo",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reagovao sa",
|
||||
"cchange90": "Nema poruka"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Dobrodošli na Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "MENI",
|
||||
"bcchange8": "Kopiraj Adresu",
|
||||
"bcchange9": "Privatna Poruka",
|
||||
"bcchange10": "Više"
|
||||
"bcchange10": "Više",
|
||||
"bcchange11": "Odgovori",
|
||||
"bcchange12": "Izmeni",
|
||||
"bcchange13": "Reakcija",
|
||||
"bcchange14": "Napred",
|
||||
"bcchange15": "Poruka je prosleđena",
|
||||
"bcchange16": "Izaberite primaoca ili potražite jednog ispod",
|
||||
"bcchange17": "PROSLEĐEN",
|
||||
"bcchange18": "Korisnik saveta"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal Grupe",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Pretraži privatnu grupu",
|
||||
"gchange56": "Ime grupe za pretragu",
|
||||
"gchange57": "Ime privatne grupe nije pronađeno",
|
||||
"gchange58": "Imajte na umu da ime grupe mora potpuno da se podudara."
|
||||
"gchange58": "Imajte na umu da ime grupe mora potpuno da se podudara.",
|
||||
"gchange59": "Prikaži / Sakrij Oznaku"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Slagalice",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Экспорт адресной книги",
|
||||
"wchange55": "Ваша существующая адресная книга будет удалена, а из резервной копии создана новая.",
|
||||
"wchange56": "ПРЕДУПРЕЖДЕНИЕ!",
|
||||
"wchange57": "Памятка"
|
||||
"wchange57": "Памятка",
|
||||
"wchange58": "Новый Адрес"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Торговый портал",
|
||||
@ -574,7 +575,13 @@
|
||||
"cchange65": "Пожалуйста, введите получателя",
|
||||
"cchange66": "Невозможно получить ответное сообщение. Сообщение слишком старое.",
|
||||
"cchange68": "отредактировано",
|
||||
"cchange69": "Автоматическое отображение изображений"
|
||||
"cchange69": "Автоматическое отображение изображений",
|
||||
"cchange70": "Этот тип изображения не поддерживается",
|
||||
"cchange71": "и",
|
||||
"cchange72": "другое",
|
||||
"cchange73": "с",
|
||||
"cchange74": "отреагировал",
|
||||
"cchange90": "Нет сообщений"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Добро пожаловать в Q-Chat",
|
||||
@ -597,7 +604,15 @@
|
||||
"bcchange7": "МЕНЮ",
|
||||
"bcchange8": "Копировать адрес",
|
||||
"bcchange9": "Приватное сообщение",
|
||||
"bcchange10": "Более"
|
||||
"bcchange10": "Более",
|
||||
"bcchange11": "Ответить",
|
||||
"bcchange12": "Редактировать",
|
||||
"bcchange13": "Реакция",
|
||||
"bcchange14": "Вперед",
|
||||
"bcchange15": "Сообщение переадресовано",
|
||||
"bcchange16": "Выберите получателя или найдите его ниже",
|
||||
"bcchange17": "ПЕРЕДАНО",
|
||||
"bcchange18": "Подсказка пользователю"
|
||||
},
|
||||
"grouppage": {
|
||||
"gchange1": "Qortal группы",
|
||||
@ -657,7 +672,8 @@
|
||||
"gchange55": "Поиск в закрытой группе",
|
||||
"gchange56": "Имя группы для поиска",
|
||||
"gchange57": "Имя частной группы не найдено",
|
||||
"gchange58": "Обратите внимание, что название группы должно точно совпадать."
|
||||
"gchange58": "Обратите внимание, что название группы должно точно совпадать.",
|
||||
"gchange59": "Показать/скрыть бегущую строку"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Головоломки",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "Export Address Book",
|
||||
"wchange55": "Your existing address book will be deleted and from backup new created.",
|
||||
"wchange56": "WARNING!",
|
||||
"wchange57": "Memo"
|
||||
"wchange57": "Memo",
|
||||
"wchange58": "New Address"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "Trade Portal",
|
||||
@ -579,7 +580,8 @@
|
||||
"cchange71": "and",
|
||||
"cchange72": "other",
|
||||
"cchange73": "s",
|
||||
"cchange74": "reacted with"
|
||||
"cchange74": "reacted with",
|
||||
"cchange90": "No messages"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "Welcome to Q-Chat",
|
||||
@ -670,7 +672,8 @@
|
||||
"gchange55": "Search Private Group",
|
||||
"gchange56": "Group Name To Search",
|
||||
"gchange57": "Private Group Name Not Found",
|
||||
"gchange58": "Note that group name must exact match."
|
||||
"gchange58": "Note that group name must exact match.",
|
||||
"gchange59": "Show / Hide Ticker"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "Puzzles",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "导出通讯录",
|
||||
"wchange55": "您现有的通讯簿将被删除并从新创建的备份中。",
|
||||
"wchange56": "警告!",
|
||||
"wchange57": "备忘录"
|
||||
"wchange57": "备忘录",
|
||||
"wchange58": "新的钱包地址"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "交易门户",
|
||||
@ -579,7 +580,8 @@
|
||||
"cchange71": "和",
|
||||
"cchange72": "其他",
|
||||
"cchange73": "的",
|
||||
"cchange74": "心情回应"
|
||||
"cchange74": "心情回应",
|
||||
"cchange90": "没有消息"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "欢迎来到Q-Chat",
|
||||
@ -670,7 +672,8 @@
|
||||
"gchange55": "搜索私人群组",
|
||||
"gchange56": "要搜索的群组名称",
|
||||
"gchange57": "未找到私人群组名称",
|
||||
"gchange58": "注意群组名称必须完全匹配。"
|
||||
"gchange58": "注意群组名称必须完全匹配。",
|
||||
"gchange59": "显示/隐藏代码"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "益智游戏",
|
||||
|
@ -283,7 +283,8 @@
|
||||
"wchange54": "導出通訊錄",
|
||||
"wchange55": "您現有的通訊簿將被刪除並從新創建的備份中。",
|
||||
"wchange56": "警告!",
|
||||
"wchange57": "備忘錄"
|
||||
"wchange57": "備忘錄",
|
||||
"wchange58": "新的錢包地址"
|
||||
},
|
||||
"tradepage": {
|
||||
"tchange1": "交易門戶",
|
||||
@ -579,7 +580,8 @@
|
||||
"cchange71": "和",
|
||||
"cchange72": "其他",
|
||||
"cchange73": "的",
|
||||
"cchange74": "心情回應"
|
||||
"cchange74": "心情回應",
|
||||
"cchange90": "沒有消息"
|
||||
},
|
||||
"welcomepage": {
|
||||
"wcchange1": "歡迎來到 Q-Chat",
|
||||
@ -670,7 +672,8 @@
|
||||
"gchange55": "搜索私人群組",
|
||||
"gchange56": "要搜索的群組名稱",
|
||||
"gchange57": "未找到私人群組名稱",
|
||||
"gchange58": "注意群組名稱必須完全匹配。"
|
||||
"gchange58": "注意群組名稱必須完全匹配。",
|
||||
"gchange59": "顯示/隱藏代碼"
|
||||
},
|
||||
"puzzlepage": {
|
||||
"pchange1": "益智游戲",
|
||||
|
@ -17,9 +17,9 @@
|
||||
"author": "QORTAL <admin@qortal.org>",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@hapi/hapi": "21.2.0",
|
||||
"@hapi/hapi": "21.2.1",
|
||||
"@hapi/inert": "7.0.0",
|
||||
"sass": "1.57.1"
|
||||
"sass": "1.58.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.20.12",
|
||||
@ -58,22 +58,23 @@
|
||||
"@rollup/plugin-commonjs": "24.0.1",
|
||||
"@rollup/plugin-node-resolve": "15.0.1",
|
||||
"@rollup/plugin-replace": "5.0.2",
|
||||
"@rollup/plugin-terser": "0.3.0",
|
||||
"@vaadin/button": "23.3.5",
|
||||
"@vaadin/grid": "23.3.5",
|
||||
"@vaadin/icons": "23.3.5",
|
||||
"@vaadin/password-field": "23.3.5",
|
||||
"@vaadin/tooltip": "23.3.5",
|
||||
"@rollup/plugin-terser": "0.4.0",
|
||||
"@vaadin/button": "23.3.7",
|
||||
"@vaadin/grid": "23.3.7",
|
||||
"@vaadin/icons": "23.3.7",
|
||||
"@vaadin/password-field": "23.3.7",
|
||||
"@vaadin/tooltip": "23.3.7",
|
||||
"asmcrypto.js": "2.3.2",
|
||||
"bcryptjs": "2.4.3",
|
||||
"epml": "0.3.3",
|
||||
"file-saver": "2.0.5",
|
||||
"lit": "2.6.1",
|
||||
"lit-translate": "2.0.1",
|
||||
"localforage": "1.10.0",
|
||||
"pwa-helpers": "0.9.1",
|
||||
"redux": "4.2.0",
|
||||
"redux": "4.2.1",
|
||||
"redux-thunk": "2.4.2",
|
||||
"rollup": "3.10.1",
|
||||
"rollup": "3.15.0",
|
||||
"rollup-plugin-node-globals": "1.4.0",
|
||||
"rollup-plugin-progress": "1.1.2",
|
||||
"rollup-plugin-scss": "3.0.0",
|
||||
@ -82,4 +83,4 @@
|
||||
"engines": {
|
||||
"node": ">=16.17.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,11 @@ import { store } from '../store.js'
|
||||
import { Epml } from '../epml.js'
|
||||
import { addTradeBotRoutes } from '../tradebot/addTradeBotRoutes.js'
|
||||
import { get, translate, translateUnsafeHTML } from 'lit-translate'
|
||||
import localForage from "localforage";
|
||||
|
||||
const chatLastSeen = localForage.createInstance({
|
||||
name: "chat-last-seen",
|
||||
});
|
||||
|
||||
import '@polymer/paper-icon-button/paper-icon-button.js'
|
||||
import '@polymer/paper-progress/paper-progress.js'
|
||||
@ -27,6 +32,7 @@ import './user-info-view/user-info-view.js'
|
||||
import '../functional-components/side-menu.js'
|
||||
import '../functional-components/side-menu-item.js'
|
||||
import './start-minting.js'
|
||||
import { setChatLastSeen } from '../redux/app/app-actions.js'
|
||||
|
||||
const parentEpml = new Epml({type: 'WINDOW', source: window.parent})
|
||||
|
||||
@ -207,7 +213,7 @@ class AppView extends connect(store)(LitElement) {
|
||||
|
||||
#balanceheader {
|
||||
flex: 0 0 24px;
|
||||
padding: 12px 12px 20px 12px;
|
||||
padding: 12px 12px 45px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--sidetopbar);
|
||||
}
|
||||
@ -329,7 +335,16 @@ class AppView extends connect(store)(LitElement) {
|
||||
.sideBarMenu::-webkit-scrollbar-thumb:hover {
|
||||
background-color: rgb(148, 146, 146);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.balanceButton {
|
||||
background-color: #03a9f4;
|
||||
color: #ffffff;
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
`
|
||||
]
|
||||
}
|
||||
@ -426,6 +441,8 @@ class AppView extends connect(store)(LitElement) {
|
||||
</side-menu>
|
||||
</div>
|
||||
</div>
|
||||
<button class="balanceButton" @click="${() => this.shBalanceTicker()}">${translate("grouppage.gchange59")}</button>
|
||||
<div id="theTicker" style="display: none; margin-bottom: 20px;">
|
||||
<div id="balanceheader">
|
||||
<span class="balanceheadertext">
|
||||
${this.getAllBalancesLoading ? html`
|
||||
@ -441,6 +458,7 @@ class AppView extends connect(store)(LitElement) {
|
||||
</div>
|
||||
${this.getAllBalancesLoading ? html`<paper-progress indeterminate style="width: 100%; margin: 4px;"></paper-progress>` : ''}
|
||||
${this.balanceTicker}
|
||||
</div>
|
||||
<app-info></app-info>
|
||||
</div>
|
||||
</app-header-layout>
|
||||
@ -1386,6 +1404,17 @@ class AppView extends connect(store)(LitElement) {
|
||||
}
|
||||
}
|
||||
|
||||
const getChatLastSeen=async() => {
|
||||
let items = [];
|
||||
|
||||
await chatLastSeen.iterate(function(value, key, iterationNumber) {
|
||||
|
||||
items.push({key, timestamp: value});
|
||||
})
|
||||
store.dispatch(setChatLastSeen(items))
|
||||
return items;
|
||||
}
|
||||
|
||||
await getOpenTradesBTC()
|
||||
await appDelay(1000)
|
||||
await getOpenTradesLTC()
|
||||
@ -1397,6 +1426,16 @@ class AppView extends connect(store)(LitElement) {
|
||||
await getOpenTradesRVN()
|
||||
await appDelay(1000)
|
||||
await getOpenTradesARRR()
|
||||
await getChatLastSeen()
|
||||
}
|
||||
|
||||
shBalanceTicker() {
|
||||
const targetDiv = this.shadowRoot.getElementById("theTicker")
|
||||
if (targetDiv.style.display !== "none") {
|
||||
targetDiv.style.display = "none";
|
||||
} else {
|
||||
targetDiv.style.display = "inline";
|
||||
}
|
||||
}
|
||||
|
||||
async getNodeType() {
|
||||
|
@ -14,12 +14,14 @@ import './login-section.js'
|
||||
import '../qort-theme-toggle.js'
|
||||
|
||||
import settings from '../../functional-components/settings-page.js'
|
||||
import { addAutoLoadImageChat, removeAutoLoadImageChat } from '../../redux/app/app-actions.js'
|
||||
import { addAutoLoadImageChat, removeAutoLoadImageChat, addChatLastSeen } from '../../redux/app/app-actions.js'
|
||||
|
||||
window.reduxStore = store
|
||||
window.reduxAction = {
|
||||
addAutoLoadImageChat: addAutoLoadImageChat,
|
||||
removeAutoLoadImageChat: removeAutoLoadImageChat
|
||||
removeAutoLoadImageChat: removeAutoLoadImageChat,
|
||||
addChatLastSeen: addChatLastSeen
|
||||
|
||||
}
|
||||
|
||||
const animationDuration = 0.7 // Seconds
|
||||
|
@ -2,7 +2,6 @@ import { store } from '../../store.js'
|
||||
import { doPageUrl } from '../../redux/app/app-actions.js'
|
||||
|
||||
export const newMessage = (data) => {
|
||||
|
||||
const alert = playSound(data.sound)
|
||||
|
||||
// Should I show notification ?
|
||||
@ -18,7 +17,7 @@ export const newMessage = (data) => {
|
||||
}
|
||||
|
||||
notify.onclick = (e) => {
|
||||
const pageUrl = `/app/q-chat/${data.req.url}`
|
||||
const pageUrl = `/app/q-chat/?chat=${data.req.url}`
|
||||
store.dispatch(doPageUrl(pageUrl))
|
||||
}
|
||||
} else {
|
||||
@ -26,7 +25,7 @@ export const newMessage = (data) => {
|
||||
const notify = new Notification(data.title, data.options)
|
||||
|
||||
notify.onclick = (e) => {
|
||||
const pageUrl = `/app/q-chat/${data.req.url}`
|
||||
const pageUrl = `/app/q-chat/?chat=${data.req.url}`
|
||||
store.dispatch(doPageUrl(pageUrl))
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ const CHAT_HEADS_STREAM_NAME = 'chat_heads'
|
||||
const NODE_CONFIG_STREAM_NAME = 'node_config'
|
||||
const COPY_MENU_SWITCH = 'copy_menu_switch'
|
||||
const FRAME_PASTE_MENU_SWITCH = 'frame_paste_menu_switch'
|
||||
const CHAT_LAST_SEEN = 'chat_last_seen'
|
||||
|
||||
export const loggedInStream = new EpmlStream(LOGIN_STREAM_NAME, () => store.getState().app.loggedIn)
|
||||
export const configStream = new EpmlStream(CONFIG_STREAM_NAME, () => store.getState().config)
|
||||
@ -18,6 +19,7 @@ export const chatHeadsStateStream = new EpmlStream(CHAT_HEADS_STREAM_NAME, () =>
|
||||
export const nodeConfigStream = new EpmlStream(NODE_CONFIG_STREAM_NAME, () => store.getState().app.nodeConfig)
|
||||
export const copyMenuSwitchStream = new EpmlStream(COPY_MENU_SWITCH, () => store.getState().app.copyMenuSwitch)
|
||||
export const framePasteMenuSwitchStream = new EpmlStream(FRAME_PASTE_MENU_SWITCH, () => store.getState().app.framePasteMenuSwitch)
|
||||
export const chatLastSeenStream = new EpmlStream(CHAT_LAST_SEEN, () => store.getState().app.chatLastSeen)
|
||||
|
||||
|
||||
let oldState = {
|
||||
@ -46,6 +48,9 @@ store.subscribe(() => {
|
||||
if (oldState.app.framePasteMenuSwitch !== state.app.framePasteMenuSwitch) {
|
||||
framePasteMenuSwitchStream.emit(state.app.framePasteMenuSwitch)
|
||||
}
|
||||
if (oldState.app.chatLastSeen !== state.app.chatLastSeen) {
|
||||
chatLastSeenStream.emit(state.app.chatLastSeen)
|
||||
}
|
||||
|
||||
if (oldState.app.selectedAddress !== state.app.selectedAddress) {
|
||||
selectedAddressStream.emit({
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Core App Actions here...
|
||||
import { UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, CHAT_HEADS, ACCOUNT_INFO, COPY_MENU_SWITCH, PASTE_MENU_SWITCH, FRAME_PASTE_MENU_SWITCH, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT } from '../app-action-types.js'
|
||||
import { UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, CHAT_HEADS, ACCOUNT_INFO, COPY_MENU_SWITCH, PASTE_MENU_SWITCH, FRAME_PASTE_MENU_SWITCH, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT, SET_CHAT_LAST_SEEN, ADD_CHAT_LAST_SEEN } from '../app-action-types.js'
|
||||
|
||||
export const doUpdateBlockInfo = (blockObj) => {
|
||||
return (dispatch, getState) => {
|
||||
@ -120,3 +120,16 @@ export const removeAutoLoadImageChat = (payload) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const setChatLastSeen = (payload) => {
|
||||
return {
|
||||
type: SET_CHAT_LAST_SEEN,
|
||||
payload
|
||||
}
|
||||
}
|
||||
export const addChatLastSeen = (payload) => {
|
||||
return {
|
||||
type: ADD_CHAT_LAST_SEEN,
|
||||
payload
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,6 @@ export const COPY_MENU_SWITCH = 'COPY_MENU_SWITCH'
|
||||
export const PASTE_MENU_SWITCH = 'PASTE_MENU_SWITCH'
|
||||
export const FRAME_PASTE_MENU_SWITCH = 'FRAME_PASTE_MENU_SWITCH'
|
||||
export const ADD_AUTO_LOAD_IMAGES_CHAT = 'ADD_AUTO_LOAD_IMAGES_CHAT'
|
||||
export const REMOVE_AUTO_LOAD_IMAGES_CHAT = 'REMOVE_AUTO_LOAD_IMAGES_CHAT'
|
||||
export const REMOVE_AUTO_LOAD_IMAGES_CHAT = 'REMOVE_AUTO_LOAD_IMAGES_CHAT'
|
||||
export const SET_CHAT_LAST_SEEN = 'SET_CHAT_LAST_SEEN'
|
||||
export const ADD_CHAT_LAST_SEEN = 'ADD_CHAT_LAST_SEEN'
|
||||
|
@ -1,9 +1,14 @@
|
||||
// Loading state, login state, isNavDrawOpen state etc. None of this needs to be saved to localstorage.
|
||||
import { loadStateFromLocalStorage, saveStateToLocalStorage } from '../../localStorageHelpers.js'
|
||||
import { LOG_IN, LOG_OUT, NETWORK_CONNECTION_STATUS, INIT_WORKERS, ADD_PLUGIN_URL, ADD_PLUGIN, ADD_NEW_PLUGIN_URL, NAVIGATE, SELECT_ADDRESS, ACCOUNT_INFO, CHAT_HEADS, UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, LOAD_NODE_CONFIG, SET_NODE, ADD_NODE, PAGE_URL, COPY_MENU_SWITCH, PASTE_MENU_SWITCH, FRAME_PASTE_MENU_SWITCH, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT } from './app-action-types.js'
|
||||
import { LOG_IN, LOG_OUT, NETWORK_CONNECTION_STATUS, INIT_WORKERS, ADD_PLUGIN_URL, ADD_PLUGIN, ADD_NEW_PLUGIN_URL, NAVIGATE, SELECT_ADDRESS, ACCOUNT_INFO, CHAT_HEADS, UPDATE_BLOCK_INFO, UPDATE_NODE_STATUS, UPDATE_NODE_INFO, LOAD_NODE_CONFIG, SET_NODE, ADD_NODE, PAGE_URL, COPY_MENU_SWITCH, PASTE_MENU_SWITCH, FRAME_PASTE_MENU_SWITCH, ADD_AUTO_LOAD_IMAGES_CHAT, REMOVE_AUTO_LOAD_IMAGES_CHAT, SET_CHAT_LAST_SEEN, ADD_CHAT_LAST_SEEN } from './app-action-types.js'
|
||||
import { initWorkersReducer } from './reducers/init-workers.js'
|
||||
import { loginReducer } from './reducers/login-reducer.js'
|
||||
import { setNode, addNode } from './reducers/manage-node.js'
|
||||
import localForage from "localforage";
|
||||
const chatLastSeen = localForage.createInstance({
|
||||
name: "chat-last-seen",
|
||||
});
|
||||
|
||||
|
||||
const INITIAL_STATE = {
|
||||
loggedIn: false,
|
||||
@ -44,7 +49,8 @@ const INITIAL_STATE = {
|
||||
isOpen: false,
|
||||
elementId: ''
|
||||
},
|
||||
autoLoadImageChats: loadStateFromLocalStorage('autoLoadImageChats') || []
|
||||
autoLoadImageChats: loadStateFromLocalStorage('autoLoadImageChats') || [],
|
||||
chatLastSeen: []
|
||||
}
|
||||
|
||||
export default (state = INITIAL_STATE, action) => {
|
||||
@ -169,6 +175,38 @@ export default (state = INITIAL_STATE, action) => {
|
||||
autoLoadImageChats: updatedState
|
||||
}
|
||||
}
|
||||
case SET_CHAT_LAST_SEEN: {
|
||||
return {
|
||||
...state,
|
||||
chatLastSeen: action.payload
|
||||
}
|
||||
}
|
||||
case ADD_CHAT_LAST_SEEN: {
|
||||
const chatId = action.payload.key
|
||||
const timestamp = action.payload.timestamp
|
||||
if(!chatId || !timestamp) return state
|
||||
let newChatLastSeen = [...state.chatLastSeen]
|
||||
const findChatIndex = state.chatLastSeen.findIndex((chat)=> chat.key === chatId)
|
||||
if(findChatIndex !== -1){
|
||||
|
||||
newChatLastSeen[findChatIndex] = {
|
||||
key: chatId,
|
||||
timestamp,
|
||||
}
|
||||
}
|
||||
if(findChatIndex === -1){
|
||||
|
||||
newChatLastSeen = [...newChatLastSeen, {
|
||||
key: chatId,
|
||||
timestamp,
|
||||
}]
|
||||
}
|
||||
chatLastSeen.setItem(chatId, timestamp)
|
||||
return {
|
||||
...state,
|
||||
chatLastSeen: newChatLastSeen
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
return state
|
||||
|
@ -20,27 +20,28 @@
|
||||
"@lit-labs/motion": "1.0.3",
|
||||
"@material/mwc-list": "0.27.0",
|
||||
"@material/mwc-select": "0.27.0",
|
||||
"@tiptap/core": "2.0.0-beta.209",
|
||||
"@tiptap/extension-highlight": "2.0.0-beta.209",
|
||||
"@tiptap/extension-image": "2.0.0-beta.209",
|
||||
"@tiptap/extension-placeholder": "2.0.0-beta.209",
|
||||
"@tiptap/extension-underline": "2.0.0-beta.209",
|
||||
"@tiptap/html": "2.0.0-beta.209",
|
||||
"@tiptap/starter-kit": "2.0.0-beta.209",
|
||||
"@tiptap/pm": "2.0.0-beta.217",
|
||||
"@tiptap/core": "2.0.0-beta.217",
|
||||
"@tiptap/extension-highlight": "2.0.0-beta.217",
|
||||
"@tiptap/extension-image": "2.0.0-beta.217",
|
||||
"@tiptap/extension-placeholder": "2.0.0-beta.217",
|
||||
"@tiptap/extension-underline": "2.0.0-beta.217",
|
||||
"@tiptap/html": "2.0.0-beta.217",
|
||||
"@tiptap/starter-kit": "2.0.0-beta.217",
|
||||
"asmcrypto.js": "2.3.2",
|
||||
"compressorjs": "1.1.1",
|
||||
"emoji-picker-js": "https://github.com/Qortal/emoji-picker-js",
|
||||
"localforage": "1.10.0",
|
||||
"prosemirror-commands": "1.5.0",
|
||||
"prosemirror-dropcursor": "1.6.1",
|
||||
"prosemirror-dropcursor": "1.7.0",
|
||||
"prosemirror-gapcursor": "1.3.1",
|
||||
"prosemirror-history": "1.3.0",
|
||||
"prosemirror-keymap": "1.2.0",
|
||||
"prosemirror-model": "1.18.3",
|
||||
"prosemirror-model": "1.19.0",
|
||||
"prosemirror-schema-list": "1.2.2",
|
||||
"prosemirror-state": "1.4.2",
|
||||
"prosemirror-transform": "1.7.0",
|
||||
"prosemirror-view": "1.29.1",
|
||||
"prosemirror-transform": "1.7.1",
|
||||
"prosemirror-view": "1.30.1",
|
||||
"short-unique-id": "4.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -69,23 +70,24 @@
|
||||
"@rollup/plugin-commonjs": "24.0.1",
|
||||
"@rollup/plugin-node-resolve": "15.0.1",
|
||||
"@rollup/plugin-replace": "5.0.2",
|
||||
"@rollup/plugin-terser": "0.3.0",
|
||||
"@vaadin/avatar": "23.3.5",
|
||||
"@vaadin/button": "23.3.5",
|
||||
"@vaadin/grid": "23.3.5",
|
||||
"@vaadin/icons": "23.3.5",
|
||||
"@vaadin/tooltip": "23.3.5",
|
||||
"@rollup/plugin-terser": "0.4.0",
|
||||
"@vaadin/avatar": "23.3.7",
|
||||
"@vaadin/button": "23.3.7",
|
||||
"@vaadin/grid": "23.3.7",
|
||||
"@vaadin/icons": "23.3.7",
|
||||
"@vaadin/tooltip": "23.3.7",
|
||||
"epml": "0.3.3",
|
||||
"file-saver": "2.0.5",
|
||||
"highcharts": "10.3.3",
|
||||
"html-escaper": "3.0.3",
|
||||
"lit": "2.6.1",
|
||||
"lit-translate": "2.0.1",
|
||||
"rollup": "3.10.1",
|
||||
"passive-events-support": "1.0.33",
|
||||
"rollup": "3.15.0",
|
||||
"rollup-plugin-node-globals": "1.4.0",
|
||||
"rollup-plugin-progress": "1.1.2",
|
||||
"rollup-plugin-web-worker-loader": "1.6.1",
|
||||
"passive-events-support": "1.0.33"
|
||||
"rollup-plugin-web-worker-loader": "1.6.1"
|
||||
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.17.1"
|
||||
|
@ -1,11 +1,15 @@
|
||||
import { LitElement, html, css } from 'lit'
|
||||
import { render } from 'lit/html.js'
|
||||
import { Epml } from '../../../epml.js'
|
||||
import localForage from "localforage";
|
||||
import { translate} from 'lit-translate';
|
||||
|
||||
import '@material/mwc-icon'
|
||||
|
||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||
|
||||
const chatLastSeen = localForage.createInstance({
|
||||
name: "chat-last-seen",
|
||||
});
|
||||
class ChatHead extends LitElement {
|
||||
static get properties() {
|
||||
return {
|
||||
@ -15,7 +19,8 @@ class ChatHead extends LitElement {
|
||||
iconName: { type: String },
|
||||
activeChatHeadUrl: { type: String },
|
||||
isImageLoaded: { type: Boolean },
|
||||
setActiveChatHeadUrl: {attribute: false}
|
||||
setActiveChatHeadUrl: {attribute: false},
|
||||
lastReadMessageTimestamp: {type: Number}
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,9 +29,13 @@ class ChatHead extends LitElement {
|
||||
li {
|
||||
|
||||
width: 100%;
|
||||
padding: 7px 5px 7px 5px;
|
||||
padding: 10px 5px 10px 5px;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
|
||||
}
|
||||
|
||||
li:hover {
|
||||
@ -44,12 +53,21 @@ class ChatHead extends LitElement {
|
||||
color: var(--chat-group);
|
||||
}
|
||||
|
||||
.about {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
|
||||
.about {
|
||||
padding-left: 8px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
}
|
||||
.inner-container {
|
||||
display: flex;
|
||||
width: calc(100% - 45px);
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.status {
|
||||
@ -64,6 +82,13 @@ class ChatHead extends LitElement {
|
||||
clear: both;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
`
|
||||
}
|
||||
|
||||
@ -82,9 +107,11 @@ class ChatHead extends LitElement {
|
||||
this.activeChatHeadUrl = ''
|
||||
this.isImageLoaded = false
|
||||
this.imageFetches = 0
|
||||
this.lastReadMessageTimestamp = 0
|
||||
this.loggedInAddress = window.parent.reduxStore.getState().app.selectedAddress.address
|
||||
}
|
||||
|
||||
createImage(imageUrl) {
|
||||
createImage(imageUrl) {
|
||||
const imageHTMLRes = new Image();
|
||||
imageHTMLRes.src = imageUrl;
|
||||
imageHTMLRes.style= "width:40px; height:40px; float: left; border-radius:50%";
|
||||
@ -99,7 +126,7 @@ class ChatHead extends LitElement {
|
||||
setTimeout(() => {
|
||||
this.imageFetches = this.imageFetches + 1;
|
||||
imageHTMLRes.src = imageUrl;
|
||||
}, 500);
|
||||
}, 750);
|
||||
} else {
|
||||
|
||||
|
||||
@ -109,32 +136,61 @@ class ChatHead extends LitElement {
|
||||
return imageHTMLRes;
|
||||
}
|
||||
|
||||
|
||||
|
||||
render() {
|
||||
let avatarImg = '';
|
||||
let backupAvatarImg = ''
|
||||
let isUnread = false
|
||||
|
||||
if(this.chatInfo.name){
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node];
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port;
|
||||
const avatarUrl = `${nodeUrl}/arbitrary/THUMBNAIL/${this.chatInfo.name}/qortal_avatar?async=true&apiKey=${myNode.apiKey}`;
|
||||
avatarImg= this.createImage(avatarUrl)
|
||||
|
||||
}
|
||||
|
||||
if(this.lastReadMessageTimestamp && this.chatInfo.timestamp){
|
||||
if(this.lastReadMessageTimestamp < this.chatInfo.timestamp){
|
||||
isUnread = true
|
||||
}
|
||||
}
|
||||
|
||||
if(this.activeChatHeadUrl === this.chatInfo.url){
|
||||
isUnread = false
|
||||
}
|
||||
|
||||
if(this.chatInfo.sender === this.loggedInAddress){
|
||||
isUnread = false
|
||||
}
|
||||
return html`
|
||||
<li @click=${() => this.getUrl(this.chatInfo.url)} class="clearfix ${this.activeChatHeadUrl === this.chatInfo.url ? 'active' : ''}">
|
||||
${this.isImageLoaded ? html`${avatarImg}` : html`` }
|
||||
${!this.isImageLoaded && !this.chatInfo.name && !this.chatInfo.groupName ? html`<mwc-icon class="img-icon">account_circle</mwc-icon>` : html`` }
|
||||
${!this.isImageLoaded && this.chatInfo.name ? html`<div style="width:40px; height:40px; float: left; border-radius:50%; background: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadBgActive)' : 'var(--chatHeadBg)' }; color: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadTextActive)' : 'var(--chatHeadText)' }; font-weight:bold; display: flex; justify-content: center; align-items: center; text-transform: capitalize">${this.chatInfo.name.charAt(0)}</div>`: ''}
|
||||
${!this.isImageLoaded && this.chatInfo.groupName ? html`<div style="width:40px; height:40px; float: left; border-radius:50%; background: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadBgActive)' : 'var(--chatHeadBg)' }; color: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadTextActive)' : 'var(--chatHeadText)' }; font-weight:bold; display: flex; justify-content: center; align-items: center; text-transform: capitalize">${this.chatInfo.groupName.charAt(0)}</div>`: ''}
|
||||
${!this.isImageLoaded && this.chatInfo.name ? html`<div style="width:40px; height:40px; flex-shrink: 0; border-radius:50%; background: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadBgActive)' : 'var(--chatHeadBg)' }; color: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadTextActive)' : 'var(--chatHeadText)' }; font-weight:bold; display: flex; justify-content: center; align-items: center; text-transform: capitalize">${this.chatInfo.name.charAt(0)}</div>`: ''}
|
||||
${!this.isImageLoaded && this.chatInfo.groupName ? html`<div style="width:40px; height:40px; flex-shrink: 0; border-radius:50%; background: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadBgActive)' : 'var(--chatHeadBg)' }; color: ${this.activeChatHeadUrl === this.chatInfo.url ? 'var(--chatHeadTextActive)' : 'var(--chatHeadText)' }; font-weight:bold; display: flex; justify-content: center; align-items: center; text-transform: capitalize">${this.chatInfo.groupName.charAt(0)}</div>`: ''}
|
||||
<div class="inner-container">
|
||||
<div class="about">
|
||||
<div class="name"><span style="float:left; padding-left: 8px; color: var(--chat-group);">${this.chatInfo.groupName ? this.chatInfo.groupName : this.chatInfo.name !== undefined ? this.chatInfo.name : this.chatInfo.address.substr(0, 15)} </span> <mwc-icon style="float:right; padding: 0 1rem; color: var(--chat-group);">${this.chatInfo.groupId !== undefined ? 'lock_open' : 'lock'}</mwc-icon> </div>
|
||||
<div class="name"><span style="font-weight: bold;float:left; padding-left: 8px; color: var(--chat-group);font-size:14px;word-break:${this.chatInfo.groupName ? this.chatInfo.groupName : this.chatInfo.name !== undefined ? 'break-word': 'break-all'}">${this.chatInfo.groupName ? this.chatInfo.groupName : this.chatInfo.name !== undefined ? this.chatInfo.name : this.chatInfo.address.substr(0, 15)} </span> <mwc-icon style="font-size:18px; color: var(--chat-group);">${this.chatInfo.groupId !== undefined ? 'lock_open' : 'lock'}</mwc-icon> </div>
|
||||
</div>
|
||||
<div class="about" style="margin-top:7px">
|
||||
<div class="name"><span style="float:left; padding-left: 8px; color: var(--chat-group);font-size:14px"></span>
|
||||
<div style="color: var(--black); display: flex;font-size: 12px; align-items:center">
|
||||
<div style="width: 8px; height: 8px;border-radius: 50%;background: ${isUnread ? 'var(--error)' : 'none'} ; margin-right:5px;"></div>
|
||||
<message-time style="display: ${(this.chatInfo.timestamp && this.chatInfo.timestamp > 100000) ? 'block' : 'none'}" timestamp=${this.chatInfo.timestamp}></message-time>
|
||||
<span style="font-size:12px;color:var(--black);display: ${(!this.chatInfo.timestamp || this.chatInfo.timestamp > 100000) ? 'none' : 'block'}">${translate('chatpage.cchange90')}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
`
|
||||
}
|
||||
|
||||
firstUpdated() {
|
||||
async firstUpdated() {
|
||||
let configLoaded = false
|
||||
this.lastReadMessageTimestamp = await chatLastSeen.getItem(this.chatInfo.url) || 0
|
||||
parentEpml.ready().then(() => {
|
||||
parentEpml.subscribe('selected_address', async selectedAddress => {
|
||||
this.selectedAddress = {}
|
||||
@ -142,6 +198,15 @@ class ChatHead extends LitElement {
|
||||
if (!selectedAddress || Object.entries(selectedAddress).length === 0) return
|
||||
this.selectedAddress = selectedAddress
|
||||
})
|
||||
parentEpml.subscribe('chat_last_seen', async chatList => {
|
||||
const parsedChatList = JSON.parse(chatList)
|
||||
const findChatSeen = parsedChatList.find(chat=> chat.key === this.chatInfo.url)
|
||||
|
||||
if(findChatSeen && this.lastReadMessageTimestamp !== findChatSeen.timestamp){
|
||||
this.lastReadMessageTimestamp = findChatSeen.timestamp
|
||||
this.requestUpdate()
|
||||
}
|
||||
})
|
||||
parentEpml.subscribe('config', c => {
|
||||
if (!configLoaded) {
|
||||
configLoaded = true
|
||||
@ -156,7 +221,18 @@ class ChatHead extends LitElement {
|
||||
if(changedProperties.has('activeChatHeadUrl')){
|
||||
return true
|
||||
}
|
||||
if(changedProperties.has('lastReadMessageTimestamp')){
|
||||
return true
|
||||
}
|
||||
if(changedProperties.has('chatInfo')){
|
||||
|
||||
const prevChatInfo = changedProperties.get('chatInfo')
|
||||
|
||||
if(prevChatInfo.address !== this.chatInfo.address){
|
||||
|
||||
this.isImageLoaded = false
|
||||
this.requestUpdate()
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ import Highlight from '@tiptap/extension-highlight'
|
||||
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
|
||||
import { Editor, Extension } from '@tiptap/core'
|
||||
|
||||
// import localForage from "localforage";
|
||||
import localForage from "localforage";
|
||||
registerTranslateConfig({
|
||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||
});
|
||||
@ -42,9 +42,9 @@ import WebWorker from 'web-worker:./computePowWorker.js';
|
||||
import WebWorkerImage from 'web-worker:./computePowWorkerImage.js';
|
||||
import '@polymer/paper-dialog/paper-dialog.js'
|
||||
|
||||
// const messagesCache = localForage.createInstance({
|
||||
// name: "messages-cache",
|
||||
// });
|
||||
const chatLastSeen = localForage.createInstance({
|
||||
name: "chat-last-seen",
|
||||
});
|
||||
|
||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||
|
||||
@ -1421,6 +1421,12 @@ class ChatPage extends LitElement {
|
||||
})
|
||||
document.addEventListener('keydown', this.initialChat);
|
||||
document.addEventListener('paste', this.pasteImage);
|
||||
if(this.chatId){
|
||||
window.parent.reduxStore.dispatch( window.parent.reduxAction.addChatLastSeen({
|
||||
key: this.chatId,
|
||||
timestamp: Date.now()
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
@ -1444,6 +1450,14 @@ class ChatPage extends LitElement {
|
||||
|
||||
document.removeEventListener('keydown', this.initialChat);
|
||||
document.removeEventListener('paste', this.pasteImage);
|
||||
if(this.chatId){
|
||||
window.parent.reduxStore.dispatch( window.parent.reduxAction.addChatLastSeen({
|
||||
key: this.chatId,
|
||||
timestamp: Date.now()
|
||||
}))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
initialChat(e) {
|
||||
@ -1465,9 +1479,7 @@ class ChatPage extends LitElement {
|
||||
const handleTransferIntoURL = (dataTransfer) => {
|
||||
try {
|
||||
const [firstItem] = dataTransfer.items;
|
||||
console.log({firstItem});
|
||||
const blob = firstItem.getAsFile();
|
||||
console.log({blob});
|
||||
return blob;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
@ -2175,7 +2187,13 @@ class ChatPage extends LitElement {
|
||||
await this.renderNewMessage(msg)
|
||||
})
|
||||
await Promise.all(renderEachMessage)
|
||||
|
||||
if(this.chatId){
|
||||
window.parent.reduxStore.dispatch( window.parent.reduxAction.addChatLastSeen({
|
||||
key: this.chatId,
|
||||
timestamp: Date.now()
|
||||
}))
|
||||
|
||||
}
|
||||
// this.newMessages = this.newMessages.concat(_newMessages)
|
||||
this.messagesRendered = [...this.messagesRendered].sort(function (a, b) {
|
||||
return a.timestamp
|
||||
@ -2679,7 +2697,7 @@ class ChatPage extends LitElement {
|
||||
await new Promise(resolve => {
|
||||
new Compressor( image, {
|
||||
quality: .6,
|
||||
maxWidth: 500,
|
||||
maxWidth: 1200,
|
||||
success(result){
|
||||
const file = new File([result], "name", {
|
||||
type: image.type
|
||||
|
@ -19,7 +19,7 @@ class TimeAgo extends LitElement {
|
||||
|
||||
updated(changedProps) {
|
||||
changedProps.forEach((OldProp, name) => {
|
||||
if (name === 'timeIso') {
|
||||
if (name === 'timeIso' || name === 'timestamp') {
|
||||
this.renderTime(this.timestamp)
|
||||
}
|
||||
});
|
||||
@ -35,7 +35,6 @@ class TimeAgo extends LitElement {
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
return html`
|
||||
<time-ago datetime=${this.timeIso} format=${this.format}> </time-ago>
|
||||
`
|
||||
|
@ -8,6 +8,7 @@ import { Epml } from '../../../../epml.js';
|
||||
import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate';
|
||||
import { qchatStyles } from './q-chat-css.src.js'
|
||||
import WebWorker from 'web-worker:./computePowWorker.src.js';
|
||||
import {repeat} from 'lit/directives/repeat.js';
|
||||
|
||||
registerTranslateConfig({
|
||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||
@ -31,7 +32,6 @@ import Placeholder from '@tiptap/extension-placeholder'
|
||||
import Highlight from '@tiptap/extension-highlight'
|
||||
|
||||
import { Editor, Extension } from '@tiptap/core'
|
||||
|
||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||
|
||||
class Chat extends LitElement {
|
||||
@ -57,7 +57,7 @@ class Chat extends LitElement {
|
||||
userFoundModalOpen: { type: Boolean },
|
||||
userSelected: { type: Object },
|
||||
editor: {type: Object},
|
||||
groupInvites: { type: Array }
|
||||
groupInvites: { type: Array },
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,6 +120,7 @@ class Chat extends LitElement {
|
||||
}
|
||||
|
||||
async connectedCallback() {
|
||||
|
||||
super.connectedCallback();
|
||||
await this.getUpdateCompleteTextEditor();
|
||||
|
||||
@ -149,15 +150,36 @@ class Chat extends LitElement {
|
||||
}})
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
this.unsubscribeStore = window.parent.reduxStore.subscribe(() => {
|
||||
try {
|
||||
|
||||
if(window.parent.location && window.parent.location.search){
|
||||
const queryString = window.parent.location.search;
|
||||
const params = new URLSearchParams(queryString);
|
||||
const chat = params.get("chat")
|
||||
if(chat && chat !== this.activeChatHeadUrl){
|
||||
let url = window.parent.location.href;
|
||||
let newUrl = url.split("?")[0];
|
||||
window.parent.history.pushState({}, "", newUrl);
|
||||
this.setActiveChatHeadUrl(chat)
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this.editor.destroy()
|
||||
|
||||
this.editor.destroy();
|
||||
this.unsubscribeStore();
|
||||
}
|
||||
|
||||
|
||||
updatePlaceholder(editor, text){
|
||||
editor.extensionManager.extensions.forEach((extension) => {
|
||||
if (extension.name === "placeholder") {
|
||||
@ -217,7 +239,7 @@ class Chat extends LitElement {
|
||||
</div>
|
||||
<div class="chat-history">
|
||||
|
||||
${window.parent.location.pathname !== "/app/q-chat" || this.activeChatHeadUrl ? html`${this.renderChatPage(this.chatId)}` : html`${this.renderChatWelcomePage()}`}
|
||||
${this.activeChatHeadUrl ? html`${this.renderChatPage()}` : html`${this.renderChatWelcomePage()}`}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Start Chatting Dialog -->
|
||||
@ -369,6 +391,8 @@ class Chat extends LitElement {
|
||||
`
|
||||
}
|
||||
|
||||
|
||||
|
||||
async firstUpdated() {
|
||||
this.changeLanguage();
|
||||
this.changeTheme();
|
||||
@ -484,8 +508,11 @@ class Chat extends LitElement {
|
||||
})
|
||||
})
|
||||
parentEpml.imReady()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
setOpenPrivateMessage(props) {
|
||||
this.openPrivateMessage = props.open;
|
||||
this.shadowRoot.getElementById("sendTo").value = props.name
|
||||
@ -831,17 +858,14 @@ class Chat extends LitElement {
|
||||
}
|
||||
|
||||
renderChatHead(chatHeadArr) {
|
||||
|
||||
let tempUrl = document.location.href
|
||||
let splitedUrl = decodeURI(tempUrl).split('?')
|
||||
// let activeChatHeadUrl = splitedUrl[1] === undefined ? '' : splitedUrl[1]
|
||||
|
||||
|
||||
return chatHeadArr.map(eachChatHead => {
|
||||
return html`<chat-head activeChatHeadUrl=${this.activeChatHeadUrl} .setActiveChatHeadUrl=${(val)=> this.setActiveChatHeadUrl(val)} chatInfo=${JSON.stringify(eachChatHead)}></chat-head>`
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
renderChatPage(chatId) {
|
||||
renderChatPage() {
|
||||
|
||||
// Check for the chat ID from and render chat messages
|
||||
// Else render Welcome to Q-CHat
|
||||
@ -863,7 +887,7 @@ class Chat extends LitElement {
|
||||
setChatHeads(chatObj) {
|
||||
const chatObjGroups = Array.isArray(chatObj.groups) ? chatObj.groups : [];
|
||||
const chatObjDirect = Array.isArray(chatObj.direct) ? chatObj.direct : [];
|
||||
let groupList = chatObjGroups.map(group => group.groupId === 0 ? { groupId: group.groupId, url: `group/${group.groupId}`, groupName: "Qortal General Chat", timestamp: group.timestamp === undefined ? 2 : group.timestamp } : { ...group, timestamp: group.timestamp === undefined ? 1 : group.timestamp, url: `group/${group.groupId}` })
|
||||
let groupList = chatObjGroups.map(group => group.groupId === 0 ? { groupId: group.groupId, url: `group/${group.groupId}`, groupName: "Qortal General Chat", timestamp: group.timestamp === undefined ? 2 : group.timestamp, sender: group.sender } : { ...group, timestamp: group.timestamp === undefined ? 1 : group.timestamp, url: `group/${group.groupId}` })
|
||||
let directList = chatObjDirect.map(dc => {
|
||||
return { ...dc, url: `direct/${dc.address}` }
|
||||
})
|
||||
@ -957,4 +981,4 @@ class Chat extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
window.customElements.define('q-chat', Chat)
|
||||
window.customElements.define('q-chat', Chat)
|
||||
|
@ -7,11 +7,17 @@ registerTranslateConfig({
|
||||
loader: lang => fetch(`/language/${lang}.json`).then(res => res.json())
|
||||
})
|
||||
|
||||
import '@material/mwc-icon'
|
||||
import '@material/mwc-button'
|
||||
import '@material/mwc-textfield'
|
||||
import '@material/mwc-dialog'
|
||||
import '@material/mwc-formfield'
|
||||
import '@material/mwc-icon'
|
||||
import '@material/mwc-icon-button'
|
||||
import '@material/mwc-textfield'
|
||||
import '@polymer/paper-spinner/paper-spinner-lite.js'
|
||||
import '@polymer/paper-progress/paper-progress.js'
|
||||
import '@vaadin/button'
|
||||
import '@vaadin/icon'
|
||||
import '@vaadin/icons'
|
||||
import '@vaadin/grid'
|
||||
|
||||
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||
@ -19,17 +25,32 @@ const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
|
||||
class NameRegistration extends LitElement {
|
||||
static get properties() {
|
||||
return {
|
||||
theme: { type: String, reflect: true },
|
||||
qortWalletBalance: { type: Number },
|
||||
loading: { type: Boolean },
|
||||
names: { type: Array },
|
||||
marketSellNames: { type: Array },
|
||||
recipientPublicKey: { type: String },
|
||||
selectedAddress: { type: Object },
|
||||
btnDisable: { type: Boolean },
|
||||
isLoading: { type: Boolean },
|
||||
registerNameLoading: { type: Boolean },
|
||||
error: { type: Boolean },
|
||||
message: { type: String },
|
||||
removeError: { type: Boolean },
|
||||
removeMessage: { type: String },
|
||||
theme: { type: String, reflect: true }
|
||||
fee: { type: Number },
|
||||
sellFee: { type: Number },
|
||||
cancelSellFee: { type: Number },
|
||||
buyFee: { type: Number },
|
||||
toSellName: { type: String },
|
||||
toSellPrice: { type: String },
|
||||
toCancelSellName: { type: String },
|
||||
toBuyName: { type: String },
|
||||
toBuyPrice: { type: String },
|
||||
toBuySeller: { type: String },
|
||||
errorMessage: { type: String },
|
||||
successMessage: { type: String }
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,20 +58,32 @@ class NameRegistration extends LitElement {
|
||||
return css`
|
||||
* {
|
||||
--mdc-theme-primary: rgb(3, 169, 244);
|
||||
--mdc-theme-secondary: var(--mdc-theme-primary);
|
||||
--paper-input-container-focus-color: var(--mdc-theme-primary);
|
||||
--mdc-theme-surface: var(--white);
|
||||
--mdc-text-field-outlined-idle-border-color: var(--txtfieldborder);
|
||||
--mdc-text-field-outlined-hover-border-color: var(--txtfieldhoverborder);
|
||||
--mdc-text-field-label-ink-color: var(--black);
|
||||
--mdc-text-field-ink-color: var(--black);
|
||||
--mdc-dialog-content-ink-color: var(--black);
|
||||
--mdc-dialog-min-width: 400px;
|
||||
--mdc-dialog-max-width: 1024px;
|
||||
--lumo-primary-text-color: rgb(0, 167, 245);
|
||||
--lumo-primary-color-50pct: rgba(0, 167, 245, 0.5);
|
||||
--lumo-primary-color-10pct: rgba(0, 167, 245, 0.1);
|
||||
--lumo-primary-color: hsl(199, 100%, 48%);
|
||||
--lumo-base-color: var(--white);
|
||||
--lumo-body-text-color: var(--black);
|
||||
--lumo-secondary-text-color: var(--sectxt);
|
||||
--lumo-contrast-60pct: var(--vdicon);
|
||||
--_lumo-grid-border-color: var(--border);
|
||||
--_lumo-grid-secondary-border-color: var(--border2);
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: hidden !important;
|
||||
visibility: none !important;
|
||||
}
|
||||
|
||||
#name-registration-page {
|
||||
background: var(--white);
|
||||
padding: 12px 24px;
|
||||
@ -78,21 +111,100 @@ class NameRegistration extends LitElement {
|
||||
max-height: 42px;
|
||||
}
|
||||
|
||||
paper-progress {
|
||||
--paper-progress-active-color: var(--mdc-theme-primary);
|
||||
}
|
||||
|
||||
.red {
|
||||
--mdc-theme-primary: #F44336;
|
||||
}
|
||||
|
||||
.green {
|
||||
--mdc-theme-primary: #198754;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.card-container {
|
||||
background-color: var(--white);
|
||||
border-radius: 5px;
|
||||
color: var(--black);
|
||||
padding-top: 30px;
|
||||
position: relative;
|
||||
width: 350px;
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.successBox {
|
||||
height: 34px;
|
||||
min-width: 300px;
|
||||
width: 100%;
|
||||
border: 1px solid green;
|
||||
border-radius: 5px;
|
||||
background-color: transparent;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.errorBox {
|
||||
height: 34px;
|
||||
min-width: 300px;
|
||||
width: 100%;
|
||||
border: 1px solid red;
|
||||
border-radius: 5px;
|
||||
background-color: transparent;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.manage-group-dialog {
|
||||
min-height: 300px;
|
||||
min-width: 350px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.btn-clear-success {
|
||||
--mdc-icon-button-size: 32px;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.btn-clear-error {
|
||||
--mdc-icon-button-size: 32px;
|
||||
color: green;
|
||||
}
|
||||
|
||||
.error-icon {
|
||||
font-size: 48px;
|
||||
color: red;
|
||||
}
|
||||
`
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
this.theme = localStorage.getItem('qortalTheme') ? localStorage.getItem('qortalTheme') : 'light'
|
||||
this.qortWalletBalance = 0
|
||||
this.selectedAddress = {}
|
||||
this.names = []
|
||||
this.marketSellNames = []
|
||||
this.recipientPublicKey = ''
|
||||
this.btnDisable = false
|
||||
this.isLoading = false
|
||||
this.registerNameLoading = false
|
||||
this.fee = 0.001
|
||||
this.theme = localStorage.getItem('qortalTheme') ? localStorage.getItem('qortalTheme') : 'light'
|
||||
this.sellFee = 0.001
|
||||
this.cancelSellFee = 0.001
|
||||
this.buyFee = 0.001
|
||||
this.toSellName = ''
|
||||
this.toSellPrice = ''
|
||||
this.toCancelSellName = ''
|
||||
this.toBuyName = ''
|
||||
this.toBuyPrice = ''
|
||||
this.toBuySeller = ''
|
||||
this.errorMessage = ''
|
||||
this.successMessage = ''
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -114,13 +226,38 @@ class NameRegistration extends LitElement {
|
||||
<vaadin-grid-column width="14rem" flex-grow="0" header="${translate("registernamepage.nchange7")}" .renderer=${(root, column, data) => {
|
||||
render(html`${this.renderAvatarButton(data.item)}`, root)
|
||||
}}></vaadin-grid-column>
|
||||
<vaadin-grid-column width="14rem" flex-grow="0" .renderer=${(root, column, data) => {
|
||||
if (this.marketSellNames.some(e => e.owner === this.selectedAddress.address)) {
|
||||
render(html`${this.renderCancelSellNameButton(data.item)}`, root)
|
||||
} else {
|
||||
render(html`${this.renderSellNameButton(data.item)}`, root)
|
||||
}
|
||||
}}></vaadin-grid-column>
|
||||
</vaadin-grid>
|
||||
${this.isEmptyArray(this.names) ? html`
|
||||
<span style="color: var(--black);">${translate("registernamepage.nchange8")}</span>
|
||||
`: ''}
|
||||
</div>
|
||||
<br><br>
|
||||
<div class="divCard">
|
||||
<h3 style="margin: 0; margin-bottom: 1em; text-align: center;">${translate("registernamepage.nchange22")}</h3>
|
||||
<vaadin-grid theme="large" id="marketSellNames" ?hidden="${this.isEmptyArray(this.marketSellNames)}" aria-label="Names" .items="${this.marketSellNames}" all-rows-visible>
|
||||
<vaadin-grid-column header="${translate("registernamepage.nchange5")}" path="name"></vaadin-grid-column>
|
||||
<vaadin-grid-column header="${translate("registernamepage.nchange6")}" path="owner"></vaadin-grid-column>
|
||||
<vaadin-grid-column header="${translate("registernamepage.nchange23")} (QORT)" path="salePrice"></vaadin-grid-column>
|
||||
<vaadin-grid-column width="14rem" flex-grow="0" header="${translate("registernamepage.nchange7")}" .renderer=${(root, column, data) => {
|
||||
if (data.item.owner === this.selectedAddress.address) {
|
||||
render(html`${this.renderCancelSellNameButton(data.item)}`, root)
|
||||
} else {
|
||||
render(html`${this.renderBuyNameButton(data.item)}`, root)
|
||||
}
|
||||
}}></vaadin-grid-column>
|
||||
</vaadin-grid>
|
||||
${this.isEmptyArray(this.marketSellNames) ? html`
|
||||
<span style="color: var(--black);">${translate("registernamepage.nchange24")}</span>
|
||||
`: ''}
|
||||
</div>
|
||||
|
||||
<!-- Register Name Dialog -->
|
||||
<mwc-dialog id="registerNameDialog" scrimClickAction="${this.registerNameLoading ? '' : 'close'}">
|
||||
<div>${translate("registernamepage.nchange9")}</div>
|
||||
<br>
|
||||
@ -161,6 +298,204 @@ class NameRegistration extends LitElement {
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="sellNameDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="manage-group-dialog">
|
||||
<div style="text-align: center;">
|
||||
<h2>${translate("registernamepage.nchange19")}</h2>
|
||||
<hr />
|
||||
<br>
|
||||
</div>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
readOnly
|
||||
outlined
|
||||
id="toSellName"
|
||||
label="${translate("registernamepage.nchange25")}"
|
||||
type="text"
|
||||
value="${this.toSellName}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
required
|
||||
outlined
|
||||
id="toSellPrice"
|
||||
label="${translate("registernamepage.nchange23")} (QORT)"
|
||||
type="number"
|
||||
value="${this.toSellPrice}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<p style="margin-bottom: 0;">${translate("walletpage.wchange21")} <span style="font-weight: bold;">${this.sellFee} QORT<span></p>
|
||||
<br>
|
||||
</div>
|
||||
${this.renderClearSuccess()}
|
||||
${this.renderClearError()}
|
||||
${this.isLoading ? html`<paper-progress indeterminate style="width: 100%; margin: 4px;"></paper-progress>` : ''}
|
||||
<div class="buttons">
|
||||
<div>
|
||||
<vaadin-button ?disabled="${this.btnDisable}" theme="primary medium" style="width: 100%;" @click=${() => this.createSellName()}>
|
||||
<vaadin-icon icon="vaadin:exit" slot="prefix"></vaadin-icon>
|
||||
${translate("registernamepage.nchange19")}
|
||||
</vaadin-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click="${() => this.closeSellNameDialog()}"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="cancelSellNameDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="manage-group-dialog">
|
||||
<div style="text-align: center;">
|
||||
<h2>${translate("registernamepage.nchange20")} ${translate("registernamepage.nchange5")}</h2>
|
||||
<hr />
|
||||
<br>
|
||||
</div>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
readOnly
|
||||
outlined
|
||||
id="toCancelSellName"
|
||||
label="${translate("registernamepage.nchange29")}"
|
||||
type="text"
|
||||
value="${this.toCancelSellName}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<p style="margin-bottom: 0;">${translate("walletpage.wchange21")} <span style="font-weight: bold;">${this.cancelSellFee} QORT<span></p>
|
||||
<br>
|
||||
</div>
|
||||
${this.renderClearSuccess()}
|
||||
${this.renderClearError()}
|
||||
${this.isLoading ? html`<paper-progress indeterminate style="width: 100%; margin: 4px;"></paper-progress>` : ''}
|
||||
<div class="buttons">
|
||||
<div>
|
||||
<vaadin-button ?disabled="${this.btnDisable}" theme="primary medium" style="width: 100%;" @click=${() => this.createCancelSellName()}>
|
||||
<vaadin-icon icon="vaadin:close-circle-o" slot="prefix"></vaadin-icon>
|
||||
${translate("registernamepage.nchange20")} ${translate("registernamepage.nchange5")}
|
||||
</vaadin-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click="${() => this.closeCancelSellNameDialog()}"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="buyNameDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="manage-group-dialog">
|
||||
<div style="text-align: center;">
|
||||
<h2>${translate("registernamepage.nchange21")}</h2>
|
||||
<hr />
|
||||
<br>
|
||||
</div>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
readOnly
|
||||
outlined
|
||||
id="toBuyName"
|
||||
label="${translate("registernamepage.nchange5")}"
|
||||
type="text"
|
||||
value="${this.toBuyName}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
readOnly
|
||||
outlined
|
||||
id="toBuySeller"
|
||||
label="${translate("registernamepage.nchange6")}"
|
||||
type="text"
|
||||
value="${this.toBuySeller}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<p>
|
||||
<mwc-textfield
|
||||
style="width: 100%; color: var(--black);"
|
||||
readOnly
|
||||
outlined
|
||||
id="toBuyPrice"
|
||||
label="${translate("registernamepage.nchange23")}"
|
||||
type="number"
|
||||
value="${this.toBuyPrice}"
|
||||
>
|
||||
</mwc-textfield>
|
||||
</p>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<p style="margin-bottom: 0;">${translate("walletpage.wchange21")} <span style="font-weight: bold;">${this.buyFee} QORT<span></p>
|
||||
<br>
|
||||
</div>
|
||||
${this.renderClearSuccess()}
|
||||
${this.renderClearError()}
|
||||
${this.isLoading ? html`<paper-progress indeterminate style="width: 100%; margin: 4px;"></paper-progress>` : ''}
|
||||
<div class="buttons">
|
||||
<div>
|
||||
<vaadin-button ?disabled="${this.btnDisable}" theme="primary medium" style="width: 100%;" @click=${() => this.openCheckFunds()}>
|
||||
<vaadin-icon icon="vaadin:cart" slot="prefix"></vaadin-icon>
|
||||
${translate("registernamepage.nchange21")}
|
||||
</vaadin-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click="${() => this.closeBuyNameDialog()}"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="buyErrorNameDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="card-container">
|
||||
<mwc-icon class="error-icon">warning</mwc-icon>
|
||||
<h2>${translate("registernamepage.nchange35")}</h2>
|
||||
<h4>${translate("registernamepage.nchange36")}</h4>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click=${() => this.closeBuyErrorNameDialog()}
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="buyErrorPriceDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="card-container">
|
||||
<mwc-icon class="error-icon">warning</mwc-icon>
|
||||
<h2>${translate("registernamepage.nchange37")}</h2>
|
||||
<h4>${translate("registernamepage.nchange38")}</h4>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
@click=${() => this.closeBuyErrorPriceDialog()}
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
@ -170,6 +505,9 @@ class NameRegistration extends LitElement {
|
||||
this.changeTheme()
|
||||
this.changeLanguage()
|
||||
this.unitFee()
|
||||
this.unitSellFee()
|
||||
this.unitCancelSellFee()
|
||||
this.unitBuyFee()
|
||||
|
||||
const fetchNames = () => {
|
||||
parentEpml.request('apiCall', {
|
||||
@ -180,6 +518,15 @@ class NameRegistration extends LitElement {
|
||||
setTimeout(fetchNames, this.config.user.nodeSettings.pingInterval)
|
||||
}
|
||||
|
||||
const fetchMarketSellNames = async () => {
|
||||
await parentEpml.request('apiCall', {
|
||||
url: `/names/forsale?limit=0&reverse=true`
|
||||
}).then(res => {
|
||||
this.marketSellNames = res
|
||||
})
|
||||
setTimeout(fetchMarketSellNames, 60000)
|
||||
}
|
||||
|
||||
window.addEventListener("contextmenu", (event) => {
|
||||
event.preventDefault()
|
||||
this._textMenu(event)
|
||||
@ -221,6 +568,7 @@ class NameRegistration extends LitElement {
|
||||
parentEpml.subscribe('config', c => {
|
||||
if (!configLoaded) {
|
||||
setTimeout(fetchNames, 1)
|
||||
setTimeout(fetchMarketSellNames, 1)
|
||||
configLoaded = true
|
||||
}
|
||||
this.config = JSON.parse(c)
|
||||
@ -237,11 +585,11 @@ class NameRegistration extends LitElement {
|
||||
changeTheme() {
|
||||
const checkTheme = localStorage.getItem('qortalTheme')
|
||||
if (checkTheme === 'dark') {
|
||||
this.theme = 'dark';
|
||||
this.theme = 'dark'
|
||||
} else {
|
||||
this.theme = 'light';
|
||||
this.theme = 'light'
|
||||
}
|
||||
document.querySelector('html').setAttribute('theme', this.theme);
|
||||
document.querySelector('html').setAttribute('theme', this.theme)
|
||||
}
|
||||
|
||||
changeLanguage() {
|
||||
@ -255,6 +603,50 @@ class NameRegistration extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
async updateQortWalletBalance() {
|
||||
let qortAddress = window.parent.reduxStore.getState().app.selectedAddress.address
|
||||
|
||||
await parentEpml.request('apiCall', {
|
||||
url: `/addresses/balance/${qortAddress}`,
|
||||
}).then((res) => {
|
||||
this.qortWalletBalance = res
|
||||
})
|
||||
}
|
||||
|
||||
renderClearSuccess() {
|
||||
let strSuccessValue = this.successMessage
|
||||
if (strSuccessValue === "") {
|
||||
return html``
|
||||
} else {
|
||||
return html`
|
||||
<div class="successBox">
|
||||
<span style="color: green; float: left; padding-top: 4px; padding-left: 7px;">${this.successMessage}</span>
|
||||
<span style="padding-top: 4px: padding-right: 7px; float: right;"><mwc-icon-button class="btn-clear-success" title="${translate("general.close")}" icon="close" @click="${() => this.successMessage = ''}"></mwc-icon-button></span>
|
||||
</div>
|
||||
<div style="margin-bottom: 15px;">
|
||||
<p style="margin-bottom: 0;">${translate("walletpage.wchange43")}</p>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
}
|
||||
|
||||
renderClearError() {
|
||||
let strErrorValue = this.errorMessage
|
||||
if (strErrorValue === "") {
|
||||
return html``
|
||||
} else {
|
||||
return html`
|
||||
<div class="errorBox">
|
||||
<span style="color: red; float: left; padding-top: 4px; padding-left: 7px;">${this.errorMessage}</span>
|
||||
<span style="padding-top: 4px: padding-right: 7px; float: right;"><mwc-icon-button class="btn-clear-error" title="${translate("general.close")}" icon="close" @click="${() => this.errorMessage = ''}"></mwc-icon-button></span>
|
||||
</div>
|
||||
<div style="margin-bottom: 15px;">
|
||||
<p style="margin-bottom: 0;">${translate("walletpage.wchange44")}</p>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
}
|
||||
|
||||
renderCoreText() {
|
||||
return html`${translate("registernamepage.nchange16")}`
|
||||
}
|
||||
@ -263,6 +655,18 @@ class NameRegistration extends LitElement {
|
||||
return html`${translate("registernamepage.nchange18")}`
|
||||
}
|
||||
|
||||
renderSellSuccessText() {
|
||||
return html`${translate("registernamepage.nchange32")}`
|
||||
}
|
||||
|
||||
renderCancelSuccessText() {
|
||||
return html`${translate("registernamepage.nchange33")}`
|
||||
}
|
||||
|
||||
renderBuySuccessText() {
|
||||
return html`${translate("registernamepage.nchange34")}`
|
||||
}
|
||||
|
||||
renderFailText() {
|
||||
return html`${translate("registernamepage.nchange17")}`
|
||||
}
|
||||
@ -271,7 +675,7 @@ class NameRegistration extends LitElement {
|
||||
let name = nameObj.name
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||
const url = `${nodeUrl}/arbitrary/THUMBNAIL/${name}/qortal_avatar?async=true&apiKey=${this.getApiKey()}`;
|
||||
const url = `${nodeUrl}/arbitrary/THUMBNAIL/${name}/qortal_avatar?async=true&apiKey=${this.getApiKey()}`
|
||||
return html`<img src="${url}" onerror="this.onerror=null; this.src='/img/incognito.png';">`
|
||||
}
|
||||
|
||||
@ -280,28 +684,168 @@ class NameRegistration extends LitElement {
|
||||
}
|
||||
|
||||
async uploadAvatar(nameObj) {
|
||||
let name = encodeURIComponent(nameObj.name)
|
||||
let name = nameObj.name
|
||||
window.location.href = `../qdn/publish/index.html?service=THUMBNAIL&identifier=qortal_avatar&name=${name}&uploadType=file&category=Avatar&showName=false&showService=false&showIdentifier=false`
|
||||
}
|
||||
|
||||
renderSellNameButton(nameObj) {
|
||||
return html`<mwc-button class="green" @click=${() => this.openSellNameDialog(nameObj)}><mwc-icon>sell</mwc-icon> ${translate("registernamepage.nchange19")}</mwc-button>`
|
||||
}
|
||||
|
||||
openSellNameDialog(nameObj) {
|
||||
this.toSellName = ''
|
||||
this.toSellPrice = ''
|
||||
this.shadowRoot.getElementById("toSellName").value = ''
|
||||
this.shadowRoot.getElementById("toSellPrice").value = ''
|
||||
this.toSellName = nameObj.name
|
||||
this.toSellPrice = '5'
|
||||
this.shadowRoot.querySelector('#sellNameDialog').show()
|
||||
}
|
||||
|
||||
closeSellNameDialog() {
|
||||
this.shadowRoot.querySelector('#sellNameDialog').close()
|
||||
this.toSellName = ''
|
||||
this.toSellPrice = ''
|
||||
this.shadowRoot.getElementById("toSellName").value = ''
|
||||
this.shadowRoot.getElementById("toSellPrice").value = ''
|
||||
}
|
||||
|
||||
renderCancelSellNameButton(nameObj) {
|
||||
return html`<mwc-button class="red" @click=${() => this.openCancelSellNameDialog(nameObj)}><mwc-icon>cancel</mwc-icon> ${translate("registernamepage.nchange20")}</mwc-button>`
|
||||
}
|
||||
|
||||
openCancelSellNameDialog(nameObj) {
|
||||
this.toCancelSellName = ''
|
||||
this.shadowRoot.getElementById("toCancelSellName").value = ''
|
||||
this.toCancelSellName = nameObj.name
|
||||
this.shadowRoot.querySelector('#cancelSellNameDialog').show()
|
||||
}
|
||||
|
||||
closeCancelSellNameDialog() {
|
||||
this.shadowRoot.querySelector('#cancelSellNameDialog').close()
|
||||
this.toCancelSellName = ''
|
||||
this.shadowRoot.getElementById("toCancelSellName").value = ''
|
||||
}
|
||||
|
||||
renderBuyNameButton(nameObj) {
|
||||
return html`<mwc-button class="green" @click=${() => this.openCheck(nameObj)}><mwc-icon>shop</mwc-icon> ${translate("registernamepage.nchange21")}</mwc-button>`
|
||||
}
|
||||
|
||||
openCheck(nameObj) {
|
||||
const _name = nameObj.name
|
||||
const _seller = nameObj.owner
|
||||
const _price = nameObj.salePrice
|
||||
if (this.isEmptyArray(this.names) === true) {
|
||||
this.openBuyNameDialog(_name, _seller, _price)
|
||||
} else {
|
||||
this.shadowRoot.querySelector('#buyErrorNameDialog').show()
|
||||
}
|
||||
}
|
||||
|
||||
openBuyNameDialog(_name, _seller, _price) {
|
||||
this.toBuyName = ''
|
||||
this.toBuyPrice = ''
|
||||
this.toBuySeller = ''
|
||||
this.shadowRoot.getElementById("toBuyName").value = ''
|
||||
this.shadowRoot.getElementById("toBuyPrice").value = ''
|
||||
this.shadowRoot.getElementById("toBuySeller").value = ''
|
||||
this.toBuyName = _name
|
||||
this.toBuyPrice = _price
|
||||
this.toBuySeller = _seller
|
||||
this.shadowRoot.querySelector('#buyNameDialog').show()
|
||||
}
|
||||
|
||||
closeBuyNameDialog() {
|
||||
this.toBuyName = ''
|
||||
this.toBuyPrice = ''
|
||||
this.toBuySeller = ''
|
||||
this.shadowRoot.getElementById("toBuyName").value = ''
|
||||
this.shadowRoot.getElementById("toBuyPrice").value = ''
|
||||
this.shadowRoot.getElementById("toBuySeller").value = ''
|
||||
this.shadowRoot.querySelector('#buyNameDialog').close()
|
||||
}
|
||||
|
||||
async openCheckFunds() {
|
||||
await this.updateQortWalletBalance()
|
||||
|
||||
const myFunds = this.round(parseFloat(this.qortWalletBalance))
|
||||
const myBuyPrice = this.round(parseFloat(this.toBuyPrice))
|
||||
|
||||
if (Number(myFunds) < Number(myBuyPrice)) {
|
||||
this.shadowRoot.querySelector('#buyErrorPriceDialog').show()
|
||||
} else {
|
||||
this.createBuyName()
|
||||
}
|
||||
}
|
||||
|
||||
closeBuyErrorNameDialog() {
|
||||
this.shadowRoot.querySelector('#buyErrorNameDialog').close()
|
||||
}
|
||||
|
||||
closeBuyErrorPriceDialog() {
|
||||
this.shadowRoot.querySelector('#buyErrorPriceDialog').close()
|
||||
}
|
||||
|
||||
async unitFee() {
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node];
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port;
|
||||
const url = `${nodeUrl}/transactions/unitfee?txType=REGISTER_NAME`;
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||
const url = `${nodeUrl}/transactions/unitfee?txType=REGISTER_NAME`
|
||||
await fetch(url).then((response) => {
|
||||
if (response.ok) {
|
||||
return response.json();
|
||||
return response.json()
|
||||
}
|
||||
return Promise.reject(response);
|
||||
return Promise.reject(response)
|
||||
}).then((json) => {
|
||||
this.fee = (Number(json) / 1e8).toFixed(2);
|
||||
this.fee = (Number(json) / 1e8).toFixed(2)
|
||||
})
|
||||
}
|
||||
|
||||
async unitSellFee() {
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||
const url = `${nodeUrl}/transactions/unitfee?txType=SELL_NAME`
|
||||
await fetch(url).then((response) => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
}
|
||||
return Promise.reject(response)
|
||||
}).then((json) => {
|
||||
this.sellFee = (Number(json) / 1e8).toFixed(8)
|
||||
})
|
||||
}
|
||||
|
||||
async unitCancelSellFee() {
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||
const url = `${nodeUrl}/transactions/unitfee?txType=CANCEL_SELL_NAME`
|
||||
await fetch(url).then((response) => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
}
|
||||
return Promise.reject(response)
|
||||
}).then((json) => {
|
||||
this.cancelSellFee = (Number(json) / 1e8).toFixed(8)
|
||||
})
|
||||
}
|
||||
|
||||
async unitBuyFee() {
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||
const url = `${nodeUrl}/transactions/unitfee?txType=BUY_NAME`
|
||||
await fetch(url).then((response) => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
}
|
||||
return Promise.reject(response)
|
||||
}).then((json) => {
|
||||
this.buyFee = (Number(json) / 1e8).toFixed(8)
|
||||
})
|
||||
}
|
||||
|
||||
getApiKey() {
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node];
|
||||
let apiKey = myNode.apiKey;
|
||||
return apiKey;
|
||||
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||
let apiKey = myNode.apiKey
|
||||
return apiKey
|
||||
}
|
||||
|
||||
clearSelection() {
|
||||
@ -391,16 +935,227 @@ class NameRegistration extends LitElement {
|
||||
this.registerNameLoading = false
|
||||
}
|
||||
|
||||
async createSellName() {
|
||||
const name = this.shadowRoot.getElementById("toSellName").value
|
||||
const price = this.shadowRoot.getElementById("toSellPrice").value
|
||||
const sellFeeInput = this.sellFee
|
||||
this.isLoading = true
|
||||
this.btnDisable = true
|
||||
|
||||
const getLastRef = async () => {
|
||||
let myRef = await parentEpml.request('apiCall', {
|
||||
type: 'api',
|
||||
url: `/addresses/lastreference/${this.selectedAddress.address}`
|
||||
})
|
||||
return myRef
|
||||
}
|
||||
|
||||
const validateReceiver = async () => {
|
||||
let lastRef = await getLastRef()
|
||||
let myTransaction = await makeTransactionRequest(lastRef)
|
||||
getTxnRequestResponse(myTransaction)
|
||||
}
|
||||
|
||||
const makeTransactionRequest = async (lastRef) => {
|
||||
const myName = name
|
||||
const myPrice = price
|
||||
const myLastRef = lastRef
|
||||
const myFee = sellFeeInput
|
||||
const mySellNameDialog1 = get("registernamepage.nchange26")
|
||||
const mySellNameDialog2 = get("registernamepage.nchange27")
|
||||
const mySellNameDialog3 = get("registernamepage.nchange28")
|
||||
|
||||
let myTxnrequest = await parentEpml.request('transaction', {
|
||||
type: 5,
|
||||
nonce: this.selectedAddress.nonce,
|
||||
params: {
|
||||
fee: myFee,
|
||||
name: myName,
|
||||
sellPrice: myPrice,
|
||||
lastReference: myLastRef,
|
||||
sellNameDialog1: mySellNameDialog1,
|
||||
sellNameDialog2: mySellNameDialog2,
|
||||
sellNameDialog3: mySellNameDialog3
|
||||
}
|
||||
})
|
||||
return myTxnrequest
|
||||
}
|
||||
|
||||
const getTxnRequestResponse = (txnResponse) => {
|
||||
if (txnResponse.success === false && txnResponse.message) {
|
||||
this.errorMessage = txnResponse.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
} else if (txnResponse.success === true && !txnResponse.data.error) {
|
||||
this.shadowRoot.getElementById("toSellName").value = ''
|
||||
this.shadowRoot.getElementById("toSellPrice").value = ''
|
||||
this.toSellName = ''
|
||||
this.toSellPrice = ''
|
||||
this.errorMessage = ''
|
||||
this.successMessage = this.renderSellSuccessText()
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
} else {
|
||||
this.errorMessage = txnResponse.data.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
}
|
||||
}
|
||||
validateReceiver()
|
||||
}
|
||||
|
||||
async createCancelSellName() {
|
||||
const name = this.shadowRoot.getElementById("toCancelSellName").value
|
||||
const cancelSellFeeInput = this.cancelSellFee
|
||||
this.isLoading = true
|
||||
this.btnDisable = true
|
||||
|
||||
const getLastRef = async () => {
|
||||
let myRef = await parentEpml.request('apiCall', {
|
||||
type: 'api',
|
||||
url: `/addresses/lastreference/${this.selectedAddress.address}`
|
||||
})
|
||||
return myRef
|
||||
}
|
||||
|
||||
const validateReceiver = async () => {
|
||||
let lastRef = await getLastRef()
|
||||
let myTransaction = await makeTransactionRequest(lastRef)
|
||||
getTxnRequestResponse(myTransaction)
|
||||
}
|
||||
|
||||
const makeTransactionRequest = async (lastRef) => {
|
||||
const myName = name
|
||||
const myLastRef = lastRef
|
||||
const myFee = cancelSellFeeInput
|
||||
const myCancelSellNameDialog1 = get("registernamepage.nchange30")
|
||||
const myCancelSellNameDialog2 = get("registernamepage.nchange31")
|
||||
|
||||
let myTxnrequest = await parentEpml.request('transaction', {
|
||||
type: 6,
|
||||
nonce: this.selectedAddress.nonce,
|
||||
params: {
|
||||
fee: myFee,
|
||||
name: myName,
|
||||
lastReference: myLastRef,
|
||||
cancelSellNameDialog1: myCancelSellNameDialog1,
|
||||
cancelSellNameDialog2: myCancelSellNameDialog2
|
||||
}
|
||||
})
|
||||
return myTxnrequest
|
||||
}
|
||||
|
||||
const getTxnRequestResponse = (txnResponse) => {
|
||||
if (txnResponse.success === false && txnResponse.message) {
|
||||
this.errorMessage = txnResponse.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
} else if (txnResponse.success === true && !txnResponse.data.error) {
|
||||
this.shadowRoot.getElementById("toCancelSellName").value = ''
|
||||
this.toCancelSellName = ''
|
||||
this.errorMessage = ''
|
||||
this.successMessage = this.renderCancelSuccessText()
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
} else {
|
||||
this.errorMessage = txnResponse.data.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
}
|
||||
}
|
||||
validateReceiver()
|
||||
}
|
||||
|
||||
createBuyName() {
|
||||
const name = this.shadowRoot.getElementById("toBuyName").value
|
||||
const price = this.shadowRoot.getElementById("toBuyPrice").value
|
||||
const seller = this.shadowRoot.getElementById("toBuySeller").value
|
||||
const buyFeeInput = this.buyFee
|
||||
this.isLoading = true
|
||||
this.btnDisable = true
|
||||
|
||||
const getLastRef = async () => {
|
||||
let myRef = await parentEpml.request('apiCall', {
|
||||
type: 'api',
|
||||
url: `/addresses/lastreference/${this.selectedAddress.address}`
|
||||
})
|
||||
return myRef
|
||||
}
|
||||
|
||||
const validateReceiver = async () => {
|
||||
let lastRef = await getLastRef()
|
||||
let myTransaction = await makeTransactionRequest(lastRef)
|
||||
getTxnRequestResponse(myTransaction)
|
||||
}
|
||||
|
||||
const makeTransactionRequest = async (lastRef) => {
|
||||
const myName = name
|
||||
const myPrice = price
|
||||
const mySeller = seller
|
||||
const myLastRef = lastRef
|
||||
const myFee = buyFeeInput
|
||||
const myBuyNameDialog1 = get("registernamepage.nchange39")
|
||||
const myBuyNameDialog2 = get("registernamepage.nchange27")
|
||||
const myBuyNameDialog3 = get("registernamepage.nchange40")
|
||||
|
||||
let myTxnrequest = await parentEpml.request('transaction', {
|
||||
type: 7,
|
||||
nonce: this.selectedAddress.nonce,
|
||||
params: {
|
||||
fee: myFee,
|
||||
name: myName,
|
||||
sellPrice: myPrice,
|
||||
recipient: mySeller,
|
||||
lastReference: myLastRef,
|
||||
buyNameDialog1: myBuyNameDialog1,
|
||||
buyNameDialog2: myBuyNameDialog2,
|
||||
buyNameDialog3: myBuyNameDialog3
|
||||
}
|
||||
})
|
||||
return myTxnrequest
|
||||
}
|
||||
|
||||
const getTxnRequestResponse = (txnResponse) => {
|
||||
if (txnResponse.success === false && txnResponse.message) {
|
||||
this.errorMessage = txnResponse.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
} else if (txnResponse.success === true && !txnResponse.data.error) {
|
||||
this.shadowRoot.getElementById("toBuyName").value = ''
|
||||
this.shadowRoot.getElementById("toBuyPrice").value = ''
|
||||
this.shadowRoot.getElementById("toBuySeller").value = ''
|
||||
this.toBuyName = ''
|
||||
this.toBuyPrice = ''
|
||||
this.toBuySeller = ''
|
||||
this.errorMessage = ''
|
||||
this.successMessage = this.renderBuySuccessText()
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
} else {
|
||||
this.errorMessage = txnResponse.data.message
|
||||
this.isLoading = false
|
||||
this.btnDisable = false
|
||||
throw new Error(txnResponse)
|
||||
}
|
||||
}
|
||||
validateReceiver()
|
||||
}
|
||||
|
||||
_textMenu(event) {
|
||||
|
||||
const getSelectedText = () => {
|
||||
var text = "";
|
||||
var text = ""
|
||||
if (typeof window.getSelection != "undefined") {
|
||||
text = window.getSelection().toString();
|
||||
text = window.getSelection().toString()
|
||||
} else if (typeof this.shadowRoot.selection != "undefined" && this.shadowRoot.selection.type == "Text") {
|
||||
text = this.shadowRoot.selection.createRange().text;
|
||||
text = this.shadowRoot.selection.createRange().text
|
||||
}
|
||||
return text;
|
||||
return text
|
||||
}
|
||||
|
||||
const checkSelectedTextAndShowMenu = () => {
|
||||
@ -414,10 +1169,14 @@ class NameRegistration extends LitElement {
|
||||
parentEpml.request('openCopyTextMenu', textMenuObject)
|
||||
}
|
||||
}
|
||||
|
||||
checkSelectedTextAndShowMenu()
|
||||
}
|
||||
|
||||
round(number) {
|
||||
let result = (Math.round(parseFloat(number) * 1e8) / 1e8).toFixed(8)
|
||||
return result
|
||||
}
|
||||
|
||||
isEmptyArray(arr) {
|
||||
if (!arr) { return true }
|
||||
return arr.length === 0
|
||||
|
@ -62,6 +62,7 @@ class MultiWallet extends LitElement {
|
||||
arrrMemo: { type: String },
|
||||
errorMessage: { type: String },
|
||||
arrrWalletAddress: { type: String },
|
||||
unusedWalletAddress: { type: String },
|
||||
successMessage: { type: String },
|
||||
sendMoneyLoading: { type: Boolean },
|
||||
btnDisable: { type: Boolean },
|
||||
@ -357,8 +358,8 @@ class MultiWallet extends LitElement {
|
||||
.wallet-address {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 18px;
|
||||
color: var(--black);
|
||||
font-size: 18px;
|
||||
color: var(--black);
|
||||
margin: 4px 0 20px;
|
||||
}
|
||||
|
||||
@ -366,7 +367,7 @@ class MultiWallet extends LitElement {
|
||||
display: inline-block;
|
||||
font-weight: 600;
|
||||
font-size: 32px;
|
||||
color: var(--black);
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
#transactions {
|
||||
@ -505,6 +506,13 @@ class MultiWallet extends LitElement {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.unused-address-dialog {
|
||||
min-height: 150px;
|
||||
min-width: 550px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.btn-clear-success {
|
||||
--mdc-icon-button-size: 32px;
|
||||
color: red;
|
||||
@ -561,6 +569,12 @@ class MultiWallet extends LitElement {
|
||||
width: 185px;
|
||||
}
|
||||
|
||||
.unused-pos {
|
||||
margin-top: -44px;
|
||||
margin-left: 410px;
|
||||
width: 185px;
|
||||
}
|
||||
|
||||
@media (max-width: 863px) {
|
||||
.wallet {
|
||||
width: 100%;
|
||||
@ -673,6 +687,7 @@ class MultiWallet extends LitElement {
|
||||
this.arrrRecipient = ''
|
||||
this.arrrMemo = ''
|
||||
this.arrrWalletAddress = ''
|
||||
this.unusedWalletAddress = ''
|
||||
this.errorMessage = ''
|
||||
this.successMessage = ''
|
||||
this.myElementId = ''
|
||||
@ -799,7 +814,7 @@ class MultiWallet extends LitElement {
|
||||
${translate("walletpage.wchange2")}
|
||||
<div class="wallet-address" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
||||
<span>${this.getSelectedWalletAddress()}</span>
|
||||
<button-icon-copy
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
@ -822,6 +837,9 @@ class MultiWallet extends LitElement {
|
||||
<div class="book-pos" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
||||
${this.renderAddressbookButton()}
|
||||
</div>
|
||||
<div class="unused-pos" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
||||
${this.renderUnusedAddressButton()}
|
||||
</div>
|
||||
<div class="qrcode-pos" ?hidden="${this.getSelectedWalletAddress().length < 1}">
|
||||
<qortal-qrcode-generator data="${this.getSelectedWalletAddress()}" mode="octet" format="html" auto></qortal-qrcode-generator>
|
||||
</div>
|
||||
@ -1968,6 +1986,171 @@ class MultiWallet extends LitElement {
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="btcUnusedAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="unused-address-dialog">
|
||||
<div style="text-align: center;">
|
||||
<img src="/img/btc.png" width="32" height="32">
|
||||
<h2>BTC</h2>
|
||||
<hr />
|
||||
</div>
|
||||
<p>
|
||||
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
|
||||
buttonSize="24px"
|
||||
iconSize="16px"
|
||||
color="var(--copybutton)"
|
||||
offsetLeft="4px"
|
||||
>
|
||||
</button-icon-copy>
|
||||
<br />
|
||||
<span>${translate("walletpage.wchange38")}</span>
|
||||
</p>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
dialogAction="cancel"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="ltcUnusedAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="unused-address-dialog">
|
||||
<div style="text-align: center;">
|
||||
<img src="/img/ltc.png" width="32" height="32">
|
||||
<h2>LTC</h2>
|
||||
<hr />
|
||||
</div>
|
||||
<p>
|
||||
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
|
||||
buttonSize="24px"
|
||||
iconSize="16px"
|
||||
color="var(--copybutton)"
|
||||
offsetLeft="4px"
|
||||
>
|
||||
</button-icon-copy>
|
||||
<br />
|
||||
<span>${translate("walletpage.wchange38")}</span>
|
||||
</p>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
dialogAction="cancel"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="dogeUnusedAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="unused-address-dialog">
|
||||
<div style="text-align: center;">
|
||||
<img src="/img/doge.png" width="32" height="32">
|
||||
<h2>DOGE</h2>
|
||||
<hr />
|
||||
</div>
|
||||
<p>
|
||||
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
|
||||
buttonSize="24px"
|
||||
iconSize="16px"
|
||||
color="var(--copybutton)"
|
||||
offsetLeft="4px"
|
||||
>
|
||||
</button-icon-copy>
|
||||
<br />
|
||||
<span>${translate("walletpage.wchange38")}</span>
|
||||
</p>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
dialogAction="cancel"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="dgbUnusedAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="unused-address-dialog">
|
||||
<div style="text-align: center;">
|
||||
<img src="/img/dgb.png" width="32" height="32">
|
||||
<h2>DGB</h2>
|
||||
<hr />
|
||||
</div>
|
||||
<p>
|
||||
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
|
||||
buttonSize="24px"
|
||||
iconSize="16px"
|
||||
color="var(--copybutton)"
|
||||
offsetLeft="4px"
|
||||
>
|
||||
</button-icon-copy>
|
||||
<br />
|
||||
<span>${translate("walletpage.wchange38")}</span>
|
||||
</p>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
dialogAction="cancel"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="rvnUnusedAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div class="unused-address-dialog">
|
||||
<div style="text-align: center;">
|
||||
<img src="/img/rvn.png" width="32" height="32">
|
||||
<h2>RVN</h2>
|
||||
<hr />
|
||||
</div>
|
||||
<p>
|
||||
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
|
||||
<button-icon-copy
|
||||
title="${translate("walletpage.wchange3")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
|
||||
buttonSize="24px"
|
||||
iconSize="16px"
|
||||
color="var(--copybutton)"
|
||||
offsetLeft="4px"
|
||||
>
|
||||
</button-icon-copy>
|
||||
<br />
|
||||
<span>${translate("walletpage.wchange38")}</span>
|
||||
</p>
|
||||
</div>
|
||||
<mwc-button
|
||||
slot="primaryAction"
|
||||
dialogAction="cancel"
|
||||
class="red"
|
||||
>
|
||||
${translate("general.close")}
|
||||
</mwc-button>
|
||||
</mwc-dialog>
|
||||
|
||||
<mwc-dialog id="addQortAddressDialog" scrimClickAction="" escapeKeyAction="">
|
||||
<div style="text-align:center">
|
||||
<img src="/img/qort.png" width="32" height="32">
|
||||
@ -3846,7 +4029,7 @@ class MultiWallet extends LitElement {
|
||||
renderCAB() {
|
||||
return html`
|
||||
<span>${this.selectedTransaction.aTAddress}</span>
|
||||
<button-icon-copy
|
||||
<button-icon-copy
|
||||
title="${translate("blockpage.bcchange8")}"
|
||||
onSuccessMessage="${translate("walletpage.wchange4")}"
|
||||
onErrorMessage="${translate("walletpage.wchange39")}"
|
||||
@ -4115,7 +4298,7 @@ class MultiWallet extends LitElement {
|
||||
|
||||
const getName = async (recipient)=> {
|
||||
try {
|
||||
|
||||
|
||||
const getNames = await parentEpml.request("apiCall", {
|
||||
type: "api",
|
||||
url: `/names/address/${recipient}`,
|
||||
@ -4501,10 +4684,10 @@ class MultiWallet extends LitElement {
|
||||
this.balance = this.wallets.get(this._selectedWallet).balance
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
const txsQort = await parentEpml.request('apiCall', {
|
||||
url: `/transactions/search?address=${this.wallets.get('qort').wallet.address}&confirmationStatus=CONFIRMED&reverse=true&txType=PAYMENT&txType=REGISTER_NAME&txType=UPDATE_NAME&txType=SELL_NAME&txType=CANCEL_SELL_NAME&txType=BUY_NAME&txType=CREATE_POLL&txType=VOTE_ON_POLL&txType=ISSUE_ASSET&txType=TRANSFER_ASSET&txType=CREATE_ASSET_ORDER&txType=CANCEL_ASSET_ORDER&txType=MULTI_PAYMENT&txType=DEPLOY_AT&txType=MESSAGE&txType=PUBLICIZE&txType=AIRDROP&txType=AT&txType=CREATE_GROUP&txType=UPDATE_GROUP&txType=ADD_GROUP_ADMIN&txType=REMOVE_GROUP_ADMIN&txType=GROUP_BAN&txType=CANCEL_GROUP_BAN&txType=GROUP_KICK&txType=GROUP_INVITE&txType=CANCEL_GROUP_INVITE&txType=JOIN_GROUP&txType=LEAVE_GROUP&txType=GROUP_APPROVAL&txType=SET_GROUP&txType=UPDATE_ASSET&txType=ACCOUNT_FLAGS&txType=ENABLE_FORGING&txType=REWARD_SHARE&txType=ACCOUNT_LEVEL&txType=TRANSFER_PRIVS&txType=PRESENCE`,
|
||||
})
|
||||
})
|
||||
const pendingTxsQort = await parentEpml.request('apiCall', {
|
||||
url: `/transactions/unconfirmed?creator=${this.wallets.get('qort').wallet.base58PublicKey}&reverse=true&txType=PAYMENT&txType=REGISTER_NAME&txType=UPDATE_NAME&txType=SELL_NAME&txType=CANCEL_SELL_NAME&txType=BUY_NAME&txType=CREATE_POLL&txType=VOTE_ON_POLL&txType=ISSUE_ASSET&txType=TRANSFER_ASSET&txType=CREATE_ASSET_ORDER&txType=CANCEL_ASSET_ORDER&txType=MULTI_PAYMENT&txType=DEPLOY_AT&txType=MESSAGE&txType=PUBLICIZE&txType=AIRDROP&txType=AT&txType=CREATE_GROUP&txType=UPDATE_GROUP&txType=ADD_GROUP_ADMIN&txType=REMOVE_GROUP_ADMIN&txType=GROUP_BAN&txType=CANCEL_GROUP_BAN&txType=GROUP_KICK&txType=GROUP_INVITE&txType=CANCEL_GROUP_INVITE&txType=JOIN_GROUP&txType=LEAVE_GROUP&txType=GROUP_APPROVAL&txType=SET_GROUP&txType=UPDATE_ASSET&txType=ACCOUNT_FLAGS&txType=ENABLE_FORGING&txType=REWARD_SHARE&txType=ACCOUNT_LEVEL&txType=TRANSFER_PRIVS&txType=PRESENCE`,
|
||||
})
|
||||
@ -4638,6 +4821,70 @@ class MultiWallet extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
async getUnusedAddress(coin) {
|
||||
this.wallets.get(this._selectedWallet).unusedWalletAddress = ''
|
||||
let _url = ``
|
||||
let _body = null
|
||||
|
||||
switch (coin) {
|
||||
case 'qort':
|
||||
case 'arrr':
|
||||
_url = ``
|
||||
_body = null
|
||||
break
|
||||
case 'btc':
|
||||
case 'ltc':
|
||||
case 'doge':
|
||||
case 'dgb':
|
||||
case 'rvn':
|
||||
const walletName = `${coin}Wallet`
|
||||
_url = `/crosschain/${coin}/unusedaddress?apiKey=${this.getApiKey()}`
|
||||
_body = `${window.parent.reduxStore.getState().app.selectedAddress[walletName].derivedMasterPublicKey}`
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
if (_body === null) {
|
||||
this.unusedAddressString = ""
|
||||
} else {
|
||||
await parentEpml.request('apiCall', {
|
||||
url: _url,
|
||||
method: 'POST',
|
||||
body: _body,
|
||||
}).then((res) => {
|
||||
this.wallets.get(this._selectedWallet).unusedWalletAddress = res
|
||||
this.unusedAddressString = this.wallets.get(this._selectedWallet).unusedWalletAddress
|
||||
this.openUnusedAddressDialog(coin)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
openUnusedAddressDialog(coin) {
|
||||
switch (coin) {
|
||||
case 'qort':
|
||||
case 'arrr':
|
||||
break
|
||||
case 'btc':
|
||||
this.shadowRoot.querySelector("#btcUnusedAddressDialog").show();
|
||||
break
|
||||
case 'ltc':
|
||||
this.shadowRoot.querySelector("#ltcUnusedAddressDialog").show();
|
||||
break
|
||||
case 'doge':
|
||||
this.shadowRoot.querySelector("#dogeUnusedAddressDialog").show();
|
||||
break
|
||||
case 'dgb':
|
||||
this.shadowRoot.querySelector("#dgbUnusedAddressDialog").show();
|
||||
break
|
||||
case 'rvn':
|
||||
this.shadowRoot.querySelector("#rvnUnusedAddressDialog").show();
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
renderSendButton() {
|
||||
if ( this._selectedWallet === "qort" ) {
|
||||
return html`<vaadin-button theme="primary medium" style="width: 100%;" @click=${() => this.openSendQort()}><vaadin-icon icon="vaadin:coin-piles" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange17")} QORT</vaadin-button>`
|
||||
@ -4678,6 +4925,22 @@ class MultiWallet extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
renderUnusedAddressButton() {
|
||||
switch (this._selectedWallet) {
|
||||
case "qort":
|
||||
case "arrr":
|
||||
return html`<vaadin-button disabled theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange58")}</vaadin-button>`
|
||||
case "btc":
|
||||
case "ltc":
|
||||
case "doge":
|
||||
case "dgb":
|
||||
case "rvn":
|
||||
return html`<vaadin-button theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange58")}</vaadin-button>`
|
||||
default:
|
||||
return html``
|
||||
}
|
||||
}
|
||||
|
||||
renderExportAddressbookButton() {
|
||||
if ( this._selectedWallet === "qort" ) {
|
||||
return html`<vaadin-button theme="primary small" style="width: 100%;" @click=${() => this.exportQortAddressbook()}><vaadin-icon icon="vaadin:cloud-download" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange54")}</vaadin-button>`
|
||||
@ -5556,4 +5819,4 @@ class MultiWallet extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
window.customElements.define('multi-wallet', MultiWallet)
|
||||
window.customElements.define('multi-wallet', MultiWallet)
|
||||
|
Loading…
x
Reference in New Issue
Block a user