Author SHA1 Message Date
waozi 57eca2a92c Add X live stream detection 2026-09-09 13:34:47 -03:00
sa8ab 6e8bc383e6 Update template and i18n dir 2026-09-08 20:14:31 +03:30
sa8ab 3fb3bfd132 Update nest cli 2026-09-07 20:01:26 +03:30
sa8ab 8922357e96 Update nest cli 2026-09-07 19:36:20 +03:30
sa8ab b78d0cb0dd Update dockerfile 2026-09-07 19:31:37 +03:30
sa8ab 2c2877dea1 Update nest cli 2026-09-07 19:25:31 +03:30
sa8ab a4bf90b83b Update tip page 2026-09-07 18:57:06 +03:30
sa8ab 057464127c Add a test ad 2026-09-07 18:28:54 +03:30
sa8ab d5ee4ecdeb Update tip page ad 2026-09-07 17:34:18 +03:30
sa8ab ad14c079e1 Update tip create page 2026-09-07 16:56:40 +03:30
sa8ab ff452a5d86 Update ad create page 2026-09-06 14:35:07 +03:30
sa8ab ceb966d2cb Update create ad page 2026-09-05 18:08:42 +03:30
sa8ab 5b8c10f7ef Update ad create page 2026-09-05 18:06:24 +03:30
sa8ab 3e4b3bde70 Update ad create page 2026-09-05 13:20:44 +03:30
sa8ab c6a54e9452 Add ad create page 2026-09-05 13:19:40 +03:30
sa8ab fbdc844203 Update tip page 2026-09-02 19:08:06 +03:30
sa8ab 32281b87dd Update ad on tip page 2026-09-02 14:01:32 +03:30
sa8ab 35dd3ddb90 Merge pull request #163 from XMRChat/translations
Add localization for "donate" & Tip swap payment section and wallet guides section in multiple languages
2026-08-31 14:52:18 +03:30
Ehsan 1c9f153db0 Add wallet guides localization in multiple languages 2026-08-27 15:25:32 +03:30
Ehsan 1fb325c0f7 Add localization for swap status messages and related text in multiple languages 2026-08-26 17:36:06 +03:30
Ehsan 6214ed4f74 Add localization for "donate" in multiple languages 2026-08-23 18:22:27 +03:30
sa8ab 5cb16557f1 Merge branch 'dev' of https://github.com/sa8ab/xmrchat into dev 2026-08-22 20:38:02 +03:30
sa8ab f6a33406f3 Merge pull request #162 from XMRChat/translations
Add localization for recovery code instructions in multiple languages
2026-08-22 20:37:54 +03:30
sa8ab cc7e5d4a09 Update private template in OBS message 2026-08-22 20:36:28 +03:30
Ehsan 7962fca4bd Merge branch 'dev' into translations 2026-08-22 12:46:23 +03:30
Ehsan 0c66f21cba Add localization for recovery code instructions in multiple languages 2026-08-22 12:38:27 +03:30
sa8ab 8f646c6111 Update missing translations 2026-08-22 02:14:01 +03:30
sa8ab aee9024702 Merge pull request #160 from XMRChat/translations
Add localization for fans tipping stats in multiple languages
2026-08-21 19:26:00 +03:30
Ehsan dbd6b6de68 Add localization for fans tipping stats in multiple languages 2026-08-21 14:06:32 +03:30
sa8ab c35d2338cd Update donate button 2026-08-20 22:10:45 +03:30
Ehsan a0d9c2d456 Add localization for SuperDM feature across multiple languages
- Implemented translations for the SuperDM feature in German, English, Spanish, Persian, Finnish, French, Korean, Pidgin, and Russian.
- Added strings for tip goals, SuperDM management, recovery codes, and user guidance.
- Enhanced user experience by providing clear instructions and alerts related to SuperDM functionality.
2026-08-20 21:57:47 +03:30
sa8ab ca5f9af1cc Update casl for tip replies and tip goal 2026-08-19 21:30:39 +03:30
sa8ab 75277a2445 Update tips and webhooks controllers 2026-08-19 19:16:39 +03:30
sa8ab f2ee544c95 Update upload url 2026-08-19 18:59:33 +03:30
sa8ab 140a23d930 Update auth token logs 2026-08-18 17:20:11 +03:30
sa8ab 3e5a5c801e Expose tip source on base tip dto 2026-08-16 18:47:31 +03:30
sa8ab 405b42c4bd Merge pull request #158 from XMRChat/master
Master to dev
2026-08-15 04:29:35 +03:30
sa8ab 7ad6e510ef Merge pull request #157 from XMRChat/update-unused-port-mappings
Update unused port mappings
2026-08-15 04:26:59 +03:30
sa8ab 5994b690f6 Update port mappings 2026-08-15 04:23:36 +03:30
sa8ab 315fb64d3d Update port mappings 2026-08-15 04:22:26 +03:30
sa8ab 579ee7d550 Update unused port mappings 2026-08-15 04:21:41 +03:30
sa8ab 4439443c36 Merge pull request #156 from XMRChat/user-token-version
Add user token version
2026-08-15 04:11:15 +03:30
sa8ab bf28b2da56 Add user token version 2026-08-15 04:10:27 +03:30
sa8ab 8e172fd6c6 Update donate button style 2026-08-14 03:10:28 +03:30
sa8ab cc3f59d061 Update donate button 2026-08-13 20:57:41 +03:30
sa8ab 99f822d213 Add donate button 2026-08-13 20:36:05 +03:30
sa8ab 294df0419c Merge pull request #155 from XMRChat/dev
Dev
2026-08-12 03:40:15 +03:30
sa8ab ab67e0a29e Update Pixelfed icon 2026-08-12 00:46:08 +03:30
sa8ab 181dd3c2c7 Update Pixelfed icon color 2026-08-12 00:12:49 +03:30
sa8ab 2086656c47 Merge pull request #154 from waozixyz/pixelfed
Add Pixelfed content link
2026-08-11 20:07:03 +03:30
waozi 387dbd8028 Use official Pixelfed logo icon
- Downloaded official Pixelfed logo from brand-assets repository
- Updated icon reference from i-simple-icons-pixelfed to i-icon-pixelfed
2026-08-11 03:43:14 -05:00
waozi 9dba180289 Add Pixelfed content link support 2026-08-11 03:42:21 -05:00
sa8ab 15181a4240 Add Pixelfed icon 2026-08-11 03:21:37 +03:30
sa8ab c0d2fc1283 Add email reminder for updating twitch token 2026-08-10 03:53:15 +03:30
sa8ab 9e4ffa71c8 Update twtich service log 2026-08-08 23:56:52 +03:30
sa8ab d9e01ea822 Merge pull request #153 from XMRChat/dev
Dev
2026-08-07 03:14:15 +03:30
sa8ab a76412be52 Update tip source icon 2026-08-07 03:12:49 +03:30
sa8ab 8b02deb5ce Update displaying tip source on My xmrchats 2026-08-07 03:07:00 +03:30
sa8ab 083f46390f Add tip source on My xmrchats 2026-08-07 03:06:18 +03:30
sa8ab c8db0f7b98 Update recent tip item 2026-08-07 02:21:56 +03:30
sa8ab 47f11de99d Add tip source icon on recent tips 2026-08-07 02:18:58 +03:30
sa8ab 10ee4378cd Merge pull request #152 from XMRChat/dev
Dev
2026-08-06 19:48:03 +03:30
sa8ab 3c16343444 Add links query filter on getting pages list 2026-08-06 04:26:58 +03:30
sa8ab aaf52c53a5 Add source in creating tip 2026-08-05 23:17:17 +03:30
sa8ab 216003eaf3 Add source in dto 2026-08-05 23:16:29 +03:30
sa8ab 4fcd7b0afd Add tip source 2026-08-05 23:12:39 +03:30
sa8ab b81e4b8721 Add only making tip private 2026-08-05 00:48:56 +03:30
sa8ab e1a174aede Merge pull request #151 from XMRChat/dev
Dev
2026-08-04 02:15:01 +03:30
sa8ab 6eefd85281 Update element icon 2026-08-03 19:11:57 +03:30
sa8ab 4f1b2ae3dd Merge branch 'master' into dev 2026-08-03 19:01:09 +03:30
sa8ab 32dbc07219 Merge pull request #150 from XMRChat/homepage-totals
Homepage totals
2026-08-02 03:46:45 +03:30
sa8ab c25024700d Add test page paths on total 2026-08-02 03:36:51 +03:30
sa8ab e1fb5098cd Update total tips format and space 2026-08-02 03:36:09 +03:30
sa8ab 8837db44cb Add total tips on home 2026-08-02 03:36:09 +03:30
sa8ab 840cb69364 Merge branch 'master' into dev 2026-08-02 03:29:47 +03:30
sa8ab 6fc740fe7a Merge pull request #149 from XMRChat/tip-goal
Update tip goal % decimal
2026-07-31 20:06:37 +03:30
sa8ab a4b6a2a7c6 Update tip goal % decimal 2026-07-31 19:59:20 +03:30
sa8ab e47d2e470f Update tip goal % decimal 2026-07-31 19:55:47 +03:30
sa8ab 87cfd0fce8 Merge pull request #148 from XMRChat/tip-goal
Updated Deactivated word
2026-07-30 02:18:24 +03:30
sa8ab adcfc10c0b Updated Deactivated word 2026-07-30 02:11:28 +03:30
sa8ab 34b4af3ec1 Updated Deactivated word 2026-07-30 02:10:59 +03:30
sa8ab dbaa743362 Merge pull request #147 from XMRChat/temp-dev
Temp dev
2026-07-30 01:39:42 +03:30
sa8ab 24c399b269 Update displaying tip goal 2026-07-29 17:41:06 +03:30
sa8ab e1dfb25719 Add displaying tip goal based on tip toggle 2026-07-29 17:41:06 +03:30
sa8ab 461045a66f Update interval of tip goal 2026-07-29 17:41:06 +03:30
sa8ab e77a452b3a Update time on tip goal 2026-07-29 17:41:06 +03:30
sa8ab 8f663cc55f Add updating tip goal value 2026-07-29 17:41:06 +03:30
sa8ab cff386b998 Add pending on tip goal 2026-07-29 17:41:06 +03:30
sa8ab 3736d861b5 Remove min from star time 2026-07-29 17:41:06 +03:30
sa8ab 06d4681454 Add overflow of tip goal title 2026-07-29 17:41:06 +03:30
sa8ab 4206e26d06 Display name close to progress and display information if description has some value 2026-07-29 17:41:06 +03:30
sa8ab 8ac3bac1aa Add tip goal 2026-07-29 17:41:06 +03:30
sa8ab 6b147677ed Add tip goal on page 2026-07-29 17:41:06 +03:30
sa8ab 0e1ebc15d7 Add tip goal on page dto 2026-07-29 17:41:06 +03:30
sa8ab e0ec880965 Delete exceeded 2026-07-29 17:41:06 +03:30
sa8ab 2042903653 Update progress bar 2026-07-29 17:41:06 +03:30
sa8ab d891443de3 Update displaying tip goal 2026-07-29 17:41:06 +03:30
sa8ab 363a010c3b Update logs 2026-07-29 17:41:06 +03:30
sa8ab 08d28eecc8 Update tip goal on tip page 2026-07-29 17:41:06 +03:30
sa8ab 8b7cb419d3 Add tip goal component 2026-07-29 17:41:06 +03:30
sa8ab 3864147e0c Update returning page with empty tip goal 2026-07-29 17:41:06 +03:30
sa8ab 298713b06e Add tip goal 2026-07-29 17:41:06 +03:30
sa8ab fe15b88192 Add getting tips in tip goal 2026-07-29 17:41:06 +03:30
sa8ab 3cd43d247a Add optional after date 2026-07-29 17:41:05 +03:30
sa8ab 66685468a6 Add validations for end and start 2026-07-29 17:41:05 +03:30
sa8ab 327b8b652f Update tip goal form 2026-07-29 17:41:05 +03:30
sa8ab 4855df1b29 Add tip goal form 2026-07-29 17:41:05 +03:30
sa8ab 1cc3a0436b Add getting tip goal 2026-07-29 17:41:05 +03:30
sa8ab f79c6a255a Add tip goal page 2026-07-29 17:41:05 +03:30
sa8ab 9a965ed87f Add updating tip goal 2026-07-29 17:41:05 +03:30
sa8ab c1e1221ac1 Add creating tip goal 2026-07-29 17:41:05 +03:30
sa8ab 830440fbdb Add creating tip goal 2026-07-29 17:41:05 +03:30
sa8ab c8c674dd98 Update 2026-07-29 17:41:05 +03:30
sa8ab d9e51551ce Add create dto 2026-07-29 17:41:05 +03:30
sa8ab dd760e30df Add tip goal entity 2026-07-29 17:41:05 +03:30
sa8ab b36927b559 Add tip goals 2026-07-29 17:41:05 +03:30
waozi 7c9b9c9935 Add Kick live stream support 2026-07-29 17:30:52 +03:30
waozi fed296457c Add PeerTube live stream support 2026-07-29 17:26:34 +03:30
sa8ab 9ffeb489de Merge branch 'pr-133' into temp-dev 2026-07-29 17:13:01 +03:30
sa8ab d2df515aee Merge pull request #139 from waozixyz/social
Add GitLab and Matrix content links
2026-07-29 03:40:13 +03:30
sa8ab c4dcd179f8 Merge pull request #145 from XMRChat/tip-goal
Tip goal
2026-07-29 03:28:25 +03:30
sa8ab eba76ff429 Update displaying tip goal 2026-07-29 03:27:30 +03:30
sa8ab 10f47bf9ef Add displaying tip goal based on tip toggle 2026-07-28 20:00:47 +03:30
sa8ab 038d10a0bd Merge pull request #144 from XMRChat/tip-goal
Tip goal
2026-07-28 03:10:30 +03:30
sa8ab ccec9285dd Update interval of tip goal 2026-07-28 03:10:03 +03:30
sa8ab 57cd95d9ba Update time on tip goal 2026-07-28 03:09:22 +03:30
sa8ab ab9030dae2 Merge pull request #143 from XMRChat/tip-goal
Add updating tip goal value
2026-07-26 21:26:48 +03:30
sa8ab 5eb2ba96e3 Add updating tip goal value 2026-07-26 21:25:40 +03:30
sa8ab 5e17ffa4c6 Merge pull request #142 from XMRChat/tip-goal
Tip goal
2026-07-23 19:55:48 +03:30
sa8ab a65e763b66 Add pending on tip goal 2026-07-23 19:52:23 +03:30
sa8ab 54a53b46fd Remove min from star time 2026-07-23 19:50:03 +03:30
sa8ab b2ba00d152 Add overflow of tip goal title 2026-07-23 19:40:13 +03:30
sa8ab 3105309bdf Display name close to progress and display information if description has some value 2026-07-22 16:13:27 +03:30
sa8ab b6176d2ae2 Merge pull request #141 from XMRChat/tip-goal
Tip goal
2026-07-21 21:16:39 +03:30
sa8ab 023f168290 Add tip goal 2026-07-21 21:13:40 +03:30
sa8ab a3ad2e5778 Add tip goal on page 2026-07-21 20:05:50 +03:30
sa8ab 2a21a99303 Add tip goal on page dto 2026-07-21 20:03:58 +03:30
sa8ab 21b72d2732 Delete exceeded 2026-07-21 18:32:46 +03:30
sa8ab ca37005c20 Update progress bar 2026-07-21 02:34:00 +03:30
sa8ab 140c5dc6af Update displaying tip goal 2026-07-21 01:45:52 +03:30
sa8ab 7112075271 Update logs 2026-07-19 03:48:57 +03:30
sa8ab f6f51168a0 Update tip goal on tip page 2026-07-19 03:48:09 +03:30
sa8ab 6eeeec1207 Add tip goal component 2026-07-19 03:34:39 +03:30
sa8ab f78c4468b9 Update returning page with empty tip goal 2026-07-19 02:18:18 +03:30
sa8ab c77621e71f Add tip goal 2026-07-19 02:17:06 +03:30
sa8ab 3d6380f285 Add getting tips in tip goal 2026-07-17 03:04:46 +03:30
sa8ab 26b4085e95 Add optional after date 2026-07-16 23:56:06 +03:30
sa8ab f857f3bba2 Add validations for end and start 2026-07-16 23:55:02 +03:30
sa8ab 93b4603e8a Update tip goal form 2026-07-16 22:27:30 +03:30
sa8ab 12aa08e036 Add tip goal form 2026-07-16 01:48:07 +03:30
sa8ab 0efb46a5f3 Add getting tip goal 2026-07-16 00:44:45 +03:30
sa8ab 2a0ad2056f Add tip goal page 2026-07-16 00:13:49 +03:30
sa8ab 05930c53a0 Add updating tip goal 2026-07-15 22:19:58 +03:30
sa8ab ebc6b24b95 Add creating tip goal 2026-07-15 17:20:36 +03:30
sa8ab 80b7013c93 Add creating tip goal 2026-07-15 17:08:29 +03:30
waozi 13b259c58c Add GitLab and Matrix links and sort live streams 2026-07-11 18:29:04 -03:00
sa8ab 2f2dab4f43 Merge pull request #137 from waozixyz/dev
Add Kick live stream support
2026-07-12 00:49:54 +03:30
sa8ab e7331600bf Add sending email on failed Simplex and Signal 2026-07-11 03:32:35 +03:30
sa8ab 41f101a095 Merge pull request #140 from sa8ab/links-update
Links update
2026-07-11 02:19:04 +03:30
sa8ab 32d0873aeb Merge pull request #138 from sa8ab/links-update
Update github link to full link
2026-07-10 18:28:39 +03:30
sa8ab 66b916d8b1 Update github link to full link 2026-07-10 18:28:06 +03:30
sa8ab a3c72e957d Merge pull request #136 from sa8ab/simplex-update
Use version of Simplex instead of latest
2026-07-09 01:10:34 +03:30
sa8ab f81ad81faf Use version of SImplex instead of latest 2026-07-09 01:09:37 +03:30
sa8ab 92aae92add Update 2026-07-08 02:26:03 +03:30
sa8ab 950ae1be86 Add create dto 2026-07-07 02:39:27 +03:30
sa8ab 512c757681 Add tip goal entity 2026-07-06 21:01:21 +03:30
sa8ab e7b2ab0f20 Add tip goals 2026-07-05 21:44:35 +03:30
110 changed files with 3679 additions and 351 deletions

No files matched your search

+92
View File
@@ -0,0 +1,92 @@
<svg width="92" height="92" viewBox="0 0 92 92" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect width="92" height="92" fill="white"/>
<g clip-path="url(#clip0_2013_27)">
<path d="M45.2489 46.8386C38.6604 37.8265 26.0649 35.761 17.1128 42.2248C8.16065 48.6886 6.24419 61.2355 12.8311 70.246L13.3301 70.928C2.58947 56.8777 2.05973 37.1704 12.7679 22.7281L12.9591 22.4738C19.593 13.6577 32.1998 11.9648 41.1163 18.6927C50.0328 25.4206 51.8844 38.0225 45.2489 46.8386Z" fill="url(#paint0_linear_2013_27)"/>
<path d="M45.2488 46.8386C34.7625 50.3864 29.2464 61.7782 32.9271 72.2855C36.6077 82.7929 48.0951 88.4369 58.5814 84.8891L59.278 84.6542C46.237 89.3198 31.043 87.0762 19.5653 77.4452C17.2543 75.5079 15.1633 73.3223 13.3299 70.928L12.831 70.2476C6.24406 61.2339 8.16214 48.687 17.1126 42.2232C26.0631 35.7594 38.6603 37.8265 45.2488 46.8386Z" fill="url(#paint1_linear_2013_27)"/>
<path d="M45.249 46.8386C45.3154 57.9275 54.3793 66.9736 65.4941 67.04C76.6089 67.1064 85.5627 58.1721 85.4946 47.0816L85.493 46.8289C85.6113 56.0288 82.5803 65.279 76.2363 72.8396C71.7363 78.2181 65.8812 82.2969 59.2766 84.6542L58.5816 84.8908C48.0953 88.4369 36.6095 82.7945 32.9273 72.2872C29.245 61.7798 34.7627 50.3864 45.249 46.8386Z" fill="url(#paint2_linear_2013_27)"/>
<path d="M45.2488 46.8386C55.8387 50.3297 67.156 44.6257 70.5256 34.1005C73.8952 23.5738 68.0438 12.2111 57.4522 8.71998L56.5855 8.43324C61.8435 10.0398 66.7228 12.6918 70.9306 16.2303C75.4204 19.9792 79.0464 24.6546 81.5599 29.9361C84.0735 35.2176 85.4151 40.9803 85.4928 46.8289V47.0832C85.5625 58.1721 76.6071 67.108 65.4939 67.0416C54.3807 66.9752 45.3152 57.9275 45.2488 46.8386Z" fill="url(#paint3_linear_2013_27)"/>
<path d="M45.249 46.8386C51.8829 38.0225 50.0328 25.4222 41.118 18.6927C32.1999 11.9648 19.5914 13.6577 12.9575 22.4754L12.7664 22.7297C13.2416 22.0882 13.7389 21.458 14.2584 20.8392C24.8354 8.2356 41.6299 3.88266 56.5841 8.43486L57.4508 8.7216C68.0424 12.2127 73.8938 23.5754 70.5242 34.1021C67.1546 44.6289 55.8373 50.3313 45.2474 46.8402" fill="url(#paint4_linear_2013_27)"/>
<g opacity="0.544252">
<path d="M85.3777 46.442L85.376 46.7663C85.3289 57.9191 76.3292 66.9958 65.2778 67.0438C54.2249 67.0912 45.3044 58.0899 45.3523 46.9393C46.8629 47.4599 48.4311 47.7955 50.0225 47.9385C50.7303 54.2175 54.7245 59.8953 60.937 62.4053C70.0048 66.0689 80.3612 61.5957 84.0704 52.4153C84.8413 50.512 85.283 48.4933 85.3777 46.442Z" fill="url(#paint5_linear_2013_27)"/>
<path d="M85.3777 46.442L85.376 46.7663C85.3289 57.9191 76.3292 66.9958 65.2778 67.0438C54.2249 67.0912 45.3044 58.0899 45.3523 46.9393C46.8629 47.4599 48.4311 47.7955 50.0225 47.9385C50.7303 54.2175 54.7245 59.8953 60.937 62.4053C70.0048 66.0689 80.3612 61.5957 84.0704 52.4153C84.8413 50.512 85.283 48.4933 85.3777 46.442Z" fill="black" fill-opacity="0.499887"/>
</g>
<path opacity="0.1" d="M45.249 46.8386C51.8829 38.0225 50.0328 25.4222 41.118 18.6927C32.1999 11.9648 19.5914 13.6577 12.9575 22.4754L12.7664 22.7297C13.2416 22.0882 13.7389 21.458 14.2584 20.8392C24.8354 8.2356 41.6299 3.88266 56.5841 8.43486L57.4508 8.7216C68.0424 12.2127 73.8938 23.5754 70.5242 34.1021C67.1546 44.6289 55.8373 50.3313 45.2474 46.8402" fill="url(#paint6_linear_2013_27)"/>
<path opacity="0.180134" d="M12.8149 22.9954L13.0126 22.7362C19.7615 13.857 32.4121 12.0232 41.267 18.636C50.1235 25.2488 51.8294 37.8071 45.0821 46.6847C44.1886 45.3594 43.1376 44.1475 41.9523 43.0753C45.1663 37.6354 45.3931 30.6969 41.9425 24.954C36.9043 16.5705 25.9418 13.9088 17.4546 19.0086C15.6937 20.0649 14.1248 21.4124 12.8149 22.9938" fill="url(#paint7_linear_2013_27)"/>
<g opacity="0.180134">
<path d="M13.0851 23.2479L13.283 22.9891C20.0311 14.1113 32.6825 12.2777 41.5375 18.8903C50.3933 25.5042 52.1004 38.0615 45.3501 46.9387C44.457 45.6138 43.4065 44.4021 42.2217 43.3301C45.4352 37.8896 45.6622 30.9512 42.2113 25.2079C37.1743 16.8249 26.2112 14.1647 17.7254 19.2634C15.9643 20.3195 14.3953 21.6668 13.0851 23.2479Z" fill="url(#paint8_linear_2013_27)"/>
<path d="M13.0851 23.2479L13.283 22.9891C20.0311 14.1113 32.6825 12.2777 41.5375 18.8903C50.3933 25.5042 52.1004 38.0615 45.3501 46.9387C44.457 45.6138 43.4065 44.4021 42.2217 43.3301C45.4352 37.8896 45.6622 30.9512 42.2113 25.2079C37.1743 16.8249 26.2112 14.1647 17.7254 19.2634C15.9643 20.3195 14.3953 21.6668 13.0851 23.2479Z" fill="black" fill-opacity="0.772843"/>
</g>
<g opacity="0.584152">
<path d="M12.849 70.305L12.6625 70.0371C6.30602 60.8756 8.47007 48.2771 17.4953 41.899C26.5221 35.5204 38.9939 37.7769 45.3507 46.9401C43.8146 47.3795 42.3374 48.0036 40.9516 48.7986C36.7704 44.0612 30.2421 41.7028 23.7135 43.21C14.1843 45.41 8.2661 55.0129 10.4934 64.6606C10.9536 66.6618 11.7501 68.5704 12.849 70.305Z" fill="url(#paint9_linear_2013_27)"/>
<path d="M12.849 70.305L12.6625 70.0371C6.30602 60.8756 8.47007 48.2771 17.4953 41.899C26.5221 35.5204 38.9939 37.7769 45.3507 46.9401C43.8146 47.3795 42.3374 48.0036 40.9516 48.7986C36.7704 44.0612 30.2421 41.7028 23.7135 43.21C14.1843 45.41 8.2661 55.0129 10.4934 64.6606C10.9536 66.6618 11.7501 68.5704 12.849 70.305Z" fill="black" fill-opacity="0.503085"/>
</g>
<g opacity="0.562221">
<path d="M58.8542 84.6224L58.5454 84.7262C47.9866 88.3128 36.4727 82.7583 32.8293 72.3247C29.186 61.8894 34.7927 50.5243 45.3514 46.9394C45.351 48.5372 45.5442 50.1292 45.9271 51.6805C40.2206 54.3939 36.1541 60.0192 35.8035 66.7103C35.2916 76.4768 42.8913 84.8126 52.7791 85.3308C54.8297 85.4402 56.8839 85.2006 58.8542 84.6224Z" fill="url(#paint10_linear_2013_27)"/>
<path d="M58.8542 84.6224L58.5454 84.7262C47.9866 88.3128 36.4727 82.7583 32.8293 72.3247C29.186 61.8894 34.7927 50.5243 45.3514 46.9394C45.351 48.5372 45.5442 50.1292 45.9271 51.6805C40.2206 54.3939 36.1541 60.0192 35.8035 66.7103C35.2916 76.4768 42.8913 84.8126 52.7791 85.3308C54.8297 85.4402 56.8839 85.2006 58.8542 84.6224Z" fill="black"/>
</g>
<path d="M57.1428 8.61792L57.4522 8.71998C68.0438 12.2111 73.8952 23.5738 70.5256 34.1005C67.156 44.6273 55.8387 50.3297 45.2488 46.8386C46.2106 45.5623 47.014 44.1741 47.6415 42.7043C53.8315 43.9728 60.4654 41.9267 64.773 36.7946C71.0586 29.3037 70.0056 18.0706 62.4208 11.7073C60.8489 10.3863 59.0643 9.34165 57.1428 8.61792Z" fill="black" fill-opacity="0.496179"/>
<g filter="url(#filter0_d_2013_27)">
<path d="M42.0737 55.4473H49.4382C56.3735 55.4473 61.9965 49.9976 61.9965 43.2762C61.9965 36.5532 56.3751 31.1051 49.4382 31.1051H38.811C34.8096 31.1051 31.5664 34.2479 31.5664 38.1278V65.4572L42.0737 55.4473Z" fill="black"/>
</g>
<path d="M42.0753 55.4473H49.4382C56.3735 55.4473 61.9965 49.9976 61.9965 43.2762C61.9965 36.5532 56.3751 31.1051 49.4382 31.1051H38.811C34.8096 31.1051 31.5664 34.2479 31.5664 38.1278V65.4572L42.0753 55.4473Z" fill="white"/>
</g>
<defs>
<filter id="filter0_d_2013_27" x="28.5664" y="29.1051" width="36.4302" height="40.3521" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="1"/>
<feGaussianBlur stdDeviation="1.5"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.298687 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2013_27"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2013_27" result="shape"/>
</filter>
<linearGradient id="paint0_linear_2013_27" x1="36.6464" y1="57.0887" x2="4.86751" y2="32.0134" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF5C34"/>
<stop offset="1" stop-color="#EB0256"/>
</linearGradient>
<linearGradient id="paint1_linear_2013_27" x1="15.573" y1="74.0956" x2="47.8493" y2="52.2782" gradientUnits="userSpaceOnUse">
<stop stop-color="#A63FDB"/>
<stop offset="1" stop-color="#FF257E"/>
</linearGradient>
<linearGradient id="paint2_linear_2013_27" x1="46.5089" y1="50.7632" x2="69.5979" y2="77.9383" gradientUnits="userSpaceOnUse">
<stop stop-color="#00FFF0"/>
<stop offset="1" stop-color="#0087FF"/>
</linearGradient>
<linearGradient id="paint3_linear_2013_27" x1="87.824" y1="36.561" x2="45.0453" y2="43.7467" gradientUnits="userSpaceOnUse">
<stop stop-color="#17C934"/>
<stop offset="1" stop-color="#03FF6E"/>
</linearGradient>
<linearGradient id="paint4_linear_2013_27" x1="29.9204" y1="43.4826" x2="54.9566" y2="3.99871" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFB000"/>
<stop offset="1" stop-color="#FF7725"/>
</linearGradient>
<linearGradient id="paint5_linear_2013_27" x1="74.1241" y1="17.2264" x2="50.3634" y2="69.2133" gradientUnits="userSpaceOnUse">
<stop stop-color="#9EE85D"/>
<stop offset="1" stop-color="#0ED061"/>
</linearGradient>
<linearGradient id="paint6_linear_2013_27" x1="29.9204" y1="43.4826" x2="54.9566" y2="3.99871" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFB000"/>
<stop offset="1" stop-color="#FF7725"/>
</linearGradient>
<linearGradient id="paint7_linear_2013_27" x1="47.1639" y1="25.5825" x2="23.5042" y2="40.8311" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF5C34"/>
<stop offset="1" stop-color="#EB0256"/>
</linearGradient>
<linearGradient id="paint8_linear_2013_27" x1="47.4334" y1="25.8354" x2="23.7738" y2="41.084" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF5C34"/>
<stop offset="1" stop-color="#EB0256"/>
</linearGradient>
<linearGradient id="paint9_linear_2013_27" x1="26.8224" y1="38.229" x2="42.0874" y2="89.6018" gradientUnits="userSpaceOnUse">
<stop stop-color="#A63FDB"/>
<stop offset="1" stop-color="#FF257E"/>
</linearGradient>
<linearGradient id="paint10_linear_2013_27" x1="48.3503" y1="40.6101" x2="67.7713" y2="83.6562" gradientUnits="userSpaceOnUse">
<stop stop-color="#21EFE3"/>
<stop offset="1" stop-color="#2598FF"/>
</linearGradient>
<clipPath id="clip0_2013_27">
<rect width="81" height="81" fill="white" transform="translate(5 6)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

@@ -3,6 +3,7 @@ import useVuelidate from "@vuelidate/core";
const { required, minLength, maxLength, sameAs } = useValidations();
const { updatePassword } = useServices();
const authStore = useAuthStore();
const toast = useToast();
const { t } = useI18n();
@@ -22,11 +23,15 @@ const handleSubmit = async () => {
try {
loadingSubmit.value = true;
await updatePassword({
const res = await updatePassword({
currentPassword: state.oldPassword,
password: state.password,
});
if (res.access_token) {
authStore.state.token = res.access_token;
}
toast.add({ description: "Password is updated." });
v.value.$reset();
+50
View File
@@ -0,0 +1,50 @@
<script setup lang="ts">
defineProps<{
reserved?: boolean;
bookedThrough?: string;
price?: string;
}>();
const features = [
"One advertiser only",
"No impression sharing or rotation",
"Creative size: 4:1 aspect ratio",
];
</script>
<template>
<div class="flex flex-col gap-4 border border-border rounded-xl p-6">
<div class="flex items-start justify-between gap-3">
<div>
<p class="text-primary text-sm font-medium">4:1</p>
<h3 class="text-xl font-bold mt-1">Tip page banner</h3>
</div>
<UBadge v-if="reserved" size="xs" color="red" variant="outline">
Reserved
</UBadge>
<UBadge v-else size="xs" color="green" variant="outline">
Available
</UBadge>
</div>
<p class="text-pale">
The high-visibility banner shown on creator tip pages across XMRChat.
</p>
<ul class="flex flex-col gap-2">
<li
v-for="feature in features"
:key="feature"
class="flex items-center gap-2 text-sm"
>
<UIcon name="i-heroicons-check-16-solid" class="shrink-0" />
<span>{{ feature }}</span>
</li>
</ul>
<p v-if="reserved && bookedThrough" class="text-sm text-pale pt-2">
Currently booked through {{ bookedThrough }}.
</p>
<p v-else class="text-sm text-pale pt-2">Available to book now.</p>
</div>
</template>
+48
View File
@@ -0,0 +1,48 @@
<script setup lang="ts">
const rules = [
{
number: "01",
title: "No scams or deceptive promotion",
description:
"Your service, identity, destination, and advertising claims must be legitimate and accurate. Phishing, impersonation, and misleading offers are not accepted. A campaign found breaking these rules after launch may be removed without a refund.",
},
{
number: "02",
title: "No illegal services",
description:
"Ads cannot promote unlawful products, services, content, or activity. We may ask for more information when the offering is unclear.",
},
{
number: "03",
title: "Every campaign is reviewed",
description:
"An admin checks the service and creative before anything goes live on tip pages.",
},
];
</script>
<template>
<section class="pb-24">
<div class="mb-8">
<p class="text-primary text-sm font-medium">Before you submit</p>
<h2 class="text-3xl font-bold mt-1">Advertising rules</h2>
</div>
<ul class="flex flex-col gap-6">
<li
v-for="(rule, index) in rules"
:key="rule.number"
class="flex gap-4 sm:gap-6 pt-6"
:class="{ 'border-t border-border': index > 0 }"
>
<span class="text-primary font-medium shrink-0 w-8">{{
rule.number
}}</span>
<div>
<h3 class="font-bold text-lg">{{ rule.title }}</h3>
<p class="mt-2">{{ rule.description }}</p>
</div>
</li>
</ul>
</section>
</template>
+31
View File
@@ -0,0 +1,31 @@
<script setup lang="ts">
const { toCreateAd } = useRouteLocation();
</script>
<template>
<div class="flex flex-col flex-1 items-end">
<ULink
:to="toCreateAd()"
class="aspect-[240/60] border border-border rounded-lg min-w-[300px] w-full flex items-center justify-center gap-4 overflow-hidden"
>
<p class="text-lg font-medium">Advertise with XMRChat</p>
<img src="/images/xmrchat-logo.png" alt="XMRChat Logo" class="w-[80px]" />
<!-- <img
src="/images/ads/image.png"
alt="Ad"
class="w-full h-full object-cover"
/> -->
</ULink>
<UButton
size="xs"
class="text-pale"
variant="link"
:padded="false"
:to="toCreateAd()"
>
Your ad here
</UButton>
</div>
</template>
<style scoped></style>
+28 -17
View File
@@ -19,23 +19,34 @@ const totalAmountFiat = computed(() => {
<template>
<div class="bg-primary text-white py-1 px-1.5">
<div class="inner flex items-center justify-center">
<div class="text-sm">
Fans have sent
<USkeleton v-if="pending" class="skeleton-inline w-8" />
<span v-else class="font-bold">{{ totalTips?.tipsCount }}</span>
superchats totaling
<USkeleton v-if="pending" class="skeleton-inline w-12" />
<span v-else class="font-bold">{{
totalTips?.totalAmount?.toFixed(2)
}}</span>
Monero
<USkeleton v-if="pending" class="skeleton-inline w-12" />
<span v-else class="font-bold"> (${{ totalAmountFiat }}) </span>
to
<USkeleton v-if="pending" class="skeleton-inline w-8" />
<span v-else class="font-bold">{{ totalTips?.pagesCount }}</span>
content creators with XMRChat!
</div>
<I18nT
keypath="fansTippingStats"
tag="div"
class="text-sm"
scope="global"
>
<template #tipsCount>
<USkeleton v-if="pending" class="skeleton-inline w-8" />
<span v-else class="font-bold">{{ totalTips?.tipsCount }}</span>
</template>
<template #totalAmount>
<USkeleton v-if="pending" class="skeleton-inline w-12" />
<span v-else class="font-bold">{{
totalTips?.totalAmount?.toFixed(2)
}}</span>
</template>
<template #fiatAmount>
<USkeleton v-if="pending" class="skeleton-inline w-12" />
<span v-else class="font-bold">${{ totalAmountFiat }}</span>
</template>
<template #pagesCount>
<USkeleton v-if="pending" class="skeleton-inline w-8" />
<span v-else class="font-bold">{{ totalTips?.pagesCount }}</span>
</template>
</I18nT>
</div>
</div>
</template>
+10 -10
View File
@@ -32,7 +32,7 @@ const { axios } = useApp();
const minSuperDmAmount = computed(
() =>
props.settings?.find((s) => s.key === PageSettingKey.SUPER_DM_MIN_AMOUNT)
?.value
?.value,
);
const { minFiatAmount, price, minSwapFiatAmount, minXmr, minSwapXMR } =
@@ -74,12 +74,12 @@ const v = useVuelidate<State["form"]>(
minValue: minValue(
generalState.tipDisplayValue === TipDisplayMode.XMR
? minXmrValue
: minFiatValue
: minFiatValue,
),
},
};
}),
computed(() => state.form)
computed(() => state.form),
);
const { getValidationAttrs } = useValidations(v);
@@ -118,7 +118,7 @@ const renderInputPrefix = computed(() => {
return fiat.value.symbol;
});
const renderInputPadding = computed(
() => `${renderInputPrefix.value.length * 0.6 + 2}rem`
() => `${renderInputPrefix.value.length * 0.6 + 2}rem`,
);
const handleSubmit = async () => {
@@ -134,7 +134,7 @@ const handleSubmit = async () => {
xmrAmount = state.form.amount;
} else {
xmrAmount = (Number(state.form.amount) / (price.value as number)).toFixed(
8
8,
);
}
@@ -178,7 +178,7 @@ const handleSubmit = async () => {
<div class="both">
<UFormGroup
size="lg"
label="Name"
:label="$t('name')"
:error="getValidationAttrs('name').error"
name="name"
>
@@ -189,7 +189,7 @@ const handleSubmit = async () => {
</UFormGroup>
<UFormGroup
size="lg"
label="Amount"
:label="$t('amount')"
:error="getValidationAttrs('amount').error"
name="amount"
>
@@ -251,7 +251,7 @@ const handleSubmit = async () => {
<UAlert
color="red"
:description="state.errorMessage"
title="SuperDM could not be started"
:title="$t('superDMAlertTitle')"
>
</UAlert>
</div>
@@ -265,7 +265,7 @@ const handleSubmit = async () => {
:loading="state.loading"
class="flex items-center gap-2 w-fit"
>
Start SuperDM
{{ $t("startSuperDM") }}
</UButton>
<UButton
v-if="superDmConfigured"
@@ -273,7 +273,7 @@ const handleSubmit = async () => {
size="lg"
@click="emit('recover')"
>
Open SuperDM
{{ $t("openSuperDM") }}
</UButton>
</div>
</div>
+6 -5
View File
@@ -12,7 +12,7 @@ const props = withDefaults(
}>(),
{
endedByType: SuperDmMessageSenderTypeEnum.CREATOR,
}
},
);
const emit = defineEmits<{
@@ -23,13 +23,14 @@ const modal = useModal();
const { axios } = useApp();
const toast = useToast();
const { dayjs } = useDate();
const { t } = useI18n();
const loading = ref(false);
const handleEndSuperDmClick = async () => {
const confirmModal = modal.open(ConfirmModal, {
title: "End SuperDM",
text: "Messages can no longer be sent in this SuperDM after it is ended.",
title: t("endSuperDM"),
text: t("endSuperDMText"),
color: "red",
onConfirm: () => {
handleEndSuperDm();
@@ -82,7 +83,7 @@ const handleEndSuperDm = async () => {
v-if="superDm?.endedAt"
class="text-xs text-pale flex flex-col items-end"
>
<span> Ended at </span>
<span> {{ $t("endedAt") }} </span>
<span>
{{ dayjs(superDm.endedAt).format("L LT") }}
</span>
@@ -95,7 +96,7 @@ const handleEndSuperDm = async () => {
:loading="loading"
@click="handleEndSuperDmClick"
>
End SuperDM
{{ $t("endSuperDM") }}
</UButton>
</template>
@@ -12,11 +12,9 @@ const emit = defineEmits<{
<template>
<div class="grid gap-2 mb-4">
<UAlert color="primary" variant="subtle">
<template #title> Save SuperDM id and Recovery code </template>
<template #title> {{ $t("saveSuperDMIdAndKeyTitle") }} </template>
<template #description>
Please save SuperDM id and Recovery key. The keys can not be reused. You
will not be able to recover/decrypt the messages without them. XMRChat
will not store your recovery keys.
{{ $t("saveSuperDMIdAndKeyDes") }}
</template>
</UAlert>
@@ -28,7 +26,7 @@ const emit = defineEmits<{
</UFormGroup>
<div class="flex justify-center">
<UButton @click="emit('saved')" size="lg">
I saved id and recovery key
{{ $t("savedIdAndRecoveryCode") }}
</UButton>
</div>
</div>
@@ -31,7 +31,7 @@ const handleRecover = async () => {
}
const samePrivateKeys = await validateSamePrivateKeys(
keys.publicKeyArmored,
props.superDmPublicKeyArmored
props.superDmPublicKeyArmored,
);
if (!samePrivateKeys) throw createError("Invalid recovery code");
@@ -52,7 +52,7 @@ const v = useVuelidate<any>(
{
recoveryKey: { required },
},
state
state,
);
const { getValidationAttrs } = useValidations(v);
@@ -61,26 +61,25 @@ const { getValidationAttrs } = useValidations(v);
<template>
<div class="max-w-[600px] mx-auto grid gap-4">
<p class="">
The recovery keys are not saved on this browser. Please enter the mnemonic
phrase for this SuperDM to recover the messages.
{{ $t("superDMKeysRecoveryTitle") }}
</p>
<p class="">
<span class="font-medium">SuperDM id: </span>
<span class="font-medium">{{ $t("superDMId") }}</span>
<span class="">{{ superDmId }}</span>
</p>
<GeneralForm>
<UFormGroup
label="Mnemonic phrase"
:label="$t('mnemonicPhrase')"
:error="getValidationAttrs('recoveryKey').error"
>
<UInput
v-model="state.recoveryKey"
placeholder="Enter your mnemonic phrase"
:placeholder="$t('enterYourMnemonicPhrase')"
@blur="getValidationAttrs('recoveryKey').onBlur"
/>
</UFormGroup>
<div class="flex justify-center mt-4">
<UButton @click="handleRecover">Recover</UButton>
<UButton @click="handleRecover">{{ $t("recover") }}</UButton>
</div>
</GeneralForm>
</div>
@@ -45,12 +45,12 @@ const {
const keys = await getSavedKey();
return keys;
},
{ server: false }
{ server: false },
);
const getPublicKeySettings = async () => {
const { data } = await axios.get<{ settings: PageSetting[] }>(
`/super-dms/settings`
`/super-dms/settings`,
);
return data.settings.find((s) => s.key === PageSettingKey.SUPER_DM_PUBLIC_KEY)
?.value;
@@ -102,7 +102,7 @@ const handleRecoverClick = async () => {
const samePrivateKeys = await validateSamePrivateKeys(
keys.publicKeyArmored,
publicKeySetting
publicKeySetting,
);
if (!samePrivateKeys) throw createError("Invalid recovery code");
@@ -120,7 +120,7 @@ const v = useVuelidate<State>(
computed(() => ({
recoveryCode: { required },
})),
computed(() => state)
computed(() => state),
);
const { getValidationAttrs } = useValidations(v);
@@ -128,28 +128,26 @@ const { getValidationAttrs } = useValidations(v);
<template>
<div>
<h3 class="text-lg font-medium mb-2">Encryption Keys</h3>
<h3 class="text-lg font-medium mb-2">{{ $t("encryptionKeys") }}</h3>
<div v-if="pending">Loading...</div>
<div v-else-if="error">{{ getErrorMessage(error) }}</div>
<template v-else>
<div v-if="savedKeys" class="flex flex-col gap-2">
<h3 class="font-medium">Backup your recovery code</h3>
<h3 class="font-medium">{{ $t("backupRecoveryCode") }}</h3>
<p>
XMRChat only stores your public key. Your recovery code remains on
your device.
{{ $t("backupRecoveryCodeDes") }}
</p>
<UInput :modelValue="savedKeys?.mnemonic" readonly />
</div>
<div v-else-if="!state.generatedResult">
<UFormGroup
label="Recovery Code"
:label="$t('recoveryCode')"
:error="getValidationAttrs('recoveryCode').error"
>
<template #description>
<p>
Enter your recovery code or generate new keys. You won't be able
to decrypt your previous messages after generating new keys.
{{ $t("recoveryCodeDes") }}
</p>
</template>
<UInput
@@ -163,22 +161,20 @@ const { getValidationAttrs } = useValidations(v);
:loading="state.loadingRecover"
@click="handleRecoverClick"
>
Recover
{{ $t("recover") }}
</UButton>
<UButton
variant="ghost"
@click="handleGenerateClick"
:loading="state.loadingGenerate"
>
Generate new
{{ $t("generateNew") }}
</UButton>
</div>
</div>
<div v-else class="grid gap-2">
<p>
Please save your recovery code. You will need the recovery code to
access your encrypted messages. If you clear cache or use different
device you will need to enter the recovery code.
{{ $t("pleaseSaveYourRecoveryCode") }}
</p>
<UInput
:modelValue="state.generatedResult?.mnemonic"
@@ -187,7 +183,7 @@ const { getValidationAttrs } = useValidations(v);
/>
<div>
<UButton @click="handleSaveRecoveryCode">
I saved the recovery code
{{ $t("ISavedRecoveryCode") }}
</UButton>
</div>
</div>
@@ -196,23 +192,19 @@ const { getValidationAttrs } = useValidations(v);
<UModal v-model="state.generateModal">
<UCard>
<template #header>
<h2 class="text-lg font-medium">Generate new keys</h2>
<h2 class="text-lg font-medium">{{ $t("generateNewKeys") }}</h2>
</template>
<UAlert color="primary" variant="subtle">
<template #description>
If you generate new keys you will not be able to decrypt your
previous messages. New messages will be encrypted with the new keys.
</template>
<template #description>{{ $t("generateNewKeysDes") }}</template>
</UAlert>
<div class="grid gap-2 mt-6">
<p>
If you forgot your recovery code or it is your first time using
SuperDM, you can generate new encryption keys.
{{ $t("ifForgotRecoveryCode") }}
</p>
<p>Click generate keys to setup the SuperDM encryption.</p>
<p>{{ $t("clickGenerateKeys") }}</p>
<p class="pt-4 text-sm text-pale">
Please be ready to save your recovery code.
{{ $t("beReadyToSaveRecoveryCode") }}
</p>
</div>
<template #footer>
@@ -222,9 +214,9 @@ const { getValidationAttrs } = useValidations(v);
color="red"
@click="state.generateModal = false"
>
Cancel
{{ $t("cancel") }}
</UButton>
<UButton @click="handleGenerate">Generate keys</UButton>
<UButton @click="handleGenerate">{{ $t("generateKeys") }}</UButton>
</div>
</template>
</UCard>
@@ -24,7 +24,7 @@ const v = useVuelidate(
{
message: { required },
},
computed(() => ({ message: model.value }))
computed(() => ({ message: model.value })),
);
const { getValidationAttrs } = useValidations(v);
@@ -33,15 +33,15 @@ const { getValidationAttrs } = useValidations(v);
<template>
<div class="flex gap-2 p-4 border-t border-border items-start">
<div v-if="endedAt" class="flex flex-col items-center text-center flex-1">
<p class="font-medium">SuperDM is ended.</p>
<p class="font-medium">{{ $t("superDMIsEnded") }}</p>
<p class="text-pale text-xs">
SuperDM is ended at {{ dayjs(endedAt).format("L LT") }}.
{{ $t("superDMIsEndedAt", { date: dayjs(endedAt).format("L LT") }) }}
</p>
</div>
<template v-else>
<UInput
v-model="model"
placeholder="Send a message..."
:placeholder="$t('sendAMessage')"
class="flex-grow"
size="lg"
@blur="getValidationAttrs('message').onBlur"
@@ -12,24 +12,20 @@ const { toStreamerSuperDmSettings, toStreamerNotificationPreferences } =
<div class="flex flex-col items-center mt-6">
<h3 class="text-lg font-medium text-center inline-flex items-center gap-2">
<UIcon name="i-heroicons-exclamation-triangle" size="22px" />
<span> SuperDMs are not configured. </span>
<span>{{ $t("superDMNotConfiguredTitle") }}</span>
</h3>
<p class="text-pale text-center pt-2">
Enabling SuperDMs will allow fans to pay you an amount you choose for the
ability to start a private conversation with you. This is an end to end
encrypted chat between you and the fan, no one else sees these messages
(not even us!). Notifications need to be enabled for this feature so you
are notified when a SuperDM arrives. Please respond quickly to your fans.
{{ $t("superDMNotConfiguredDes") }}
</p>
<div class="mt-4 flex gap-2 flex-wrap">
<UButton v-if="!settingsConfigured" :to="toStreamerSuperDmSettings()">
Configure SuperDMs
{{ $t("configureSuperDMs") }}
</UButton>
<UButton
v-if="!notificationsActive"
:to="toStreamerNotificationPreferences()"
>
Configure Notifications
{{ $t("configureNotifications") }}
</UButton>
</div>
</div>
@@ -108,7 +108,7 @@ provide("paymentModalProvideKey", {
<div class="flex mb-2" v-if="!showKeys">
<UButton variant="link" :padded="false" @click="showKeys = true">
<DirectionalArrow direction="backward" />
Show keys
{{ $t("showKeys") }}
</UButton>
</div>
@@ -44,7 +44,7 @@ const handleRecover = async () => {
try {
state.loading = true;
const { data } = await axios.get<{ superDm: SuperDm }>(
`/super-dms/${state.superDmId}`
`/super-dms/${state.superDmId}`,
);
if (!data.superDm) {
throw createError("SuperDM not found");
@@ -54,7 +54,7 @@ const handleRecover = async () => {
const samePrivateKeys = await validateSamePrivateKeys(
data.superDm.publicKey,
keys.publicKeyArmored
keys.publicKeyArmored,
);
if (!samePrivateKeys) {
@@ -86,7 +86,7 @@ const v = useVuelidate<any>(
superDmId: { required },
recoveryCode: { required },
},
state
state,
);
const { getValidationAttrs } = useValidations(v);
@@ -102,14 +102,14 @@ watch(model, () => {
<UModal v-model="model">
<UCard>
<template #header>
<h2 class="text-lg font-medium">Continue SuperDM</h2>
<h2 class="text-lg font-medium">{{ $t("continueSuperDM") }}</h2>
</template>
<div class="grid gap-2">
<div v-if="savedKeys?.length">
<div class="flex flex-col items-center">
<h3 class="font-medium">Saved keys</h3>
<h3 class="font-medium">{{ $t("savedKeys") }}</h3>
<p class="text-sm text-pale text-center">
You can use the saved keys to continue the SuperDM messages.
{{ $t("useSavedKeys") }}
</p>
</div>
<div class="pt-6 grid gap-2">
@@ -123,7 +123,9 @@ watch(model, () => {
}"
>
<div class="flex flex-col">
<span class="font-medium whitespace-nowrap">SuperDM id:</span>
<span class="font-medium whitespace-nowrap">{{
$t("superDMId")
}}</span>
<span class="truncate">{{ item.superDmId }}</span>
</div>
<div class="flex justify-end pt-2">
@@ -131,7 +133,7 @@ watch(model, () => {
:to="toSuperDm(props.pagePath!, item.superDmId)"
variant="ghost"
>
Use <DirectionalArrow
{{ $t("use") }} <DirectionalArrow
/></UButton>
</div>
</UCard>
@@ -140,7 +142,7 @@ watch(model, () => {
<UDivider class="my-4" label="OR" />
</div>
<p class="text-center">Enter the SuperDM id and recovery code.</p>
<p class="text-center">{{ $t("enterSuperDMIdAndRecoveryCode") }}</p>
<UFormGroup
label="SuperDM id"
@@ -163,9 +165,11 @@ watch(model, () => {
</div>
<template #footer>
<div class="flex gap-2 justify-end">
<UButton variant="ghost" @click="handleHide">Cancel</UButton>
<UButton variant="ghost" @click="handleHide">{{
$t("cancel")
}}</UButton>
<UButton @click="handleRecover" :loading="state.loading">
Continue
{{ $t("continue") }}
</UButton>
</div>
</template>
@@ -26,19 +26,19 @@ const state = reactive<State>({
useLazyAsyncData(
async () => {
const { data } = await axios.get<{ settings: PageSetting[] }>(
`/super-dms/settings`
`/super-dms/settings`,
);
const active = data.settings.find(
(s) => s.key === PageSettingKey.SUPER_DM_ACTIVE
(s) => s.key === PageSettingKey.SUPER_DM_ACTIVE,
)?.value;
const minAmount = data.settings.find(
(s) => s.key === PageSettingKey.SUPER_DM_MIN_AMOUNT
(s) => s.key === PageSettingKey.SUPER_DM_MIN_AMOUNT,
)?.value;
state.form.superDmActive = active;
state.form.minSuperDmAmount = minAmount;
},
{ server: false }
{ server: false },
);
const handleSubmit = async () => {
@@ -61,7 +61,7 @@ const v = useVuelidate<State["form"]>(
computed(() => ({
minSuperDmAmount: { required, numberic },
})),
computed(() => state.form)
computed(() => state.form),
);
const { getValidationAttrs } = useValidations(v);
@@ -79,10 +79,10 @@ const { getValidationAttrs } = useValidations(v);
<UToggle v-model="state.form.superDmActive" size="lg" />
</UFormGroup>
<UFormGroup
label="Min. SuperDM amount ( XMR )"
:label="$t('minSuperDMAmount')"
name="minSuperDmAmount"
:error="getValidationAttrs('minSuperDmAmount').error"
help="The minimum amount a fan needs to send to you to start a SuperDM."
:help="$t('minSuperDMAmountHelp')"
>
<UInput
v-model="state.form.minSuperDmAmount"
@@ -93,7 +93,7 @@ const { getValidationAttrs } = useValidations(v);
</div>
<div class="flex pt-6">
<UButton :loading="state.loadingSave" @click="handleSubmit">
Save
{{ $t("save") }}
</UButton>
</div>
</GeneralForm>
@@ -10,9 +10,9 @@ const modelRef = ref(false);
</script>
<template>
<UButton variant="ghost" size="xs" @click="modelRef = true"
>Show Recovery Code</UButton
>
<UButton variant="ghost" size="xs" @click="modelRef = true">{{
$t("showRecoveryCode")
}}</UButton>
<SuperDmShowRecoveryModal
:pagePath="pagePath"
:superDmId="superDmId"
@@ -35,14 +35,13 @@ watch(model, () => {
<UModal v-model="model">
<UCard>
<template #header>
<h2 class="text-lg font-medium">SuperDM recovery codes</h2>
<h2 class="text-lg font-medium">
{{ $t("superDMRecoveryCodesTitle") }}
</h2>
</template>
<div class="grid gap-2">
<p>
The recovery codes are not saved on the server. Please save the
recovery code. You will need the recovery code and SuperDM id to
access your encrypted messages. If you clear cache or use different
device you will need to enter the recovery code.
{{ $t("superDMRecoveryCodesDes") }}
</p>
<UFormGroup label="SuperDM id">
@@ -59,7 +58,9 @@ watch(model, () => {
</div>
<template #footer>
<div class="flex gap-2 justify-end">
<UButton variant="ghost" @click="handleHide">Close</UButton>
<UButton variant="ghost" @click="handleHide">{{
$t("close")
}}</UButton>
</div>
</template>
</UCard>
+38 -34
View File
@@ -14,6 +14,7 @@ const emit = defineEmits<{
}>();
const { expired, remaining, initialize } = usePaymentExpiration();
const { t } = useI18n();
const renderStatusClassName = computed(() => {
return `text-${
@@ -22,19 +23,17 @@ const renderStatusClassName = computed(() => {
});
const showCountdown = computed(
() => props.createdTip?.swap?.status === SwapStatusEnum.WAITING
() => props.createdTip?.swap?.status === SwapStatusEnum.WAITING,
);
const renderStatusMessage = computed(() => {
const status = props.createdTip?.swap?.status;
if (status === SwapStatusEnum.WAITING) return "Waiting for payment.";
if (status === SwapStatusEnum.WAITING) return t("swapStatusMessage.waiting");
if (status === SwapStatusEnum.CONFIRMING)
return "Waiting for blockchain confirmation.";
if (status === SwapStatusEnum.SENDING)
return "Swap is being sent to XMRChat.";
if (status === SwapStatusEnum.FAILED)
return "Swap failed, please contact Trocador support.";
return t("swapStatusMessage.confirming");
if (status === SwapStatusEnum.SENDING) return t("swapStatusMessage.sending");
if (status === SwapStatusEnum.FAILED) return t("swapStatusMessage.failed");
return undefined;
});
@@ -44,7 +43,7 @@ const showLoading = computed(() =>
SwapStatusEnum.WAITING,
SwapStatusEnum.CONFIRMING,
SwapStatusEnum.SENDING,
].includes(props.createdTip?.swap?.status!)
].includes(props.createdTip?.swap?.status!),
);
const showAddress = computed(() => {
@@ -73,15 +72,15 @@ const renderMessage = computed(() => {
SwapStatusEnum.FINISHED,
].includes(status)
)
return "Payment received.";
return t("paymentReceived");
return undefined;
});
const renderCancelText = computed(() => {
const status = props.createdTip?.swap?.status!;
if (status !== SwapStatusEnum.WAITING) return "Close";
return "Cancel";
if (status !== SwapStatusEnum.WAITING) return t("close");
return t("cancel");
});
const showETA = computed(() => {
@@ -95,13 +94,13 @@ watch(
(v) => {
if (v) initialize(v);
},
{ immediate: true }
{ immediate: true },
);
</script>
<template>
<TipPaymentViewContainer
title="Send Tip"
:title="$t('sendTip')"
@cancel="emit('cancel')"
:cancelText="renderCancelText"
:expiresAt="props.createdTip?.tip.expiresAt"
@@ -115,15 +114,13 @@ watch(
>
<template #description>
<p class="text-base">
Swap failed. Please visit the Trocador link below to check the
status and cancel the swap if necessary.
{{ $t("tipSwapFailed") }}
</p>
</template>
</UAlert>
<p class="text-red-500 text-center" v-else-if="expired">
Payment is expired. If you have already sent your payment please contact
support.
{{ $t("paymentExpired") }}
</p>
<template v-else>
@@ -131,13 +128,17 @@ watch(
<UAlert color="emerald" variant="subtle" v-if="renderMessage">
<template #description>
<p class="text-base" v-if="renderMessage === 'DEFAULT'">
Please send
<span class="font-bold">exactly </span>
<span class="font-bold"
>{{ createdTip?.swap?.inputAmount }}
{{ createdTip?.swap?.coin?.name }}</span
>
to this address for your xmrchat to be displayed.
<I18nT keypath="swapPaymentSend" scope="global">
<template #exactly>
<span class="font-bold">{{ $t("exactly") }}</span>
</template>
<template #amount>
<span class="font-bold"
>{{ createdTip?.swap?.inputAmount }}
{{ createdTip?.swap?.coin?.name }}</span
>
</template>
</I18nT>
</p>
<p class="text-base" v-else>
{{ renderMessage }}
@@ -186,7 +187,7 @@ watch(
<div class="p-2 rounded-lg border border-border mt-2">
<div v-if="createdTip?.swap" class="text-center text-sm">
<span>Swap Status: </span>
<span>{{ $t("swapStatus") }}</span>
<span :class="[renderStatusClassName]">{{
SWAP_STATUSES[createdTip.swap.status as SwapStatusEnum]?.label
}}</span>
@@ -196,17 +197,20 @@ watch(
class="text-pale text-xs text-center mt-1"
v-if="showETA && createdTip?.swap?.eta"
>
Swap ETA is about {{ createdTip?.swap?.eta }} minutes.
{{ $t("swapETA", { eta: createdTip?.swap?.eta }) }}
</p>
<div class="text-pale text-xs text-center mt-1">
You can track your swap directly from
<ULink
target="_blank"
class="text-primary"
:to="`https://trocador.app/en/checkout/${createdTip?.swap?.swapId}`"
>
Trocador </ULink
>.
<I18nT keypath="trackSwap" scope="global">
<template #trocador>
<ULink
target="_blank"
class="text-primary"
:to="`https://trocador.app/en/checkout/${createdTip?.swap?.swapId}`"
>
Trocador
</ULink>
</template>
</I18nT>
</div>
</div>
</div>
+186
View File
@@ -0,0 +1,186 @@
<script setup lang="ts">
import type { Dayjs } from "dayjs";
import type { TipGoal } from "~/types";
import { TipDisplayMode, type FiatEnum } from "~/types/enums";
const props = defineProps<{
path?: string;
fiat?: FiatEnum;
tipGoal?: TipGoal;
}>();
const { axios } = useApp();
const { dayjs } = useDate();
const { state: generalState } = useGeneralStore();
const { xmrToFiat } = useXmrPrice();
const { money } = useMoney();
const modalRef = ref(false);
const nowDayjsRef = ref<Dayjs | undefined>(undefined);
const nowDayjs = computed(() => nowDayjsRef.value ?? dayjs());
const { data, refresh } = useLazyAsyncData(
`tip-goal-${props.path}`,
async () => {
const { data } = await axios.get<{ tipsAmount: number }>(
`/tip-goals/tips/${props.path}`,
);
return data;
},
{ server: false },
);
const interval = ref<NodeJS.Timeout | undefined>(undefined);
const nowInterval = ref<NodeJS.Timeout | undefined>(undefined);
onMounted(() => {
startTipsInterval();
nowInterval.value = setInterval(() => {
nowDayjsRef.value = dayjs();
}, 4000);
});
const startTipsInterval = () => {
stopTipsInterval();
interval.value = setInterval(() => refresh(), 8000);
};
const stopTipsInterval = () => {
clearInterval(interval.value);
};
onBeforeUnmount(() => {
stopTipsInterval();
clearInterval(nowInterval.value);
});
const getComputedPrice = (xmr?: number) => {
if (!xmr) return 0;
const fiat = xmrToFiat(xmr, props.fiat);
return generalState.tipDisplayValue === TipDisplayMode.XMR
? `${xmr} XMR`
: money(fiat.toFixed(2), props.fiat);
};
const percentage = computed(() => {
const amount = Number(props.tipGoal?.amount) ?? 0;
const tipsAmount = Number(data.value?.tipsAmount) ?? 0;
if (!amount || !tipsAmount) return 0;
return Math.round((tipsAmount / amount) * 100);
});
const startLeft = computed(() => {
const startTime = props.tipGoal?.startTime;
if (!startTime) return undefined;
const startTimeDayjs = dayjs(startTime);
if (startTimeDayjs.isBefore(nowDayjs.value)) return undefined;
return `Starts ${dayjs(startTime).fromNow()}`;
});
const isEnded = computed(() => {
const endTime = props.tipGoal?.endTime;
if (!endTime) return false;
return dayjs(endTime).isBefore(nowDayjs.value);
});
const timeLeft = computed(() => {
const endTime = props.tipGoal?.endTime;
if (!endTime) return "No end time";
// Added to keep the timeLeft reactive
const now = nowDayjs.value;
return `Ends ${dayjs(endTime).fromNow()}`;
});
const isCompleted = computed(() => {
return percentage.value >= 100;
});
</script>
<template>
<div>
<div class="flex flex-col gap-1">
<div class="flex justify-between items-center gap-2">
<div class="flex items-center gap-2 min-w-0 flex-1">
<span class="truncate">{{ tipGoal?.name }}</span>
<UButton
v-if="tipGoal?.description"
icon="i-heroicons-information-circle"
variant="ghost"
size="sm"
color="gray"
@click="modalRef = true"
/>
</div>
<span class="whitespace-nowrap">{{
getComputedPrice(Number(tipGoal?.amount))
}}</span>
</div>
<div
:class="[
'w-full flex justify-center items-center bg-background-2 rounded-full overflow-hidden h-4 relative',
{ 'tip-goal-progress--completed': isCompleted },
]"
>
<div
class="bg-primary h-full rounded-full absolute left-0 top-0 z-0 max-w-full"
:style="`width: ${Math.min(percentage, 100)}%`"
></div>
<div class="text-xs relative z-40">
{{ getComputedPrice(data?.tipsAmount) }} ({{ percentage }}%)
</div>
</div>
<div class="flex justify-between">
<div>
<span v-if="startLeft" class="text-sm text-pale">{{
startLeft
}}</span>
</div>
<div>
<span v-if="isEnded" class="text-sm text-pale">{{
$t("timeIsEnded")
}}</span>
<span v-else class="text-sm text-pale">{{ timeLeft }}</span>
</div>
</div>
</div>
<UModal v-model="modalRef">
<UCard>
<template #header>
<h2 class="text-lg font-medium">{{ tipGoal?.name }}</h2>
</template>
<div class="">
<div>{{ tipGoal?.description }}</div>
</div>
<template #footer>
<UButton variant="soft" @click="modalRef = false">{{
$t("close")
}}</UButton>
</template>
</UCard>
</UModal>
</div>
</template>
<style scoped>
.tip-goal-progress--completed {
animation: tip-goal-shadow-pulse 1.8s infinite;
}
@keyframes tip-goal-shadow-pulse {
0%,
100% {
box-shadow: 0 0 0 0 rgb(var(--color-primary-500) / 0.4);
}
70% {
box-shadow: 0 0 12px 4px rgb(var(--color-primary-500) / 0.25);
}
}
</style>
@@ -0,0 +1,226 @@
<script setup lang="ts">
import useVuelidate from "@vuelidate/core";
import { helpers } from "@vuelidate/validators";
import type { TipGoal } from "~/types";
interface State {
form: {
name?: string;
amount?: string;
startTime?: string;
endTime?: string;
description?: string;
isActive: boolean;
};
tipGoal: TipGoal | undefined;
loading: boolean;
loadingData: boolean;
}
const props = defineProps<{
editable?: boolean;
}>();
const emit = defineEmits<{
update: [];
}>();
const { required, maxLength, numberic } = useValidations();
const { toStreamerTipGoal, toCreateStreamerTipGoal } = useRouteLocation();
const { axios } = useApp();
const toast = useToast();
const { dayjs } = useDate();
const { t } = useI18n();
const DEFAULT_FORMAT = "YYYY-MM-DDTHH:mm";
const state: State = reactive({
form: {
name: undefined,
amount: undefined,
startTime: undefined,
endTime: undefined,
description: undefined,
isActive: true,
},
tipGoal: undefined,
loading: false,
loadingData: false,
});
const toDatetimeLocal = (value?: string) => {
if (!value) return undefined;
const date = dayjs(value);
if (!date.isValid()) return undefined;
return date.format("YYYY-MM-DDTHH:mm");
};
const toIsoString = (value?: string) => {
if (!value) return undefined;
const date = dayjs(value);
if (!date.isValid()) return undefined;
return date.toISOString();
};
useLazyAsyncData(
async () => {
if (!props.editable) return;
state.loadingData = true;
try {
const { data } = await axios.get<{ tipGoal: TipGoal | null }>(
`/tip-goals`,
);
if (!data.tipGoal) {
await navigateTo(toCreateStreamerTipGoal());
return;
}
state.form.name = data.tipGoal.name;
state.form.amount = data.tipGoal.amount;
state.form.startTime = toDatetimeLocal(data.tipGoal.startTime);
state.form.endTime = toDatetimeLocal(data.tipGoal.endTime);
state.form.description = data.tipGoal.description;
state.form.isActive = data.tipGoal.isActive;
state.tipGoal = data.tipGoal;
} finally {
state.loadingData = false;
}
},
{ server: false },
);
const handleSubmit = async () => {
const valid = await v.value.$validate();
if (!valid) return;
state.loading = true;
try {
const payload = {
name: state.form.name,
amount: String(state.form.amount),
startTime: toIsoString(state.form.startTime),
endTime: toIsoString(state.form.endTime),
description: state.form.description || undefined,
isActive: state.form.isActive,
};
if (props.editable) {
await axios.put(`/tip-goals`, payload);
} else {
await axios.post(`/tip-goals`, payload);
}
toast.add({
description: props.editable ? t("tipGoalUpdated") : t("tipGoalCreated"),
color: "green",
});
// await navigateTo(toStreamerTipGoal());
emit("update");
} catch (error) {
toast.add({
description: getErrorMessage(error),
color: "red",
});
} finally {
state.loading = false;
}
};
const v = useVuelidate<any>(
computed(() => ({
name: { required, maxLength: maxLength(80) },
amount: { required, numberic },
startTime: { required },
endTime: {
afterDate: helpers.withMessage(
"End should be after start.",
(value: any) =>
value ? dayjs(value).isAfter(state.form.startTime) : true,
),
},
description: { maxLength: maxLength(255) },
})),
computed(() => state.form),
);
const { getValidationAttrs } = useValidations(v);
</script>
<template>
<div>
<GeneralForm @submit="handleSubmit">
<div class="flex gap-4 flex-col w-full max-w-[600px] m-auto">
<UFormGroup label="Name" :error="getValidationAttrs('name').error">
<UInput
v-model="state.form.name"
@blur="getValidationAttrs('name').onBlur"
/>
</UFormGroup>
<UFormGroup
:label="$t('amountXMR')"
:error="getValidationAttrs('amount').error"
>
<UInput
v-model="state.form.amount"
@blur="getValidationAttrs('amount').onBlur"
/>
</UFormGroup>
<UFormGroup
:label="$t('start')"
:error="getValidationAttrs('startTime').error"
>
<UInput
v-model="state.form.startTime"
type="datetime-local"
@blur="getValidationAttrs('startTime').onBlur"
/>
</UFormGroup>
<UFormGroup
:label="$t('end')"
:error="getValidationAttrs('endTime').error"
>
<template #hint>
<span class="text-xs">{{ $t("optional") }}</span>
</template>
<UInput
v-model="state.form.endTime"
type="datetime-local"
@blur="getValidationAttrs('endTime').onBlur"
/>
</UFormGroup>
<UFormGroup
:label="$t('description')"
:error="getValidationAttrs('description').error"
>
<template #hint>
<span class="text-xs">{{ $t("optional") }}</span>
</template>
<UTextarea
v-model="state.form.description"
@blur="getValidationAttrs('description').onBlur"
/>
</UFormGroup>
<UFormGroup>
<UCheckbox v-model="state.form.isActive" :label="$t('isActive')">
<template #help>
{{ $t("isActiveHelp") }}
</template>
</UCheckbox>
</UFormGroup>
<div class="mt-4">
<UButton type="submit" :loading="state.loading">
{{ $t("save") }}
</UButton>
</div>
</div>
</GeneralForm>
</div>
</template>
<style scoped></style>
+17 -4
View File
@@ -52,7 +52,7 @@ const dropdownItems = computed<DropdownItem[][]>(() => {
},
slot: "obs",
},
]
],
);
}
@@ -70,7 +70,7 @@ const dropdownItems = computed<DropdownItem[][]>(() => {
logout();
},
},
]
],
);
return res;
@@ -126,15 +126,28 @@ const dropdownItems = computed<DropdownItem[][]>(() => {
trailing-icon="i-heroicons-chevron-down-20-solid"
/>
</UDropdown> -->
<UButton :to="toStreamer('xmrchat')" variant="soft">
<UIcon name="i-tabler-heart" size="20" />
<span class="hidden md:inline-flex"> {{ $t("donate") }} </span>
</UButton>
<UButton
v-if="authStore.isLoggedIn"
icon="i-heroicons-user"
:to="toStreamerDisplay()"
>
{{ t("account") }}
<span class="hidden md:inline-flex">
{{ t("account") }}
</span>
</UButton>
<UButton v-else :to="toLogin()">
<span class="truncate max-w-[100px] sm:max-w-[100%]">
<UIcon
name="i-heroicons-arrow-right-end-on-rectangle-solid"
size="20"
class="md:hidden"
/>
<span
class="truncate max-w-[100px] sm:max-w-[100%] hidden md:inline-flex"
>
{{ t("creatorLogin") }}
</span>
</UButton>
+11 -7
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import type { Tip, TipReplySettings } from "~/types";
import { TipSourceEnum } from "~/types/enums";
const props = defineProps<{
item: Tip;
@@ -10,7 +11,7 @@ const props = defineProps<{
name?: string;
}>();
const { getPageTierColor } = useConstants();
const { getPageTierColor, getTipSource } = useConstants();
const tier = computed(() => props.item.pageTipTier);
const tierColor = computed(() => tier.value?.color);
@@ -82,12 +83,15 @@ watch(
>
<div :style="headingStyle">
<div class="flex justify-between items-center">
<p
class="pb-1 text-base font-medium"
:class="{ 'opacity-80': item.private }"
>
{{ item.private ? $t("private.title") : item.name }}
</p>
<div class="flex items-center gap-1 pb-1">
<TipSourceIcon v-if="item.source" :source="item.source" />
<p
class="text-base font-medium"
:class="{ 'opacity-80': item.private }"
>
{{ item.private ? $t("private.title") : item.name }}
</p>
</div>
<UTooltip
v-if="disappearText"
:popper="{ placement: 'top' }"
+10 -4
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ContentLink, LiveStream } from "~/types";
import type { ContentLink, LiveStream, TipGoal } from "~/types";
const props = withDefaults(
defineProps<{
@@ -12,6 +12,7 @@ const props = withDefaults(
streamerId?: string;
superDmActive?: boolean;
bio?: string;
tipGoal?: TipGoal;
}>(),
{
showTitle: true,
@@ -25,6 +26,7 @@ const { liveStream, livePlatforms } = useLiveStreamPlayer(
const showLogo = computed(() => !liveStream.value);
const verified = computed(() => props.links?.some((l) => l.verification));
const tipGoalActive = computed(() => props.tipGoal?.isActive);
</script>
<template>
@@ -33,7 +35,7 @@ const verified = computed(() => props.links?.some((l) => l.verification));
<div v-else class="banner-container">
<GeneralImage variant="banner" :url="bannerUrl" class="banner" />
</div>
<div class="options gap-4">
<div :class="['options gap-4', { 'flex-col md:flex-row': tipGoalActive }]">
<div class="logo-and-name">
<div class="flex flex-col items-center ms-4">
<GeneralImage
@@ -62,7 +64,7 @@ const verified = computed(() => props.links?.some((l) => l.verification));
<div class="flex items-center gap-1">
<span class="text-lg lg:text-2xl font-bold">{{ name }}</span>
<VerifiedBadge :links="links" />
<div v-if="bio" class="md:hidden">
<div v-if="bio" :class="[{ 'md:hidden': !tipGoalActive }]">
<StreamerBio :bio="bio" />
</div>
</div>
@@ -74,7 +76,11 @@ const verified = computed(() => props.links?.some((l) => l.verification));
/>
</div>
</div>
<div v-if="bio" class="bio hidden md:block">
<div v-if="tipGoalActive" class="tip-goal w-full md:max-w-[380px]">
<TipGoal :path="streamerId" :tipGoal="tipGoal" class="w-full" />
</div>
<div v-else-if="bio" class="bio hidden md:block">
<p class="text-pale text-sm max-w-[400px]">
{{ bio }}
</p>
@@ -21,6 +21,7 @@ const {
toStreamerCohostPage,
toStreamerPageTiers,
toStreamerSuperDms,
toStreamerTipGoal,
} = useRouteLocation();
const items = computed(() => {
@@ -112,6 +113,11 @@ const items = computed(() => {
icon: "i-heroicons-chat-bubble-left-right",
to: toStreamerSuperDms(),
},
{
label: "Tip Goal",
icon: "i-tabler-progress",
to: toStreamerTipGoal(),
},
{
label: "Notifications",
icon: "i-heroicons-bell",
@@ -9,7 +9,12 @@ import type {
TipReply,
TipReplySettings,
} from "~/types";
import { FiatEnum, PageSettingKey, TipDisplayMode } from "~/types/enums";
import {
FiatEnum,
PageSettingKey,
TipDisplayMode,
TipSourceEnum,
} from "~/types/enums";
const props = withDefaults(
defineProps<{
@@ -352,11 +357,14 @@ const handleDelete = async (tipReply: TipReply) => {
</template>
<template #name-data="{ row }">
<div v-if="row.private && !showPrivateNameAndMessage">
<p class="text-pale">{{ t("private.title") }}</p>
</div>
<div v-else class="break-words max-w-[8rem]">
{{ row.name }}
<div class="flex items-center gap-1">
<TipSourceIcon v-if="row.source" :source="row.source" />
<div v-if="row.private && !showPrivateNameAndMessage">
<p class="text-pale">{{ t("private.title") }}</p>
</div>
<div v-else class="break-words max-w-[8rem]">
{{ row.name }}
</div>
</div>
</template>
<template #message-data="{ row }">
+78 -78
View File
@@ -273,87 +273,87 @@ const renderInputPadding = computed(
</UFormGroup>
</div>
<div class="flex gap-8 items-center flex-wrap-reverse">
<div class="flex">
<UFormGroup :label="t('tipCoin')">
<USelectMenu
:options="coinSelectOptions"
v-model="state.selectedCoin"
trailingIcon="i-heroicons-chevron-up-down-16-solid"
:placeholder="t('tipCoinPlaceholder')"
value-attribute="id"
:uiMenu="{}"
:ui="{ wrapper: 'min-w-[160px]' }"
:disabled="!swapActive"
>
<template #option="{ option }">
<div class="flex items-center gap-2">
<img :src="option.image" class="w-4 h-4" />
<div class="flex flex-col">
<span>{{ option.label }}</span>
<span class="text-xs text-pale">{{ option.name }}</span>
</div>
</div>
<div class="flex gap-8 flex-wrap">
<div>
<div class="flex gap-8 items-center flex-wrap-reverse">
<div class="flex">
<UFormGroup :label="t('tipCoin')">
<USelectMenu
:options="coinSelectOptions"
v-model="state.selectedCoin"
trailingIcon="i-heroicons-chevron-up-down-16-solid"
:placeholder="t('tipCoinPlaceholder')"
value-attribute="id"
:uiMenu="{}"
:ui="{ wrapper: 'min-w-[160px]' }"
:disabled="!swapActive"
>
<template #option="{ option }">
<div class="flex items-center gap-2">
<img :src="option.image" class="w-4 h-4" />
<div class="flex flex-col">
<span>{{ option.label }}</span>
<span class="text-xs text-pale">{{
option.name
}}</span>
</div>
</div>
</template>
</USelectMenu>
<template #help v-if="!swapActive">
<p class="text-xs">{{ t("tipSwapUnavailable") }}</p>
</template>
</UFormGroup>
<!-- <p v-if="!false" class="text-pale text-sm mt-1"></p> -->
</div>
<UTooltip :popper="{ placement: 'top' }">
<template #text>
<p>{{ t("tipPrivateTooltip") }}</p>
</template>
</USelectMenu>
<template #help v-if="!swapActive">
<p class="text-xs">{{ t("tipSwapUnavailable") }}</p>
</template>
</UFormGroup>
<!-- <p v-if="!false" class="text-pale text-sm mt-1"></p> -->
<UCheckbox
color="primary"
:label="t('tipPrivate')"
v-model="state.form.private"
/>
</UTooltip>
</div>
<div v-if="state.errorMessage">
<UAlert
color="red"
:description="state.errorMessage"
:title="t('tipCreationFailed')"
>
</UAlert>
</div>
<div class="flex gap-2 pt-5">
<UButton
size="lg"
type="submit"
:loading="state.loading"
class="flex items-center gap-2 w-fit"
>
{{ $t("sendTip") }}
<DirectionalArrow />
</UButton>
<UButton
v-if="testTip"
size="lg"
variant="outline"
:loading="state.loadingTestTip"
class="flex items-center gap-2 w-fit"
@click="handleSendTestTip"
>
{{ $t("sendTestTip") }}
</UButton>
</div>
</div>
<UTooltip :popper="{ placement: 'top' }">
<template #text>
<p>{{ t("tipPrivateTooltip") }}</p>
</template>
<UCheckbox
color="primary"
:label="t('tipPrivate')"
v-model="state.form.private"
/>
</UTooltip>
</div>
<div class="single" v-if="state.errorMessage">
<UAlert
color="red"
:description="state.errorMessage"
:title="t('tipCreationFailed')"
>
</UAlert>
</div>
<div class="flex gap-2">
<UButton
size="lg"
type="submit"
:loading="state.loading"
class="flex items-center gap-2 w-fit"
>
{{ $t("sendTip") }}
<DirectionalArrow />
</UButton>
<UButton
v-if="testTip"
size="lg"
variant="outline"
:loading="state.loadingTestTip"
class="flex items-center gap-2 w-fit"
@click="handleSendTestTip"
>
Send Test Tip
</UButton>
<!-- <UButton
v-if="superDmActive"
:to="toSuperDmCreate(streamerId)"
size="lg"
type="button"
variant="ghost"
icon="i-heroicons-chat-bubble-left-right"
>
SuperDM
</UButton> -->
<div class="flex-1">
<TipPageAd />
</div>
</div>
</UForm>
</div>
@@ -0,0 +1,24 @@
<script setup lang="ts">
import type { TipSourceEnum } from "~/types/enums";
const props = defineProps<{
source?: TipSourceEnum;
}>();
const { getTipSource } = useConstants();
const item = computed(() =>
props.source ? getTipSource(props.source) : undefined,
);
const text = computed(() =>
item.value ? `Tip from ${item.value.name}` : undefined,
);
</script>
<template>
<UTooltip :text="text" :popper="{ placement: 'top' }">
<img v-if="item?.icon" :src="item.icon" class="w-4 h-4" />
</UTooltip>
</template>
<style scoped></style>
+45 -2
View File
@@ -7,6 +7,7 @@ import {
MoneroNetworkTypeEnum,
NotificationChannelEnum,
NotificationPreferenceType,
TipSourceEnum,
} from "~/types/enums";
export const useConstants = () => {
@@ -186,8 +187,24 @@ export const useConstants = () => {
colorClassName: "",
iconClassName: "",
icon: "i-tabler-brand-github",
inputLabel: t("xUsername", { platform: "GitHub" }),
linkCreator: (v?: string) => `https://github.com/${v}`,
inputLabel: "GitHub link (enter full URL)",
linkCreator: (v?: string) => `${v}`,
},
[ContentLinkPlatformEnum.GITLAB]: {
name: "GitLab",
colorClassName: "text-[#FC6D26]",
iconClassName: "",
icon: "i-tabler-brand-gitlab",
inputLabel: "GitLab link (enter full URL)",
linkCreator: (v?: string) => `${v}`,
},
[ContentLinkPlatformEnum.MATRIX]: {
name: "Matrix",
colorClassName: "text-[#0DBD8B]",
iconClassName: "",
icon: "i-simple-icons-element",
inputLabel: "Matrix ID (for example @user:matrix.org)",
linkCreator: (v?: string) => `https://matrix.to/#/${v}`,
},
[ContentLinkPlatformEnum.MONERO_JOBS]: {
name: "Monero Jobs",
@@ -205,6 +222,14 @@ export const useConstants = () => {
inputLabel: t("xUsername", { platform: "Facebook" }),
linkCreator: (v?: string) => `https://facebook.com/${v}`,
},
[ContentLinkPlatformEnum.PIXELFED]: {
name: "Pixelfed",
colorClassName: "",
iconClassName: "",
icon: "i-icon-pixelfed",
inputLabel: "Pixelfed link (enter full URL)",
linkCreator: (v?: string) => `${v}`,
},
};
const getContentLink = (v: ContentLinkPlatformEnum) => {
return CONTENT_LINKS[v];
@@ -389,6 +414,22 @@ export const useConstants = () => {
return NETWORK_CONFIGS[v];
};
const TIP_SOURCES = {
[TipSourceEnum.XMRCHAT]: {
name: "XMRChat",
icon: "",
},
[TipSourceEnum.XMRPOD]: {
name: "XMRPod",
icon: "/images/xmrpod.png",
},
};
const getTipSource = (v?: TipSourceEnum) => {
if (!v) return undefined;
return TIP_SOURCES[v];
};
return {
getContentLink,
CONTENT_LINKS,
@@ -406,5 +447,7 @@ export const useConstants = () => {
getPageTierColor,
NETWORK_CONFIGS,
getNetworkConfig,
TIP_SOURCES,
getTipSource,
};
};
+5
View File
@@ -52,5 +52,10 @@ export const useRouteLocation = () => {
localeRoute(`/${streamerId}/super-dm`),
toSuperDm: (streamerId: Numberic, superDmId: Numberic) =>
localeRoute(`/${streamerId}/super-dm/${superDmId}`),
toStreamerTipGoal: () => localeRoute("/streamer/tip-goal"),
toCreateStreamerTipGoal: () => localeRoute("/streamer/tip-goal/create"),
toEditStreamerTipGoal: () => localeRoute(`/streamer/tip-goal/edit`),
toCreateAd: () => localeRoute("/ads/create"),
};
};
+1 -1
View File
@@ -32,7 +32,7 @@ export const useServices = () => {
};
const updatePassword = async (params: any) => {
const res = await axios.post<{ message: string }>(
const res = await axios.post<{ message: string; access_token: string }>(
"/auth/update-password",
params
);
+12
View File
@@ -132,6 +132,17 @@ export const useValidations = (generalV?: Ref<Validation>) => {
notStartingWithAtBase
);
const matrixIdBase = (v: any) => {
if (!v) return true;
if (typeof v !== "string") return false;
return /^@[^\s:]+:[^\s:]+$/.test(v.trim());
};
const matrixId = helpers.withMessage(
"Enter a Matrix ID like @user:matrix.org.",
matrixIdBase
);
const getValidationAttrs = (path: string, v?: MaybeRef<Validation>) => {
v = unref(v || generalV);
const instance = getProperty(v, path);
@@ -172,6 +183,7 @@ export const useValidations = (generalV?: Ref<Validation>) => {
moneroPrimaryAddress,
rumbleApiUrl,
notStartingWithAt,
matrixId,
getValidationAttrs,
validate,
};
+127
View File
@@ -55,11 +55,14 @@ export default {
here: "هنا",
backToHome: "العودة إلى الصفحة الرئيسية",
somethingWentWrong: "حدث خطأ ما!",
donate: "تبرع",
xmrchat: "XMRChat",
heroDescription: "تبرّع لصانع المحتوى المفضل لديك بالعملات المشفرة",
findCreators: "البحث عن صانعي المحتوى",
creatorsStartHere: "اشترك الآن",
fansTippingStats:
"أرسل المعجبون {tipsCount} من رسائل Superchat بقيمة إجمالية قدرها {totalAmount} Monero ({fiatAmount}) إلى {pagesCount} من منشئي المحتوى عبر XMRChat!",
FAQ: {
title: "الأسئلة الشائعة",
@@ -186,6 +189,24 @@ export default {
cancel: "إلغاء",
copyAddress: "نسخ العنوان",
waitingForPayment: "في انتظار الدفع",
tipSwapFailed:
"فشلت عملية المبادلة. يرجى زيارة رابط Trocador أدناه للتحقق من الحالة وإلغاء المبادلة إذا لزم الأمر.",
paymentExpired:
"انتهت صلاحية الدفع. إذا كنت قد أرسلت دفعتك بالفعل، يرجى التواصل مع الدعم.",
sendTestTip: "إرسال إكرامية تجريبية",
swapStatus: "حالة المبادلة: ",
swapStatusMessage: {
waiting: "في انتظار الدفع.",
confirming: "في انتظار تأكيد المعاملة على البلوكشين.",
sending: "جارٍ إرسال المبادلة إلى XMRChat.",
failed: "فشلت عملية المبادلة، يرجى التواصل مع دعم Trocador.",
},
paymentReceived: "تم استلام الدفع.",
exactly: "بالضبط",
swapPaymentSend:
"يرجى إرسال {exactly} {amount} إلى هذا العنوان لعرض xmrchat الخاص بك.",
swapETA: "من المتوقع أن تستغرق المبادلة حوالي {eta} دقيقة.",
trackSwap: "يمكنك تتبع مبادلتك مباشرة من {trocador}.",
// CONTACT US PAGE
contactUsDescription: "اتصل بنا لأي أسئلة أو ملاحظات",
@@ -463,4 +484,110 @@ export default {
repliedMessagePreview: "معاينة الرسالة المُرد عليها",
action: "إجراء",
premium: "بريميوم",
// TIP GOAL
tipGoalUpdated: "تم تحديث هدف الإكرامية",
tipGoalCreated: "تم إنشاء هدف الإكرامية",
amountXMR: "المبلغ ( XMR )",
start: "البداية",
end: "النهاية",
isActive: "نشط",
isActiveHelp: "لن يظهر هدف الإكرامية المُعطّل في صفحة الإكراميات الخاصة بك.",
timeIsEnded: "انتهى الوقت",
// SUPER DM
amount: "المبلغ",
superDMAlertTitle: "تعذّر بدء SuperDM",
startSuperDM: "بدء SuperDM",
openSuperDM: "فتح SuperDM",
endSuperDM: "إنهاء SuperDM",
endedAt: "انتهى في",
endSuperDMText: "لا يمكن إرسال رسائل جديدة في هذا الـ SuperDM بعد إنهائه.",
saveSuperDMIdAndKeyTitle: "حفظ معرّف SuperDM ورمز الاسترداد",
saveSuperDMIdAndKeyDes:
"يرجى حفظ معرّف SuperDM ومفتاح الاسترداد. لا يمكن إعادة استخدام المفاتيح. لن تتمكن من استرداد الرسائل أو فك تشفيرها بدونهما. لن يقوم XMRChat بتخزين مفاتيح الاسترداد الخاصة بك.",
savedIdAndRecoveryCode: "لقد حفظت المعرّف ومفتاح الاسترداد",
superDMKeysRecoveryTitle:
"مفاتيح الاسترداد غير محفوظة في هذا المتصفح. يرجى إدخال العبارة التذكيرية الخاصة بهذا الـ SuperDM لاسترداد الرسائل.",
superDMId: "معرّف SuperDM: ",
mnemonicPhrase: "العبارة التذكيرية",
enterYourMnemonicPhrase: "أدخل العبارة التذكيرية الخاصة بك",
recover: "استرداد",
encryptionKeys: "مفاتيح التشفير",
backupRecoveryCode: "انسخ رمز الاسترداد احتياطيًا",
backupRecoveryCodeDes:
"يخزّن XMRChat مفتاحك العام فقط. يبقى رمز الاسترداد على جهازك.",
recoveryCode: "رمز الاسترداد",
recoveryCodeDes:
"أدخل رمز الاسترداد الخاص بك أو أنشئ مفاتيح جديدة. لن تتمكن من فك تشفير رسائلك السابقة بعد إنشاء مفاتيح جديدة.",
generateNew: "إنشاء جديد",
pleaseSaveYourRecoveryCode:
"يرجى حفظ رمز الاسترداد الخاص بك. ستحتاج إليه للوصول إلى رسائلك المشفّرة. إذا مسحت ذاكرة التخزين المؤقت أو استخدمت جهازًا مختلفًا، فستحتاج إلى إدخال رمز الاسترداد.",
ISavedRecoveryCode: "لقد حفظت رمز الاسترداد",
generateNewKeys: "إنشاء مفاتيح جديدة",
generateNewKeysDes:
"إذا أنشأت مفاتيح جديدة، فلن تتمكن من فك تشفير رسائلك السابقة. سيتم تشفير الرسائل الجديدة باستخدام المفاتيح الجديدة.",
ifForgotRecoveryCode:
"إذا نسيت رمز الاسترداد الخاص بك أو كنت تستخدم SuperDM لأول مرة، يمكنك إنشاء مفاتيح تشفير جديدة.",
clickGenerateKeys: "انقر على «إنشاء المفاتيح» لإعداد تشفير SuperDM.",
beReadyToSaveRecoveryCode: "يرجى الاستعداد لحفظ رمز الاسترداد الخاص بك.",
generateKeys: "إنشاء المفاتيح",
superDMIsEnded: "انتهى SuperDM.",
superDMIsEndedAt: "انتهى SuperDM في {date}.",
sendAMessage: "إرسال رسالة...",
superDMNotConfiguredTitle: "لم يتم إعداد SuperDM.",
superDMNotConfiguredDes:
"سيتيح تفعيل SuperDM للمعجبين دفع مبلغ تختاره لبدء محادثة خاصة معك. هذه محادثة مشفّرة من طرف إلى طرف بينك وبين المعجب، ولا يمكن لأي شخص آخر رؤية هذه الرسائل (ولا حتى نحن!). يجب تفعيل الإشعارات لهذه الميزة حتى يتم إعلامك عند وصول SuperDM. يرجى الرد على معجبيك بسرعة.",
configureSuperDMs: "إعداد SuperDM",
configureNotifications: "إعداد الإشعارات",
showKeys: "إظهار المفاتيح",
continueSuperDM: "متابعة SuperDM",
savedKeys: "المفاتيح المحفوظة",
useSavedKeys: "يمكنك استخدام المفاتيح المحفوظة لمتابعة رسائل SuperDM.",
use: "استخدام",
enterSuperDMIdAndRecoveryCode: "أدخل معرّف SuperDM ورمز الاسترداد.",
minSuperDMAmount: "الحد الأدنى لمبلغ SuperDM ( XMR )",
minSuperDMAmountHelp:
"الحد الأدنى للمبلغ الذي يجب أن يرسله المعجب إليك لبدء SuperDM.",
showRecoveryCode: "إظهار رمز الاسترداد",
superDMRecoveryCodesTitle: "رموز استرداد SuperDM",
superDMRecoveryCodesDes:
"لا يتم حفظ رموز الاسترداد على الخادم. يرجى حفظ رمز الاسترداد الخاص بك. ستحتاج إلى رمز الاسترداد ومعرّف SuperDM للوصول إلى رسائلك المشفّرة. إذا مسحت ذاكرة التخزين المؤقت أو استخدمت جهازًا مختلفًا، فستحتاج إلى إدخال رمز الاسترداد.",
// GUIDES
walletGuides: "أدلة المحفظة",
howToFindPrimaryAddress:
"كيفية العثور على العنوان الأساسي ومفتاح العرض الخاص (المعروف أيضًا بمفتاح العرض السري):",
toGetYourPrimaryAddress: "للحصول على عنوانك الأساسي:",
toGetYourViewKey: "للحصول على مفتاح العرض الخاص بك",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. انقر على "استلام"',
primaryAddress2: "2. انسخ العنوان الذي يبدأ بالرقم 4",
viewKey1: "1. انقر على الإعدادات",
viewKey2: '2. انسخ "مفتاح العرض (الخاص)"',
securityAndBackup: "الأمان والنسخ الاحتياطي",
showSeed: "إظهار العبارة الأولية/المفاتيح",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. انقر على الإعدادات",
guide2: '2. انسخ "العنوان الأساسي" و"مفتاح العرض السري"',
seedsAndKeys: "العبارات الأولية والمفاتيح",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. انقر على Wallet",
guide2: '2. انسخ "العنوان الأساسي" و"مفتاح العرض السري"',
keys: "المفاتيح",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. انقر على Wallet",
clickOnTheMenu: "انقر على القائمة",
selectShowSecrets: 'اختر "Show Secrets!"',
guide2: '2. انسخ "العنوان العام"',
guide3: '3. وسّع "المعلومات التفصيلية"',
copyViewKey: 'انسخ "مفتاح العرض"',
},
};
+130
View File
@@ -56,11 +56,14 @@ export default {
here: "zde",
backToHome: "Zpět na domovskou stránku",
somethingWentWrong: "Něco se pokazilo!",
donate: "Přispět",
xmrchat: "XMRChat",
heroDescription: "Podpořte svého oblíbeného streamera kryptoměnou.",
findCreators: "Najít tvůrce",
creatorsStartHere: "Tvůrci začínají zde",
fansTippingStats:
"Fanoušci poslali {tipsCount} superchatů v celkové hodnotě {totalAmount} Monero ({fiatAmount}) {pagesCount} tvůrcům obsahu prostřednictvím XMRChat!",
FAQ: {
title: "Často kladené dotazy",
@@ -187,6 +190,24 @@ export default {
cancel: "Zrušit",
copyAddress: "Kopírovat adresu",
waitingForPayment: "Čekání na platbu",
tipSwapFailed:
"Směna selhala. Navštivte prosím níže uvedený odkaz na Trocador, zkontrolujte stav a v případě potřeby směnu zrušte.",
paymentExpired:
"Platba vypršela. Pokud jste již platbu odeslali, kontaktujte prosím podporu.",
sendTestTip: "Odeslat testovací tip",
swapStatus: "Stav směny: ",
swapStatusMessage: {
waiting: "Čekání na platbu.",
confirming: "Čekání na potvrzení na blockchainu.",
sending: "Směna se odesílá do XMRChat.",
failed: "Směna selhala, kontaktujte prosím podporu Trocador.",
},
paymentReceived: "Platba přijata.",
exactly: "přesně",
swapPaymentSend:
"Pro zobrazení vašeho xmrchat prosím odešlete {exactly} {amount} na tuto adresu.",
swapETA: "Předpokládaná doba směny je přibližně {eta} minut.",
trackSwap: "Svou směnu můžete sledovat přímo přes {trocador}.",
contactUsDescription:
"Kontaktujte nás s jakýmikoli dotazy nebo zpětnou vazbou.",
@@ -471,4 +492,113 @@ export default {
repliedMessagePreview: "Náhled odpovědi",
action: "Akce",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Cíl spropitného byl aktualizován",
tipGoalCreated: "Cíl spropitného byl vytvořen",
amountXMR: "Částka ( XMR )",
start: "Začátek",
end: "Konec",
isActive: "Je aktivní",
isActiveHelp:
"Deaktivovaný cíl spropitného se na vaší stránce spropitného nebude zobrazovat.",
timeIsEnded: "Čas vypršel",
// SUPER DM
amount: "Částka",
superDMAlertTitle: "SuperDM se nepodařilo spustit",
startSuperDM: "Spustit SuperDM",
openSuperDM: "Otevřít SuperDM",
endSuperDM: "Ukončit SuperDM",
endedAt: "Ukončeno v",
endSuperDMText: "Po ukončení tohoto SuperDM již nelze odesílat zprávy.",
saveSuperDMIdAndKeyTitle: "Uložit ID SuperDM a obnovovací kód",
saveSuperDMIdAndKeyDes:
"Uložte si ID SuperDM a obnovovací klíč. Klíče nelze znovu použít. Bez nich nebudete moci zprávy obnovit ani dešifrovat. XMRChat nebude vaše obnovovací klíče ukládat.",
savedIdAndRecoveryCode: "ID a obnovovací klíč jsem uložil",
superDMKeysRecoveryTitle:
"Obnovovací klíče nejsou v tomto prohlížeči uloženy. Pro obnovení zpráv zadejte mnemotechnickou frázi tohoto SuperDM.",
superDMId: "ID SuperDM: ",
mnemonicPhrase: "Mnemotechnická fráze",
enterYourMnemonicPhrase: "Zadejte svou mnemotechnickou frázi",
recover: "Obnovit",
encryptionKeys: "Šifrovací klíče",
backupRecoveryCode: "Zálohujte svůj obnovovací kód",
backupRecoveryCodeDes:
"XMRChat ukládá pouze váš veřejný klíč. Váš obnovovací kód zůstává ve vašem zařízení.",
recoveryCode: "Obnovovací kód",
recoveryCodeDes:
"Zadejte svůj obnovovací kód nebo vygenerujte nové klíče. Po vygenerování nových klíčů již nebudete moci dešifrovat předchozí zprávy.",
generateNew: "Vygenerovat nové",
pleaseSaveYourRecoveryCode:
"Uložte si prosím svůj obnovovací kód. Budete ho potřebovat pro přístup k šifrovaným zprávám. Pokud vymažete mezipaměť nebo použijete jiné zařízení, budete muset obnovovací kód znovu zadat.",
ISavedRecoveryCode: "Obnovovací kód jsem uložil",
generateNewKeys: "Vygenerovat nové klíče",
generateNewKeysDes:
"Pokud vygenerujete nové klíče, nebudete moci dešifrovat předchozí zprávy. Nové zprávy budou šifrovány pomocí nových klíčů.",
ifForgotRecoveryCode:
"Pokud jste zapomněli svůj obnovovací kód nebo používáte SuperDM poprvé, můžete vygenerovat nové šifrovací klíče.",
clickGenerateKeys:
"Kliknutím na „Vygenerovat klíče“ nastavíte šifrování SuperDM.",
beReadyToSaveRecoveryCode:
"Připravte se prosím na uložení svého obnovovacího kódu.",
generateKeys: "Vygenerovat klíče",
superDMIsEnded: "SuperDM byl ukončen.",
superDMIsEndedAt: "SuperDM byl ukončen v {date}.",
sendAMessage: "Odeslat zprávu...",
superDMNotConfiguredTitle: "SuperDM nejsou nakonfigurovány.",
superDMNotConfiguredDes:
"Povolení SuperDM umožní fanouškům zaplatit vámi zvolenou částku za možnost zahájit s vámi soukromou konverzaci. Jedná se o end-to-end šifrovaný chat mezi vámi a fanouškem; tyto zprávy nikdo další neuvidí (ani my!). Pro tuto funkci musí být povolena oznámení, abyste byli upozorněni, když přijde SuperDM. Odpovídejte prosím svým fanouškům rychle.",
configureSuperDMs: "Nakonfigurovat SuperDM",
configureNotifications: "Nakonfigurovat oznámení",
showKeys: "Zobrazit klíče",
continueSuperDM: "Pokračovat v SuperDM",
savedKeys: "Uložené klíče",
useSavedKeys: "K pokračování zpráv SuperDM můžete použít uložené klíče.",
use: "Použít",
enterSuperDMIdAndRecoveryCode: "Zadejte ID SuperDM a obnovovací kód.",
minSuperDMAmount: "Min. částka SuperDM ( XMR )",
minSuperDMAmountHelp:
"Minimální částka, kterou vám fanoušek musí poslat, aby mohl zahájit SuperDM.",
showRecoveryCode: "Zobrazit obnovovací kód",
superDMRecoveryCodesTitle: "Obnovovací kódy SuperDM",
superDMRecoveryCodesDes:
"Obnovovací kódy nejsou uloženy na serveru. Uložte si prosím svůj obnovovací kód. Pro přístup k šifrovaným zprávám budete potřebovat obnovovací kód a ID SuperDM. Pokud vymažete mezipaměť nebo použijete jiné zařízení, budete muset obnovovací kód zadat znovu.",
// GUIDES
walletGuides: "PRŮVODCI PENĚŽENKOU",
howToFindPrimaryAddress:
"Jak najít primární adresu a soukromý view klíč (známý také jako tajný view klíč):",
toGetYourPrimaryAddress: "Chcete-li získat svou primární adresu:",
toGetYourViewKey: "Chcete-li získat svůj view klíč",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Klikněte na "Přijmout"',
primaryAddress2: "2. Zkopírujte adresu, která začíná číslem 4",
viewKey1: "1. Klikněte na Nastavení",
viewKey2: '2. Zkopírujte "View key (soukromý)"',
securityAndBackup: "Zabezpečení a záloha",
showSeed: "Zobrazit seed/klíče",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Klikněte na Nastavení",
guide2: '2. Zkopírujte "Primární adresu" a "Tajný view klíč"',
seedsAndKeys: "Seedy a klíče",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Klikněte na Wallet",
guide2: '2. Zkopírujte "Primární adresu" a "Tajný view klíč"',
keys: "Klíče",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Klikněte na Wallet",
clickOnTheMenu: "Klikněte na menu",
selectShowSecrets: 'Vyberte "Show Secrets!"',
guide2: '2. Zkopírujte "Veřejnou adresu"',
guide3: '3. Rozbalte "Podrobné informace"',
copyViewKey: 'Zkopírujte "View Key"',
},
};
+135
View File
@@ -58,11 +58,14 @@ export default {
here: "hier",
backToHome: "Zurück zur Startseite",
somethingWentWrong: "Etwas ist schiefgelaufen!",
donate: "Spenden",
xmrchat: "XMRChat",
heroDescription: "Unterstütze deinen Lieblings-Streamer mit Kryptowährung",
findCreators: "Creator finden",
creatorsStartHere: "Creator starten hier",
fansTippingStats:
"Fans haben {tipsCount} Superchats im Gesamtwert von {totalAmount} Monero ({fiatAmount}) an {pagesCount} Content-Creator mit XMRChat gesendet!",
FAQ: {
title: "FAQ",
@@ -194,6 +197,25 @@ export default {
cancel: "Abbrechen",
copyAddress: "Adresse kopieren",
waitingForPayment: "Warte auf Zahlung",
tipSwapFailed:
"Der Swap ist fehlgeschlagen. Bitte besuche den folgenden Trocador-Link, um den Status zu überprüfen und den Swap gegebenenfalls zu stornieren.",
paymentExpired:
"Die Zahlung ist abgelaufen. Wenn du deine Zahlung bereits gesendet hast, kontaktiere bitte den Support.",
sendTestTip: "Test-Tipp senden",
swapStatus: "Swap-Status: ",
swapStatusMessage: {
waiting: "Warten auf Zahlung.",
confirming: "Warten auf die Bestätigung auf der Blockchain.",
sending: "Der Swap wird an XMRChat gesendet.",
failed:
"Der Swap ist fehlgeschlagen. Bitte kontaktiere den Trocador-Support.",
},
paymentReceived: "Zahlung erhalten.",
exactly: "genau",
swapPaymentSend:
"Bitte sende {exactly} {amount} an diese Adresse, damit dein xmrchat angezeigt werden kann.",
swapETA: "Die voraussichtliche Swap-Dauer beträgt etwa {eta} Minuten.",
trackSwap: "Du kannst deinen Swap direkt über {trocador} verfolgen.",
// CONTACT US PAGE
contactUsDescription: "Kontaktiere uns bei Fragen oder Feedback.",
@@ -483,4 +505,117 @@ export default {
repliedMessagePreview: "Vorschau der beantworteten Nachricht",
action: "Aktion",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Trinkgeldziel aktualisiert",
tipGoalCreated: "Trinkgeldziel erstellt",
amountXMR: "Betrag ( XMR )",
start: "Start",
end: "Ende",
isActive: "Ist aktiv",
isActiveHelp:
"Ein deaktiviertes Trinkgeldziel wird nicht auf deiner Trinkgeldseite angezeigt.",
timeIsEnded: "Die Zeit ist abgelaufen",
// SUPER DM
amount: "Betrag",
superDMAlertTitle: "SuperDM konnte nicht gestartet werden",
startSuperDM: "SuperDM starten",
openSuperDM: "SuperDM öffnen",
endSuperDM: "SuperDM beenden",
endedAt: "Beendet um",
endSuperDMText:
"Nach dem Beenden können in diesem SuperDM keine Nachrichten mehr gesendet werden.",
saveSuperDMIdAndKeyTitle: "SuperDM-ID und Wiederherstellungscode speichern",
saveSuperDMIdAndKeyDes:
"Bitte speichere die SuperDM-ID und den Wiederherstellungsschlüssel. Die Schlüssel können nicht wiederverwendet werden. Ohne sie kannst du die Nachrichten nicht wiederherstellen/entschlüsseln. XMRChat speichert deine Wiederherstellungsschlüssel nicht.",
savedIdAndRecoveryCode:
"Ich habe die ID und den Wiederherstellungsschlüssel gespeichert",
superDMKeysRecoveryTitle:
"Die Wiederherstellungsschlüssel sind in diesem Browser nicht gespeichert. Bitte gib die mnemonische Phrase für dieses SuperDM ein, um die Nachrichten wiederherzustellen.",
superDMId: "SuperDM-ID: ",
mnemonicPhrase: "Mnemonische Phrase",
enterYourMnemonicPhrase: "Gib deine mnemonische Phrase ein",
recover: "Wiederherstellen",
encryptionKeys: "Verschlüsselungsschlüssel",
backupRecoveryCode: "Wiederherstellungscode sichern",
backupRecoveryCodeDes:
"XMRChat speichert nur deinen öffentlichen Schlüssel. Dein Wiederherstellungscode bleibt auf deinem Gerät.",
recoveryCode: "Wiederherstellungscode",
recoveryCodeDes:
"Gib deinen Wiederherstellungscode ein oder erstelle neue Schlüssel. Nach dem Erstellen neuer Schlüssel kannst du deine bisherigen Nachrichten nicht mehr entschlüsseln.",
generateNew: "Neue erstellen",
pleaseSaveYourRecoveryCode:
"Bitte speichere deinen Wiederherstellungscode. Du benötigst ihn, um auf deine verschlüsselten Nachrichten zuzugreifen. Wenn du den Cache löschst oder ein anderes Gerät verwendest, musst du den Wiederherstellungscode eingeben.",
ISavedRecoveryCode: "Ich habe den Wiederherstellungscode gespeichert",
generateNewKeys: "Neue Schlüssel erstellen",
generateNewKeysDes:
"Wenn du neue Schlüssel erstellst, kannst du deine bisherigen Nachrichten nicht mehr entschlüsseln. Neue Nachrichten werden mit den neuen Schlüsseln verschlüsselt.",
ifForgotRecoveryCode:
"Wenn du deinen Wiederherstellungscode vergessen hast oder SuperDM zum ersten Mal verwendest, kannst du neue Verschlüsselungsschlüssel erstellen.",
clickGenerateKeys:
"Klicke auf „Schlüssel erstellen“, um die SuperDM-Verschlüsselung einzurichten.",
beReadyToSaveRecoveryCode:
"Bitte sei bereit, deinen Wiederherstellungscode zu speichern.",
generateKeys: "Schlüssel erstellen",
superDMIsEnded: "SuperDM ist beendet.",
superDMIsEndedAt: "SuperDM wurde um {date} beendet.",
sendAMessage: "Nachricht senden...",
superDMNotConfiguredTitle: "SuperDMs sind nicht konfiguriert.",
superDMNotConfiguredDes:
"Durch die Aktivierung von SuperDMs können Fans dir einen von dir festgelegten Betrag zahlen, um ein privates Gespräch mit dir zu beginnen. Es handelt sich um einen Ende-zu-Ende-verschlüsselten Chat zwischen dir und dem Fan. Niemand sonst kann diese Nachrichten sehen (nicht einmal wir!). Für diese Funktion müssen Benachrichtigungen aktiviert sein, damit du informiert wirst, wenn ein SuperDM eingeht. Bitte antworte deinen Fans schnell.",
configureSuperDMs: "SuperDMs konfigurieren",
configureNotifications: "Benachrichtigungen konfigurieren",
showKeys: "Schlüssel anzeigen",
continueSuperDM: "SuperDM fortsetzen",
savedKeys: "Gespeicherte Schlüssel",
useSavedKeys:
"Du kannst die gespeicherten Schlüssel verwenden, um die SuperDM-Nachrichten fortzusetzen.",
use: "Verwenden",
enterSuperDMIdAndRecoveryCode:
"Gib die SuperDM-ID und den Wiederherstellungscode ein.",
minSuperDMAmount: "Mindestbetrag für SuperDM ( XMR )",
minSuperDMAmountHelp:
"Der Mindestbetrag, den ein Fan dir senden muss, um ein SuperDM zu starten.",
showRecoveryCode: "Wiederherstellungscode anzeigen",
superDMRecoveryCodesTitle: "SuperDM-Wiederherstellungscodes",
superDMRecoveryCodesDes:
"Die Wiederherstellungscodes werden nicht auf dem Server gespeichert. Bitte speichere deinen Wiederherstellungscode. Du benötigst den Wiederherstellungscode und die SuperDM-ID, um auf deine verschlüsselten Nachrichten zuzugreifen. Wenn du den Cache löschst oder ein anderes Gerät verwendest, musst du den Wiederherstellungscode eingeben.",
// GUIDES
walletGuides: "WALLET-ANLEITUNGEN",
howToFindPrimaryAddress:
"So findest du die primäre Adresse und den privaten View-Key (auch bekannt als geheimer View-Key):",
toGetYourPrimaryAddress: "So erhältst du deine primäre Adresse:",
toGetYourViewKey: "So erhältst du deinen View-Key",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Klicke auf "Empfangen"',
primaryAddress2: "2. Kopiere die Adresse, die mit 4 beginnt",
viewKey1: "1. Klicke auf Einstellungen",
viewKey2: '2. Kopiere den "View Key (privat)"',
securityAndBackup: "Sicherheit und Backup",
showSeed: "Seed/Schlüssel anzeigen",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Klicke auf Einstellungen",
guide2: '2. Kopiere die "Primäre Adresse" und den "Geheimen View Key"',
seedsAndKeys: "Seeds & Schlüssel",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Klicke auf Wallet",
guide2: '2. Kopiere die "Primäre Adresse" und den "Geheimen View Key"',
keys: "Schlüssel",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Klicke auf Wallet",
clickOnTheMenu: "Klicke auf das Menü",
selectShowSecrets: 'Wähle "Show Secrets!"',
guide2: '2. Kopiere die "Öffentliche Adresse"',
guide3: '3. Erweitere "Detaillierte Informationen"',
copyViewKey: 'Kopiere den "View Key"',
},
};
+129 -1
View File
@@ -58,11 +58,14 @@ export default {
here: "here",
backToHome: "Back to Home",
somethingWentWrong: "Something went wrong!",
donate: "Donate",
xmrchat: "XMRChat",
heroDescription: "Tip your favorite streamer in cryptocurrency.",
findCreators: "Find Creators",
creatorsStartHere: "Creators Start Here",
fansTippingStats:
"Fans have sent {tipsCount} superchats totaling {totalAmount} Monero ({fiatAmount}) to {pagesCount} content creators with XMRChat!",
FAQ: {
title: "FAQ",
@@ -192,6 +195,24 @@ export default {
cancel: "Cancel",
copyAddress: "Copy Address",
waitingForPayment: "Waiting for payment",
tipSwapFailed:
"Swap failed. Please visit the Trocador link below to check the status and cancel the swap if necessary.",
paymentExpired:
"Payment is expired. If you have already sent your payment please contact support.",
sendTestTip: "Send Test Tip",
swapStatus: "Swap Status: ",
swapStatusMessage: {
waiting: "Waiting for payment.",
confirming: "Waiting for blockchain confirmation.",
sending: "Swap is being sent to XMRChat.",
failed: "Swap failed, please contact Trocador support.",
},
paymentReceived: "Payment received.",
exactly: "exactly",
swapPaymentSend:
"Please send {exactly} {amount} to this address for your xmrchat to be displayed.",
swapETA: "Swap ETA is about {eta} minutes.",
trackSwap: "You can track your swap directly from {trocador}.",
// CONTACT US PAGE
contactUsDescription: "Contact us for any questions or feedback.",
@@ -322,7 +343,7 @@ export default {
kunoFundraiser: "Kuno fundraiser",
rumbleLiveStreamApi: "Rumble live stream API",
rumbleLiveStreamApiHelp:
"Rumble live stream API from {guide}. XMRChat uses this URL for getting current live streams of your channel.",
"Rumble live stream API from {guide}. XMRChat uses this URL to feature your livestream on our homepage.",
thisGuide: "this guide",
// OBS
@@ -482,4 +503,111 @@ export default {
repliedMessagePreview: "Replied message preview",
action: "Action",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Tip goal updated",
tipGoalCreated: "Tip goal created",
amountXMR: "Amount ( XMR )",
start: "Start",
end: "End",
isActive: "Is Active",
isActiveHelp: "Deactivated tip goal will not be displayed on your tip page.",
timeIsEnded: "Time is ended",
// SUPER DM
amount: "Amount",
superDMAlertTitle: "SuperDM could not be started",
startSuperDM: "Start SuperDM",
openSuperDM: "Open SuperDM",
endSuperDM: "End SuperDM",
endedAt: "Ended at",
endSuperDMText:
"Messages can no longer be sent in this SuperDM after it is ended.",
saveSuperDMIdAndKeyTitle: "Save SuperDM id and Recovery code",
saveSuperDMIdAndKeyDes:
"Please save SuperDM id and Recovery key. The keys can not be reused. You will not be able to recover/decrypt the messages without them. XMRChat will not store your recovery keys.",
savedIdAndRecoveryCode: "I saved id and recovery key",
superDMKeysRecoveryTitle:
"The recovery keys are not saved on this browser. Please enter the mnemonic phrase for this SuperDM to recover the messages.",
superDMId: "SuperDM id: ",
mnemonicPhrase: "Mnemonic phrase",
enterYourMnemonicPhrase: "Enter your mnemonic phrase",
recover: "Recover",
encryptionKeys: "Encryption Keys",
backupRecoveryCode: "Backup your recovery code",
backupRecoveryCodeDes:
"XMRChat only stores your public key. Your recovery code remains on your device.",
recoveryCode: "Recovery Code",
recoveryCodeDes:
"Enter your recovery code or generate new keys. You won't be able to decrypt your previous messages after generating new keys.",
generateNew: "Generate new",
pleaseSaveYourRecoveryCode:
"Please save your recovery code. You will need the recovery code to access your encrypted messages. If you clear cache or use different device you will need to enter the recovery code.",
ISavedRecoveryCode: "I saved the recovery code",
generateNewKeys: "Generate new keys",
generateNewKeysDes:
"If you generate new keys you will not be able to decrypt your previous messages. New messages will be encrypted with the new keys.",
ifForgotRecoveryCode:
"If you forgot your recovery code or it is your first time using SuperDM, you can generate new encryption keys.",
clickGenerateKeys: "Click generate keys to setup the SuperDM encryption.",
beReadyToSaveRecoveryCode: "Please be ready to save your recovery code.",
generateKeys: "Generate keys",
superDMIsEnded: "SuperDM is ended.",
superDMIsEndedAt: "SuperDM is ended at {date}.",
sendAMessage: "Send a message...",
superDMNotConfiguredTitle: "SuperDMs are not configured.",
superDMNotConfiguredDes:
"Enabling SuperDMs will allow fans to pay you an amount you choose for the ability to start a private conversation with you. This is an end to end encrypted chat between you and the fan, no one else sees these messages (not even us!). Notifications need to be enabled for this feature so you are notified when a SuperDM arrives. Please respond quickly to your fans.",
configureSuperDMs: "Configure SuperDMs",
configureNotifications: "Configure Notifications",
showKeys: "Show keys",
continueSuperDM: "Continue SuperDM",
savedKeys: "Saved keys",
useSavedKeys: "You can use the saved keys to continue the SuperDM messages.",
use: "Use",
enterSuperDMIdAndRecoveryCode: "Enter the SuperDM id and recovery code.",
minSuperDMAmount: "Min. SuperDM amount ( XMR )",
minSuperDMAmountHelp:
"The minimum amount a fan needs to send to you to start a SuperDM.",
showRecoveryCode: "Show Recovery Code",
superDMRecoveryCodesTitle: "SuperDM recovery codes",
superDMRecoveryCodesDes:
"The recovery codes are not saved on the server. Please save the recovery code. You will need the recovery code and SuperDM id to access your encrypted messages. If you clear cache or use different device you will need to enter the recovery code.",
// GUIDES
walletGuides: "WALLET GUIDES",
howToFindPrimaryAddress:
"How to find the primary address and private view key (also known as secret view key):",
toGetYourPrimaryAddress: "To get your primary address:",
toGetYourViewKey: "To get your view key",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Click on "Receive"',
primaryAddress2: "2. Copy the address that begins with 4",
viewKey1: "1. Click on Settings",
viewKey2: '2. Copy "View key (private)"',
securityAndBackup: "Security and backup",
showSeed: "Show seed/keys",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Click on Settings",
guide2: '2. Copy "Primary address" and "Secret view key"',
seedsAndKeys: "Seeds & Keys",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Click on Wallet",
guide2: '2. Copy "Primary address" and "Secret view key"',
keys: "Keys",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Click on Wallet",
clickOnTheMenu: "Click on the menu",
selectShowSecrets: 'Select "Show Secrets!"',
guide2: '2. Copy "Public Address"',
guide3: '3. Expand "Detailed information"',
copyViewKey: 'Copy "View Key"',
},
};
+135
View File
@@ -58,11 +58,14 @@ export default {
here: "aquí",
backToHome: "Volver al inicio",
somethingWentWrong: "¡Algo salió mal!",
donate: "Donar",
xmrchat: "XMRChat",
heroDescription: "De propinas en criptomonedas a sus streamers favoritos.",
findCreators: "Encontrar creadores",
creatorsStartHere: "Los creadores comienzan aquí",
fansTippingStats:
"¡Los fans han enviado {tipsCount} superchats por un total de {totalAmount} Monero ({fiatAmount}) a {pagesCount} creadores de contenido con XMRChat!",
FAQ: {
title: "Preguntas frecuentes",
@@ -194,6 +197,25 @@ export default {
cancel: "Cancelar",
copyAddress: "Copiar dirección",
waitingForPayment: "Esperando el pago",
tipSwapFailed:
"El intercambio ha fallado. Visita el enlace de Trocador a continuación para comprobar el estado y cancelar el intercambio si es necesario.",
paymentExpired:
"El pago ha caducado. Si ya has enviado el pago, ponte en contacto con el soporte.",
sendTestTip: "Enviar propina de prueba",
swapStatus: "Estado del intercambio: ",
swapStatusMessage: {
waiting: "Esperando el pago.",
confirming: "Esperando la confirmación en la blockchain.",
sending: "El intercambio se está enviando a XMRChat.",
failed:
"El intercambio ha fallado. Ponte en contacto con el soporte de Trocador.",
},
paymentReceived: "Pago recibido.",
exactly: "exactamente",
swapPaymentSend:
"Envía {exactly} {amount} a esta dirección para que se muestre tu xmrchat.",
swapETA: "El tiempo estimado del intercambio es de unos {eta} minutos.",
trackSwap: "Puedes seguir tu intercambio directamente desde {trocador}.",
// CONTACT US PAGE
contactUsDescription: "Contáctanos si tienes preguntas o comentarios.",
@@ -480,4 +502,117 @@ export default {
repliedMessagePreview: "Vista previa del mensaje respondido",
action: "Acción",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Objetivo de propina actualizado",
tipGoalCreated: "Objetivo de propina creado",
amountXMR: "Cantidad ( XMR )",
start: "Inicio",
end: "Fin",
isActive: "Está activo",
isActiveHelp:
"Un objetivo de propina desactivado no se mostrará en tu página de propinas.",
timeIsEnded: "El tiempo ha terminado",
// SUPER DM
amount: "Cantidad",
superDMAlertTitle: "No se pudo iniciar SuperDM",
startSuperDM: "Iniciar SuperDM",
openSuperDM: "Abrir SuperDM",
endSuperDM: "Finalizar SuperDM",
endedAt: "Finalizado a las",
endSuperDMText:
"Ya no se pueden enviar mensajes en este SuperDM una vez finalizado.",
saveSuperDMIdAndKeyTitle:
"Guardar el ID y el código de recuperación de SuperDM",
saveSuperDMIdAndKeyDes:
"Guarda el ID de SuperDM y la clave de recuperación. Las claves no se pueden reutilizar. No podrás recuperar/descifrar los mensajes sin ellas. XMRChat no almacenará tus claves de recuperación.",
savedIdAndRecoveryCode: "He guardado el ID y la clave de recuperación",
superDMKeysRecoveryTitle:
"Las claves de recuperación no están guardadas en este navegador. Introduce la frase mnemónica de este SuperDM para recuperar los mensajes.",
superDMId: "ID de SuperDM: ",
mnemonicPhrase: "Frase mnemónica",
enterYourMnemonicPhrase: "Introduce tu frase mnemónica",
recover: "Recuperar",
encryptionKeys: "Claves de cifrado",
backupRecoveryCode: "Haz una copia de seguridad de tu código de recuperación",
backupRecoveryCodeDes:
"XMRChat solo almacena tu clave pública. Tu código de recuperación permanece en tu dispositivo.",
recoveryCode: "Código de recuperación",
recoveryCodeDes:
"Introduce tu código de recuperación o genera nuevas claves. No podrás descifrar tus mensajes anteriores después de generar nuevas claves.",
generateNew: "Generar nuevas",
pleaseSaveYourRecoveryCode:
"Guarda tu código de recuperación. Lo necesitarás para acceder a tus mensajes cifrados. Si borras la caché o utilizas otro dispositivo, tendrás que introducir el código de recuperación.",
ISavedRecoveryCode: "He guardado el código de recuperación",
generateNewKeys: "Generar nuevas claves",
generateNewKeysDes:
"Si generas nuevas claves, no podrás descifrar tus mensajes anteriores. Los mensajes nuevos se cifrarán con las nuevas claves.",
ifForgotRecoveryCode:
"Si olvidaste tu código de recuperación o es la primera vez que usas SuperDM, puedes generar nuevas claves de cifrado.",
clickGenerateKeys:
"Haz clic en «Generar claves» para configurar el cifrado de SuperDM.",
beReadyToSaveRecoveryCode:
"Prepárate para guardar tu código de recuperación.",
generateKeys: "Generar claves",
superDMIsEnded: "SuperDM ha finalizado.",
superDMIsEndedAt: "SuperDM finalizó a las {date}.",
sendAMessage: "Enviar un mensaje...",
superDMNotConfiguredTitle: "Los SuperDM no están configurados.",
superDMNotConfiguredDes:
"Activar los SuperDM permitirá que tus fans te paguen la cantidad que elijan para iniciar una conversación privada contigo. Es un chat cifrado de extremo a extremo entre tú y el fan; nadie más puede ver estos mensajes (¡ni siquiera nosotros!). Las notificaciones deben estar activadas para esta función para que recibas una notificación cuando llegue un SuperDM. Responde rápidamente a tus fans.",
configureSuperDMs: "Configurar SuperDM",
configureNotifications: "Configurar notificaciones",
showKeys: "Mostrar claves",
continueSuperDM: "Continuar SuperDM",
savedKeys: "Claves guardadas",
useSavedKeys:
"Puedes utilizar las claves guardadas para continuar los mensajes de SuperDM.",
use: "Usar",
enterSuperDMIdAndRecoveryCode:
"Introduce el ID de SuperDM y el código de recuperación.",
minSuperDMAmount: "Cantidad mínima de SuperDM ( XMR )",
minSuperDMAmountHelp:
"Cantidad mínima que un fan debe enviarte para iniciar un SuperDM.",
showRecoveryCode: "Mostrar código de recuperación",
superDMRecoveryCodesTitle: "Códigos de recuperación de SuperDM",
superDMRecoveryCodesDes:
"Los códigos de recuperación no se guardan en el servidor. Guarda tu código de recuperación. Necesitarás el código de recuperación y el ID de SuperDM para acceder a tus mensajes cifrados. Si borras la caché o utilizas otro dispositivo, tendrás que introducir el código de recuperación.",
// GUIDES
walletGuides: "GUÍAS DE CARTERA",
howToFindPrimaryAddress:
"Cómo encontrar la dirección principal y la clave de vista privada (también conocida como clave de vista secreta):",
toGetYourPrimaryAddress: "Para obtener tu dirección principal:",
toGetYourViewKey: "Para obtener tu clave de vista",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Haz clic en "Recibir"',
primaryAddress2: "2. Copia la dirección que comienza con 4",
viewKey1: "1. Haz clic en Configuración",
viewKey2: '2. Copia la "Clave de vista (privada)"',
securityAndBackup: "Seguridad y copia de seguridad",
showSeed: "Mostrar semilla/claves",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Haz clic en Configuración",
guide2: '2. Copia la "Dirección principal" y la "Clave de vista secreta"',
seedsAndKeys: "Semillas y claves",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Haz clic en Cartera",
guide2: '2. Copia la "Dirección principal" y la "Clave de vista secreta"',
keys: "Claves",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Haz clic en Cartera",
clickOnTheMenu: "Haz clic en el menú",
selectShowSecrets: 'Selecciona "¡Mostrar secretos!"',
guide2: '2. Copia la "Dirección pública"',
guide3: '3. Expande "Información detallada"',
copyViewKey: 'Copia la "Clave de vista"',
},
};
+129
View File
@@ -57,11 +57,14 @@ export default {
here: "اینجا",
backToHome: "بازگشت به خانه",
somethingWentWrong: "خطایی ناخواسته پیش آمده ",
donate: "اهدا",
xmrchat: "XMRChat",
heroDescription: "به استریمر مورد علاقه خود با ارز دیجیتال انعام دهید.",
findCreators: "پیدا کردن سازندگان محتوا",
creatorsStartHere: " تولیدکنندگان محتوا جهت شروع از این قسمت استفاده کنند.",
fansTippingStats:
"طرفداران با استفاده از XMRChat تعداد {tipsCount} سوپرچت به ارزش مجموعاً {totalAmount} مونرو ({fiatAmount}) به {pagesCount} تولیدکننده محتوا ارسال کرده‌اند!",
FAQ: {
title: "سوالات متداول",
@@ -191,6 +194,24 @@ export default {
cancel: "لغو کردن",
copyAddress: "کپی آدرس",
waitingForPayment: "در انتظار پرداخت",
tipSwapFailed:
"تراکنش سواپ ناموفق بود. لطفاً برای بررسی وضعیت و لغو سواپ در صورت نیاز، به لینک Trocador در زیر مراجعه کنید.",
paymentExpired:
"مهلت پرداخت به پایان رسیده است. اگر پرداخت خود را قبلاً ارسال کرده‌اید، لطفاً با پشتیبانی تماس بگیرید.",
sendTestTip: "ارسال انعام آزمایشی",
swapStatus: "وضعیت سواپ: ",
swapStatusMessage: {
waiting: "در انتظار پرداخت.",
confirming: "در انتظار تأیید در بلاکچین.",
sending: "سواپ در حال ارسال به XMRChat است.",
failed: "سواپ ناموفق بود، لطفاً با پشتیبانی Trocador تماس بگیرید.",
},
paymentReceived: "پرداخت دریافت شد.",
exactly: "دقیقاً",
swapPaymentSend:
"لطفاً {exactly} {amount} را به این آدرس ارسال کنید تا xmrchat شما نمایش داده شود.",
swapETA: "زمان تقریبی انجام سواپ حدود {eta} دقیقه است.",
trackSwap: "می‌توانید سواپ خود را مستقیماً از طریق {trocador} پیگیری کنید.",
// CONTACT US PAGE
contactUsDescription: "جهت هرگونه سوال یا بازخورد با ما تماس بگیرید.",
@@ -475,4 +496,112 @@ export default {
repliedMessagePreview: "پیش‌نمایش پیام پاسخ‌داده‌شده",
action: "عمل",
premium: "پریمیوم",
// TIP GOAL
tipGoalUpdated: "هدف انعام به‌روزرسانی شد",
tipGoalCreated: "هدف انعام ایجاد شد",
amountXMR: "مبلغ ( XMR )",
start: "شروع",
end: "پایان",
isActive: "فعال است",
isActiveHelp: "هدف انعام غیرفعال‌شده در صفحه انعام شما نمایش داده نخواهد شد.",
timeIsEnded: "زمان به پایان رسیده است",
// SUPER DM
amount: "مبلغ",
superDMAlertTitle: "SuperDM قابل شروع نیست",
startSuperDM: "شروع SuperDM",
openSuperDM: "باز کردن SuperDM",
endSuperDM: "پایان دادن به SuperDM",
endedAt: "پایان در",
endSuperDMText: "پس از پایان این SuperDM دیگر امکان ارسال پیام وجود ندارد.",
saveSuperDMIdAndKeyTitle: "ذخیره شناسه و کد بازیابی SuperDM",
saveSuperDMIdAndKeyDes:
"لطفاً شناسه SuperDM و کلید بازیابی را ذخیره کنید. کلیدها قابل استفاده مجدد نیستند. بدون آن‌ها امکان بازیابی یا رمزگشایی پیام‌ها را نخواهید داشت. XMRChat کلیدهای بازیابی شما را ذخیره نمی‌کند.",
savedIdAndRecoveryCode: "شناسه و کلید بازیابی را ذخیره کردم",
superDMKeysRecoveryTitle:
"کلیدهای بازیابی در این مرورگر ذخیره نشده‌اند. برای بازیابی پیام‌ها، عبارت یادآور مربوط به این SuperDM را وارد کنید.",
superDMId: "شناسه SuperDM: ",
mnemonicPhrase: "عبارت یادآور",
enterYourMnemonicPhrase: "عبارت یادآور خود را وارد کنید",
recover: "بازیابی",
encryptionKeys: "کلیدهای رمزنگاری",
backupRecoveryCode: "از کد بازیابی خود نسخه پشتیبان تهیه کنید",
backupRecoveryCodeDes:
"XMRChat فقط کلید عمومی شما را ذخیره می‌کند. کد بازیابی شما روی دستگاهتان باقی می‌ماند.",
recoveryCode: "کد بازیابی",
recoveryCodeDes:
"کد بازیابی خود را وارد کنید یا کلیدهای جدید ایجاد کنید. پس از ایجاد کلیدهای جدید، دیگر نمی‌توانید پیام‌های قبلی خود را رمزگشایی کنید.",
generateNew: "ایجاد جدید",
pleaseSaveYourRecoveryCode:
"لطفاً کد بازیابی خود را ذخیره کنید. برای دسترسی به پیام‌های رمزنگاری‌شده به این کد نیاز خواهید داشت. اگر کش را پاک کنید یا از دستگاه دیگری استفاده کنید، باید کد بازیابی را وارد کنید.",
ISavedRecoveryCode: "کد بازیابی را ذخیره کردم",
generateNewKeys: "ایجاد کلیدهای جدید",
generateNewKeysDes:
"اگر کلیدهای جدید ایجاد کنید، دیگر نمی‌توانید پیام‌های قبلی خود را رمزگشایی کنید. پیام‌های جدید با کلیدهای جدید رمزنگاری خواهند شد.",
ifForgotRecoveryCode:
"اگر کد بازیابی خود را فراموش کرده‌اید یا برای اولین بار از SuperDM استفاده می‌کنید، می‌توانید کلیدهای رمزنگاری جدید ایجاد کنید.",
clickGenerateKeys:
"برای تنظیم رمزنگاری SuperDM روی «ایجاد کلیدها» کلیک کنید.",
beReadyToSaveRecoveryCode: "لطفاً آماده ذخیره کردن کد بازیابی خود باشید.",
generateKeys: "ایجاد کلیدها",
superDMIsEnded: "SuperDM به پایان رسیده است.",
superDMIsEndedAt: "SuperDM در {date} به پایان رسید.",
sendAMessage: "ارسال پیام...",
superDMNotConfiguredTitle: "SuperDMها پیکربندی نشده‌اند.",
superDMNotConfiguredDes:
"با فعال کردن SuperDM، طرفداران شما می‌توانند مبلغی را که شما تعیین می‌کنید پرداخت کنند تا امکان شروع یک گفت‌وگوی خصوصی با شما را داشته باشند. این یک چت با رمزنگاری سرتاسری بین شما و طرفدار است و هیچ شخص دیگری نمی‌تواند این پیام‌ها را ببیند (حتی ما!). برای استفاده از این قابلیت باید اعلان‌ها فعال باشند تا هنگام دریافت SuperDM به شما اطلاع داده شود. لطفاً سریع به طرفداران خود پاسخ دهید.",
configureSuperDMs: "پیکربندی SuperDMها",
configureNotifications: "پیکربندی اعلان‌ها",
showKeys: "نمایش کلیدها",
continueSuperDM: "ادامه SuperDM",
savedKeys: "کلیدهای ذخیره‌شده",
useSavedKeys:
"می‌توانید برای ادامه پیام‌های SuperDM از کلیدهای ذخیره‌شده استفاده کنید.",
use: "استفاده",
enterSuperDMIdAndRecoveryCode: "شناسه SuperDM و کد بازیابی را وارد کنید.",
minSuperDMAmount: "حداقل مبلغ SuperDM ( XMR )",
minSuperDMAmountHelp:
"حداقل مبلغی که یک طرفدار باید برای شروع SuperDM برای شما ارسال کند.",
showRecoveryCode: "نمایش کد بازیابی",
superDMRecoveryCodesTitle: "کدهای بازیابی SuperDM",
superDMRecoveryCodesDes:
"کدهای بازیابی روی سرور ذخیره نمی‌شوند. لطفاً کد بازیابی خود را ذخیره کنید. برای دسترسی به پیام‌های رمزنگاری‌شده به کد بازیابی و شناسه SuperDM نیاز خواهید داشت. اگر کش را پاک کنید یا از دستگاه دیگری استفاده کنید، باید کد بازیابی را وارد کنید.",
// GUIDES
walletGuides: "راهنماهای کیف پول",
howToFindPrimaryAddress:
"چگونه آدرس اصلی و کلید مشاهده خصوصی (که به کلید مشاهده مخفی نیز معروف است) را پیدا کنیم:",
toGetYourPrimaryAddress: "برای دریافت آدرس اصلی خود:",
toGetYourViewKey: "برای دریافت کلید مشاهده خود",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '۱. روی "Receive" کلیک کنید',
primaryAddress2: "۲. آدرسی را که با ۴ شروع می‌شود کپی کنید",
viewKey1: "۱. روی Settings کلیک کنید",
viewKey2: '۲. "View key (private)" را کپی کنید',
securityAndBackup: "امنیت و پشتیبان‌گیری",
showSeed: "نمایش سید/کلیدها",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "۱. روی Settings کلیک کنید",
guide2: '۲. "Primary address" و "Secret view key" را کپی کنید',
seedsAndKeys: "سیدها و کلیدها",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "۱. روی Wallet کلیک کنید",
guide2: '۲. "Primary address" و "Secret view key" را کپی کنید',
keys: "کلیدها",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "۱. روی Wallet کلیک کنید",
clickOnTheMenu: "روی منو کلیک کنید",
selectShowSecrets: '"Show Secrets!" را انتخاب کنید',
guide2: '۲. "Public Address" را کپی کنید',
guide3: '۳. "Detailed information" را باز کنید',
copyViewKey: '"View Key" را کپی کنید',
},
};
+130
View File
@@ -56,11 +56,14 @@ export default {
here: "tässä",
backToHome: "Takaisin kotiin",
somethingWentWrong: "Jotain meni pieleen!",
donate: "Lahjoita",
xmrchat: "XMRChat",
heroDescription: "Tue suosikkistriimaajaasi Monerolla.",
findCreators: "Etsi sisällöntuottajia",
creatorsStartHere: "Sisällöntuottajille: Aloita tästä",
fansTippingStats:
"Fanien lähettämien superchatien määrä on {tipsCount}, на общую сумму {totalAmount} Monero ({fiatAmount}), {pagesCount} sisällöntuottajalle XMRChatin kautta!",
FAQ: {
title: "Usein kysytyt kysymykset",
@@ -188,6 +191,24 @@ export default {
cancel: "Peruuta",
copyAddress: "Kopioi osoite",
waitingForPayment: "Odotetaan maksua",
tipSwapFailed:
"Vaihto epäonnistui. Tarkista tila alla olevasta Trocador-linkistä ja peruuta vaihto tarvittaessa.",
paymentExpired:
"Maksu on vanhentunut. Jos olet jo lähettänyt maksun, ota yhteyttä tukeen.",
sendTestTip: "Lähetä testivinkki",
swapStatus: "Vaihdon tila: ",
swapStatusMessage: {
waiting: "Odotetaan maksua.",
confirming: "Odotetaan lohkoketjun vahvistusta.",
sending: "Vaihtoa lähetetään XMRChatiin.",
failed: "Vaihto epäonnistui. Ota yhteyttä Trocadorin tukeen.",
},
paymentReceived: "Maksu vastaanotettu.",
exactly: "täsmälleen",
swapPaymentSend:
"Lähetä {exactly} {amount} tähän osoitteeseen, jotta xmrchatisi voidaan näyttää.",
swapETA: "Vaihdon arvioitu kesto on noin {eta} minuuttia.",
trackSwap: "Voit seurata vaihtoa suoraan {trocador}-palvelusta.",
contactUsDescription: "Ota meihin yhteyttä kysymyksillä tai palautteella.",
contactUsForm: "Yhteydenottolomake",
@@ -471,4 +492,113 @@ export default {
repliedMessagePreview: "Vastatun viestin esikatselu",
action: "Toiminto",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Juomarahatavoite päivitetty",
tipGoalCreated: "Juomarahatavoite luotu",
amountXMR: "Summa ( XMR )",
start: "Alku",
end: "Loppu",
isActive: "On aktiivinen",
isActiveHelp:
"Käytöstä poistettua juomarahatavoitetta ei näytetä juomarahasivullasi.",
timeIsEnded: "Aika on päättynyt",
// SUPER DM
amount: "Summa",
superDMAlertTitle: "SuperDM:ää ei voitu käynnistää",
startSuperDM: "Käynnistä SuperDM",
openSuperDM: "Avaa SuperDM",
endSuperDM: "Lopeta SuperDM",
endedAt: "Päättyi",
endSuperDMText:
"Tähän SuperDM:ään ei voi enää lähettää viestejä sen päätyttyä.",
saveSuperDMIdAndKeyTitle: "Tallenna SuperDM-tunnus ja palautuskoodi",
saveSuperDMIdAndKeyDes:
"Tallenna SuperDM-tunnus ja palautusavain. Avaimia ei voi käyttää uudelleen. Et voi palauttaa tai purkaa viestien salausta ilman niitä. XMRChat ei tallenna palautusavaimiasi.",
savedIdAndRecoveryCode: "Olen tallentanut tunnuksen ja palautusavaimen",
superDMKeysRecoveryTitle:
"Palautusavaimia ei ole tallennettu tähän selaimeen. Syötä tämän SuperDM:n muistilause palauttaaksesi viestit.",
superDMId: "SuperDM-tunnus: ",
mnemonicPhrase: "Muistilause",
enterYourMnemonicPhrase: "Syötä muistilauseesi",
recover: "Palauta",
encryptionKeys: "Salausavaimet",
backupRecoveryCode: "Varmuuskopioi palautuskoodisi",
backupRecoveryCodeDes:
"XMRChat tallentaa vain julkisen avaimesi. Palautuskoodisi säilyy laitteellasi.",
recoveryCode: "Palautuskoodi",
recoveryCodeDes:
"Syötä palautuskoodisi tai luo uudet avaimet. Et voi purkaa aiempien viestiesi salausta uusien avainten luomisen jälkeen.",
generateNew: "Luo uudet",
pleaseSaveYourRecoveryCode:
"Tallenna palautuskoodisi. Tarvitset sitä päästäksesi käsiksi salattuihin viesteihisi. Jos tyhjennät välimuistin tai käytät toista laitetta, sinun on syötettävä palautuskoodi.",
ISavedRecoveryCode: "Olen tallentanut palautuskoodin",
generateNewKeys: "Luo uudet avaimet",
generateNewKeysDes:
"Jos luot uudet avaimet, et voi purkaa aiempien viestiesi salausta. Uudet viestit salataan uusilla avaimilla.",
ifForgotRecoveryCode:
"Jos unohdit palautuskoodisi tai käytät SuperDM:ää ensimmäistä kertaa, voit luoda uudet salausavaimet.",
clickGenerateKeys: "Napsauta «Luo avaimet» määrittääksesi SuperDM-salauksen.",
beReadyToSaveRecoveryCode: "Valmistaudu tallentamaan palautuskoodisi.",
generateKeys: "Luo avaimet",
superDMIsEnded: "SuperDM on päättynyt.",
superDMIsEndedAt: "SuperDM päättyi {date}.",
sendAMessage: "Lähetä viesti...",
superDMNotConfiguredTitle: "SuperDM:iä ei ole määritetty.",
superDMNotConfiguredDes:
"SuperDM:ien käyttöönotto antaa faneillesi mahdollisuuden maksaa valitsemasi summan aloittaakseen yksityisen keskustelun kanssasi. Kyseessä on päästä päähän salattu keskustelu sinun ja fanin välillä, eikä kukaan muu näe näitä viestejä (emme edes me!). Ilmoitukset on otettava käyttöön, jotta saat ilmoituksen SuperDM:n saapuessa. Vastaa faneillesi nopeasti.",
configureSuperDMs: "Määritä SuperDM:t",
configureNotifications: "Määritä ilmoitukset",
showKeys: "Näytä avaimet",
continueSuperDM: "Jatka SuperDM:ää",
savedKeys: "Tallennetut avaimet",
useSavedKeys:
"Voit käyttää tallennettuja avaimia jatkaaksesi SuperDM-viestejä.",
use: "Käytä",
enterSuperDMIdAndRecoveryCode: "Syötä SuperDM-tunnus ja palautuskoodi.",
minSuperDMAmount: "SuperDM:n vähimmäissumma ( XMR )",
minSuperDMAmountHelp:
"Vähimmäissumma, jonka fanin on lähetettävä sinulle SuperDM:n aloittamiseksi.",
showRecoveryCode: "Näytä palautuskoodi",
superDMRecoveryCodesTitle: "SuperDM:n palautuskoodit",
superDMRecoveryCodesDes:
"Palautuskoodeja ei tallenneta palvelimelle. Tallenna palautuskoodisi. Tarvitset palautuskoodin ja SuperDM-tunnuksen päästäksesi käsiksi salattuihin viesteihisi. Jos tyhjennät välimuistin tai käytät toista laitetta, sinun on syötettävä palautuskoodi.",
// GUIDES
walletGuides: "LOMPAKKO-OPPAAT",
howToFindPrimaryAddress:
"Miten löydät ensisijaisen osoitteen ja yksityisen katseluavaimen (tunnetaan myös salaisena katseluavaimena):",
toGetYourPrimaryAddress: "Saadaksesi ensisijaisen osoitteesi:",
toGetYourViewKey: "Saadaksesi katseluavaimesi",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Napsauta "Vastaanota"',
primaryAddress2: "2. Kopioi osoite, joka alkaa numerolla 4",
viewKey1: "1. Napsauta Asetukset",
viewKey2: '2. Kopioi "View key (yksityinen)"',
securityAndBackup: "Turvallisuus ja varmuuskopiointi",
showSeed: "Näytä siemen/avaimet",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Napsauta Asetukset",
guide2: '2. Kopioi "Ensisijainen osoite" ja "Salainen katseluavain"',
seedsAndKeys: "Siemenet ja avaimet",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Napsauta Wallet",
guide2: '2. Kopioi "Ensisijainen osoite" ja "Salainen katseluavain"',
keys: "Avaimet",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Napsauta Wallet",
clickOnTheMenu: "Napsauta valikkoa",
selectShowSecrets: 'Valitse "Show Secrets!"',
guide2: '2. Kopioi "Julkinen osoite"',
guide3: '3. Laajenna "Yksityiskohtaiset tiedot"',
copyViewKey: 'Kopioi "View Key"',
},
};
+135
View File
@@ -59,12 +59,15 @@ export default {
here: "ici",
backToHome: "Retour à l'accueil",
somethingWentWrong: "Une erreur s'est produite !",
donate: "Faire un don",
xmrchat: "XMRChat",
heroDescription:
"Offrez des pourboires en cryptomonnaie à vos streamers préférés.",
findCreators: "Trouver des Créateurs",
creatorsStartHere: "Les Créateurs commencent ici",
fansTippingStats:
"Les fans ont envoyé {tipsCount} superchats pour un total de {totalAmount} Monero ({fiatAmount}) à {pagesCount} créateurs de contenu avec XMRChat !",
FAQ: {
title: "FAQ",
@@ -184,6 +187,24 @@ export default {
cancel: "Annuler",
copyAddress: "Copier l'Adresse",
waitingForPayment: "En attente du paiement",
tipSwapFailed:
"L'échange a échoué. Veuillez consulter le lien Trocador ci-dessous pour vérifier le statut et annuler l'échange si nécessaire.",
paymentExpired:
"Le paiement a expiré. Si vous avez déjà envoyé votre paiement, veuillez contacter le support.",
sendTestTip: "Envoyer un pourboire de test",
swapStatus: "Statut de l'échange : ",
swapStatusMessage: {
waiting: "En attente du paiement.",
confirming: "En attente de la confirmation sur la blockchain.",
sending: "L'échange est en cours d'envoi vers XMRChat.",
failed: "L'échange a échoué, veuillez contacter le support de Trocador.",
},
paymentReceived: "Paiement reçu.",
exactly: "exactement",
swapPaymentSend:
"Veuillez envoyer {exactly} {amount} à cette adresse pour que votre xmrchat soit affiché.",
swapETA: "L'échange devrait prendre environ {eta} minutes.",
trackSwap: "Vous pouvez suivre votre échange directement depuis {trocador}.",
// CONTACT US PAGE
contactUsDescription: "Contactez-nous pour toute question ou commentaire.",
@@ -491,4 +512,118 @@ export default {
repliedMessagePreview: "Aperçu du message répondu",
action: "Action",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Objectif de pourboire mis à jour",
tipGoalCreated: "Objectif de pourboire créé",
amountXMR: "Montant ( XMR )",
start: "Début",
end: "Fin",
isActive: "Est actif",
isActiveHelp:
"Un objectif de pourboire désactivé ne sera pas affiché sur votre page de pourboires.",
timeIsEnded: "Le temps est écoulé",
// SUPER DM
amount: "Montant",
superDMAlertTitle: "SuperDM n’a pas pu être démarré",
startSuperDM: "Démarrer le SuperDM",
openSuperDM: "Ouvrir le SuperDM",
endSuperDM: "Terminer le SuperDM",
endedAt: "Terminé à",
endSuperDMText:
"Les messages ne peuvent plus être envoyés dans ce SuperDM après sa fin.",
saveSuperDMIdAndKeyTitle:
"Enregistrer l’identifiant et le code de récupération du SuperDM",
saveSuperDMIdAndKeyDes:
"Veuillez enregistrer l’identifiant du SuperDM et la clé de récupération. Les clés ne peuvent pas être réutilisées. Vous ne pourrez pas récupérer/déchiffrer les messages sans elles. XMRChat ne stockera pas vos clés de récupération.",
savedIdAndRecoveryCode:
"J’ai enregistré l’identifiant et la clé de récupération",
superDMKeysRecoveryTitle:
"Les clés de récupération ne sont pas enregistrées sur ce navigateur. Veuillez saisir la phrase mnémonique de ce SuperDM pour récupérer les messages.",
superDMId: "Identifiant du SuperDM : ",
mnemonicPhrase: "Phrase mnémonique",
enterYourMnemonicPhrase: "Saisissez votre phrase mnémonique",
recover: "Récupérer",
encryptionKeys: "Clés de chiffrement",
backupRecoveryCode: "Sauvegarder votre code de récupération",
backupRecoveryCodeDes:
"XMRChat ne stocke que votre clé publique. Votre code de récupération reste sur votre appareil.",
recoveryCode: "Code de récupération",
recoveryCodeDes:
"Saisissez votre code de récupération ou générez de nouvelles clés. Vous ne pourrez pas déchiffrer vos anciens messages après avoir généré de nouvelles clés.",
generateNew: "Générer de nouvelles",
pleaseSaveYourRecoveryCode:
"Veuillez enregistrer votre code de récupération. Vous en aurez besoin pour accéder à vos messages chiffrés. Si vous videz le cache ou utilisez un autre appareil, vous devrez saisir le code de récupération.",
ISavedRecoveryCode: "J’ai enregistré le code de récupération",
generateNewKeys: "Générer de nouvelles clés",
generateNewKeysDes:
"Si vous générez de nouvelles clés, vous ne pourrez pas déchiffrer vos anciens messages. Les nouveaux messages seront chiffrés avec les nouvelles clés.",
ifForgotRecoveryCode:
"Si vous avez oublié votre code de récupération ou si vous utilisez SuperDM pour la première fois, vous pouvez générer de nouvelles clés de chiffrement.",
clickGenerateKeys:
"Cliquez sur « Générer les clés » pour configurer le chiffrement du SuperDM.",
beReadyToSaveRecoveryCode:
"Veuillez être prêt à enregistrer votre code de récupération.",
generateKeys: "Générer les clés",
superDMIsEnded: "Le SuperDM est terminé.",
superDMIsEndedAt: "Le SuperDM s’est terminé à {date}.",
sendAMessage: "Envoyer un message...",
superDMNotConfiguredTitle: "Les SuperDM ne sont pas configurés.",
superDMNotConfiguredDes:
"L’activation des SuperDM permettra à vos fans de vous envoyer le montant de leur choix pour démarrer une conversation privée avec vous. Il s’agit d’un chat chiffré de bout en bout entre vous et votre fan ; personne d’autre ne peut voir ces messages (pas même nous !). Les notifications doivent être activées pour cette fonctionnalité afin que vous soyez averti lorsqu’un SuperDM arrive. Veuillez répondre rapidement à vos fans.",
configureSuperDMs: "Configurer les SuperDM",
configureNotifications: "Configurer les notifications",
showKeys: "Afficher les clés",
continueSuperDM: "Continuer le SuperDM",
savedKeys: "Clés enregistrées",
useSavedKeys:
"Vous pouvez utiliser les clés enregistrées pour continuer les messages du SuperDM.",
use: "Utiliser",
enterSuperDMIdAndRecoveryCode:
"Saisissez l’identifiant du SuperDM et le code de récupération.",
minSuperDMAmount: "Montant minimum du SuperDM ( XMR )",
minSuperDMAmountHelp:
"Montant minimum qu’un fan doit vous envoyer pour démarrer un SuperDM.",
showRecoveryCode: "Afficher le code de récupération",
superDMRecoveryCodesTitle: "Codes de récupération du SuperDM",
superDMRecoveryCodesDes:
"Les codes de récupération ne sont pas enregistrés sur le serveur. Veuillez enregistrer votre code de récupération. Vous aurez besoin du code de récupération et de l’identifiant du SuperDM pour accéder à vos messages chiffrés. Si vous videz le cache ou utilisez un autre appareil, vous devrez saisir le code de récupération.",
// GUIDES
walletGuides: "GUIDES DE PORTEFEUILLE",
howToFindPrimaryAddress:
"Comment trouver l'adresse principale et la clé de vue privée (aussi appelée clé de vue secrète) :",
toGetYourPrimaryAddress: "Pour obtenir votre adresse principale :",
toGetYourViewKey: "Pour obtenir votre clé de vue",
cakeWallet: {
title: "Cake Wallet :",
primaryAddress1: '1. Cliquez sur "Recevoir"',
primaryAddress2: "2. Copiez l'adresse qui commence par 4",
viewKey1: "1. Cliquez sur Paramètres",
viewKey2: '2. Copiez la "Clé de vue (privée)"',
securityAndBackup: "Sécurité et sauvegarde",
showSeed: "Afficher la phrase de récupération/les clés",
},
GUIWallet: {
title: "GUI Wallet :",
guide1: "1. Cliquez sur Paramètres",
guide2: '2. Copiez l\'"Adresse principale" et la "Clé de vue secrète"',
seedsAndKeys: "Phrases de récupération et clés",
},
featherWallet: {
title: "Feather Wallet :",
guide1: "1. Cliquez sur Portefeuille",
guide2: '2. Copiez l\'"Adresse principale" et la "Clé de vue secrète"',
keys: "Clés",
},
monerujoWallet: {
title: "Monerujo Wallet :",
guide1: "1. Cliquez sur Portefeuille",
clickOnTheMenu: "Cliquez sur le menu",
selectShowSecrets: 'Sélectionnez "Afficher les secrets !"',
guide2: '2. Copiez l\'"Adresse publique"',
guide3: '3. Développez "Informations détaillées"',
copyViewKey: 'Copiez la "Clé de vue"',
},
};
+127 -1
View File
@@ -55,11 +55,14 @@ export default {
here: "여기",
backToHome: "홈으로 돌아가기",
somethingWentWrong: "문제가 발생했습니다!",
donate: "후원하기",
xmrchat: "XMRChat",
heroDescription: "좋아하는 스트리머에게 암호화폐로 팁을 주세요.",
findCreators: "크리에이터 찾기",
creatorsStartHere: "크리에이터는 여기서 시작하세요",
fansTippingStats:
"팬들이 XMRChat을 통해 {pagesCount}명의 콘텐츠 크리에이터에게 총 {totalAmount} Monero ({fiatAmount})에 해당하는 {tipsCount}개의 슈퍼챗을 보냈습니다!",
FAQ: {
title: "자주 묻는 질문",
@@ -189,7 +192,24 @@ export default {
cancel: "취소",
copyAddress: "주소 복사",
waitingForPayment: "결제 대기 중",
tipSwapFailed:
"스왑에 실패했습니다. 아래 Trocador 링크에서 상태를 확인하고 필요한 경우 스왑을 취소해 주세요.",
paymentExpired:
"결제 시간이 만료되었습니다. 이미 결제를 보냈다면 고객 지원팀에 문의해 주세요.",
sendTestTip: "테스트 팁 보내기",
swapStatus: "스왑 상태: ",
swapStatusMessage: {
waiting: "결제를 기다리는 중입니다.",
confirming: "블록체인 확인을 기다리는 중입니다.",
sending: "스왑을 XMRChat으로 보내는 중입니다.",
failed: "스왑에 실패했습니다. Trocador 지원팀에 문의해 주세요.",
},
paymentReceived: "결제가 완료되었습니다.",
exactly: "정확히",
swapPaymentSend:
"xmrchat이 표시되도록 {amount}을(를) {exactly} 이 주소로 보내주세요.",
swapETA: "스왑 완료까지 약 {eta}분이 소요됩니다.",
trackSwap: "{trocador}에서 스왑 상태를 직접 확인할 수 있습니다.",
contactUsDescription: "질문이나 피드백이 있다면 문의해주세요.",
contactUsForm: "문의 양식",
contactUsFormDescription: "질문이나 피드백이 있다면 문의해주세요.",
@@ -465,4 +485,110 @@ export default {
repliedMessagePreview: "답글 미리보기",
action: "작업",
premium: "프리미엄",
// TIP GOAL
tipGoalUpdated: "팁 목표가 업데이트되었습니다",
tipGoalCreated: "팁 목표가 생성되었습니다",
amountXMR: "금액 ( XMR )",
start: "시작",
end: "종료",
isActive: "활성 상태",
isActiveHelp: "비활성화된 팁 목표는 팁 페이지에 표시되지 않습니다.",
timeIsEnded: "시간이 종료되었습니다",
// SUPER DM
amount: "금액",
superDMAlertTitle: "SuperDM을 시작할 수 없습니다",
startSuperDM: "SuperDM 시작",
openSuperDM: "SuperDM 열기",
endSuperDM: "SuperDM 종료",
endedAt: "종료 시간",
endSuperDMText: "SuperDM이 종료된 후에는 더 이상 메시지를 보낼 수 없습니다.",
saveSuperDMIdAndKeyTitle: "SuperDM ID 및 복구 코드 저장",
saveSuperDMIdAndKeyDes:
"SuperDM ID와 복구 키를 저장해 주세요. 키는 다시 사용할 수 없습니다. 키가 없으면 메시지를 복구하거나 복호화할 수 없습니다. XMRChat은 복구 키를 저장하지 않습니다.",
savedIdAndRecoveryCode: "ID와 복구 키를 저장했습니다",
superDMKeysRecoveryTitle:
"이 브라우저에 복구 키가 저장되어 있지 않습니다. 메시지를 복구하려면 이 SuperDM의 니모닉 문구를 입력해 주세요.",
superDMId: "SuperDM ID: ",
mnemonicPhrase: "니모닉 문구",
enterYourMnemonicPhrase: "니모닉 문구를 입력하세요",
recover: "복구",
encryptionKeys: "암호화 키",
backupRecoveryCode: "복구 코드 백업",
backupRecoveryCodeDes:
"XMRChat은 공개 키만 저장합니다. 복구 코드는 기기에 저장됩니다.",
recoveryCode: "복구 코드",
recoveryCodeDes:
"복구 코드를 입력하거나 새 키를 생성하세요. 새 키를 생성한 후에는 이전 메시지를 복호화할 수 없습니다.",
generateNew: "새로 생성",
pleaseSaveYourRecoveryCode:
"복구 코드를 저장해 주세요. 암호화된 메시지에 액세스하려면 복구 코드가 필요합니다. 캐시를 삭제하거나 다른 기기를 사용하면 복구 코드를 다시 입력해야 합니다.",
ISavedRecoveryCode: "복구 코드를 저장했습니다",
generateNewKeys: "새 키 생성",
generateNewKeysDes:
"새 키를 생성하면 이전 메시지를 복호화할 수 없습니다. 새 메시지는 새 키로 암호화됩니다.",
ifForgotRecoveryCode:
"복구 코드를 잊어버렸거나 SuperDM을 처음 사용하는 경우 새 암호화 키를 생성할 수 있습니다.",
clickGenerateKeys: "SuperDM 암호화를 설정하려면 ‘키 생성’을 클릭하세요.",
beReadyToSaveRecoveryCode: "복구 코드를 저장할 준비를 해주세요.",
generateKeys: "키 생성",
superDMIsEnded: "SuperDM이 종료되었습니다.",
superDMIsEndedAt: "SuperDM이 {date}에 종료되었습니다.",
sendAMessage: "메시지 보내기...",
superDMNotConfiguredTitle: "SuperDM이 구성되지 않았습니다.",
superDMNotConfiguredDes:
"SuperDM을 활성화하면 팬이 원하는 금액을 지불하고 비공개 대화를 시작할 수 있습니다. 이는 사용자와 팬 간의 종단 간 암호화 채팅이며, 다른 누구도 이 메시지를 볼 수 없습니다(저희도 볼 수 없습니다!). SuperDM이 도착했을 때 알림을 받으려면 이 기능에 대한 알림을 활성화해야 합니다. 팬에게 신속하게 답변해 주세요.",
configureSuperDMs: "SuperDM 구성",
configureNotifications: "알림 구성",
showKeys: "키 표시",
continueSuperDM: "SuperDM 계속하기",
savedKeys: "저장된 키",
useSavedKeys: "저장된 키를 사용하여 SuperDM 메시지를 계속할 수 있습니다.",
use: "사용",
enterSuperDMIdAndRecoveryCode: "SuperDM ID와 복구 코드를 입력하세요.",
minSuperDMAmount: "최소 SuperDM 금액 ( XMR )",
minSuperDMAmountHelp:
"팬이 SuperDM을 시작하기 위해 보내야 하는 최소 금액입니다.",
showRecoveryCode: "복구 코드 표시",
superDMRecoveryCodesTitle: "SuperDM 복구 코드",
superDMRecoveryCodesDes:
"복구 코드는 서버에 저장되지 않습니다. 복구 코드를 저장해 주세요. 암호화된 메시지에 액세스하려면 복구 코드와 SuperDM ID가 필요합니다. 캐시를 삭제하거나 다른 기기를 사용하면 복구 코드를 다시 입력해야 합니다.",
// GUIDES
walletGuides: "지갑 가이드",
howToFindPrimaryAddress:
"기본 주소와 프라이빗 뷰 키(시크릿 뷰 키라고도 함)를 찾는 방법:",
toGetYourPrimaryAddress: "기본 주소를 확인하려면:",
toGetYourViewKey: "뷰 키를 확인하려면",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. "받기"를 클릭하세요',
primaryAddress2: "2. 4로 시작하는 주소를 복사하세요",
viewKey1: "1. 설정을 클릭하세요",
viewKey2: '2. "뷰 키(비공개)"를 복사하세요',
securityAndBackup: "보안 및 백업",
showSeed: "시드/키 표시",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. 설정을 클릭하세요",
guide2: '2. "기본 주소"와 "시크릿 뷰 키"를 복사하세요',
seedsAndKeys: "시드 및 키",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Wallet을 클릭하세요",
guide2: '2. "기본 주소"와 "시크릿 뷰 키"를 복사하세요',
keys: "키",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Wallet을 클릭하세요",
clickOnTheMenu: "메뉴를 클릭하세요",
selectShowSecrets: '"Show Secrets!"를 선택하세요',
guide2: '2. "공개 주소"를 복사하세요',
guide3: '3. "상세 정보"를 펼치세요',
copyViewKey: '"뷰 키"를 복사하세요',
},
};
+129
View File
@@ -56,11 +56,14 @@ export default {
here: "here",
backToHome: "Go back to home",
somethingWentWrong: "Wetin wey no correct happen!",
donate: "Donate",
xmrchat: "XMRChat",
heroDescription: "Send crypto tip give your best streamer.",
findCreators: "Find Creators",
creatorsStartHere: "Creators go start here",
fansTippingStats:
"Fans don send {tipsCount} superchats wey total {totalAmount} Monero ({fiatAmount}) to {pagesCount} content creators with XMRChat!",
FAQ: {
title: "FAQ",
@@ -189,6 +192,24 @@ export default {
cancel: "Cancel",
copyAddress: "Copy Address",
waitingForPayment: "We dey wait for payment",
tipSwapFailed:
"The swap no work. Abeg, visit the Trocador link below to check the status and cancel the swap if e necessary.",
paymentExpired:
"The payment don expire. If you don already send your payment, abeg contact support.",
sendTestTip: "Send Test Tip",
swapStatus: "Swap Status: ",
swapStatusMessage: {
waiting: "We dey wait for payment.",
confirming: "We dey wait for blockchain confirmation.",
sending: "We dey send the swap to XMRChat.",
failed: "The swap no work, abeg contact Trocador support.",
},
paymentReceived: "Payment don enter.",
exactly: "exactly",
swapPaymentSend:
"Abeg send {exactly} {amount} to this address make your xmrchat show.",
swapETA: "The swap fit take about {eta} minutes.",
trackSwap: "You fit track your swap directly from {trocador}.",
// CONTACT US PAGE
contactUsDescription: "Reach us if you get question or feedback.",
@@ -467,4 +488,112 @@ export default {
repliedMessagePreview: "Replied message preview",
action: "Action",
premium: "Premium",
// TIP GOAL
tipGoalUpdated: "Tip goal don update",
tipGoalCreated: "Tip goal don create",
amountXMR: "Amount ( XMR )",
start: "Start",
end: "End",
isActive: "E dey active",
isActiveHelp: "If you deactivate tip goal, e no go show for your tip page.",
timeIsEnded: "Time don finish",
// SUPER DM
amount: "Amount",
superDMAlertTitle: "SuperDM no fit start",
startSuperDM: "Start SuperDM",
openSuperDM: "Open SuperDM",
endSuperDM: "End SuperDM",
endedAt: "E end for",
endSuperDMText:
"People no fit send message for this SuperDM again after e don end.",
saveSuperDMIdAndKeyTitle: "Save SuperDM ID and Recovery Code",
saveSuperDMIdAndKeyDes:
"Abeg save SuperDM ID and Recovery Key. You no fit use the keys again. You no go fit recover or decrypt the messages without them. XMRChat no go store your recovery keys.",
savedIdAndRecoveryCode: "I don save the ID and recovery key",
superDMKeysRecoveryTitle:
"The recovery keys no dey saved for this browser. Abeg enter the mnemonic phrase for this SuperDM to recover the messages.",
superDMId: "SuperDM ID: ",
mnemonicPhrase: "Mnemonic phrase",
enterYourMnemonicPhrase: "Enter your mnemonic phrase",
recover: "Recover",
encryptionKeys: "Encryption Keys",
backupRecoveryCode: "Back up your recovery code",
backupRecoveryCodeDes:
"XMRChat only dey store your public key. Your recovery code dey remain for your device.",
recoveryCode: "Recovery Code",
recoveryCodeDes:
"Enter your recovery code or generate new keys. You no go fit decrypt your old messages after you generate new keys.",
generateNew: "Generate new",
pleaseSaveYourRecoveryCode:
"Abeg save your recovery code. You go need am to access your encrypted messages. If you clear cache or use another device, you go need enter the recovery code.",
ISavedRecoveryCode: "I don save the recovery code",
generateNewKeys: "Generate new keys",
generateNewKeysDes:
"If you generate new keys, you no go fit decrypt your old messages. New messages go dey encrypted with the new keys.",
ifForgotRecoveryCode:
"If you forget your recovery code or na your first time wey you dey use SuperDM, you fit generate new encryption keys.",
clickGenerateKeys: "Click generate keys to set up SuperDM encryption.",
beReadyToSaveRecoveryCode:
"Abeg make sure say you ready to save your recovery code.",
generateKeys: "Generate keys",
superDMIsEnded: "SuperDM don end.",
superDMIsEndedAt: "SuperDM don end for {date}.",
sendAMessage: "Send message...",
superDMNotConfiguredTitle: "SuperDMs never dey configured.",
superDMNotConfiguredDes:
"If you enable SuperDMs, your fans go fit pay you any amount wey you choose to start private conversation with you. Na end-to-end encrypted chat between you and the fan, and nobody else fit see the messages (not even us!). You need enable notifications for this feature so you go know when SuperDM enter. Abeg reply your fans quickly.",
configureSuperDMs: "Configure SuperDMs",
configureNotifications: "Configure Notifications",
showKeys: "Show keys",
continueSuperDM: "Continue SuperDM",
savedKeys: "Saved keys",
useSavedKeys: "You fit use the saved keys to continue the SuperDM messages.",
use: "Use",
enterSuperDMIdAndRecoveryCode: "Enter the SuperDM ID and recovery code.",
minSuperDMAmount: "Min. SuperDM amount ( XMR )",
minSuperDMAmountHelp:
"The minimum amount wey fan need send you to start SuperDM.",
showRecoveryCode: "Show Recovery Code",
superDMRecoveryCodesTitle: "SuperDM recovery codes",
superDMRecoveryCodesDes:
"The recovery codes no dey saved for the server. Abeg save your recovery code. You go need the recovery code and SuperDM ID to access your encrypted messages. If you clear cache or use another device, you go need enter the recovery code.",
// GUIDES
walletGuides: "WALLET GUIDES",
howToFindPrimaryAddress:
"How you go find your main address and private view key (dem still dey call am secret view key):",
toGetYourPrimaryAddress: "To get your main address:",
toGetYourViewKey: "To get your view key",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Click on "Receive"',
primaryAddress2: "2. Copy the address wey start with 4",
viewKey1: "1. Click on Settings",
viewKey2: '2. Copy "View key (private)"',
securityAndBackup: "Security and backup",
showSeed: "Show seed/keys",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Click on Settings",
guide2: '2. Copy "Primary address" and "Secret view key"',
seedsAndKeys: "Seeds & Keys",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Click on Wallet",
guide2: '2. Copy "Primary address" and "Secret view key"',
keys: "Keys",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Click on Wallet",
clickOnTheMenu: "Click on the menu",
selectShowSecrets: 'Select "Show Secrets!"',
guide2: '2. Copy "Public Address"',
guide3: '3. Expand "Detailed information"',
copyViewKey: 'Copy "View Key"',
},
};
+132
View File
@@ -58,11 +58,14 @@ export default {
here: "здесь",
backToHome: "Назад на главную",
somethingWentWrong: "Что-то пошло не так!",
donate: "Пожертвовать",
xmrchat: "XMRChat",
heroDescription: "Поддержите любимого стримера криптовалютой.",
findCreators: "Найти авторов",
creatorsStartHere: "Начало для авторов",
fansTippingStats:
"Поклонники отправили {tipsCount} суперчатов на общую сумму {totalAmount} Monero ({fiatAmount}) {pagesCount} создателям контента с помощью XMRChat!",
FAQ: {
title: "Часто задаваемые вопросы",
@@ -189,6 +192,24 @@ export default {
cancel: "Отмена",
copyAddress: "Скопировать адрес",
waitingForPayment: "Ожидание платежа",
tipSwapFailed:
"Обмен не удался. Перейдите по ссылке Trocador ниже, чтобы проверить статус и при необходимости отменить обмен.",
paymentExpired:
"Срок действия платежа истёк. Если вы уже отправили платеж, пожалуйста, свяжитесь с поддержкой.",
sendTestTip: "Отправить тестовый донат",
swapStatus: "Статус обмена: ",
swapStatusMessage: {
waiting: "Ожидание платежа.",
confirming: "Ожидание подтверждения в блокчейне.",
sending: "Обмен отправляется в XMRChat.",
failed: "Обмен не удался. Пожалуйста, свяжитесь с поддержкой Trocador.",
},
paymentReceived: "Платёж получен.",
exactly: "точно",
swapPaymentSend:
"Пожалуйста, отправьте {exactly} {amount} на этот адрес, чтобы ваш xmrchat отобразился.",
swapETA: "Ожидаемое время обмена — около {eta} минут.",
trackSwap: "Вы можете отслеживать свой обмен напрямую через {trocador}.",
contactUsDescription: "Свяжитесь с нами по вопросам и отзывам.",
contactUsForm: "Форма связи",
@@ -471,4 +492,115 @@ export default {
repliedMessagePreview: "Предпросмотр ответа",
action: "Действие",
premium: "Премиум",
// TIP GOAL
tipGoalUpdated: "Цель чаевых обновлена",
tipGoalCreated: "Цель чаевых создана",
amountXMR: "Сумма ( XMR )",
start: "Начало",
end: "Конец",
isActive: "Активна",
isActiveHelp:
"Деактивированная цель чаевых не будет отображаться на вашей странице чаевых.",
timeIsEnded: "Время истекло",
// SUPER DM
amount: "Сумма",
superDMAlertTitle: "Не удалось запустить SuperDM",
startSuperDM: "Запустить SuperDM",
openSuperDM: "Открыть SuperDM",
endSuperDM: "Завершить SuperDM",
endedAt: "Завершено в",
endSuperDMText:
"После завершения этого SuperDM отправка сообщений будет недоступна.",
saveSuperDMIdAndKeyTitle: "Сохранить ID SuperDM и код восстановления",
saveSuperDMIdAndKeyDes:
"Пожалуйста, сохраните ID SuperDM и ключ восстановления. Ключи нельзя использовать повторно. Без них вы не сможете восстановить или расшифровать сообщения. XMRChat не будет хранить ваши ключи восстановления.",
savedIdAndRecoveryCode: "Я сохранил ID и ключ восстановления",
superDMKeysRecoveryTitle:
"Ключи восстановления не сохранены в этом браузере. Введите мнемоническую фразу для этого SuperDM, чтобы восстановить сообщения.",
superDMId: "ID SuperDM: ",
mnemonicPhrase: "Мнемоническая фраза",
enterYourMnemonicPhrase: "Введите вашу мнемоническую фразу",
recover: "Восстановить",
encryptionKeys: "Ключи шифрования",
backupRecoveryCode: "Сохраните резервную копию кода восстановления",
backupRecoveryCodeDes:
"XMRChat хранит только ваш открытый ключ. Код восстановления остается на вашем устройстве.",
recoveryCode: "Код восстановления",
recoveryCodeDes:
"Введите код восстановления или создайте новые ключи. После создания новых ключей вы не сможете расшифровать предыдущие сообщения.",
generateNew: "Создать новые",
pleaseSaveYourRecoveryCode:
"Пожалуйста, сохраните код восстановления. Он понадобится для доступа к вашим зашифрованным сообщениям. Если вы очистите кеш или используете другое устройство, вам потребуется ввести код восстановления.",
ISavedRecoveryCode: "Я сохранил код восстановления",
generateNewKeys: "Создать новые ключи",
generateNewKeysDes:
"Если вы создадите новые ключи, вы не сможете расшифровать предыдущие сообщения. Новые сообщения будут зашифрованы с помощью новых ключей.",
ifForgotRecoveryCode:
"Если вы забыли код восстановления или используете SuperDM впервые, вы можете создать новые ключи шифрования.",
clickGenerateKeys:
"Нажмите «Создать ключи», чтобы настроить шифрование SuperDM.",
beReadyToSaveRecoveryCode:
"Пожалуйста, будьте готовы сохранить код восстановления.",
generateKeys: "Создать ключи",
superDMIsEnded: "SuperDM завершён.",
superDMIsEndedAt: "SuperDM завершён в {date}.",
sendAMessage: "Отправить сообщение...",
superDMNotConfiguredTitle: "SuperDM не настроен.",
superDMNotConfiguredDes:
"Включение SuperDM позволит вашим поклонникам отправлять вам выбранную вами сумму за возможность начать приватный разговор с вами. Это чат с сквозным шифрованием между вами и поклонником; никто другой не видит эти сообщения (даже мы!). Для этой функции необходимо включить уведомления, чтобы вы получали уведомление при поступлении SuperDM. Пожалуйста, отвечайте своим поклонникам быстро.",
configureSuperDMs: "Настроить SuperDM",
configureNotifications: "Настроить уведомления",
showKeys: "Показать ключи",
continueSuperDM: "Продолжить SuperDM",
savedKeys: "Сохранённые ключи",
useSavedKeys:
"Вы можете использовать сохранённые ключи, чтобы продолжить сообщения SuperDM.",
use: "Использовать",
enterSuperDMIdAndRecoveryCode: "Введите ID SuperDM и код восстановления.",
minSuperDMAmount: "Минимальная сумма SuperDM ( XMR )",
minSuperDMAmountHelp:
"Минимальная сумма, которую поклонник должен отправить вам, чтобы начать SuperDM.",
showRecoveryCode: "Показать код восстановления",
superDMRecoveryCodesTitle: "Коды восстановления SuperDM",
superDMRecoveryCodesDes:
"Коды восстановления не сохраняются на сервере. Пожалуйста, сохраните код восстановления. Для доступа к зашифрованным сообщениям вам понадобятся код восстановления и ID SuperDM. Если вы очистите кеш или используете другое устройство, вам потребуется ввести код восстановления.",
// GUIDES
walletGuides: "РУКОВОДСТВА ПО КОШЕЛЬКАМ",
howToFindPrimaryAddress:
"Как найти основной адрес и приватный view-ключ (также известный как секретный view-ключ):",
toGetYourPrimaryAddress: "Чтобы получить свой основной адрес:",
toGetYourViewKey: "Чтобы получить свой view-ключ",
cakeWallet: {
title: "Cake Wallet:",
primaryAddress1: '1. Нажмите "Получить"',
primaryAddress2: "2. Скопируйте адрес, начинающийся с 4",
viewKey1: "1. Нажмите на Настройки",
viewKey2: '2. Скопируйте "View key (приватный)"',
securityAndBackup: "Безопасность и резервное копирование",
showSeed: "Показать сид-фразу/ключи",
},
GUIWallet: {
title: "GUI Wallet:",
guide1: "1. Нажмите на Настройки",
guide2: '2. Скопируйте "Основной адрес" и "Секретный view-ключ"',
seedsAndKeys: "Сид-фразы и ключи",
},
featherWallet: {
title: "Feather Wallet:",
guide1: "1. Нажмите на Wallet",
guide2: '2. Скопируйте "Основной адрес" и "Секретный view-ключ"',
keys: "Ключи",
},
monerujoWallet: {
title: "Monerujo Wallet:",
guide1: "1. Нажмите на Wallet",
clickOnTheMenu: "Нажмите на меню",
selectShowSecrets: 'Выберите "Show Secrets!"',
guide2: '2. Скопируйте "Публичный адрес"',
guide3: '3. Разверните "Подробная информация"',
copyViewKey: 'Скопируйте "View Key"',
},
};
+1 -1
View File
@@ -101,7 +101,7 @@ export default defineNuxtConfig({
},
dayjs: {
plugins: ["localizedFormat"],
plugins: ["localizedFormat", "minMax"],
locales: ["en", "fr", "es", "de", "ru", "fi", "ko", "ar"],
},
+1
View File
@@ -85,6 +85,7 @@ useStreamerIdSeoMeta(computed(() => data.value?.page));
:superDmActive="data.superDmState.active"
:streamerId="streamerId"
:bio="data.page.bio"
:tipGoal="data.page.tipGoal"
/>
<TipContent
ref="contentRef"
+34
View File
@@ -0,0 +1,34 @@
<script setup lang="ts">
const appConfig = useAppConfig();
const email = computed(() => appConfig.socials?.email);
const url = computed(() => `mailto:${email.value}`);
</script>
<template>
<div>
<div class="inner">
<div class="flex justify-center py-8 md:py-24 text-center">
<div class="max-w-lg flex flex-col gap-4">
<h1 class="text-xl md:text-3xl font-bold">
Contact us to feature your business to the audience of every content
creator on XMRChat!
</h1>
</div>
</div>
<section class="pb-24">
<div class="flex justify-center">
<div class="max-w-lg flex flex-col gap-4">
<AdPlacementCard />
<UButton size="lg" class="justify-center" :to="url" target="_blank">
Send us an email
</UButton>
</div>
</div>
</section>
<AdRules />
</div>
</div>
</template>
@@ -3,34 +3,35 @@
<template>
<div class="m-4">
<div class="guide inner">
<h4 class="title">WALLET GUIDES</h4>
<h4 class="title">{{ $t("walletGuides") }}</h4>
<div class="page">
<div class="how-to">
<p>
How to find the primary address and private view key (also known as
secret view key):
{{ $t("howToFindPrimaryAddress") }}
</p>
<h5>Cake Wallet:</h5>
<h5>{{ $t("cakeWallet.title") }}</h5>
<h6>
<UIcon name="i-mdi-arrow-right-thin" class="text-3xl" /> To get your
primary address:
<UIcon name="i-mdi-arrow-right-thin" class="text-3xl" />
{{ $t("toGetYourPrimaryAddress") }}
</h6>
<ul>
<li>1. Click on "Receive"</li>
<li>2. Copy the address that begins with 4</li>
<li>{{ $t("cakeWallet.primaryAddress1") }}</li>
<li>{{ $t("cakeWallet.primaryAddress2") }}</li>
</ul>
<h6>
<UIcon name="i-mdi-arrow-right-thin" class="text-3xl" /> To get your
view key
<UIcon name="i-mdi-arrow-right-thin" class="text-3xl" />
{{ $t("toGetYourViewKey") }}
</h6>
<ul>
<li>
1. Click on Settings
<span class="text-orange-500">-></span> Security and backup
<span class="text-orange-500">-></span> Show seed/keys
{{ $t("cakeWallet.viewKey1") }}
<span class="text-orange-500">-></span>
{{ $t("cakeWallet.securityAndBackup") }}
<span class="text-orange-500">-></span>
{{ $t("cakeWallet.showSeed") }}
</li>
<li>2. Copy "View key (private)"</li>
<li>{{ $t("cakeWallet.viewKey2") }}</li>
</ul>
</div>
<div class="images">
@@ -48,13 +49,14 @@
<div class="guide inner">
<div class="page">
<div class="how-to">
<h5>GUI Wallet:</h5>
<h5>{{ $t("GUIWallet.title") }}</h5>
<ul>
<li>
1. Click on Settings <span class="text-orange-500">-></span> Seeds
& Keys
{{ $t("GUIWallet.guide1") }}
<span class="text-orange-500">-></span>
{{ $t("GUIWallet.seedsAndKeys") }}
</li>
<li>2. Copy "Primary address" and "Secret view key"</li>
<li>{{ $t("GUIWallet.guide2") }}</li>
</ul>
</div>
<div class="images">
@@ -72,12 +74,14 @@
<div class="guide inner">
<div class="page">
<div class="how-to">
<h5>Feather Wallet:</h5>
<h5>{{ $t("featherWallet.title") }}</h5>
<ul>
<li>
1. Click on Wallet <span class="text-orange-500">-></span> Keys
{{ $t("featherWallet.guide1") }}
<span class="text-orange-500">-></span>
{{ $t("featherWallet.keys") }}
</li>
<li>2. Copy "Primary address" and "Secret view key"</li>
<li>{{ $t("featherWallet.guide2") }}</li>
</ul>
</div>
<div class="images">
@@ -95,14 +99,21 @@
<div class="guide inner">
<div class="page">
<div class="how-to">
<h5>Monerujo Wallet:</h5>
<h5>{{ $t("monerujoWallet.title") }}</h5>
<ul>
<li>
1. Click on Wallet <span class="text-orange-500">-></span> Click on the menu <UIcon name="mdi:dots-vertical" /> <span class="text-orange-500">-></span> Select "Show Secrets!"
{{ $t("monerujoWallet.guide1") }}
<span class="text-orange-500">-></span>
{{ $t("monerujoWallet.clickOnTheMenu") }}
<UIcon name="mdi:dots-vertical" />
<span class="text-orange-500">-></span>
{{ $t("monerujoWallet.selectShowSecrets") }}
</li>
<li>2. Copy "Public Address"</li>
<li>{{ $t("monerujoWallet.guide2") }}</li>
<li>
3. Expand "Detailed information" <span class="text-orange-500">-></span> Copy "View Key"
{{ $t("monerujoWallet.guide3") }}
<span class="text-orange-500">-></span>
{{ $t("monerujoWallet.copyViewKey") }}
</li>
</ul>
</div>
+13 -1
View File
@@ -18,7 +18,8 @@ interface State {
}
const { getMyLinks: getMyLinksReq, updateLinks } = useServices();
const { url, notUrl, rumbleApiUrl, notStartingWithAt } = useValidations();
const { url, notUrl, rumbleApiUrl, notStartingWithAt, matrixId } =
useValidations();
const toast = useToast();
const { getContentLink } = useConstants();
const { t } = useI18n();
@@ -67,8 +68,11 @@ const state = reactive<State>({
patreon: {},
subscribestar: {},
github: {},
gitlab: {},
matrix: {},
"monero-jobs": {},
facebook: {},
pixelfed: {},
},
name: undefined,
searchTerms: undefined,
@@ -114,7 +118,11 @@ const rules = computed(() => {
DISCORD,
PATREON,
SUBSCRIBESTAR,
GITHUB,
GITLAB,
MATRIX,
MONERO_JOBS,
PIXELFED,
...rest
} = ContentLinkPlatformEnum;
@@ -141,7 +149,11 @@ const rules = computed(() => {
[DISCORD]: { value: { url } },
[PATREON]: { value: { url } },
[SUBSCRIBESTAR]: { value: { url } },
[GITHUB]: { value: { url } },
[GITLAB]: { value: { url } },
[MATRIX]: { value: { matrixId } },
[MONERO_JOBS]: { value: { url } },
[PIXELFED]: { value: { url } },
...notUrls,
},
rumbleLiveStreamUrl: { url, rumbleApiUrl },
@@ -0,0 +1,7 @@
<script setup lang="ts"></script>
<template>
<div>Page: streamer/tip-goal/create</div>
</template>
<style scoped></style>
+13
View File
@@ -0,0 +1,13 @@
<script setup lang="ts"></script>
<template>
<div>
<PageTitle
:title="$t('editTipGoal')"
:description="$t('editTipGoalDetails')"
/>
<TipGoalModifyForm editable />
</div>
</template>
<style scoped></style>
+44
View File
@@ -0,0 +1,44 @@
<script setup lang="ts">
import type { TipGoal } from "~/types";
const { axios } = useApp();
const { data, pending, error, refresh } = useLazyAsyncData(
async () => {
const { data } = await axios.get<{ tipGoal: TipGoal[] }>(`/tip-goals`);
return data.tipGoal;
},
{
server: false,
},
);
</script>
<template>
<div>
<PageTitle title="Tip Goal" description="Manage your tip goal" />
<div v-if="pending" class="flex flex-col gap-4 w-full max-w-[600px] m-auto">
<USkeleton class="h-4 w-16" />
<USkeleton class="h-10 w-full" />
<USkeleton class="h-4 w-24" />
<USkeleton class="h-10 w-full" />
<USkeleton class="h-4 w-12" />
<USkeleton class="h-10 w-full" />
<USkeleton class="h-4 w-10" />
<USkeleton class="h-10 w-full" />
<USkeleton class="h-4 w-20" />
<USkeleton class="h-20 w-full" />
<USkeleton class="h-10 w-24 mt-4" />
</div>
<div v-else-if="error">{{ error }}</div>
<div v-else-if="data">
<TipGoalModifyForm editable @update="refresh" />
</div>
<div v-else>
<TipGoalModifyForm @update="refresh" />
</div>
</div>
</template>
<style scoped></style>
Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

+8
View File
@@ -44,8 +44,11 @@ export enum ContentLinkPlatformEnum {
PATREON = "patreon",
SUBSCRIBESTAR = "subscribestar",
GITHUB = "github",
GITLAB = "gitlab",
MATRIX = "matrix",
MONERO_JOBS = "monero-jobs",
FACEBOOK = "facebook",
PIXELFED = "pixelfed",
}
export enum TipDisplayMode {
@@ -132,3 +135,8 @@ export enum MoneroNetworkTypeEnum {
STAGENET = "stagenet",
STRESSNET = "stressnet",
}
export enum TipSourceEnum {
XMRCHAT = "xmrchat",
XMRPOD = "xmrpod",
}
+13
View File
@@ -13,6 +13,7 @@ import type {
LiveStreamPlatformEnum,
CohostInvitationStatusEnum,
SuperDmMessageSenderTypeEnum,
TipSourceEnum,
} from "./enums";
export type Numberic = string | number;
@@ -115,6 +116,7 @@ export interface StreamerPage {
ability?: any;
bio?: string;
searchTerms?: string;
tipGoal?: TipGoal;
}
interface TipPayment {
@@ -138,6 +140,7 @@ export interface Tip {
createdAt?: string;
pageTipTier?: PageTipTier;
tipReplies?: TipReply[];
source?: TipSourceEnum;
}
export interface TipTier {
@@ -377,3 +380,13 @@ export interface TipReplySettings {
backgroundColor?: string;
textColor?: string;
}
export interface TipGoal {
id: number;
name: string;
amount: string;
startTime: string;
endTime?: string;
description?: string;
isActive: boolean;
}
+4 -1
View File
@@ -13,7 +13,6 @@ export const CONTENT_LINKS_LIST = [
ContentLinkPlatformEnum.INSTAGRAM,
ContentLinkPlatformEnum.WEBSITE,
ContentLinkPlatformEnum.YOUTUBE,
ContentLinkPlatformEnum.RUMBLE,
ContentLinkPlatformEnum.TWITCH,
ContentLinkPlatformEnum.TIKTOK,
ContentLinkPlatformEnum.ODYSEE,
@@ -27,8 +26,12 @@ export const CONTENT_LINKS_LIST = [
ContentLinkPlatformEnum.PATREON,
ContentLinkPlatformEnum.SUBSCRIBESTAR,
ContentLinkPlatformEnum.GITHUB,
ContentLinkPlatformEnum.GITLAB,
ContentLinkPlatformEnum.MATRIX,
ContentLinkPlatformEnum.MONERO_JOBS,
ContentLinkPlatformEnum.FACEBOOK,
ContentLinkPlatformEnum.PIXELFED,
ContentLinkPlatformEnum.RUMBLE,
];
export const SWAP_STATUSES = {
+5 -5
View File
@@ -7,11 +7,11 @@ services:
user: root
ports:
# - :80
- :18080
# - :18080
- 18081:18081
- :18082
- :18083
- :18084
# - :18082
# - :18083
# - :18084
command:
- --p2p-bind-ip=0.0.0.0
- --p2p-bind-port=18080
@@ -43,7 +43,7 @@ services:
restart: always
ports:
# - :80
- :8443
# - :8443
command:
- --db-path=/home/monero-lws/.bitmonero/light_wallet_server
- --daemon=tcp://monero:1882
+6
View File
@@ -49,6 +49,9 @@ ADMIN_MONERO_PRIVATE_VIEW_KEY=
# Page report emails separated by space
PAGE_REPORT_RECEPIENTS=[email protected] [email protected]
# Failed report emails separated by space
FAILED_REPORT_RECEPIENTS=[email protected] [email protected]
# LWS_WEBHOOK_URL=http://localhost:3000/lws/webhooks
# LWS calls this url for sending the transaction info.
@@ -110,6 +113,9 @@ YOUTUBE_API_KEY=
# Interval for getting live streams
LIVE_STREAM_INTERVAL=5
# Experimental X live detection. Uses Playwright to check X profiles for live Spaces/broadcasts.
X_LIVE_CHECK_ENABLED=false
# Max number of cohosts for a page
MAX_COHOSTS=5
+1
View File
@@ -13,6 +13,7 @@ docker-compose.build.yml
migrations/data/*.json
typeorm.server.config.ts
/backups
/.cache
# Logs
logs
+1 -1
View File
@@ -16,4 +16,4 @@ RUN npm run build
# CMD [ "npm", "start" ]
CMD ["node", "dist/src/main.js"]
EXPOSE 3000
EXPOSE 3000
-9
View File
@@ -44,8 +44,6 @@ services:
redis:
image: redis/redis-stack:latest
restart: always
ports:
- ':6379'
volumes:
- ./redis/data:/data
@@ -56,9 +54,6 @@ services:
minio:
image: quay.io/minio/minio
restart: unless-stopped
ports:
- ':9000'
- ':9001'
environment:
MINIO_ROOT_USER: ${MINIO_USER}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
@@ -86,8 +81,6 @@ services:
signal-cli:
image: bbernhard/signal-cli-rest-api
ports:
- ':8080'
restart: unless-stopped
volumes:
- ./signal-cli:/home/.local/share/signal-cli
@@ -102,8 +95,6 @@ services:
context: ./docker/simplex
dockerfile: Dockerfile
restart: unless-stopped
ports:
- ':5225'
volumes:
- ./simplex:/root/.simplex
networks:
@@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class AddTipGoal1783357939402 implements MigrationInterface {
name = 'AddTipGoal1783357939402'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`CREATE TABLE "tip_goals" ("id" SERIAL NOT NULL, "name" character varying NOT NULL, "amount" bigint NOT NULL, "start_time" TIMESTAMP WITH TIME ZONE NOT NULL, "end_time" TIMESTAMP WITH TIME ZONE, "description" character varying, "is_active" boolean NOT NULL DEFAULT true, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "page_id" integer, CONSTRAINT "REL_e8ae4db6c6d4040b55f56b8a7c" UNIQUE ("page_id"), CONSTRAINT "PK_630b0d15cb06f113aa295fa32b0" PRIMARY KEY ("id"))`);
await queryRunner.query(`ALTER TABLE "tip_goals" ADD CONSTRAINT "FK_e8ae4db6c6d4040b55f56b8a7ce" FOREIGN KEY ("page_id") REFERENCES "pages"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "tip_goals" DROP CONSTRAINT "FK_e8ae4db6c6d4040b55f56b8a7ce"`);
await queryRunner.query(`DROP TABLE "tip_goals"`);
}
}
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class AddTipSource1785958846556 implements MigrationInterface {
name = 'AddTipSource1785958846556'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "tips" ADD "source" character varying`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "tips" DROP COLUMN "source"`);
}
}
@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddTokenVersionOnUser1786754400000 implements MigrationInterface {
name = 'AddTokenVersionOnUser1786754400000';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "users" ADD "token_version" integer NOT NULL DEFAULT 0`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "token_version"`);
}
}
+3 -5
View File
@@ -6,14 +6,12 @@
"deleteOutDir": true,
"assets": [
{
"include": "notifications/email/templates/**",
"outDir": "dist/src/"
"include": "notifications/email/templates/**/*"
},
{
"include": "i18n/**",
"outDir": "dist/src/"
"include": "i18n/**/*"
}
],
"watchAssets": true
}
}
}
+45
View File
@@ -57,6 +57,7 @@
"passport-jwt": "^4.0.1",
"patch-package": "^8.0.0",
"pg": "^8.13.0",
"playwright": "1.54.1",
"redis": "^4.7.0",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
@@ -11559,6 +11560,50 @@
"node": ">=8"
}
},
"node_modules/playwright": {
"version": "1.54.1",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.54.1.tgz",
"integrity": "sha512-peWpSwIBmSLi6aW2auvrUtf2DqY16YYcCMO8rTVx486jKmDTJg7UAhyrraP98GB8BoPURZP8+nxO7TSd4cPr5g==",
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "1.54.1"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
"node": ">=18"
},
"optionalDependencies": {
"fsevents": "2.3.2"
}
},
"node_modules/playwright-core": {
"version": "1.54.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.54.1.tgz",
"integrity": "sha512-Nbjs2zjj0htNhzgiy5wu+3w09YetDx5pkrpI/kZotDlDUaYk0HVA5xrBVPdow4SAUIlhgKcJeJg4GRKW6xHusA==",
"license": "Apache-2.0",
"bin": {
"playwright-core": "cli.js"
},
"engines": {
"node": ">=18"
}
},
"node_modules/playwright/node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/pluralize": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
+2 -1
View File
@@ -76,6 +76,7 @@
"passport-jwt": "^4.0.1",
"patch-package": "^8.0.0",
"pg": "^8.13.0",
"playwright": "1.54.1",
"redis": "^4.7.0",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
@@ -139,4 +140,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}
+7 -2
View File
@@ -25,6 +25,7 @@ import { AuditsModule } from './audits/audits.module';
import { WinstonModule } from 'nest-winston';
import winston from 'winston';
import 'winston-daily-rotate-file';
import { existsSync } from 'fs';
import { join } from 'path';
import { ClsModule } from 'nestjs-cls';
import { ThrottlerModule } from '@nestjs/throttler';
@@ -59,6 +60,7 @@ import { OfferingsModule } from './offerings/offerings.module';
import { EntitlementsModule } from './entitlements/entitlements.module';
import { TipsBroadcastModule } from './tips-broadcast/tips-broadcast.module';
import { TipRepliesModule } from './tip-replies/tip-replies.module';
import { TipGoalsModule } from './tip-goals/tip-goals.module';
@Module({
imports: [
@@ -121,7 +123,9 @@ import { TipRepliesModule } from './tip-replies/tip-replies.module';
return {
fallbackLanguage: config.get('DEFAULT_LOCALE') || 'en',
loaderOptions: {
path: join(__dirname, '/i18n/'),
path: existsSync(join(__dirname, 'i18n'))
? join(__dirname, 'i18n')
: join(__dirname, '..', 'i18n'),
watch: true,
},
};
@@ -191,8 +195,9 @@ import { TipRepliesModule } from './tip-replies/tip-replies.module';
EntitlementsModule,
TipsBroadcastModule,
TipRepliesModule,
TipGoalsModule,
],
controllers: [AppController],
providers: [AppService, IsMoneroPrimaryAdrress],
})
export class AppModule { }
export class AppModule {}
+15 -5
View File
@@ -48,7 +48,6 @@ export class AuthService {
type: UserTokenType.EMAIL_VERIFICATION,
});
this.logger.log(`Token: ${token}`);
this.notificationsService.sendVerificationEmail(user.email, token);
@@ -97,7 +96,7 @@ export class AuthService {
);
}
const token = await this.generateJwt(user.id, user.email);
const token = await this.generateJwt(user);
return {
access_token: token,
@@ -143,7 +142,6 @@ export class AuthService {
);
}
this.logger.log(`Token: ${token}`);
this.notificationsService.sendResetPasswordEmail(user.email, token);
@@ -167,6 +165,7 @@ export class AuthService {
await this.usersService.update(userToken.userId, {
password: passwordResult,
isEmailVerified: true,
tokenVersion: (user.tokenVersion ?? 0) + 1,
});
await this.userTokensService.remove(userToken.id);
@@ -187,14 +186,21 @@ export class AuthService {
throw new BadRequestException(this.i18n.t('error.invalidCredentials'));
}
const tokenVersion = (user.tokenVersion ?? 0) + 1;
await this.usersService.update(user.id, {
password: createFinalPassword(data.password),
tokenVersion,
});
this.notificationsService.sendPasswordChangeEmail(user.email);
return {
message: this.i18n.t('general.accountPasswordUpdated'),
access_token: await this.generateJwt({
...user,
tokenVersion,
}),
};
}
@@ -222,7 +228,11 @@ export class AuthService {
return this.usersService.update(user.id, user);
}
generateJwt(userId: number, email: string) {
return this.jwtService.signAsync({ userId, email });
generateJwt(user: Pick<User, 'id' | 'email' | 'tokenVersion'>) {
return this.jwtService.signAsync({
userId: user.id,
email: user.email,
tokenVersion: user.tokenVersion ?? 0,
});
}
}
+2 -1
View File
@@ -3,6 +3,7 @@ import { Reflector } from '@nestjs/core';
import { JwtService } from '@nestjs/jwt';
import { WsException } from '@nestjs/websockets';
import { WS_GUARD_METADATA } from 'src/shared/constants';
import { isJwtSessionValid, JwtPayload } from 'src/shared/utils';
import { UsersService } from 'src/users/users.service';
@Injectable()
@@ -25,7 +26,7 @@ export class WsAuthGuard implements CanActivate {
const user = await this.usersService.findById(payload.userId);
if (!user) {
if (!user || !isJwtSessionValid(payload, user)) {
throw new WsException('Unauthorized');
}
+7 -2
View File
@@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { isJwtSessionValid, JwtPayload } from 'src/shared/utils';
import { UsersService } from 'src/users/users.service';
@Injectable()
@@ -17,7 +18,11 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
});
}
async validate(payload: { userId: number; email: string }) {
return this.usersService.findById(payload.userId);
async validate(payload: JwtPayload) {
const user = await this.usersService.findById(payload.userId);
if (!isJwtSessionValid(payload, user)) return null;
return user;
}
}
+4 -1
View File
@@ -14,6 +14,7 @@ import { PageTipTier } from 'src/page-tip-tiers/page-tip-tier.entity';
import { Page } from 'src/pages/page.entity';
import { Action, PageSettingKey, RolesEnum } from 'src/shared/constants/enum';
import { SuperDm } from 'src/super-dms/super-dm.entity';
import { TipGoal } from 'src/tip-goals/tip-goal.entity';
import { TipReply } from 'src/tip-replies/tip-reply.entity';
import { Tip } from 'src/tips/tip.entity';
import { User } from 'src/users/user.entity';
@@ -28,6 +29,7 @@ type Subjects =
| typeof PageSetting
| typeof PageTipTier
| typeof TipReply
| typeof TipGoal
>
| 'notification'
| 'cohost'
@@ -68,6 +70,7 @@ export class CaslAbilityFactory {
// TIP REPLY ACTIONS
can(Action.Manage, TipReply, { 'tip.pageId': pageResult?.id } as any);
can(Action.Manage, TipGoal, { pageId: pageResult?.id });
}
// OBS ACTIONS
@@ -96,7 +99,7 @@ export class CaslAbilityFactory {
// TIPS ACTIONS
can(Action.MakeTipPrivate, Page, { userId: user.id });
can(Action.MakeTipPublic, Page, { userId: user.id });
// can(Action.MakeTipPublic, Page, { userId: user.id });
// Only make private if cohost
can(Action.MakeTipPrivate, Page, { id: user.cohostPageId });
@@ -3,6 +3,7 @@ import { Command, CommandRunner } from 'nest-commander';
import { TwitchTokenService } from 'src/integrations/twitch/twitch-token.service';
import { LinkVerificationsService } from 'src/link-verifications/link-verifications.service';
import { LiveStreamsService } from 'src/live-streams/live-streams.service';
import { NotificationTestsService } from 'src/notifications/notification-tests.service';
@Command({
name: 'config',
@@ -16,6 +17,7 @@ export class ConfigCommand extends CommandRunner {
private twitchTokenService: TwitchTokenService,
private liveStreamsService: LiveStreamsService,
private linkVerificationsService: LinkVerificationsService,
private notificationTestsService: NotificationTestsService,
) {
super();
}
@@ -53,6 +55,11 @@ export class ConfigCommand extends CommandRunner {
return;
}
if (config === 'test-simplex') {
await this.testSimplex();
return;
}
this.logger.error(`Parameter is invalid: ${config}`);
}
@@ -86,4 +93,9 @@ export class ConfigCommand extends CommandRunner {
this.logger.log('validating link verifications');
await this.linkVerificationsService.validateAll();
}
async testSimplex() {
this.logger.log('Testing Simplex');
await this.notificationTestsService.testSimplex();
}
}
+2
View File
@@ -23,6 +23,7 @@ import { User } from 'src/users/user.entity';
import { SnakeNamingStrategy } from 'typeorm-naming-strategies';
import { LinkVerification } from 'src/link-verifications/link-verification.entity';
import { TipReply } from 'src/tip-replies/tip-reply.entity';
import { TipGoal } from 'src/tip-goals/tip-goal.entity';
@Module({
imports: [
@@ -56,6 +57,7 @@ import { TipReply } from 'src/tip-replies/tip-reply.entity';
SuperDmMessage,
LinkVerification,
TipReply,
TipGoal,
],
namingStrategy: new SnakeNamingStrategy(),
migrationsRun: process.env.NODE_ENV === 'production',
+1
View File
@@ -33,6 +33,7 @@ export class FilesController {
@UploadedFile() file: Express.Multer.File,
@Param('slug', new ParseEnumPipe(FileType)) slug: FileType,
) {
throw new BadRequestException('Use the /upload/:type endpoint instead');
if (!file) throw new BadRequestException('No file is uploaded.');
const fileBuffer = await fs.readFile(file.path);
@@ -1,4 +1,5 @@
import { HttpService } from '@nestjs/axios';
import { InjectQueue } from '@nestjs/bullmq';
import { CACHE_MANAGER } from '@nestjs/cache-manager';
import {
Inject,
@@ -9,6 +10,7 @@ import {
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Cron, CronExpression } from '@nestjs/schedule';
import { Queue } from 'bullmq';
import { Cache } from 'cache-manager';
import { getErrorMessage } from 'src/shared/utils/errors';
@@ -20,6 +22,7 @@ export class TwitchTokenService implements OnModuleInit {
private readonly httpService: HttpService,
private readonly configService: ConfigService,
@Inject(CACHE_MANAGER) private cacheManager: Cache,
@InjectQueue('notifications-email') private emailQueue: Queue,
) {}
async onModuleInit() {
@@ -123,4 +126,38 @@ export class TwitchTokenService implements OnModuleInit {
this.logger.error('Failed to refresh twitch client credentials token');
}
}
@Cron(CronExpression.EVERY_DAY_AT_NOON)
async upsertTokenRefreshReminder() {
const token = this.configService.get('TWITCH_OAUTH_PASS')?.split(':')[1];
if (!token) return;
const { data } = await this.httpService.axiosRef.get(
'https://id.twitch.tv/oauth2/validate',
{
headers: {
Authorization: `OAuth ${token}`,
},
},
);
const expiresIn = data.expires_in;
// Return if it is valid for more than 1 weeks
if (expiresIn > 14 * 24 * 60 * 60) return;
const emails =
this.configService.get('PAGE_REPORT_RECEPIENTS')?.split(' ') || [];
if (!emails.length) return;
this.emailQueue.add('send-email', {
to: emails,
options: {
subject: 'Twitch token update reminder',
text: 'Twitch token update reminder',
html: `Twitch token update reminder. Less that one week is remaining from expiration date, please update the token and get a new User access token token.
You can use this website "https://twitchapps.com/tokengen" to generate a new User access token token.`,
},
});
}
}
@@ -2,9 +2,10 @@ import { Module } from '@nestjs/common';
import { TwitchService } from './twitch.service';
import { HttpModule } from '@nestjs/axios';
import { TwitchTokenService } from './twitch-token.service';
import { QueuesModule } from 'src/queues/queues.module';
@Module({
imports: [HttpModule.register({})],
imports: [HttpModule.register({}), QueuesModule],
providers: [TwitchService, TwitchTokenService],
exports: [TwitchService, TwitchTokenService],
})
@@ -8,7 +8,7 @@ import {
import { ConfigService } from '@nestjs/config';
import { Client, client as tmiClient } from 'tmi.js';
import { TwitchTokenService } from './twitch-token.service';
import { getAxiosMessage } from 'src/shared/utils/errors';
import { getAxiosMessage, getErrorMessage } from 'src/shared/utils/errors';
@Injectable()
export class TwitchService implements OnModuleInit {
@@ -94,11 +94,11 @@ export class TwitchService implements OnModuleInit {
} catch (error) {
console.log(
'Twitch api error on getting channel name',
error.response?.data,
getErrorMessage(error),
);
if (
error?.response?.data?.status === 403 ||
error?.response?.data?.status === 401
(error as any)?.response?.data?.status === 403 ||
(error as any)?.response?.data?.status === 401
)
return true;
return false;
@@ -18,6 +18,7 @@ import { PeertubeModule } from 'src/integrations/peertube/peertube.module';
import { PeertubeProvider } from './providers/peertube.provider';
import { KickModule } from 'src/integrations/kick/kick.module';
import { KickProvider } from './providers/kick.provider';
import { XProvider } from './providers/x.provider';
@Module({
imports: [
@@ -36,6 +37,7 @@ import { KickProvider } from './providers/kick.provider';
YoutubeProvider,
TwitchProvider,
KickProvider,
XProvider,
RumbleProvider,
PeertubeProvider,
LiveStreamProcessor,
@@ -20,6 +20,7 @@ import { Link } from 'src/links/link.entity';
import { Tip } from 'src/tips/tip.entity';
import { PeertubeProvider } from './providers/peertube.provider';
import { KickProvider } from './providers/kick.provider';
import { XProvider } from './providers/x.provider';
@Injectable()
export class LiveStreamsService implements OnModuleInit {
@@ -30,6 +31,7 @@ export class LiveStreamsService implements OnModuleInit {
private youtubeProvider: YoutubeProvider,
private twitchProvider: TwitchProvider,
private kickProvider: KickProvider,
private xProvider: XProvider,
private rumbleProvider: RumbleProvider,
private peertubeProvider: PeertubeProvider,
private config: ConfigService,
@@ -48,12 +50,13 @@ export class LiveStreamsService implements OnModuleInit {
}
async findAll() {
return this.repo
const streams = await this.repo
.createQueryBuilder('liveStream')
.leftJoinAndSelect('liveStream.page', 'page')
.leftJoinAndSelect('page.logo', 'logo')
.distinctOn(['page.id'])
.orderBy('page.id', 'ASC')
.addOrderBy('liveStream.startedAt', 'DESC', 'NULLS LAST')
.addOrderBy(
`CASE
WHEN liveStream.platform = '${LiveStreamPlatformEnum.TWITCH}' THEN 1
@@ -66,6 +69,10 @@ export class LiveStreamsService implements OnModuleInit {
'ASC',
)
.getMany();
return streams.sort((a, b) => {
return (b.startedAt?.getTime() || 0) - (a.startedAt?.getTime() || 0);
});
}
async updateLiveStreams(dto: CreateLiveStreamDto[]) {
@@ -98,6 +105,7 @@ export class LiveStreamsService implements OnModuleInit {
const youtube = await this.getYoutubeLiveStreams();
const twitch = await this.getTwitchLiveStreams();
const kick = await this.getKickLiveStreams();
const x = await this.getXLiveStreams();
const rumble = await this.getRumbleLiveStreams();
const peertube = await this.getPeertubeLiveStreams();
@@ -105,6 +113,7 @@ export class LiveStreamsService implements OnModuleInit {
...youtube,
...twitch,
...kick,
...x,
...rumble,
...peertube,
]);
@@ -229,4 +238,49 @@ export class LiveStreamsService implements OnModuleInit {
async getPeertubeLiveStreams() {
return this.peertubeProvider.getLiveStreams();
}
async getXProviderParams() {
const links = await this.linksService.findByPlatform(LinkPlatformEnum.X);
if (!links.length) return [];
const streamableLinkPlatforms = [
LinkPlatformEnum.YOUTUBE,
LinkPlatformEnum.TWITCH,
LinkPlatformEnum.KICK,
LinkPlatformEnum.RUMBLE,
LinkPlatformEnum.PEERTUBE,
];
const streamableLinks = await Promise.all(
streamableLinkPlatforms.map((platform) =>
this.linksService.findByPlatform(platform),
),
);
const streamablePageIds = new Set(
streamableLinks.flat().map((link) => link.page.id),
);
const twitchPages = await this.pagesRepo.find({
where: {
twitchChannel: And(Not(IsNull()), Not('')),
isPublic: true,
status: Not(PageStatusEnum.DEACTIVE),
},
});
twitchPages.forEach((page) => streamablePageIds.add(page.id));
return links
.filter((link) => !streamablePageIds.has(link.page.id))
.map((link) => ({
username: link.value,
pageId: link.page.id,
}));
}
async getXLiveStreams() {
if (!this.xProvider.isEnabled()) return [];
const params = await this.getXProviderParams();
return this.xProvider.getLiveStreams(params);
}
}
@@ -0,0 +1,263 @@
import { Injectable, Logger, OnModuleDestroy } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import type {
APIRequestContext,
BrowserContext,
Page,
Response,
} from 'playwright';
import { chromium, request } from 'playwright';
import { LiveStreamPlatformEnum } from 'src/shared/constants';
import { getErrorMessage } from 'src/shared/utils/errors';
import { CreateLiveStreamDto } from '../dtos/create-live-stream.dto';
import {
LiveStreamProvider,
LiveStreamProviderParams,
} from './live-stream-provider.interface';
type XProviderParam = LiveStreamProviderParams & { username: string };
type XLiveLink = { url: string; title?: string };
type XRecord = Record<string, any>;
@Injectable()
export class XProvider implements LiveStreamProvider, OnModuleDestroy {
private readonly logger = new Logger(XProvider.name);
private context?: BrowserContext;
private requestContext?: APIRequestContext;
constructor(private readonly config: ConfigService) {}
async onModuleDestroy() {
await this.context?.close().catch(() => undefined);
await this.requestContext?.dispose().catch(() => undefined);
}
async getLiveStreams(
params: LiveStreamProviderParams[],
): Promise<CreateLiveStreamDto[]> {
if (!this.isEnabled()) return [];
const streams: CreateLiveStreamDto[] = [];
// Check one profile at a time to limit load on X.
for (const param of params) {
if (!param.username || !/^[a-zA-Z0-9_]{1,15}$/.test(param.username))
continue;
const stream = await this.getLiveStream(param as XProviderParam);
if (stream) streams.push(stream);
}
return streams;
}
private async getLiveStream(
param: XProviderParam,
): Promise<CreateLiveStreamDto | undefined> {
let page: Page | undefined;
try {
const profileUrl = `https://x.com/${param.username}`;
let liveLink = await this.findLiveLinkByRequest(
profileUrl,
param.username,
);
if (!liveLink) {
const context = await this.getContext();
page = await context.newPage();
const pending = new Set<Promise<void>>();
const onResponse = (response: Response) => {
const url = new URL(response.url());
if (
!response.ok() ||
!['x.com', 'api.x.com', 'twitter.com', 'api.twitter.com'].includes(
url.hostname,
) ||
!/json|html/.test(response.headers()['content-type'] || '')
)
return;
const read = response
.text()
.then((body) => {
liveLink ||= this.findLiveLinkInResponse(body, param.username);
})
.catch(() => undefined);
pending.add(read);
void read.finally(() => pending.delete(read));
};
page.on('response', onResponse);
await page.goto(profileUrl, {
waitUntil: 'domcontentloaded',
timeout: 15000,
});
await page.waitForTimeout(2500);
page.off('response', onResponse);
// Bound response-body reads too, so a stalled response cannot block refresh.
let timer: ReturnType<typeof setTimeout>;
try {
await Promise.race([
Promise.all(pending),
new Promise<void>((resolve) => {
timer = setTimeout(resolve, 2500);
}),
]);
} finally {
clearTimeout(timer);
}
}
if (!liveLink) return;
return {
pageId: param.pageId,
title: liveLink.title || `${param.username} is live on X`,
description: 'Live on X',
channelName: param.username,
channelId: param.username,
videoId: liveLink.url,
platform: LiveStreamPlatformEnum.X,
startedAt: new Date().toISOString(),
data: { url: liveLink.url, profileUrl },
};
} catch (error) {
this.logger.warn(
`Failed to check X live status for ${param.username}: ${getErrorMessage(error)}`,
);
} finally {
await page?.close().catch(() => undefined);
}
}
private async findLiveLinkByRequest(profileUrl: string, username: string) {
try {
this.requestContext ||= await request.newContext({
userAgent:
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 Chrome/131.0.0.0 Safari/537.36',
});
const response = await this.requestContext.get(profileUrl, {
timeout: 15000,
});
try {
if (!response.ok()) {
this.logger.warn(
`X profile request returned ${response.status()} for ${username}`,
);
return;
}
return this.findLiveLinkInResponse(await response.text(), username);
} finally {
await response.dispose();
}
} catch (error) {
this.logger.warn(
`X profile request failed for ${username}: ${getErrorMessage(error)}`,
);
}
}
private findLiveLinkInResponse(
body: string,
username: string,
): XLiveLink | undefined {
// JSON API responses contain nested records; SSR responses use Relay references.
let data: unknown;
try {
data = JSON.parse(body);
} catch {
return this.findLiveLinkInRelayResponse(body, username);
}
const visit = (value: unknown): XLiveLink | undefined => {
if (!value || typeof value !== 'object') return;
const record = value as XRecord;
const liveLink = this.liveLinkFromRecord(record, username);
if (liveLink) return liveLink;
for (const child of Object.values(record)) {
const result = visit(child);
if (result) return result;
}
};
return visit(data);
}
private findLiveLinkInRelayResponse(body: string, username: string) {
const records = new Map<string, XRecord>();
// Read scalar fields and Relay references from X's serialized response data.
// Never execute the scripts received from X or infer live status from link text.
for (const script of body.matchAll(
/<script\b[^>]*>([\s\S]*?)<\/script>/gi,
)) {
for (const match of script[1].matchAll(
/\{__id:("(?:\\.|[^"\\])*"),__typename:("(?:\\.|[^"\\])*")([\s\S]*?)(?=\{__id:|$)/g,
)) {
const record: XRecord = { __typename: JSON.parse(match[2]) };
for (const field of match[3].matchAll(
/[,{}](\w+):("(?:\\.|[^"\\])*"|null|\d+|\$R\[\d+\]=\{__ref:("(?:\\.|[^"\\])*")\})/g,
)) {
record[field[1]] = field[3]
? { __ref: JSON.parse(field[3]) }
: JSON.parse(field[2]);
}
records.set(JSON.parse(match[1]), record);
}
}
const resolve = (value: XRecord | undefined): XRecord | undefined =>
value?.__ref ? records.get(value.__ref) : value;
for (const record of records.values()) {
const liveLink = this.liveLinkFromRecord(record, username, resolve);
if (liveLink) return liveLink;
}
}
private liveLinkFromRecord(
record: XRecord,
username: string,
resolve: (value: XRecord | undefined) => XRecord | undefined = (value) =>
value,
): XLiveLink | undefined {
const metadata = resolve(record.metadata) || record;
if (metadata.state !== 'Running') return;
const isBroadcast =
record.__typename === 'Broadcast' || Boolean(record.broadcast_id);
const isSpace = record.__typename === 'AudioSpace';
if (!isBroadcast && !isSpace) return;
const userResults = resolve(
metadata.user_results || metadata.creator_results,
);
const user = resolve(userResults?.result);
const core = resolve(user?.core);
const legacy = resolve(user?.legacy);
const periscopeUser = resolve(record.periscope_user);
const owner =
core?.screen_name || legacy?.screen_name || periscopeUser?.username;
if (
typeof owner !== 'string' ||
owner.toLowerCase() !== username.toLowerCase()
)
return;
const id = isBroadcast ? record.broadcast_id : record.rest_id;
if (typeof id !== 'string' || !/^[a-zA-Z0-9]+$/.test(id)) return;
const title = isBroadcast ? record.status : metadata.title;
return {
url: `https://x.com/i/${isBroadcast ? 'broadcasts' : 'spaces'}/${id}`,
title: typeof title === 'string' ? title.slice(0, 240) : undefined,
};
}
private async getContext() {
if (this.context) return this.context;
this.context = await chromium.launchPersistentContext(
'.cache/x-live-browser',
{
headless: true,
chromiumSandbox: false,
args: ['--no-sandbox', '--disable-dev-shm-usage'],
},
);
return this.context;
}
isEnabled() {
const value = this.config.get<string | boolean>('X_LIVE_CHECK_ENABLED');
if (typeof value === 'boolean') return value;
return (
typeof value === 'string' &&
['true', '1', 'yes', 'on'].includes(value.toLowerCase())
);
}
}
@@ -3,6 +3,7 @@ import { EmailService } from './email.service';
import { MailerModule } from '@nestjs-modules/mailer';
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
import { ConfigService } from '@nestjs/config';
import { existsSync } from 'fs';
import { join } from 'path';
import { I18nService } from 'nestjs-i18n';
import { EmailProcessor } from './email.processor';
@@ -28,10 +29,14 @@ import { AuditsModule } from 'src/audits/audits.module';
};
};
const templatesDir = existsSync(join(__dirname, 'templates'))
? join(__dirname, 'templates')
: join(process.cwd(), 'dist', 'notifications', 'email', 'templates');
return {
transport: { ...getTransport() },
template: {
dir: join(__dirname, 'templates'),
dir: templatesDir,
adapter: new HandlebarsAdapter({
translate: (key: string, options: any): string => {
const lang = options.hash.lang || 'en';
@@ -46,7 +51,7 @@ import { AuditsModule } from 'src/audits/audits.module';
},
options: {
partials: {
dir: join(__dirname, 'templates', 'partials'),
dir: join(templatesDir, 'partials'),
options: {
strict: true,
},
@@ -0,0 +1,28 @@
import { InjectQueue } from '@nestjs/bullmq';
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Job, Queue } from 'bullmq';
@Injectable()
export class NotificationFailureService {
constructor(
@InjectQueue('notifications-email') private emailQueue: Queue,
private configService: ConfigService,
) {}
async sendFailureNotification(job: Job, error: Error, provider: string) {
const emails =
this.configService.get('FAILED_REPORT_RECEPIENTS') ||
this.configService.get('PAGE_REPORT_RECEPIENTS');
const emailList = emails.split(' ') || [];
if (!emailList.length) return;
await this.emailQueue.add('send-email', {
to: emailList,
options: {
subject: `${provider} failed to send`,
html: `${provider} failed to send. ${JSON.stringify(job.data)}, Error: ${error.message}`,
},
});
}
}
@@ -20,4 +20,11 @@ export class NotificationTestsService {
message: 'Test message for signal',
});
}
async testSimplex() {
await this.simplexQueue.add('send-message', {
contactId: 1,
message: 'Test message for simplex',
});
}
}
@@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
import { SignalService } from './signal.service';
import { SignalModule as SignalIntegrationModule } from 'src/integrations/signal/signal.module';
import { SignalProcessor } from './signal.processor';
import { NotificationFailureService } from '../notification-failure.service';
import { QueuesModule } from 'src/queues/queues.module';
@Module({
imports: [SignalIntegrationModule],
providers: [SignalService, SignalProcessor],
imports: [SignalIntegrationModule, QueuesModule],
providers: [SignalService, SignalProcessor, NotificationFailureService],
})
export class SignalModule {}
@@ -1,10 +1,14 @@
import { Processor, WorkerHost } from '@nestjs/bullmq';
import { OnWorkerEvent, Processor, WorkerHost } from '@nestjs/bullmq';
import { SignalService } from './signal.service';
import { Job } from 'bullmq';
import { NotificationFailureService } from '../notification-failure.service';
@Processor('notifications-signal')
export class SignalProcessor extends WorkerHost {
constructor(private readonly signalService: SignalService) {
constructor(
private readonly signalService: SignalService,
private readonly notificationFailureService: NotificationFailureService,
) {
super();
}
@@ -15,4 +19,13 @@ export class SignalProcessor extends WorkerHost {
await this.signalService.sendMessage(data.account, data.message);
}
}
@OnWorkerEvent('failed')
async handleError(job: Job, error: Error) {
await this.notificationFailureService.sendFailureNotification(
job,
error,
'Signal',
);
}
}
@@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
import { SimplexService } from './simplex.service';
import { SimplexModule as SimplexIntegrationModule } from 'src/integrations/simplex/simplex.module';
import { SimplexProcessor } from './simplex.processor';
import { NotificationFailureService } from '../notification-failure.service';
import { QueuesModule } from 'src/queues/queues.module';
@Module({
imports: [SimplexIntegrationModule],
providers: [SimplexService, SimplexProcessor],
imports: [SimplexIntegrationModule, QueuesModule],
providers: [SimplexService, SimplexProcessor, NotificationFailureService],
})
export class SimplexModule {}
@@ -1,10 +1,14 @@
import { Processor, WorkerHost } from '@nestjs/bullmq';
import { OnWorkerEvent, Processor, WorkerHost } from '@nestjs/bullmq';
import { SimplexService } from './simplex.service';
import { Job } from 'bullmq';
import { NotificationFailureService } from '../notification-failure.service';
@Processor('notifications-simplex')
export class SimplexProcessor extends WorkerHost {
constructor(private readonly simplexService: SimplexService) {
constructor(
private readonly simplexService: SimplexService,
private readonly notificationFailureService: NotificationFailureService,
) {
super();
}
@@ -15,4 +19,13 @@ export class SimplexProcessor extends WorkerHost {
await this.simplexService.sendMessage(data.contactId, data.message);
}
}
@OnWorkerEvent('failed')
async handleError(job: Job, error: Error) {
await this.notificationFailureService.sendFailureNotification(
job,
error,
'Simplex',
);
}
}
+5
View File
@@ -5,6 +5,7 @@ import { MoneroUtils } from 'monero-ts';
import { LinkDto } from 'src/links/dto/link.dto';
import { LiveStreamDto } from 'src/live-streams/dtos/live-stream.dto';
import { PageTipTierDto } from 'src/page-tip-tiers/dtos/page-tip-tier.dto';
import { TipGoalDto } from 'src/tip-goals/dtos/tip-goal.dto';
export class PageDto {
@Expose()
@@ -67,6 +68,10 @@ export class PageDto {
@Expose()
bio: string;
@Expose()
@Type(() => TipGoalDto)
tipGoal: TipGoalDto;
@Expose()
ability?: any;
}
+4
View File
@@ -22,6 +22,7 @@ import { PageStatusEnum } from '../shared/constants';
import { PageRecipient } from 'src/page-recipients/page-recipient.entity';
import { LiveStream } from '../live-streams/live-stream.entity';
import { PageTipTier } from 'src/page-tip-tiers/page-tip-tier.entity';
import { TipGoal } from 'src/tip-goals/tip-goal.entity';
@Entity({ name: 'pages' })
@Unique(['path'])
@@ -134,6 +135,9 @@ export class Page {
@OneToMany(() => User, (u: User) => u.cohostPage)
cohosts: User[];
@OneToOne(() => TipGoal, (t: TipGoal) => t.page)
tipGoal: TipGoal;
totalTips: number | null;
tipsCount: number | null;
}
+4 -1
View File
@@ -48,8 +48,11 @@ export class PagesController {
const slug = query.search;
const offset = query.offset;
const limit = query.limit;
const hasLinks = query.hasLinks
? [].concat(query.hasLinks).filter(Boolean)
: undefined;
return this.pagesService.searchPages(slug, offset, limit);
return this.pagesService.searchPages(slug, offset, limit, hasLinks);
}
@Get('/sitemap')
+21 -1
View File
@@ -48,7 +48,12 @@ export class PagesService {
private auditsService: AuditsService,
) {}
async searchPages(slug: string = '', offset: number = 0, limit: number = 8) {
async searchPages(
slug: string = '',
offset: number = 0,
limit: number = 8,
hasLinks?: string[],
) {
const tipsSubQuery = (qb: SelectQueryBuilder<any>) =>
qb
.select('tip.page_id', 'page_id')
@@ -120,6 +125,20 @@ export class PagesService {
);
}
if (hasLinks?.length) {
idsQuery = idsQuery.innerJoin(
(qb) =>
qb
.select('link.page_id', 'page_id')
.from('links', 'link')
.where('link.platform IN (:...hasLinks)', { hasLinks })
.andWhere("link.value IS NOT NULL AND TRIM(link.value) != ''")
.distinctOn(['link.page_id']),
'has_link',
'has_link.page_id = page.id',
);
}
// Get total count before applying offset/limit
const total = await idsQuery.getCount();
@@ -313,6 +332,7 @@ export class PagesService {
liveStreams: true,
pageTipTiers: { sound: true },
user: true,
tipGoal: true,
},
order: {
pageTipTiers: { minAmount: { direction: 'ASC', nulls: 'LAST' } },
+8
View File
@@ -81,8 +81,11 @@ export enum LinkPlatformEnum {
PATREON = 'patreon',
SUBSCRIBESTAR = 'subscribestar',
GITHUB = 'github',
GITLAB = 'gitlab',
MATRIX = 'matrix',
MONERO_JOBS = 'monero-jobs',
FACEBOOK = 'facebook',
PIXELFED = 'pixelfed',
}
export enum TrocadorStatusEnum {
@@ -190,3 +193,8 @@ export enum SuperDmMessageSenderType {
export enum PageVerificationTypeEnum {
X = 'x',
}
export enum TipSourceEnum {
XMRCHAT = 'xmrchat',
XMRPOD = 'xmrpod',
}
+11
View File
@@ -1,6 +1,13 @@
import { pbkdf2Sync, randomBytes } from 'crypto';
import { User } from 'src/users/user.entity';
import { v4 as uuidv4 } from 'uuid';
export type JwtPayload = {
userId: number;
email: string;
tokenVersion?: number;
};
export const hashPassword = (password: string, salt: string) => {
return pbkdf2Sync(password, salt, 1000, 64, 'sha256').toString('hex');
};
@@ -19,3 +26,7 @@ export const generateOtp = () => {
export const generateUUID = () => {
return uuidv4();
};
export const isJwtSessionValid = (payload: JwtPayload, user: User) => {
return (payload.tokenVersion ?? 0) === (user.tokenVersion ?? 0);
};
@@ -0,0 +1,42 @@
import { Transform } from 'class-transformer';
import {
IsBoolean,
IsDateString,
IsNumberString,
IsOptional,
IsString,
MaxLength,
} from 'class-validator';
import { MoneroUtils } from 'monero-ts';
export class CreateTipGoalDto {
@IsString()
@MaxLength(80)
name: string;
@IsNumberString()
@Transform(
({ value }) => {
if (value === null || value === '') return null;
return MoneroUtils.xmrToAtomicUnits(value).toString();
},
{ toClassOnly: true },
)
amount?: string;
@IsDateString()
startTime: string;
@IsDateString()
@IsOptional()
endTime?: string;
@IsString()
@IsOptional()
@MaxLength(255)
description?: string;
@IsBoolean()
@IsOptional()
isActive?: boolean;
}
@@ -0,0 +1,13 @@
import { Expose, Transform, Type } from 'class-transformer';
import { TipGoalDto } from './tip-goal.dto';
import { MoneroUtils } from 'monero-ts';
export class TipGoalAmountRO {
@Expose()
@Transform(({ value }) => value && MoneroUtils.atomicUnitsToXmr(value))
tipsAmount: string;
@Expose()
@Type(() => TipGoalDto)
tipGoal: TipGoalDto;
}
+29
View File
@@ -0,0 +1,29 @@
import { Expose, Transform, Type } from 'class-transformer';
import { MoneroUtils } from 'monero-ts';
export class TipGoalDto {
@Expose()
name: string;
@Expose()
@Transform(({ value }) => value && MoneroUtils.atomicUnitsToXmr(value))
amount: string;
@Expose()
startTime: Date;
@Expose()
endTime?: Date;
@Expose()
description?: string;
@Expose()
isActive: boolean;
}
export class TipGoalRO {
@Expose()
@Type(() => TipGoalDto)
tipGoal: TipGoalDto;
}
@@ -0,0 +1,3 @@
import { CreateTipGoalDto } from './create-tip-goal.dto';
export class UpdateTipGoalDto extends CreateTipGoalDto {}
+48
View File
@@ -0,0 +1,48 @@
import { Page } from 'src/pages/page.entity';
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
OneToOne,
PrimaryGeneratedColumn,
RelationId,
UpdateDateColumn,
} from 'typeorm';
@Entity({ name: 'tip_goals' })
export class TipGoal {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column({ type: 'bigint' })
amount?: string;
@Column({ type: 'timestamptz' })
startTime: Date;
@Column({ type: 'timestamptz', nullable: true })
endTime?: Date;
@Column({ nullable: true })
description?: string;
@Column({ type: 'boolean', default: true })
isActive: boolean;
@OneToOne(() => Page, { onDelete: 'CASCADE' })
@JoinColumn()
page: Page;
@RelationId((tg: TipGoal) => tg.page)
pageId: number;
@CreateDateColumn({ type: 'timestamptz' })
createdAt: Date;
@UpdateDateColumn({ type: 'timestamptz' })
updatedAt: Date;
}
@@ -0,0 +1,52 @@
import { Body, Controller, Get, Param, Post, Put } from '@nestjs/common';
import { TipGoalsService } from './tip-goals.service';
import { CreateTipGoalDto } from './dtos/create-tip-goal.dto';
import { User } from 'src/users/user.entity';
import { CurrentUser } from 'src/shared/decorators/current-user.decorator';
import { Serialize } from 'src/shared/interceptors/serialize.interceptor';
import { TipGoalRO } from './dtos/tip-goal.dto';
import { UpdateTipGoalDto } from './dtos/update-tip-goal.dto';
import { IsPublic } from 'src/shared/decorators/is-public.decorator';
import { TipGoalAmountRO } from './dtos/tip-goal-amount.dto';
@Controller('tip-goals')
export class TipGoalsController {
constructor(private readonly tipGoalsService: TipGoalsService) {}
@Get('/')
@Serialize(TipGoalRO)
async find(@CurrentUser() user: User) {
const result = await this.tipGoalsService.findMyTipGoal(user);
return {
tipGoal: result,
};
}
@Get('/tips/:pagePath')
@Serialize(TipGoalAmountRO)
@IsPublic()
async findTipGoalAmount(@Param('pagePath') pagePath: string) {
const { tipsAmount, tipGoal } =
await this.tipGoalsService.findTipGoalAmount(pagePath);
return {
tipsAmount,
tipGoal,
};
}
@Post('/')
async create(@Body() dto: CreateTipGoalDto, @CurrentUser() user: User) {
await this.tipGoalsService.create(dto, user);
return {
message: 'Tip goal created successfully',
};
}
@Put('/')
async update(@Body() dto: UpdateTipGoalDto, @CurrentUser() user: User) {
await this.tipGoalsService.update(dto, user);
return {
message: 'Tip goal updated successfully',
};
}
}
+15
View File
@@ -0,0 +1,15 @@
import { Module } from '@nestjs/common';
import { TipGoalsService } from './tip-goals.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TipGoal } from './tip-goal.entity';
import { PagesModule } from 'src/pages/pages.module';
import { TipGoalsController } from './tip-goals.controller';
import { TipsModule } from 'src/tips/tips.module';
@Module({
imports: [PagesModule, TipsModule, TypeOrmModule.forFeature([TipGoal])],
providers: [TipGoalsService],
exports: [TipGoalsService],
controllers: [TipGoalsController],
})
export class TipGoalsModule {}
Loaded 100 of 110 files, more files were not shown because too many files have changed in this diff. Show more