From ef8fbb95b863d696248961597d62b9859be80e56 Mon Sep 17 00:00:00 2001 From: Lex-Ai <12001684+Lex-Ai@users.noreply.github.com> Date: Sat, 18 Nov 2023 17:50:20 +0300 Subject: [PATCH 01/16] minor fix --- app/components/cards/PostSummary.jsx | 2 +- app/components/elements/EncryptedStub.jsx | 6 +++--- app/components/modules/Donate.jsx | 2 +- app/components/pages/Services.jsx | 2 +- app/locales/ru-RU.json | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/components/cards/PostSummary.jsx b/app/components/cards/PostSummary.jsx index 5e26ed06..c32423d4 100644 --- a/app/components/cards/PostSummary.jsx +++ b/app/components/cards/PostSummary.jsx @@ -302,7 +302,7 @@ class PostSummary extends React.Component { {isOnlyblog && {tt('g.for_followers')}} {isOnlyapp && {tt('g.only_app')}} - {isOnlySponsors && {tt('g.for_sponsors')}} + {isOnlySponsors && {tt('g.for_sponsors')}} {foreignApp && } {warn && {detransliterate(nsfwTitle)}} {worker_post && {tt('workers.worker_post')}} diff --git a/app/components/elements/EncryptedStub.jsx b/app/components/elements/EncryptedStub.jsx index 0800429d..a53c6d64 100644 --- a/app/components/elements/EncryptedStub.jsx +++ b/app/components/elements/EncryptedStub.jsx @@ -16,7 +16,7 @@ class EncryptedStub extends React.Component { {title} {'@' + author} - {'. '} + } @@ -24,10 +24,10 @@ class EncryptedStub extends React.Component { if (!sub) return null sub = sub.toJS() return
- {tt('poststub.for_sponsors2')} +
{tt('poststub.for_sponsors2')} {Asset(sub.cost).floatString} {sub.tip_cost ? tt('poststub.for_sponsors3') : null} - {tt('poststub.for_sponsors4')}{' '} + {tt('poststub.for_sponsors4')}{' '}
{tt('poststub.for_sponsors5')}{' '}
} diff --git a/app/components/modules/Donate.jsx b/app/components/modules/Donate.jsx index 51c6b599..15991ceb 100644 --- a/app/components/modules/Donate.jsx +++ b/app/components/modules/Donate.jsx @@ -196,7 +196,7 @@ class Donate extends React.Component { - } diff --git a/app/components/pages/Services.jsx b/app/components/pages/Services.jsx index ba834ce2..6460c98a 100644 --- a/app/components/pages/Services.jsx +++ b/app/components/pages/Services.jsx @@ -23,7 +23,7 @@ class Services extends React.Component {
Golos Wallet + DEX
-

Кошелек и торговля на внутренней бирже и обменнике, веб-клиентах dex.golos.app или gls.exchange

+

Кошелек и торговля на бирже/обменнике, веб-клиентах dex.golos.app или gls.exchange, витрина NFT-маркета

diff --git a/app/locales/ru-RU.json b/app/locales/ru-RU.json index fdabe2b5..edf6cab2 100644 --- a/app/locales/ru-RU.json +++ b/app/locales/ru-RU.json @@ -645,9 +645,9 @@ "install": "Установить приложение", "login_to_see_comment": "Авторизуйтесь, чтобы видеть комментарий.", "for_sponsors": "Этот пост доступен только спонсорам ", - "for_sponsors2": "Цена - ", + "for_sponsors2": "Оформите подписку за ", "for_sponsors3": " (TIP-баланс)", - "for_sponsors4": " в месяц.", + "for_sponsors4": " в месяц и получите доступ ко всему контенту.", "for_sponsors5": "Первый платеж спишется сейчас, а потом - автоматически раз в месяц.", "become_sponsor": "Стать спонсором", "sponsorship_expired": "Ваше спонсорство истекло. Продлите его, чтобы читать посты ", From ecb8cbf640889cdfadaf6289c55489528f7fc7f8 Mon Sep 17 00:00:00 2001 From: Lex-Ai <12001684+Lex-Ai@users.noreply.github.com> Date: Fri, 1 Dec 2023 19:09:20 +0300 Subject: [PATCH 02/16] minor fix --- app/assets/icons/copy_ok.svg | 22 ++++++++++++++++++++++ app/components/elements/Icon.jsx | 3 ++- app/components/modules/Referrals.jsx | 5 +++-- app/components/pages/Services.jsx | 3 +++ app/components/pages/app/AppUpdate.jsx | 2 +- app/locales/en.json | 4 ++-- app/locales/ru-RU.json | 2 +- package.json | 2 +- 8 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 app/assets/icons/copy_ok.svg diff --git a/app/assets/icons/copy_ok.svg b/app/assets/icons/copy_ok.svg new file mode 100644 index 00000000..978d0117 --- /dev/null +++ b/app/assets/icons/copy_ok.svg @@ -0,0 +1,22 @@ + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + + diff --git a/app/components/elements/Icon.jsx b/app/components/elements/Icon.jsx index e5d99b77..b013b9db 100644 --- a/app/components/elements/Icon.jsx +++ b/app/components/elements/Icon.jsx @@ -22,7 +22,8 @@ const icons = new Map([ ['vk', require('app/assets/icons/vk.svg')], ['link', require('app/assets/icons/link.svg')], ['clock', require('app/assets/icons/clock.svg')], - ['copy', require('app/assets/icons/copy.svg')], + ['copy', require('app/assets/icons/copy.svg')], + ['copy_ok', require('app/assets/icons/copy_ok.svg')], ['extlink', require('app/assets/icons/extlink.svg')], ['golos', require('app/assets/icons/golos.svg')], ['dropdown-arrow', require('app/assets/icons/dropdown-arrow.svg')], diff --git a/app/components/modules/Referrals.jsx b/app/components/modules/Referrals.jsx index e5c70b75..d1ecabc4 100644 --- a/app/components/modules/Referrals.jsx +++ b/app/components/modules/Referrals.jsx @@ -24,6 +24,7 @@ class Referrals extends React.Component { } state = { + copied_addr: false, } componentDidMount() { @@ -134,9 +135,9 @@ class Referrals extends React.Component { {refUrl} - + this.setState({copied_addr: true})}> - + {this.state.copied_addr ? : null}    diff --git a/app/components/pages/Services.jsx b/app/components/pages/Services.jsx index 6460c98a..cfa4c9ac 100644 --- a/app/components/pages/Services.jsx +++ b/app/components/pages/Services.jsx @@ -74,6 +74,9 @@ class Services extends React.Component {

однорукий бандит

{tt('services.developer')} @jackvote

Классическая слот-машина "однорукий бандит" с тремя барабанами... {tt('g.more_hint')}

+

лото голос

+ {tt('services.developer')} @m0ssa99 +

Голос Лото, ставки, билеты, джекпоты... {tt('g.more_hint')}

diff --git a/app/components/pages/app/AppUpdate.jsx b/app/components/pages/app/AppUpdate.jsx index e80fd9af..6b409992 100644 --- a/app/components/pages/app/AppUpdate.jsx +++ b/app/components/pages/app/AppUpdate.jsx @@ -13,7 +13,7 @@ class AppUpdate extends React.Component { appUpdaterUrl = (file) => { let url = new URL( - '/desktop-' + ($STM_Config.platform === 'linux' ? 'linux' : 'win') + '/' + file, + '/desktop-' + ($STM_Config.platform === 'linux' ? 'linux' : 'windows') + '/' + file, $STM_Config.app_updater.host ) return url.toString() diff --git a/app/locales/en.json b/app/locales/en.json index e6f75d33..479d6007 100644 --- a/app/locales/en.json +++ b/app/locales/en.json @@ -1171,11 +1171,11 @@ "wallet_service": "Wallet", "save_and_restart": "Save and restart", "cancel": "Cancel", - "node_error_NODE": "Не удалось подключиться к ноде %(NODE)s. Возможно, это проблемы с интернетом. Или попробуйте задать другую ноду GOLOS в меню Настройки.", + "node_error_NODE": "Failed to connect to node %(NODE)s. Perhaps it's a problem with the Internet. Or try setting another GOLOS node in the Settings menu.", "to_save_click_button": "To save settings, click \"Save and restart\" button at bottom of the window." }, "app_update": { - "notify_VERSION": "Доступна новая версия GOLOS Блогов - %(VERSION)s", + "notify_VERSION": "New version is available Golos Desktop - %(VERSION)s", "download": "Download" } } \ No newline at end of file diff --git a/app/locales/ru-RU.json b/app/locales/ru-RU.json index 4a7d7eec..ed95bfeb 100644 --- a/app/locales/ru-RU.json +++ b/app/locales/ru-RU.json @@ -1242,7 +1242,7 @@ "to_save_click_button": "Чтобы сохранить настройки, нажмите кнопку \"Сохранить и перезапустить\" внизу окна." }, "app_update": { - "notify_VERSION": "Доступна новая версия GOLOS Блогов - %(VERSION)s", + "notify_VERSION": "Доступна новая версия Golos Desktop - %(VERSION)s", "download": "Скачать" } } diff --git a/package.json b/package.json index be5680ff..090651c2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "https://github.com/golos-blockchain/ui-blogs.git" }, - "version": "1.5.0", + "version": "1.6.0", "description": "Golos Blogs — децентрализованная платформа блогов, работающая на блокчейне Golos.", "main": "dist/electron/electron.js", "scripts": { From a93cc6daeaf5fbd553125ac6e340419ec025ce49 Mon Sep 17 00:00:00 2001 From: 1aerostorm Date: Fri, 1 Dec 2023 15:49:56 +0000 Subject: [PATCH 03/16] Use Notify WS --- app/components/App.jsx | 2 + .../elements/MarkNotificationRead.jsx | 6 +- app/components/elements/NotifyPolling.jsx | 88 +++++++++++ app/redux/PollDataSaga.js | 31 ---- app/redux/RootSaga.js | 2 - app/utils/NotifyApiClient.js | 142 ++++++++++++++++++ 6 files changed, 235 insertions(+), 36 deletions(-) create mode 100644 app/components/elements/NotifyPolling.jsx delete mode 100644 app/redux/PollDataSaga.js diff --git a/app/components/App.jsx b/app/components/App.jsx index 1d217e0d..2f0c2721 100644 --- a/app/components/App.jsx +++ b/app/components/App.jsx @@ -27,6 +27,7 @@ import MiniHeader from '@modules/MiniHeader'; import PageViewsCounter from '@elements/PageViewsCounter'; import ChainFailure from 'app/components/elements/ChainFailure' import DialogManager from 'app/components/elements/common/DialogManager'; +import NotifyPolling from 'app/components/elements/NotifyPolling' import { init as initAnchorHelper } from 'app/utils/anchorHelper'; import { authRegisterUrl, } from 'app/utils/AuthApiClient'; import { APP_ICON, VEST_TICKER, } from 'app/client_config'; @@ -400,6 +401,7 @@ class App extends React.Component {