From da635ad55f16390d8af8e7810dedb4d2dac6c657 Mon Sep 17 00:00:00 2001 From: koalasat Date: Fri, 18 Oct 2024 12:48:18 +0200 Subject: [PATCH] Change to fast generate order --- frontend/src/basic/RobotPage/Welcome.tsx | 10 ++- .../assets/vector/buy-selected-icon-2.svg | 70 ---------------- frontend/static/assets/vector/sell-icon-2.svg | 84 ------------------- .../assets/vector/sell-selected-icon-2.svg | 56 ------------- frontend/static/locales/ca.json | 2 +- frontend/static/locales/cs.json | 2 +- frontend/static/locales/de.json | 2 +- frontend/static/locales/en.json | 2 +- frontend/static/locales/es.json | 2 +- frontend/static/locales/eu.json | 2 +- frontend/static/locales/fr.json | 2 +- frontend/static/locales/it.json | 2 +- frontend/static/locales/ja.json | 2 +- frontend/static/locales/pl.json | 2 +- frontend/static/locales/pt.json | 2 +- frontend/static/locales/ru.json | 2 +- frontend/static/locales/sv.json | 2 +- frontend/static/locales/sw.json | 2 +- frontend/static/locales/th.json | 2 +- frontend/static/locales/zh-SI.json | 2 +- frontend/static/locales/zh-TR.json | 2 +- 21 files changed, 24 insertions(+), 230 deletions(-) diff --git a/frontend/src/basic/RobotPage/Welcome.tsx b/frontend/src/basic/RobotPage/Welcome.tsx index b40e8352..a812bea8 100644 --- a/frontend/src/basic/RobotPage/Welcome.tsx +++ b/frontend/src/basic/RobotPage/Welcome.tsx @@ -4,9 +4,10 @@ import { Box, Button, Grid, Typography, useTheme } from '@mui/material'; import { RoboSatsTextIcon } from '../../components/Icons'; import { FastForward, RocketLaunch, Key } from '@mui/icons-material'; import { genBase62Token } from '../../utils'; -import { UseAppStoreType, AppContext } from '../../contexts/AppContext'; import { UseFederationStoreType, FederationContext } from '../../contexts/FederationContext'; import { UseGarageStoreType, GarageContext } from '../../contexts/GarageContext'; +import { useNavigate } from 'react-router-dom'; +import { UseAppStoreType, AppContext } from '../../contexts/AppContext'; interface WelcomeProps { setView: (state: 'welcome' | 'onboarding' | 'recovery' | 'profile') => void; @@ -15,7 +16,9 @@ interface WelcomeProps { } const Welcome = ({ setView, width, setInputToken }: WelcomeProps): JSX.Element => { + const { setPage } = useContext(AppContext); const { t } = useTranslation(); + const navigate = useNavigate(); const theme = useTheme(); const { setOpen } = useContext(AppContext); const { garage } = useContext(GarageContext); @@ -117,14 +120,15 @@ const Welcome = ({ setView, width, setInputToken }: WelcomeProps): JSX.Element = size='small' color='primary' onClick={() => { - setView('profile'); const token = genBase62Token(36); garage.createRobot(federation, token); setInputToken(token); + navigate('/create'); + setPage('create'); }} >
- {t('Fast Generate Robot')} + {t('Fast Generate Order')} diff --git a/frontend/static/assets/vector/buy-selected-icon-2.svg b/frontend/static/assets/vector/buy-selected-icon-2.svg index 330c0a8e..993f9b81 100644 --- a/frontend/static/assets/vector/buy-selected-icon-2.svg +++ b/frontend/static/assets/vector/buy-selected-icon-2.svg @@ -4,75 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - - -======= ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/assets/vector/sell-icon-2.svg b/frontend/static/assets/vector/sell-icon-2.svg index bff4eed1..7148b055 100644 --- a/frontend/static/assets/vector/sell-icon-2.svg +++ b/frontend/static/assets/vector/sell-icon-2.svg @@ -4,89 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - - - - - - - - - -======= ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/assets/vector/sell-selected-icon-2.svg b/frontend/static/assets/vector/sell-selected-icon-2.svg index 90355d26..ac2e4788 100644 --- a/frontend/static/assets/vector/sell-selected-icon-2.svg +++ b/frontend/static/assets/vector/sell-selected-icon-2.svg @@ -4,61 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - -======= @@ -280,6 +225,5 @@ v91.201c0,2.378-0.841,4.516-2.646,6.729c-1.427,1.743-3.589,3.695-6.706,6.043c2.033,2.428,3.807,5.055,5.295,7.841 C254.836,164.996,256.054,177.466,252.471,189.264z"/> ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json index 98249816..f4966612 100644 --- a/frontend/static/locales/ca.json +++ b/frontend/static/locales/ca.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Un Simple i Privat Exchange LN P2P", "Create a new robot and learn to use RoboSats": "Crear un nou robot i aprendre a fer servir RoboSats", - "Fast Generate Robot": "Generar Robot ràpidament", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recuperar un robot existent utilitzant el teu token", "Start": "Començar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json index d9625740..87d1bee4 100644 --- a/frontend/static/locales/cs.json +++ b/frontend/static/locales/cs.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json index d34bc5d8..42197cc9 100644 --- a/frontend/static/locales/de.json +++ b/frontend/static/locales/de.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json index 19dc219b..f1d7089d 100644 --- a/frontend/static/locales/en.json +++ b/frontend/static/locales/en.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json index 950ab016..fc642aee 100644 --- a/frontend/static/locales/es.json +++ b/frontend/static/locales/es.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Un exchange LN P2P sencillo y privado", "Create a new robot and learn to use RoboSats": "Crea un nuevo robot y aprende a usar RoboSats", - "Fast Generate Robot": "Genera un Robot al instante", + "Fast Generate Order": "Genera una Orden al instante", "Recover an existing robot using your token": "Recupera un robot existente usando tu token", "Start": "Empezar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json index b4965a66..c0e56620 100644 --- a/frontend/static/locales/eu.json +++ b/frontend/static/locales/eu.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json index e3d20c1b..ce60d20f 100644 --- a/frontend/static/locales/fr.json +++ b/frontend/static/locales/fr.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Une bourse d'échange P2P LN simple et privée", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Génération rapide d'un robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Récupérer un robot existant à l'aide de votre jeton", "Start": "Commencer", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json index 118856da..a7cc0859 100644 --- a/frontend/static/locales/it.json +++ b/frontend/static/locales/it.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Una piattaforma di scambi P2P su LN semplice e privata", "Create a new robot and learn to use RoboSats": "Crea un nuovo robot e impara ad utilizzare RoboSats", - "Fast Generate Robot": "Generazione rapida di un robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recupera un robot esistente con il tuo token", "Start": "Inizia", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json index 405d1df2..c55a674c 100644 --- a/frontend/static/locales/ja.json +++ b/frontend/static/locales/ja.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "シンプルでプライベートなライトニングP2P取引所", "Create a new robot and learn to use RoboSats": "新しいロボットを構築して、RoboSatsの使い方を学びます", - "Fast Generate Robot": "ロボットを高速生成", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "トークンを使用して既存のロボットを復元します", "Start": "スタート", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json index b82a3809..4314c78d 100644 --- a/frontend/static/locales/pl.json +++ b/frontend/static/locales/pl.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json index 0120a959..039ae042 100644 --- a/frontend/static/locales/pt.json +++ b/frontend/static/locales/pt.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Uma Exchange P2P LN Simples e Privada", "Create a new robot and learn to use RoboSats": "Crie um novo robô e aprenda a usar o RoboSats", - "Fast Generate Robot": "Gere um robô rapidamente", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recupere um robô existente usando seu token", "Start": "Iniciar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json index 5854c254..bbb75682 100644 --- a/frontend/static/locales/ru.json +++ b/frontend/static/locales/ru.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Простой и приватный LN P2P обменник", "Create a new robot and learn to use RoboSats": "Создайте нового робота и научитесь использовать RoboSats", - "Fast Generate Robot": "Быстрое создание робота", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Восстановить существующего робота с помощью вашего токена", "Start": "Старт", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json index 71aca04a..8b00af68 100644 --- a/frontend/static/locales/sv.json +++ b/frontend/static/locales/sv.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json index d17dd664..69f152cd 100644 --- a/frontend/static/locales/sw.json +++ b/frontend/static/locales/sw.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Kubadilishana LN P2P Rahisi na Binafsi", "Create a new robot and learn to use RoboSats": "Unda roboti mpya na ujifunze kutumia RoboSats", - "Fast Generate Robot": "Unda Roboti Haraka", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Rejesha roboti iliyopo kwa kutumia alama yako", "Start": "Anza", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json index 32ffaa4c..58afd9dc 100644 --- a/frontend/static/locales/th.json +++ b/frontend/static/locales/th.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json index cb79318a..cfdacbb8 100644 --- a/frontend/static/locales/zh-SI.json +++ b/frontend/static/locales/zh-SI.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "一个简单且隐秘的点对点闪电交易所", "Create a new robot and learn to use RoboSats": "创建一个新的机器人并学习如何使用 RoboSats", - "Fast Generate Robot": "快速生成机器人", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "用你的令牌恢复现有的机器人", "Start": "开始", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json index fb9b4058..6094684f 100644 --- a/frontend/static/locales/zh-TR.json +++ b/frontend/static/locales/zh-TR.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "一個簡單且隱密的點對點閃電交易所", "Create a new robot and learn to use RoboSats": "創建一個新的機器人並學習如何使用 RoboSats", - "Fast Generate Robot": "快速生成機器人", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "用你的領牌恢復現有的機器人", "Start": "開始", "#11": "Phrases in basic/RobotPage/index.tsx",