mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Revert "Cw 397 chatwoot live support (#1011)"
This reverts commit af9b5ff10c
.
This commit is contained in:
parent
f4fad4d94d
commit
ecdc7baa2e
63 changed files with 261 additions and 763 deletions
1
.github/workflows/pr_test_build.yml
vendored
1
.github/workflows/pr_test_build.yml
vendored
|
@ -127,7 +127,6 @@ jobs:
|
|||
echo "const fiatApiKey = '${{ secrets.FIAT_API_KEY }}';" >> lib/.secrets.g.dart
|
||||
echo "const payfuraApiKey = '${{ secrets.PAYFURA_API_KEY }}';" >> lib/.secrets.g.dart
|
||||
echo "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';" >> cw_ethereum/lib/.secrets.g.dart
|
||||
echo "const chatwootWebsiteToken = '${{ secrets.CHATWOOT_WEBSITE_TOKEN }}';" >> lib/.secrets.g.dart
|
||||
|
||||
- name: Rename app
|
||||
run: echo -e "id=com.cakewallet.test\nname=$GITHUB_HEAD_REF" > /opt/android/cake_wallet/android/app.properties
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
|
@ -1,4 +0,0 @@
|
|||
import 'package:hive/hive.dart';
|
||||
import 'package:hive/src/hive_impl.dart';
|
||||
|
||||
final HiveInterface CakeHive = HiveImpl();
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'erc20_token.g.dart';
|
||||
|
@ -54,7 +53,7 @@ class Erc20Token extends CryptoCurrency with HiveObjectMixin {
|
|||
iconPath: icon,
|
||||
);
|
||||
|
||||
static const typeId = ERC20_TOKEN_TYPE_ID;
|
||||
static const typeId = 12;
|
||||
static const boxName = 'Erc20Tokens';
|
||||
|
||||
@override
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
const CONTACT_TYPE_ID = 0;
|
||||
const NODE_TYPE_ID = 1;
|
||||
const TRANSACTION_TYPE_ID = 2;
|
||||
const TRADE_TYPE_ID = 3;
|
||||
const WALLET_INFO_TYPE_ID = 4;
|
||||
const WALLET_TYPE_TYPE_ID = 5;
|
||||
const TEMPLATE_TYPE_ID = 6;
|
||||
const EXCHANGE_TEMPLATE_TYPE_ID = 7;
|
||||
const ORDER_TYPE_ID = 8;
|
||||
const UNSPENT_COINS_INFO_TYPE_ID = 9;
|
||||
const ANONPAY_INVOICE_INFO_TYPE_ID = 10;
|
||||
|
||||
const ERC20_TOKEN_TYPE_ID = 12;
|
|
@ -3,7 +3,6 @@ import 'package:cw_core/keyable.dart';
|
|||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:http/io_client.dart' as ioc;
|
||||
|
||||
|
@ -38,7 +37,7 @@ class Node extends HiveObject with Keyable {
|
|||
trusted = map['trusted'] as bool? ?? false,
|
||||
socksProxyAddress = map['socksProxyPort'] as String?;
|
||||
|
||||
static const typeId = NODE_TYPE_ID;
|
||||
static const typeId = 1;
|
||||
static const boxName = 'Nodes';
|
||||
|
||||
@HiveField(0, defaultValue: '')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'unspent_coins_info.g.dart';
|
||||
|
@ -15,7 +14,7 @@ class UnspentCoinsInfo extends HiveObject {
|
|||
required this.vout,
|
||||
required this.value});
|
||||
|
||||
static const typeId = UNSPENT_COINS_INFO_TYPE_ID;
|
||||
static const typeId = 9;
|
||||
static const boxName = 'Unspent';
|
||||
static const boxKey = 'unspentBoxKey';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'dart:async';
|
||||
|
||||
part 'wallet_info.g.dart';
|
||||
|
||||
|
@ -30,7 +30,7 @@ class WalletInfo extends HiveObject {
|
|||
yatEid, yatLastUsedAddressRaw, showIntroCakePayCard);
|
||||
}
|
||||
|
||||
static const typeId = WALLET_INFO_TYPE_ID;
|
||||
static const typeId = 4;
|
||||
static const boxName = 'WalletInfo';
|
||||
|
||||
@HiveField(0, defaultValue: '')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'wallet_type.g.dart';
|
||||
|
@ -11,8 +10,9 @@ const walletTypes = [
|
|||
WalletType.haven,
|
||||
WalletType.ethereum,
|
||||
];
|
||||
const walletTypeTypeId = 5;
|
||||
|
||||
@HiveType(typeId: WALLET_TYPE_TYPE_ID)
|
||||
@HiveType(typeId: walletTypeTypeId)
|
||||
enum WalletType {
|
||||
@HiveField(0)
|
||||
monero,
|
||||
|
|
|
@ -4,7 +4,6 @@ import 'dart:io';
|
|||
import 'dart:math';
|
||||
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/cake_hive.dart';
|
||||
import 'package:cw_core/node.dart';
|
||||
import 'package:cw_core/pathForWallet.dart';
|
||||
import 'package:cw_core/pending_transaction.dart';
|
||||
|
@ -59,8 +58,8 @@ abstract class EthereumWalletBase
|
|||
this.walletInfo = walletInfo;
|
||||
transactionHistory = EthereumTransactionHistory(walletInfo: walletInfo, password: password);
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Erc20Token.typeId)) {
|
||||
CakeHive.registerAdapter(Erc20TokenAdapter());
|
||||
if (!Hive.isAdapterRegistered(Erc20Token.typeId)) {
|
||||
Hive.registerAdapter(Erc20TokenAdapter());
|
||||
}
|
||||
|
||||
_sharedPrefs.complete(SharedPreferences.getInstance());
|
||||
|
@ -96,7 +95,7 @@ abstract class EthereumWalletBase
|
|||
Completer<SharedPreferences> _sharedPrefs = Completer();
|
||||
|
||||
Future<void> init() async {
|
||||
erc20TokensBox = await CakeHive.openBox<Erc20Token>(Erc20Token.boxName);
|
||||
erc20TokensBox = await Hive.openBox<Erc20Token>(Erc20Token.boxName);
|
||||
await walletAddresses.init();
|
||||
await transactionHistory.init();
|
||||
_privateKey = await getPrivateKey(_mnemonic, _password);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:cw_core/keyable.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
|
@ -36,7 +35,7 @@ class AnonpayInvoiceInfo extends HiveObject with Keyable implements AnonpayInfoB
|
|||
@HiveField(13)
|
||||
final String provider;
|
||||
|
||||
static const typeId = ANONPAY_INVOICE_INFO_TYPE_ID;
|
||||
static const typeId = 10;
|
||||
static const boxName = 'AnonpayInvoiceInfo';
|
||||
|
||||
AnonpayInvoiceInfo({
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import 'package:cake_wallet/buy/buy_provider_description.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:cake_wallet/exchange/trade_state.dart';
|
||||
import 'package:cw_core/format_amount.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'order.g.dart';
|
||||
|
||||
|
@ -27,7 +26,7 @@ class Order extends HiveObject {
|
|||
}
|
||||
}
|
||||
|
||||
static const typeId = ORDER_TYPE_ID;
|
||||
static const typeId = 8;
|
||||
static const boxName = 'Orders';
|
||||
static const boxKey = 'ordersBoxKey';
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
import 'package:cake_wallet/entities/cake_2fa_preset_options.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
@ -9,7 +10,6 @@ import 'package:path_provider/path_provider.dart';
|
|||
import 'package:cryptography/cryptography.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:archive/archive_io.dart';
|
||||
import 'package:cw_core/cake_hive.dart';
|
||||
import 'package:cake_wallet/core/key_service.dart';
|
||||
import 'package:cake_wallet/entities/encrypt.dart';
|
||||
import 'package:cake_wallet/entities/preferences_key.dart';
|
||||
|
@ -17,7 +17,6 @@ import 'package:cake_wallet/entities/secret_store_key.dart';
|
|||
import 'package:cw_core/wallet_info.dart';
|
||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||
import 'package:cake_wallet/wallet_types.g.dart';
|
||||
|
||||
import 'package:cake_backup/backup.dart' as cake_backup;
|
||||
|
||||
class BackupService {
|
||||
|
@ -171,14 +170,14 @@ class BackupService {
|
|||
|
||||
Future<Box<WalletInfo>> _reloadHiveWalletInfoBox() async {
|
||||
final appDir = await getApplicationDocumentsDirectory();
|
||||
await CakeHive.close();
|
||||
CakeHive.init(appDir.path);
|
||||
await Hive.close();
|
||||
Hive.init(appDir.path);
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(WalletInfo.typeId)) {
|
||||
CakeHive.registerAdapter(WalletInfoAdapter());
|
||||
if (!Hive.isAdapterRegistered(WalletInfo.typeId)) {
|
||||
Hive.registerAdapter(WalletInfoAdapter());
|
||||
}
|
||||
|
||||
return await CakeHive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
return await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
}
|
||||
|
||||
Future<void> _importPreferencesDump() async {
|
||||
|
|
|
@ -36,8 +36,6 @@ import 'package:cake_wallet/src/screens/setup_2fa/modify_2fa_page.dart';
|
|||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
||||
import 'package:cake_wallet/src/screens/wallet/wallet_edit_page.dart';
|
||||
import 'package:cake_wallet/themes/theme_list.dart';
|
||||
import 'package:cake_wallet/utils/device_info.dart';
|
||||
|
@ -871,12 +869,6 @@ Future setup({
|
|||
|
||||
getIt.registerFactory(() => SupportPage(getIt.get<SupportViewModel>()));
|
||||
|
||||
getIt.registerFactory(() =>
|
||||
SupportChatPage(
|
||||
getIt.get<SupportViewModel>(), secureStorage: getIt.get<FlutterSecureStorage>()));
|
||||
|
||||
getIt.registerFactory(() => SupportOtherLinksPage(getIt.get<SupportViewModel>()));
|
||||
|
||||
getIt.registerFactory(() {
|
||||
final wallet = getIt.get<AppStore>().wallet;
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:cw_core/keyable.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cake_wallet/utils/mobx.dart';
|
||||
import 'package:cw_core/keyable.dart';
|
||||
|
||||
part 'contact.g.dart';
|
||||
|
||||
|
@ -13,7 +14,7 @@ class Contact extends HiveObject with Keyable {
|
|||
}
|
||||
}
|
||||
|
||||
static const typeId = CONTACT_TYPE_ID;
|
||||
static const typeId = 0;
|
||||
static const boxName = 'Contacts';
|
||||
|
||||
@HiveField(0, defaultValue: '')
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:cw_core/cake_hive.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
Future<List<int>> getEncryptionKey(
|
||||
{required String forKey, required FlutterSecureStorage secureStorage}) async {
|
||||
final stringifiedKey = await secureStorage.read(key: 'transactionDescriptionsBoxKey');
|
||||
final stringifiedKey =
|
||||
await secureStorage.read(key: 'transactionDescriptionsBoxKey');
|
||||
List<int> key;
|
||||
|
||||
if (stringifiedKey == null) {
|
||||
key = CakeHive.generateSecureKey();
|
||||
key = Hive.generateSecureKey();
|
||||
final keyStringified = key.join(',');
|
||||
await secureStorage.write(key: 'transactionDescriptionsBoxKey', value: keyStringified);
|
||||
await secureStorage.write(
|
||||
key: 'transactionDescriptionsBoxKey', value: keyStringified);
|
||||
} else {
|
||||
key = stringifiedKey.split(',').map((i) => int.parse(i)).toList();
|
||||
key = stringifiedKey
|
||||
.split(',')
|
||||
.map((i) => int.parse(i))
|
||||
.toList();
|
||||
}
|
||||
|
||||
return key;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'template.g.dart';
|
||||
|
@ -15,7 +14,7 @@ class Template extends HiveObject {
|
|||
required this.amountFiatRaw,
|
||||
this.additionalRecipientsRaw});
|
||||
|
||||
static const typeId = TEMPLATE_TYPE_ID;
|
||||
static const typeId = 6;
|
||||
static const boxName = 'Template';
|
||||
|
||||
@HiveField(0)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'transaction_description.g.dart';
|
||||
|
@ -7,7 +6,7 @@ part 'transaction_description.g.dart';
|
|||
class TransactionDescription extends HiveObject {
|
||||
TransactionDescription({required this.id, this.recipientAddress, this.transactionNote});
|
||||
|
||||
static const typeId = TRANSACTION_TYPE_ID;
|
||||
static const typeId = 2;
|
||||
static const boxName = 'TransactionDescriptions';
|
||||
static const boxKey = 'transactionDescriptionsBoxKey';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'exchange_template.g.dart';
|
||||
|
@ -15,7 +14,7 @@ class ExchangeTemplate extends HiveObject {
|
|||
required this.depositCurrencyTitleRaw,
|
||||
required this.receiveCurrencyTitleRaw});
|
||||
|
||||
static const typeId = EXCHANGE_TEMPLATE_TYPE_ID;
|
||||
static const typeId = 7;
|
||||
static const boxName = 'ExchangeTemplate';
|
||||
|
||||
@HiveField(0)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import 'package:hive/hive.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
||||
import 'package:cake_wallet/exchange/trade_state.dart';
|
||||
import 'package:cw_core/format_amount.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'trade.g.dart';
|
||||
|
||||
|
@ -42,7 +41,7 @@ class Trade extends HiveObject {
|
|||
}
|
||||
}
|
||||
|
||||
static const typeId = TRADE_TYPE_ID;
|
||||
static const typeId = 3;
|
||||
static const boxName = 'Trades';
|
||||
static const boxKey = 'tradesBoxKey';
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import 'package:cake_wallet/locales/locale.dart';
|
|||
import 'package:cake_wallet/store/yat/yat_store.dart';
|
||||
import 'package:cake_wallet/utils/exception_handler.dart';
|
||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||
import 'package:cw_core/hive_type_ids.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
@ -39,7 +38,6 @@ import 'package:uni_links/uni_links.dart';
|
|||
import 'package:cw_core/unspent_coins_info.dart';
|
||||
import 'package:cake_wallet/monero/monero.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:cw_core/cake_hive.dart';
|
||||
|
||||
final navigatorKey = GlobalKey<NavigatorState>();
|
||||
final rootKey = GlobalKey<RootState>();
|
||||
|
@ -59,7 +57,7 @@ Future<void> main() async {
|
|||
return true;
|
||||
};
|
||||
|
||||
await CakeHive.close();
|
||||
await Hive.close();
|
||||
|
||||
await initializeAppConfigs();
|
||||
|
||||
|
@ -71,50 +69,50 @@ Future<void> main() async {
|
|||
|
||||
Future<void> initializeAppConfigs() async {
|
||||
final appDir = await getApplicationDocumentsDirectory();
|
||||
CakeHive.init(appDir.path);
|
||||
Hive.init(appDir.path);
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Contact.typeId)) {
|
||||
CakeHive.registerAdapter(ContactAdapter());
|
||||
if (!Hive.isAdapterRegistered(Contact.typeId)) {
|
||||
Hive.registerAdapter(ContactAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Node.typeId)) {
|
||||
CakeHive.registerAdapter(NodeAdapter());
|
||||
if (!Hive.isAdapterRegistered(Node.typeId)) {
|
||||
Hive.registerAdapter(NodeAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(TransactionDescription.typeId)) {
|
||||
CakeHive.registerAdapter(TransactionDescriptionAdapter());
|
||||
if (!Hive.isAdapterRegistered(TransactionDescription.typeId)) {
|
||||
Hive.registerAdapter(TransactionDescriptionAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Trade.typeId)) {
|
||||
CakeHive.registerAdapter(TradeAdapter());
|
||||
if (!Hive.isAdapterRegistered(Trade.typeId)) {
|
||||
Hive.registerAdapter(TradeAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(WalletInfo.typeId)) {
|
||||
CakeHive.registerAdapter(WalletInfoAdapter());
|
||||
if (!Hive.isAdapterRegistered(WalletInfo.typeId)) {
|
||||
Hive.registerAdapter(WalletInfoAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(WALLET_TYPE_TYPE_ID)) {
|
||||
CakeHive.registerAdapter(WalletTypeAdapter());
|
||||
if (!Hive.isAdapterRegistered(walletTypeTypeId)) {
|
||||
Hive.registerAdapter(WalletTypeAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Template.typeId)) {
|
||||
CakeHive.registerAdapter(TemplateAdapter());
|
||||
if (!Hive.isAdapterRegistered(Template.typeId)) {
|
||||
Hive.registerAdapter(TemplateAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(ExchangeTemplate.typeId)) {
|
||||
CakeHive.registerAdapter(ExchangeTemplateAdapter());
|
||||
if (!Hive.isAdapterRegistered(ExchangeTemplate.typeId)) {
|
||||
Hive.registerAdapter(ExchangeTemplateAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(Order.typeId)) {
|
||||
CakeHive.registerAdapter(OrderAdapter());
|
||||
if (!Hive.isAdapterRegistered(Order.typeId)) {
|
||||
Hive.registerAdapter(OrderAdapter());
|
||||
}
|
||||
|
||||
if (!isMoneroOnly && !CakeHive.isAdapterRegistered(UnspentCoinsInfo.typeId)) {
|
||||
CakeHive.registerAdapter(UnspentCoinsInfoAdapter());
|
||||
if (!isMoneroOnly && !Hive.isAdapterRegistered(UnspentCoinsInfo.typeId)) {
|
||||
Hive.registerAdapter(UnspentCoinsInfoAdapter());
|
||||
}
|
||||
|
||||
if (!CakeHive.isAdapterRegistered(AnonpayInvoiceInfo.typeId)) {
|
||||
CakeHive.registerAdapter(AnonpayInvoiceInfoAdapter());
|
||||
if (!Hive.isAdapterRegistered(AnonpayInvoiceInfo.typeId)) {
|
||||
Hive.registerAdapter(AnonpayInvoiceInfoAdapter());
|
||||
}
|
||||
|
||||
final secureStorage = FlutterSecureStorage();
|
||||
|
@ -122,21 +120,21 @@ Future<void> initializeAppConfigs() async {
|
|||
await getEncryptionKey(secureStorage: secureStorage, forKey: TransactionDescription.boxKey);
|
||||
final tradesBoxKey = await getEncryptionKey(secureStorage: secureStorage, forKey: Trade.boxKey);
|
||||
final ordersBoxKey = await getEncryptionKey(secureStorage: secureStorage, forKey: Order.boxKey);
|
||||
final contacts = await CakeHive.openBox<Contact>(Contact.boxName);
|
||||
final nodes = await CakeHive.openBox<Node>(Node.boxName);
|
||||
final transactionDescriptions = await CakeHive.openBox<TransactionDescription>(
|
||||
final contacts = await Hive.openBox<Contact>(Contact.boxName);
|
||||
final nodes = await Hive.openBox<Node>(Node.boxName);
|
||||
final transactionDescriptions = await Hive.openBox<TransactionDescription>(
|
||||
TransactionDescription.boxName,
|
||||
encryptionKey: transactionDescriptionsBoxKey);
|
||||
final trades = await CakeHive.openBox<Trade>(Trade.boxName, encryptionKey: tradesBoxKey);
|
||||
final orders = await CakeHive.openBox<Order>(Order.boxName, encryptionKey: ordersBoxKey);
|
||||
final walletInfoSource = await CakeHive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
final templates = await CakeHive.openBox<Template>(Template.boxName);
|
||||
final exchangeTemplates = await CakeHive.openBox<ExchangeTemplate>(ExchangeTemplate.boxName);
|
||||
final anonpayInvoiceInfo = await CakeHive.openBox<AnonpayInvoiceInfo>(AnonpayInvoiceInfo.boxName);
|
||||
final trades = await Hive.openBox<Trade>(Trade.boxName, encryptionKey: tradesBoxKey);
|
||||
final orders = await Hive.openBox<Order>(Order.boxName, encryptionKey: ordersBoxKey);
|
||||
final walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
final templates = await Hive.openBox<Template>(Template.boxName);
|
||||
final exchangeTemplates = await Hive.openBox<ExchangeTemplate>(ExchangeTemplate.boxName);
|
||||
final anonpayInvoiceInfo = await Hive.openBox<AnonpayInvoiceInfo>(AnonpayInvoiceInfo.boxName);
|
||||
Box<UnspentCoinsInfo>? unspentCoinsInfoSource;
|
||||
|
||||
if (!isMoneroOnly) {
|
||||
unspentCoinsInfoSource = await CakeHive.openBox<UnspentCoinsInfo>(UnspentCoinsInfo.boxName);
|
||||
unspentCoinsInfoSource = await Hive.openBox<UnspentCoinsInfo>(UnspentCoinsInfo.boxName);
|
||||
}
|
||||
|
||||
await initialSetup(
|
||||
|
|
|
@ -41,8 +41,6 @@ import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
|||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support/support_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
|
||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
|
||||
import 'package:cake_wallet/utils/payment_request.dart';
|
||||
|
@ -50,6 +48,7 @@ import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
|||
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
|
||||
import 'package:cake_wallet/view_model/advanced_privacy_settings_view_model.dart';
|
||||
import 'package:cake_wallet/view_model/wallet_list/wallet_list_item.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
@ -442,17 +441,9 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
|||
builder: (_) => getIt.get<RestoreFromBackupPage>());
|
||||
|
||||
case Routes.support:
|
||||
return CupertinoPageRoute<void>(
|
||||
builder: (_) => getIt.get<SupportPage>());
|
||||
|
||||
case Routes.supportLiveChat:
|
||||
return CupertinoPageRoute<void>(
|
||||
builder: (_) => getIt.get<SupportChatPage>());
|
||||
|
||||
case Routes.supportOtherLinks:
|
||||
return CupertinoPageRoute<void>(
|
||||
fullscreenDialog: true,
|
||||
builder: (_) => getIt.get<SupportOtherLinksPage>());
|
||||
builder: (_) => getIt.get<SupportPage>());
|
||||
|
||||
case Routes.unspentCoinsList:
|
||||
return MaterialPageRoute<void>(
|
||||
|
|
|
@ -48,8 +48,6 @@ class Routes {
|
|||
static const editBackupPassword = '/edit_backup_passowrd';
|
||||
static const restoreFromBackup = '/restore_from_backup';
|
||||
static const support = '/support';
|
||||
static const supportLiveChat = '/support/live_chat';
|
||||
static const supportOtherLinks = '/support/other';
|
||||
static const orderDetails = '/order_details';
|
||||
static const preOrder = '/pre_order';
|
||||
static const buyWebView = '/buy_web_view';
|
||||
|
|
|
@ -2,10 +2,12 @@ import 'package:cake_wallet/core/execution_state.dart';
|
|||
import 'package:cake_wallet/di.dart';
|
||||
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||
import 'package:cake_wallet/utils/language_list.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:cake_wallet/view_model/restore/restore_from_qr_vm.dart';
|
||||
import 'package:cake_wallet/view_model/restore/wallet_restore_from_qr_code.dart';
|
||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class RestoreButton extends StatelessWidget {
|
||||
const RestoreButton(
|
||||
{required this.onPressed,
|
||||
required this.image,
|
||||
required this.title,
|
||||
required this.description});
|
||||
const RestoreButton({
|
||||
required this.onPressed,
|
||||
required this.image,
|
||||
required this.title,
|
||||
required this.description});
|
||||
|
||||
final VoidCallback onPressed;
|
||||
final Image image;
|
||||
|
@ -23,7 +24,10 @@ class RestoreButton extends StatelessWidget {
|
|||
alignment: Alignment.topLeft,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||
color: Theme.of(context).accentTextTheme.bodySmall!.color!,
|
||||
color: Theme.of(context)
|
||||
.accentTextTheme!
|
||||
.bodySmall!
|
||||
.color!,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
|
@ -45,7 +49,7 @@ class RestoreButton extends StatelessWidget {
|
|||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme
|
||||
.primaryTextTheme!
|
||||
.titleLarge!
|
||||
.color!),
|
||||
),
|
||||
|
@ -57,7 +61,7 @@ class RestoreButton extends StatelessWidget {
|
|||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme
|
||||
.primaryTextTheme!
|
||||
.labelSmall!
|
||||
.color!),
|
||||
),
|
||||
|
|
|
@ -6,6 +6,7 @@ class SettingsCellWithArrow extends StandardListRow {
|
|||
: super(title: title, isSelected: false, onTap: handler);
|
||||
|
||||
@override
|
||||
Widget buildTrailing(BuildContext context) => Image.asset('assets/images/select_arrow.png',
|
||||
color: Theme.of(context).primaryTextTheme.labelSmall!.color!);
|
||||
Widget buildTrailing(BuildContext context) =>
|
||||
Image.asset('assets/images/select_arrow.png',
|
||||
color: Theme.of(context).primaryTextTheme!.labelSmall!.color!);
|
||||
}
|
|
@ -1,78 +1,55 @@
|
|||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/src/screens/support/widgets/support_tiles.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/utils/device_info.dart';
|
||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
|
||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_link_provider_cell.dart';
|
||||
import 'package:cake_wallet/src/widgets/standard_list.dart';
|
||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||
import 'package:cake_wallet/view_model/settings/link_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/support_view_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class SupportPage extends BasePage {
|
||||
SupportPage(this.supportViewModel);
|
||||
|
||||
final SupportViewModel supportViewModel;
|
||||
|
||||
final imageLiveSupport = Image.asset('assets/images/live_support.png');
|
||||
final imageWalletGuides = Image.asset('assets/images/wallet_guides.png');
|
||||
final imageMoreLinks = Image.asset('assets/images/more_links.png');
|
||||
|
||||
@override
|
||||
String get title => S.current.settings_support;
|
||||
|
||||
@override
|
||||
AppBarStyle get appBarStyle => AppBarStyle.regular;
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) {
|
||||
return Container(
|
||||
child: Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 330),
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 24),
|
||||
child: SupportTile(
|
||||
image: imageLiveSupport,
|
||||
title: S.of(context).support_title_live_chat,
|
||||
description: S.of(context).support_description_live_chat,
|
||||
onPressed: () {
|
||||
if (DeviceInfo.instance.isDesktop) {
|
||||
_launchUrl(supportViewModel.fetchUrl());
|
||||
} else {
|
||||
Navigator.pushNamed(context, Routes.supportLiveChat);
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 24),
|
||||
child: SupportTile(
|
||||
image: imageWalletGuides,
|
||||
title: S.of(context).support_title_guides,
|
||||
description: S.of(context).support_description_guides,
|
||||
onPressed: () => _launchUrl(supportViewModel.guidesUrl),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 24),
|
||||
child: SupportTile(
|
||||
image: imageMoreLinks,
|
||||
title: S.of(context).support_title_other_links,
|
||||
description: S.of(context).support_description_other_links,
|
||||
onPressed: () => Navigator.pushNamed(context, Routes.supportOtherLinks),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
final iconColor = Theme.of(context)
|
||||
.accentTextTheme!
|
||||
.displayLarge!
|
||||
.backgroundColor!;
|
||||
// FIX-ME: Added `context` it was not used here before, maby bug ?
|
||||
return Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 500),
|
||||
child: SectionStandardList(
|
||||
context: context,
|
||||
sectionCount: 1,
|
||||
itemCounter: (int _) => supportViewModel.items.length,
|
||||
itemBuilder: (_, __, index) {
|
||||
final item = supportViewModel.items[index];
|
||||
|
||||
if (item is RegularListItem) {
|
||||
return SettingsCellWithArrow(title: item.title, handler: item.handler);
|
||||
}
|
||||
|
||||
if (item is LinkListItem) {
|
||||
return SettingsLinkProviderCell(
|
||||
title: item.title,
|
||||
icon: item.icon,
|
||||
iconColor: item.hasIconColor ? iconColor : null,
|
||||
link: item.link,
|
||||
linkTitle: item.linkTitle);
|
||||
}
|
||||
|
||||
return Container();
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _launchUrl(String url) async {
|
||||
try {
|
||||
await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupportTile extends StatelessWidget {
|
||||
const SupportTile(
|
||||
{required this.onPressed,
|
||||
required this.image,
|
||||
required this.title,
|
||||
required this.description});
|
||||
|
||||
final VoidCallback onPressed;
|
||||
final Image image;
|
||||
final String title;
|
||||
final String description;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: onPressed,
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.all(24),
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||
color: Theme.of(context).accentTextTheme.bodySmall!.color!,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
image,
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(left: 16),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Theme.of(context).primaryTextTheme.titleLarge!.color!,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 5),
|
||||
child: Text(
|
||||
description,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: Theme.of(context).primaryTextTheme.labelSmall!.color!,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/src/screens/support_chat/widgets/chatwoot_widget.dart';
|
||||
import 'package:cake_wallet/view_model/support_view_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
|
||||
|
||||
class SupportChatPage extends BasePage {
|
||||
SupportChatPage(this.supportViewModel, {required this.secureStorage});
|
||||
|
||||
final SupportViewModel supportViewModel;
|
||||
final FlutterSecureStorage secureStorage;
|
||||
|
||||
@override
|
||||
String get title => S.current.settings_support;
|
||||
|
||||
@override
|
||||
AppBarStyle get appBarStyle => AppBarStyle.regular;
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) => FutureBuilder<String>(
|
||||
future: getCookie(),
|
||||
builder: (BuildContext context, AsyncSnapshot<String> snapshot) {
|
||||
print(snapshot.data);
|
||||
if (snapshot.hasData)
|
||||
return ChatwootWidget(
|
||||
secureStorage,
|
||||
supportUrl: supportViewModel.fetchUrl(authToken: snapshot.data!)
|
||||
);
|
||||
return Container();
|
||||
},
|
||||
);
|
||||
|
||||
Future<String> getCookie() async {
|
||||
return await secureStorage.read(key: COOKIE_KEY) ?? "";
|
||||
}
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
|
||||
const COOKIE_KEY = 'chatwootCookie';
|
||||
|
||||
class ChatwootWidget extends StatefulWidget {
|
||||
ChatwootWidget(this.secureStorage, {required this.supportUrl});
|
||||
|
||||
final FlutterSecureStorage secureStorage;
|
||||
final String supportUrl;
|
||||
|
||||
@override
|
||||
ChatwootWidgetState createState() => ChatwootWidgetState();
|
||||
}
|
||||
|
||||
class ChatwootWidgetState extends State<ChatwootWidget> {
|
||||
final GlobalKey _webViewkey = GlobalKey();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => InAppWebView(
|
||||
key: _webViewkey,
|
||||
initialOptions: InAppWebViewGroupOptions(
|
||||
crossPlatform: InAppWebViewOptions(transparentBackground: true),
|
||||
),
|
||||
initialUrlRequest: URLRequest(url: Uri.tryParse(widget.supportUrl)),
|
||||
onWebViewCreated: (InAppWebViewController controller) {
|
||||
controller.addWebMessageListener(
|
||||
WebMessageListener(
|
||||
jsObjectName: 'ReactNativeWebView',
|
||||
onPostMessage: (String? message, Uri? sourceOrigin, bool isMainFrame,
|
||||
JavaScriptReplyProxy replyProxy) {
|
||||
final shortenedMessage = message?.substring(16);
|
||||
if (shortenedMessage != null && isJsonString(shortenedMessage)) {
|
||||
final parsedMessage = jsonDecode(shortenedMessage);
|
||||
final eventType = parsedMessage["event"];
|
||||
if (eventType == 'loaded') {
|
||||
final authToken = parsedMessage["config"]["authToken"];
|
||||
print(authToken);
|
||||
storeCookie(authToken as String);
|
||||
}
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
bool isJsonString(String str) {
|
||||
try {
|
||||
jsonDecode(str);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Future<void> storeCookie(String value) async =>
|
||||
await widget.secureStorage.write(key: COOKIE_KEY, value: value);
|
||||
}
|
|
@ -1,58 +0,0 @@
|
|||
import 'package:cake_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
|
||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_link_provider_cell.dart';
|
||||
import 'package:cake_wallet/src/widgets/standard_list.dart';
|
||||
import 'package:cake_wallet/view_model/settings/link_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/support_view_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class SupportOtherLinksPage extends BasePage {
|
||||
SupportOtherLinksPage(this.supportViewModel);
|
||||
|
||||
final SupportViewModel supportViewModel;
|
||||
|
||||
@override
|
||||
String get title => S.current.settings_support;
|
||||
|
||||
@override
|
||||
AppBarStyle get appBarStyle => AppBarStyle.transparent;
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) {
|
||||
final iconColor =
|
||||
Theme.of(context).accentTextTheme.displayLarge!.backgroundColor!;
|
||||
|
||||
return Container(
|
||||
child: Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 500),
|
||||
child: SectionStandardList(
|
||||
context: context,
|
||||
sectionCount: 1,
|
||||
itemCounter: (int _) => supportViewModel.items.length,
|
||||
itemBuilder: (_, __, index) {
|
||||
final item = supportViewModel.items[index];
|
||||
|
||||
if (item is RegularListItem) {
|
||||
return SettingsCellWithArrow(
|
||||
title: item.title, handler: item.handler);
|
||||
}
|
||||
|
||||
if (item is LinkListItem) {
|
||||
return SettingsLinkProviderCell(
|
||||
title: item.title,
|
||||
icon: item.icon,
|
||||
iconColor: item.hasIconColor ? iconColor : null,
|
||||
link: item.link,
|
||||
linkTitle: item.linkTitle);
|
||||
}
|
||||
|
||||
return Container();
|
||||
}),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,9 +1,12 @@
|
|||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/view_model/settings/link_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/settings/settings_list_item.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
|
||||
part 'support_view_model.g.dart';
|
||||
|
||||
|
@ -12,6 +15,14 @@ class SupportViewModel = SupportViewModelBase with _$SupportViewModel;
|
|||
abstract class SupportViewModelBase with Store {
|
||||
SupportViewModelBase()
|
||||
: items = [
|
||||
RegularListItem(
|
||||
title: S.current.faq,
|
||||
handler: (BuildContext context) async {
|
||||
try {
|
||||
await launch(url);
|
||||
} catch (e) {}
|
||||
},
|
||||
),
|
||||
LinkListItem(
|
||||
title: 'Email',
|
||||
linkTitle: 'support@cakewallet.com',
|
||||
|
@ -74,17 +85,7 @@ abstract class SupportViewModelBase with Store {
|
|||
// link: 'mailto:support@y.at')
|
||||
];
|
||||
|
||||
final guidesUrl = 'https://guides.cakewallet.com';
|
||||
|
||||
String fetchUrl({String locale = "en", String authToken = ""}) {
|
||||
var supportUrl =
|
||||
"https://support.cakewallet.com/widget?website_token=${secrets.chatwootWebsiteToken}&locale=${locale}";
|
||||
|
||||
if (authToken.isNotEmpty)
|
||||
supportUrl += "&cw_conversation=$authToken";
|
||||
|
||||
return supportUrl;
|
||||
}
|
||||
static const url = 'https://guides.cakewallet.com';
|
||||
|
||||
List<SettingsListItem> items;
|
||||
}
|
|
@ -100,7 +100,6 @@ dev_dependencies:
|
|||
# check flutter_launcher_icons for usage
|
||||
pedantic: ^1.8.0
|
||||
# replace https://github.com/dart-lang/lints#migrating-from-packagepedantic
|
||||
translator: ^0.1.7
|
||||
|
||||
flutter_icons:
|
||||
image_path: "assets/images/app_logo.png"
|
||||
|
|
|
@ -630,18 +630,18 @@
|
|||
"setup_totp_recommended": "إعداد TOTP (موصى به)",
|
||||
"disable_buy": "تعطيل إجراء الشراء",
|
||||
"disable_sell": "قم بتعطيل إجراء البيع",
|
||||
"cake_2fa_preset": " كعكة 2FA مسبقا",
|
||||
"cake_2fa_preset" : " كعكة 2FA مسبقا",
|
||||
"narrow": "ضيق",
|
||||
"normal": "طبيعي",
|
||||
"aggressive": "عنيف",
|
||||
"require_for_assessing_wallet": "تتطلب الوصول إلى المحفظة",
|
||||
"require_for_sends_to_non_contacts": "تتطلب لارسال لغير جهات الاتصال",
|
||||
"require_for_sends_to_contacts": "تتطلب لارسال جهات الاتصال",
|
||||
"require_for_sends_to_internal_wallets": "تتطلب عمليات الإرسال إلى المحافظ الداخلية",
|
||||
"require_for_exchanges_to_internal_wallets": "تتطلب عمليات التبادل إلى المحافظ الداخلية",
|
||||
"require_for_adding_contacts": "تتطلب إضافة جهات اتصال",
|
||||
"require_for_creating_new_wallets": "تتطلب إنشاء محافظ جديدة",
|
||||
"require_for_all_security_and_backup_settings": "مطلوب لجميع إعدادات الأمان والنسخ الاحتياطي",
|
||||
"require_for_sends_to_non_contacts" : "تتطلب لارسال لغير جهات الاتصال",
|
||||
"require_for_sends_to_contacts" : "تتطلب لارسال جهات الاتصال",
|
||||
"require_for_sends_to_internal_wallets" : "تتطلب عمليات الإرسال إلى المحافظ الداخلية",
|
||||
"require_for_exchanges_to_internal_wallets" : "تتطلب عمليات التبادل إلى المحافظ الداخلية",
|
||||
"require_for_adding_contacts" : "تتطلب إضافة جهات اتصال",
|
||||
"require_for_creating_new_wallets" : "تتطلب إنشاء محافظ جديدة",
|
||||
"require_for_all_security_and_backup_settings" : "مطلوب لجميع إعدادات الأمان والنسخ الاحتياطي",
|
||||
"available_balance_description": "الرصيد المتاح هو الرصيد الذي يمكنك إنفاقه أو تحويله إلى محفظة أخرى. يتم تجميد الرصيد المتاح للمعاملات الصادرة والمعاملات الواردة غير المؤكدة.",
|
||||
"syncing_wallet_alert_title": "محفظتك تتم مزامنتها",
|
||||
"syncing_wallet_alert_content": "قد لا يكتمل رصيدك وقائمة المعاملات الخاصة بك حتى تظهر عبارة “SYNCHRONIZED“ في الأعلى. انقر / اضغط لمعرفة المزيد.",
|
||||
|
@ -668,11 +668,5 @@
|
|||
"slidable": "قابل للانزلاق",
|
||||
"etherscan_history": "Etherscan تاريخ",
|
||||
"manage_nodes": "ﺪﻘﻌﻟﺍ ﺓﺭﺍﺩﺇ",
|
||||
"template_name": "اسم القالب",
|
||||
"support_title_live_chat": "الدعم المباشر",
|
||||
"support_description_live_chat": "حرة وسريعة! ممثلو الدعم المدربين متاحون للمساعدة",
|
||||
"support_title_guides": "أدلة محفظة كعكة",
|
||||
"support_description_guides": "توثيق ودعم القضايا المشتركة",
|
||||
"support_title_other_links": "روابط دعم أخرى",
|
||||
"support_description_other_links": "انضم إلى مجتمعاتنا أو تصل إلينا شركائنا من خلال أساليب أخرى"
|
||||
"template_name": "اسم القالب"
|
||||
}
|
|
@ -664,11 +664,5 @@
|
|||
"slidable": "Плъзгащ се",
|
||||
"etherscan_history": "История на Etherscan",
|
||||
"manage_nodes": "Управление на възли",
|
||||
"template_name": "Име на шаблон",
|
||||
"support_title_live_chat": "Подкрепа на живо",
|
||||
"support_description_live_chat": "Безплатно и бързо! Обучени представители на подкрепата са на разположение за подпомагане",
|
||||
"support_title_guides": "Ръководства за портфейл за торта",
|
||||
"support_description_guides": "Документация и подкрепа за общи проблеми",
|
||||
"support_title_other_links": "Други връзки за поддръжка",
|
||||
"support_description_other_links": "Присъединете се към нашите общности или се свържете с нас нашите партньори чрез други методи"
|
||||
"template_name": "Име на шаблон"
|
||||
}
|
||||
|
|
|
@ -664,11 +664,5 @@
|
|||
"slidable": "Posuvné",
|
||||
"manage_nodes": "Spravovat uzly",
|
||||
"etherscan_history": "Historie Etherscanu",
|
||||
"template_name": "Název šablony",
|
||||
"support_title_live_chat": "Živá podpora",
|
||||
"support_description_live_chat": "Zdarma a rychle! K dispozici jsou zástupci vyškolených podpůrných podpory",
|
||||
"support_title_guides": "Průvodce peněženkami dortu",
|
||||
"support_description_guides": "Dokumentace a podpora běžných otázek",
|
||||
"support_title_other_links": "Další odkazy na podporu",
|
||||
"support_description_other_links": "Připojte se k našim komunitám nebo se k nám oslovte další metody"
|
||||
"template_name": "Název šablony"
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
"settings_only_trades": "Nur Handel",
|
||||
"settings_only_transactions": "Nur Transaktionen",
|
||||
"settings_none": "Keiner",
|
||||
"settings_support": "Hilfe",
|
||||
"settings_support": "Unterstützen",
|
||||
"settings_terms_and_conditions": "Geschäftsbedingungen",
|
||||
"pin_is_incorrect": "PIN ist falsch",
|
||||
"setup_pin": "PIN einrichten",
|
||||
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Verschiebbar",
|
||||
"manage_nodes": "Knoten verwalten",
|
||||
"etherscan_history": "Etherscan-Geschichte",
|
||||
"template_name": "Vorlagenname",
|
||||
"support_title_live_chat": "Live Support",
|
||||
"support_description_live_chat": "Kostenlos und schnell! Ausgebildete Mitarbeiter stehen zur Unterstützung bereit, um zu helfen",
|
||||
"support_title_guides": "Cake Wallet Guides",
|
||||
"support_description_guides": "Dokumentation und Hilfe für bekannte Probleme",
|
||||
"support_title_other_links": "Andere Support-Links",
|
||||
"support_description_other_links": "Treten Sie unseren Communities bei oder erreichen Sie uns oder unsere Partner über andere Methoden"
|
||||
"template_name": "Vorlagenname"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Slidable",
|
||||
"manage_nodes": "Manage nodes",
|
||||
"etherscan_history": "Etherscan history",
|
||||
"template_name": "Template Name",
|
||||
"support_title_live_chat": "Live support",
|
||||
"support_description_live_chat": "Free and fast! Trained support representatives are available to assist",
|
||||
"support_title_guides": "Cake Wallet guides",
|
||||
"support_description_guides": "Documentation and support for common issues",
|
||||
"support_title_other_links": "Other support links",
|
||||
"support_description_other_links": "Join our communities or reach us our our partners through other methods"
|
||||
"template_name": "Template Name"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "deslizable",
|
||||
"manage_nodes": "Administrar nodos",
|
||||
"etherscan_history": "historia de etherscan",
|
||||
"template_name": "Nombre de la plantilla",
|
||||
"support_title_live_chat": "Soporte vital",
|
||||
"support_description_live_chat": "¡GRATIS y RÁPIDO! Los representantes de apoyo capacitado están disponibles para ayudar",
|
||||
"support_title_guides": "Guías de billetera para pastel",
|
||||
"support_description_guides": "Documentación y apoyo para problemas comunes",
|
||||
"support_title_other_links": "Otros enlaces de soporte",
|
||||
"support_description_other_links": "Únase a nuestras comunidades o comuníquese con nosotros nuestros socios a través de otros métodos"
|
||||
"template_name": "Nombre de la plantilla"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Glissable",
|
||||
"manage_nodes": "Gérer les nœuds",
|
||||
"etherscan_history": "Historique d'Etherscan",
|
||||
"template_name": "Nom du modèle",
|
||||
"support_title_live_chat": "Support en direct",
|
||||
"support_description_live_chat": "GRATUIT ET RAPIDE! Des représentants de soutien formé sont disponibles pour aider",
|
||||
"support_title_guides": "Guides de portefeuille à gâteau",
|
||||
"support_description_guides": "Documentation et soutien aux problèmes communs",
|
||||
"support_title_other_links": "Autres liens d'assistance",
|
||||
"support_description_other_links": "Rejoignez nos communautés ou contactez-nous nos partenaires à travers d'autres méthodes"
|
||||
"template_name": "Nom du modèle"
|
||||
}
|
||||
|
|
|
@ -650,11 +650,5 @@
|
|||
"slidable": "Mai iya zamewa",
|
||||
"etherscan_history": "Etherscan tarihin kowane zamani",
|
||||
"manage_nodes": "Sarrafa nodes",
|
||||
"template_name": "Sunan Samfura",
|
||||
"support_title_live_chat": "Tallafi na Live",
|
||||
"support_description_live_chat": "Kyauta da sauri! An horar da wakilan tallafi na tallafi don taimakawa",
|
||||
"support_title_guides": "Jagorar Cake",
|
||||
"support_description_guides": "Tallafi da tallafi don batutuwa na yau da kullun",
|
||||
"support_title_other_links": "Sauran hanyoyin tallafi",
|
||||
"support_description_other_links": "Kasance tare da al'ummominmu ko kuma ka kai mu abokanmu ta hanyar wasu hanyoyi"
|
||||
"template_name": "Sunan Samfura"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "फिसलने लायक",
|
||||
"manage_nodes": "नोड्स प्रबंधित करें",
|
||||
"etherscan_history": "इथरस्कैन इतिहास",
|
||||
"template_name": "टेम्पलेट नाम",
|
||||
"support_title_live_chat": "लाइव सहायता",
|
||||
"support_description_live_chat": "मुक्त और तेजी से! प्रशिक्षित सहायता प्रतिनिधि सहायता के लिए उपलब्ध हैं",
|
||||
"support_title_guides": "केक वॉलेट गाइड",
|
||||
"support_description_guides": "सामान्य मुद्दों के लिए प्रलेखन और समर्थन",
|
||||
"support_title_other_links": "अन्य समर्थन लिंक",
|
||||
"support_description_other_links": "हमारे समुदायों में शामिल हों या अन्य तरीकों के माध्यम से हमारे साथी तक पहुंचें"
|
||||
"template_name": "टेम्पलेट नाम"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Klizna",
|
||||
"manage_nodes": "Upravljanje čvorovima",
|
||||
"etherscan_history": "Etherscan povijest",
|
||||
"template_name": "Naziv predloška",
|
||||
"support_title_live_chat": "Podrška uživo",
|
||||
"support_description_live_chat": "Besplatno i brzo! Obučeni predstavnici podrške dostupni su za pomoć",
|
||||
"support_title_guides": "Vodiči za torte",
|
||||
"support_description_guides": "Dokumentacija i podrška za uobičajena pitanja",
|
||||
"support_title_other_links": "Ostale veze za podršku",
|
||||
"support_description_other_links": "Pridružite se našim zajednicama ili nam dosegnu naše partnere drugim metodama"
|
||||
"template_name": "Naziv predloška"
|
||||
}
|
||||
|
|
|
@ -660,11 +660,5 @@
|
|||
"slidable": "Dapat digeser",
|
||||
"manage_nodes": "Kelola node",
|
||||
"etherscan_history": "Sejarah Etherscan",
|
||||
"template_name": "Nama Templat",
|
||||
"support_title_live_chat": "Dukungan langsung",
|
||||
"support_description_live_chat": "Gratis dan Cepat! Perwakilan dukungan terlatih tersedia untuk membantu",
|
||||
"support_title_guides": "Panduan Dompet Kue",
|
||||
"support_description_guides": "Dokumentasi dan dukungan untuk masalah umum",
|
||||
"support_title_other_links": "Tautan dukungan lainnya",
|
||||
"support_description_other_links": "Bergabunglah dengan komunitas kami atau hubungi kami mitra kami melalui metode lain"
|
||||
"template_name": "Nama Templat"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Scorrevole",
|
||||
"manage_nodes": "Gestisci i nodi",
|
||||
"etherscan_history": "Storia Etherscan",
|
||||
"template_name": "Nome modello",
|
||||
"support_title_live_chat": "Supporto dal vivo",
|
||||
"support_description_live_chat": "Gratuito e veloce! I rappresentanti di supporto qualificati sono disponibili per assistere",
|
||||
"support_title_guides": "Guide del portafoglio per torte",
|
||||
"support_description_guides": "Documentazione e supporto per problemi comuni",
|
||||
"support_title_other_links": "Altri collegamenti di supporto",
|
||||
"support_description_other_links": "Unisciti alle nostre comunità o raggiungici i nostri partner attraverso altri metodi"
|
||||
"template_name": "Nome modello"
|
||||
}
|
||||
|
|
|
@ -634,18 +634,18 @@
|
|||
"setup_totp_recommended": "TOTP を設定する (推奨)",
|
||||
"disable_buy": "購入アクションを無効にする",
|
||||
"disable_sell": "販売アクションを無効にする",
|
||||
"cake_2fa_preset": "ケーキ 2FA プリセット",
|
||||
"cake_2fa_preset" : "ケーキ 2FA プリセット",
|
||||
"narrow": "狭い",
|
||||
"normal": "普通",
|
||||
"aggressive": "熱心すぎる",
|
||||
"require_for_assessing_wallet": "ウォレットにアクセスするために必要です",
|
||||
"require_for_sends_to_non_contacts": "非連絡先への送信に必須",
|
||||
"require_for_sends_to_contacts": "連絡先に送信する場合に必須",
|
||||
"require_for_sends_to_internal_wallets": "内部ウォレットへの送信に必須",
|
||||
"require_for_exchanges_to_internal_wallets": "内部ウォレットへの交換に必要",
|
||||
"require_for_adding_contacts": "連絡先の追加に必要",
|
||||
"require_for_creating_new_wallets": "新しいウォレットを作成するために必要です",
|
||||
"require_for_all_security_and_backup_settings": "すべてのセキュリティおよびバックアップ設定に必須",
|
||||
"require_for_sends_to_non_contacts" : "非連絡先への送信に必須",
|
||||
"require_for_sends_to_contacts" : "連絡先に送信する場合に必須",
|
||||
"require_for_sends_to_internal_wallets" : "内部ウォレットへの送信に必須",
|
||||
"require_for_exchanges_to_internal_wallets" : "内部ウォレットへの交換に必要",
|
||||
"require_for_adding_contacts" : "連絡先の追加に必要",
|
||||
"require_for_creating_new_wallets" : "新しいウォレットを作成するために必要です",
|
||||
"require_for_all_security_and_backup_settings" : "すべてのセキュリティおよびバックアップ設定に必須",
|
||||
"available_balance_description": "利用可能な残高は、ウォレットの残高から冷凍残高を差し引いたものです。",
|
||||
"syncing_wallet_alert_title": "ウォレットは同期中です",
|
||||
"syncing_wallet_alert_content": "上部に「同期済み」と表示されるまで、残高と取引リストが完了していない可能性があります。詳細については、クリック/タップしてください。",
|
||||
|
@ -672,11 +672,5 @@
|
|||
"slidable": "スライド可能",
|
||||
"manage_nodes": "ノードの管理",
|
||||
"etherscan_history": "イーサスキャンの歴史",
|
||||
"template_name": "テンプレート名",
|
||||
"support_title_live_chat": "ライブサポート",
|
||||
"support_description_live_chat": "無料で速い!訓練されたサポート担当者が支援することができます",
|
||||
"support_title_guides": "ケーキウォレットガイド",
|
||||
"support_description_guides": "一般的な問題のドキュメントとサポート",
|
||||
"support_title_other_links": "その他のサポートリンク",
|
||||
"support_description_other_links": "私たちのコミュニティに参加するか、他の方法を通して私たちのパートナーに連絡してください"
|
||||
"template_name": "テンプレート名"
|
||||
}
|
|
@ -634,18 +634,18 @@
|
|||
"setup_totp_recommended": "TOTP 설정(권장)",
|
||||
"disable_buy": "구매 행동 비활성화",
|
||||
"disable_sell": "판매 조치 비활성화",
|
||||
"cake_2fa_preset": "케이크 2FA 프리셋",
|
||||
"cake_2fa_preset" : "케이크 2FA 프리셋",
|
||||
"narrow": "좁은",
|
||||
"normal": "정상",
|
||||
"aggressive": "지나치게 열심인",
|
||||
"require_for_assessing_wallet": "지갑 접근을 위해 필요",
|
||||
"require_for_sends_to_non_contacts": "비접촉자에게 보내는 데 필요",
|
||||
"require_for_sends_to_contacts": "연락처로 보내기에 필요",
|
||||
"require_for_sends_to_internal_wallets": "내부 지갑으로 보내는 데 필요",
|
||||
"require_for_exchanges_to_internal_wallets": "내부 지갑으로의 교환에 필요",
|
||||
"require_for_adding_contacts": "연락처 추가에 필요",
|
||||
"require_for_creating_new_wallets": "새 지갑 생성에 필요",
|
||||
"require_for_all_security_and_backup_settings": "모든 보안 및 백업 설정에 필요",
|
||||
"require_for_sends_to_non_contacts" : "비접촉자에게 보내는 데 필요",
|
||||
"require_for_sends_to_contacts" : "연락처로 보내기에 필요",
|
||||
"require_for_sends_to_internal_wallets" : "내부 지갑으로 보내는 데 필요",
|
||||
"require_for_exchanges_to_internal_wallets" : "내부 지갑으로의 교환에 필요",
|
||||
"require_for_adding_contacts" : "연락처 추가에 필요",
|
||||
"require_for_creating_new_wallets" : "새 지갑 생성에 필요",
|
||||
"require_for_all_security_and_backup_settings" : "모든 보안 및 백업 설정에 필요",
|
||||
"available_balance_description": "이 지갑에서 사용할 수 있는 잔액입니다. 이 잔액은 블록체인에서 가져온 것이며, Cake Wallet이 사용할 수 없습니다.",
|
||||
"syncing_wallet_alert_title": "지갑 동기화 중",
|
||||
"syncing_wallet_alert_content": "상단에 \"동기화됨\"이라고 표시될 때까지 잔액 및 거래 목록이 완전하지 않을 수 있습니다. 자세히 알아보려면 클릭/탭하세요.",
|
||||
|
@ -672,11 +672,5 @@
|
|||
"slidable": "슬라이딩 가능",
|
||||
"manage_nodes": "노드 관리",
|
||||
"etherscan_history": "이더스캔 역사",
|
||||
"template_name": "템플릿 이름",
|
||||
"support_title_live_chat": "실시간 지원",
|
||||
"support_description_live_chat": "자유롭고 빠릅니다! 훈련 된 지원 담당자가 지원할 수 있습니다",
|
||||
"support_title_guides": "케이크 지갑 가이드",
|
||||
"support_description_guides": "일반적인 문제에 대한 문서화 및 지원",
|
||||
"support_title_other_links": "다른 지원 링크",
|
||||
"support_description_other_links": "다른 방법을 통해 커뮤니티에 가입하거나 파트너에게 연락하십시오."
|
||||
"template_name": "템플릿 이름"
|
||||
}
|
|
@ -632,18 +632,18 @@
|
|||
"setup_totp_recommended": "TOTP ကို စနစ်ထည့်သွင်းပါ (အကြံပြုထားသည်)",
|
||||
"disable_buy": "ဝယ်ယူမှု လုပ်ဆောင်ချက်ကို ပိတ်ပါ။",
|
||||
"disable_sell": "ရောင်းချခြင်းလုပ်ဆောင်ချက်ကို ပိတ်ပါ။",
|
||||
"cake_2fa_preset": "ကိတ်မုန့် 2FA ကြိုတင်သတ်မှတ်",
|
||||
"cake_2fa_preset" : "ကိတ်မုန့် 2FA ကြိုတင်သတ်မှတ်",
|
||||
"narrow": "ကျဉ်းသော",
|
||||
"normal": "ပုံမှန်",
|
||||
"aggressive": "စိတ်အားထက်သန်ခြင်း။",
|
||||
"require_for_assessing_wallet": "ပိုက်ဆံအိတ်ကို ဝင်သုံးရန် လိုအပ်သည်။",
|
||||
"require_for_sends_to_non_contacts": "အဆက်အသွယ်မရှိသူများထံ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_sends_to_contacts": "အဆက်အသွယ်များထံ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_sends_to_internal_wallets": "အတွင်းပိုင်း ပိုက်ဆံအိတ်များသို့ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_exchanges_to_internal_wallets": "အတွင်းပိုင်းပိုက်ဆံအိတ်များသို့ လဲလှယ်ရန် လိုအပ်သည်။",
|
||||
"require_for_adding_contacts": "အဆက်အသွယ်များထည့်ရန် လိုအပ်သည်။",
|
||||
"require_for_creating_new_wallets": "ပိုက်ဆံအိတ်အသစ်များ ဖန်တီးရန် လိုအပ်သည်။",
|
||||
"require_for_all_security_and_backup_settings": "လုံခြုံရေးနှင့် အရန်ဆက်တင်များအားလုံးအတွက် လိုအပ်ပါသည်။",
|
||||
"require_for_sends_to_non_contacts" : "အဆက်အသွယ်မရှိသူများထံ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_sends_to_contacts" : "အဆက်အသွယ်များထံ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_sends_to_internal_wallets" : "အတွင်းပိုင်း ပိုက်ဆံအိတ်များသို့ ပေးပို့ရန် လိုအပ်သည်။",
|
||||
"require_for_exchanges_to_internal_wallets" : "အတွင်းပိုင်းပိုက်ဆံအိတ်များသို့ လဲလှယ်ရန် လိုအပ်သည်။",
|
||||
"require_for_adding_contacts" : "အဆက်အသွယ်များထည့်ရန် လိုအပ်သည်။",
|
||||
"require_for_creating_new_wallets" : "ပိုက်ဆံအိတ်အသစ်များ ဖန်တီးရန် လိုအပ်သည်။",
|
||||
"require_for_all_security_and_backup_settings" : "လုံခြုံရေးနှင့် အရန်ဆက်တင်များအားလုံးအတွက် လိုအပ်ပါသည်။",
|
||||
"available_balance_description": "သင့်ရဲ့ အကောင့်တွင် ရရှိနိုင်သော ငွေကျန်ငွေကို ပြန်လည်ပေးသွင်းပါ။",
|
||||
"syncing_wallet_alert_title": "သင့်ပိုက်ဆံအိတ်ကို စင့်ခ်လုပ်နေပါသည်။",
|
||||
"syncing_wallet_alert_content": "သင်၏လက်ကျန်နှင့် ငွေပေးငွေယူစာရင်းသည် ထိပ်တွင် \"Synchronizeed\" ဟုပြောသည်အထိ မပြီးမြောက်နိုင်ပါ။ ပိုမိုလေ့လာရန် နှိပ်/နှိပ်ပါ။",
|
||||
|
@ -670,11 +670,5 @@
|
|||
"slidable": "လျှောချနိုင်သည်။",
|
||||
"manage_nodes": "ဆုံမှတ်များကို စီမံပါ။",
|
||||
"etherscan_history": "Etherscan သမိုင်း",
|
||||
"template_name": "နမူနာပုံစံ",
|
||||
"support_title_live_chat": "တိုက်ရိုက်ပံ့ပိုးမှု",
|
||||
"support_description_live_chat": "အခမဲ့နှင့်အစာရှောင်ခြင်း! လေ့ကျင့်ထားသောထောက်ခံသူကိုယ်စားလှယ်များသည်ကူညီနိုင်သည်",
|
||||
"support_title_guides": "ကိတ်မုန့်ပိုက်ဆံအိတ်လမ်းညွှန်များ",
|
||||
"support_description_guides": "ဘုံပြ issues နာများအတွက်စာရွက်စာတမ်းများနှင့်ထောက်ခံမှု",
|
||||
"support_title_other_links": "အခြားအထောက်အပံ့လင့်များ",
|
||||
"support_description_other_links": "ကျွန်ုပ်တို့၏လူမှုအသိုင်းအဝိုင်းများသို့ 0 င်ရောက်ပါ"
|
||||
"template_name": "နမူနာပုံစံ"
|
||||
}
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Verschuifbaar",
|
||||
"manage_nodes": "Beheer knooppunten",
|
||||
"etherscan_history": "Etherscan-geschiedenis",
|
||||
"template_name": "Sjabloonnaam",
|
||||
"support_title_live_chat": "Live ondersteuning",
|
||||
"support_description_live_chat": "Gratis en snel! Getrainde ondersteuningsvertegenwoordigers zijn beschikbaar om te helpen",
|
||||
"support_title_guides": "Cake -portemonnee gidsen",
|
||||
"support_description_guides": "Documentatie en ondersteuning voor gemeenschappelijke problemen",
|
||||
"support_title_other_links": "Andere ondersteuningslinks",
|
||||
"support_description_other_links": "Word lid van onze gemeenschappen of bereik ons onze partners via andere methoden"
|
||||
"template_name": "Sjabloonnaam"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Przesuwne",
|
||||
"manage_nodes": "Zarządzaj węzłami",
|
||||
"etherscan_history": "Historia Etherscanu",
|
||||
"template_name": "Nazwa szablonu",
|
||||
"support_title_live_chat": "Wsparcie na żywo",
|
||||
"support_description_live_chat": "Darmowe i szybkie! Do pomocy są dostępni przeszkoleni przedstawiciele wsparcia",
|
||||
"support_title_guides": "Przewodniki portfela ciasta",
|
||||
"support_description_guides": "Dokumentacja i wsparcie dla typowych problemów",
|
||||
"support_title_other_links": "Inne linki wsparcia",
|
||||
"support_description_other_links": "Dołącz do naszych społeczności lub skontaktuj się z nami naszymi partnerami za pomocą innych metod"
|
||||
"template_name": "Nazwa szablonu"
|
||||
}
|
||||
|
|
|
@ -671,11 +671,5 @@
|
|||
"slidable": "Deslizável",
|
||||
"manage_nodes": "Gerenciar nós",
|
||||
"etherscan_history": "história Etherscan",
|
||||
"template_name": "Nome do modelo",
|
||||
"support_title_live_chat": "Apoio ao vivo",
|
||||
"support_description_live_chat": "Livre e rápido! Representantes de suporte treinado estão disponíveis para ajudar",
|
||||
"support_title_guides": "Guias da carteira de bolo",
|
||||
"support_description_guides": "Documentação e suporte para problemas comuns",
|
||||
"support_title_other_links": "Outros links de suporte",
|
||||
"support_description_other_links": "Junte -se às nossas comunidades ou chegue a nós nossos parceiros por meio de outros métodos"
|
||||
"template_name": "Nome do modelo"
|
||||
}
|
||||
|
|
|
@ -270,6 +270,7 @@
|
|||
"error_text_node_address": "Пожалуйста, введите iPv4 адрес",
|
||||
"error_text_node_port": "Порт ноды может содержать только цифры от 0 до 65535",
|
||||
"error_text_node_proxy_address": "Введите <IPv4-адрес>:<порт>, например 127.0.0.1:9050.",
|
||||
|
||||
"error_text_payment_id": "Идентификатор платежа может содержать от 16 до 64 символов в hex",
|
||||
"error_text_xmr": "Значение XMR не может превышать доступный баланс.\nКоличество цифр после запятой должно быть меньше или равно 12",
|
||||
"error_text_fiat": "Значение суммы не может превышать доступный баланс.\nКоличество цифр после запятой должно быть меньше или равно 2",
|
||||
|
@ -634,18 +635,18 @@
|
|||
"setup_totp_recommended": "Настроить TOTP (рекомендуется)",
|
||||
"disable_buy": "Отключить действие покупки",
|
||||
"disable_sell": "Отключить действие продажи",
|
||||
"cake_2fa_preset": "Торт 2FA Preset",
|
||||
"cake_2fa_preset" : "Торт 2FA Preset",
|
||||
"narrow": "Узкий",
|
||||
"normal": "Нормальный",
|
||||
"aggressive": "чрезмерно усердный",
|
||||
"require_for_assessing_wallet": "Требовать для доступа к кошельку",
|
||||
"require_for_sends_to_non_contacts": "Требовать для отправки не контактам",
|
||||
"require_for_sends_to_contacts": "Требовать для отправки контактам",
|
||||
"require_for_sends_to_internal_wallets": "Требовать отправки на внутренние кошельки",
|
||||
"require_for_exchanges_to_internal_wallets": "Требовать для обмена на внутренние кошельки",
|
||||
"require_for_adding_contacts": "Требовать добавления контактов",
|
||||
"require_for_creating_new_wallets": "Требовать для создания новых кошельков",
|
||||
"require_for_all_security_and_backup_settings": "Требовать все настройки безопасности и резервного копирования",
|
||||
"require_for_sends_to_non_contacts" : "Требовать для отправки не контактам",
|
||||
"require_for_sends_to_contacts" : "Требовать для отправки контактам",
|
||||
"require_for_sends_to_internal_wallets" : "Требовать отправки на внутренние кошельки",
|
||||
"require_for_exchanges_to_internal_wallets" : "Требовать для обмена на внутренние кошельки",
|
||||
"require_for_adding_contacts" : "Требовать добавления контактов",
|
||||
"require_for_creating_new_wallets" : "Требовать для создания новых кошельков",
|
||||
"require_for_all_security_and_backup_settings" : "Требовать все настройки безопасности и резервного копирования",
|
||||
"available_balance_description": "Доступный баланс - это средства, которые вы можете использовать для покупки или продажи криптовалюты.",
|
||||
"syncing_wallet_alert_title": "Ваш кошелек синхронизируется",
|
||||
"syncing_wallet_alert_content": "Ваш баланс и список транзакций могут быть неполными, пока вверху не будет написано «СИНХРОНИЗИРОВАНО». Щелкните/коснитесь, чтобы узнать больше.",
|
||||
|
@ -672,11 +673,5 @@
|
|||
"slidable": "Скользящий",
|
||||
"manage_nodes": "Управление узлами",
|
||||
"etherscan_history": "История Эфириума",
|
||||
"template_name": "Имя Шаблона",
|
||||
"support_title_live_chat": "Живая поддержка",
|
||||
"support_description_live_chat": "Бесплатно и быстро! Обученные представители поддержки доступны для оказания помощи",
|
||||
"support_title_guides": "Корт -гиды",
|
||||
"support_description_guides": "Документация и поддержка общих вопросов",
|
||||
"support_title_other_links": "Другие ссылки на поддержку",
|
||||
"support_description_other_links": "Присоединяйтесь к нашим сообществам или охватите нас наших партнеров с помощью других методов"
|
||||
"template_name": "Имя Шаблона"
|
||||
}
|
|
@ -632,18 +632,18 @@
|
|||
"setup_totp_recommended": "ตั้งค่า TOTP (แนะนำ)",
|
||||
"disable_buy": "ปิดการใช้งานการซื้อ",
|
||||
"disable_sell": "ปิดการใช้งานการขาย",
|
||||
"cake_2fa_preset": "เค้ก 2FA ที่ตั้งไว้ล่วงหน้า",
|
||||
"cake_2fa_preset" : "เค้ก 2FA ที่ตั้งไว้ล่วงหน้า",
|
||||
"narrow": "แคบ",
|
||||
"normal": "ปกติ",
|
||||
"aggressive": "กระตือรือร้นมากเกินไป",
|
||||
"require_for_assessing_wallet": "จำเป็นสำหรับการเข้าถึงกระเป๋าเงิน",
|
||||
"require_for_sends_to_non_contacts": "จำเป็นต้องส่งไปยังผู้ที่ไม่ได้ติดต่อ",
|
||||
"require_for_sends_to_contacts": "จำเป็นต้องส่งไปยังผู้ติดต่อ",
|
||||
"require_for_sends_to_internal_wallets": "จำเป็นต้องส่งไปยังกระเป๋าเงินภายใน",
|
||||
"require_for_exchanges_to_internal_wallets": "ต้องการการแลกเปลี่ยนไปยังกระเป๋าเงินภายใน",
|
||||
"require_for_adding_contacts": "ต้องการสำหรับการเพิ่มผู้ติดต่อ",
|
||||
"require_for_creating_new_wallets": "จำเป็นสำหรับการสร้างกระเป๋าเงินใหม่",
|
||||
"require_for_all_security_and_backup_settings": "จำเป็นสำหรับการตั้งค่าความปลอดภัยและการสำรองข้อมูลทั้งหมด",
|
||||
"require_for_sends_to_non_contacts" : "จำเป็นต้องส่งไปยังผู้ที่ไม่ได้ติดต่อ",
|
||||
"require_for_sends_to_contacts" : "จำเป็นต้องส่งไปยังผู้ติดต่อ",
|
||||
"require_for_sends_to_internal_wallets" : "จำเป็นต้องส่งไปยังกระเป๋าเงินภายใน",
|
||||
"require_for_exchanges_to_internal_wallets" : "ต้องการการแลกเปลี่ยนไปยังกระเป๋าเงินภายใน",
|
||||
"require_for_adding_contacts" : "ต้องการสำหรับการเพิ่มผู้ติดต่อ",
|
||||
"require_for_creating_new_wallets" : "จำเป็นสำหรับการสร้างกระเป๋าเงินใหม่",
|
||||
"require_for_all_security_and_backup_settings" : "จำเป็นสำหรับการตั้งค่าความปลอดภัยและการสำรองข้อมูลทั้งหมด",
|
||||
"available_balance_description": "จำนวนเงินที่คุณสามารถใช้ได้ในการซื้อหรือขาย",
|
||||
"syncing_wallet_alert_title": "กระเป๋าสตางค์ของคุณกำลังซิงค์",
|
||||
"syncing_wallet_alert_content": "รายการยอดเงินและธุรกรรมของคุณอาจไม่สมบูรณ์จนกว่าจะมีข้อความว่า “ซิงโครไนซ์” ที่ด้านบน คลิก/แตะเพื่อเรียนรู้เพิ่มเติม่",
|
||||
|
@ -670,11 +670,5 @@
|
|||
"slidable": "เลื่อนได้",
|
||||
"manage_nodes": "จัดการโหนด",
|
||||
"etherscan_history": "ประวัติอีเธอร์สแกน",
|
||||
"template_name": "ชื่อแม่แบบ",
|
||||
"support_title_live_chat": "การสนับสนุนสด",
|
||||
"support_description_live_chat": "ฟรีและรวดเร็ว! ตัวแทนฝ่ายสนับสนุนที่ผ่านการฝึกอบรมพร้อมให้ความช่วยเหลือ",
|
||||
"support_title_guides": "คู่มือกระเป๋าเงินเค้ก",
|
||||
"support_description_guides": "เอกสารและการสนับสนุนสำหรับปัญหาทั่วไป",
|
||||
"support_title_other_links": "ลิงค์สนับสนุนอื่น ๆ",
|
||||
"support_description_other_links": "เข้าร่วมชุมชนของเราหรือเข้าถึงเราพันธมิตรของเราผ่านวิธีการอื่น ๆ"
|
||||
"template_name": "ชื่อแม่แบบ"
|
||||
}
|
|
@ -671,11 +671,5 @@
|
|||
"slidable": "kaydırılabilir",
|
||||
"manage_nodes": "Düğümleri yönet",
|
||||
"etherscan_history": "Etherscan geçmişi",
|
||||
"template_name": "şablon adı",
|
||||
"support_title_live_chat": "Canlı destek",
|
||||
"support_description_live_chat": "Ücretsiz ve hızlı! Eğitimli destek temsilcileri yardımcı olmak için mevcuttur",
|
||||
"support_title_guides": "Kek Cüzdan Kılavuzları",
|
||||
"support_description_guides": "Ortak sorunlara belge ve destek",
|
||||
"support_title_other_links": "Diğer destek bağlantıları",
|
||||
"support_description_other_links": "Topluluklarımıza katılın veya ortaklarımıza diğer yöntemlerle bize ulaşın"
|
||||
"template_name": "şablon adı"
|
||||
}
|
||||
|
|
|
@ -672,11 +672,5 @@
|
|||
"slidable": "Розсувний",
|
||||
"manage_nodes": "Керуйте вузлами",
|
||||
"etherscan_history": "Історія Etherscan",
|
||||
"template_name": "Назва шаблону",
|
||||
"support_title_live_chat": "Жива підтримка",
|
||||
"support_description_live_chat": "Безкоштовно і швидко! Навчені представники підтримки доступні для надання допомоги",
|
||||
"support_title_guides": "Поклики для гаманців тортів",
|
||||
"support_description_guides": "Документація та підтримка загальних питань",
|
||||
"support_title_other_links": "Інші посилання на підтримку",
|
||||
"support_description_other_links": "Приєднуйтесь до наших спільнот або досягайте нас нашими партнерами іншими методами"
|
||||
"template_name": "Назва шаблону"
|
||||
}
|
||||
|
|
|
@ -626,18 +626,18 @@
|
|||
"setup_totp_recommended": "TOTP ترتیب دیں (تجویز کردہ)",
|
||||
"disable_buy": "خرید ایکشن کو غیر فعال کریں۔",
|
||||
"disable_sell": "فروخت کی کارروائی کو غیر فعال کریں۔",
|
||||
"cake_2fa_preset": "کیک 2FA پیش سیٹ",
|
||||
"cake_2fa_preset" : "کیک 2FA پیش سیٹ",
|
||||
"narrow": "تنگ",
|
||||
"normal": "نارمل",
|
||||
"aggressive": "حد سے زیادہ پرجوش",
|
||||
"require_for_assessing_wallet": "بٹوے تک رسائی کے لیے درکار ہے۔",
|
||||
"require_for_sends_to_non_contacts": "غیر رابطوں کو بھیجنے کی ضرورت ہے۔",
|
||||
"require_for_sends_to_contacts": "رابطوں کو بھیجنے کی ضرورت ہے۔",
|
||||
"require_for_sends_to_internal_wallets": "اندرونی بٹوے پر بھیجنے کے لیے درکار ہے۔",
|
||||
"require_for_exchanges_to_internal_wallets": "اندرونی بٹوے میں تبادلے کی ضرورت ہے۔",
|
||||
"require_for_adding_contacts": "رابطوں کو شامل کرنے کی ضرورت ہے۔",
|
||||
"require_for_creating_new_wallets": "نئے بٹوے بنانے کی ضرورت ہے۔",
|
||||
"require_for_all_security_and_backup_settings": "تمام سیکورٹی اور بیک اپ کی ترتیبات کے لیے درکار ہے۔",
|
||||
"require_for_sends_to_non_contacts" : "غیر رابطوں کو بھیجنے کی ضرورت ہے۔",
|
||||
"require_for_sends_to_contacts" : "رابطوں کو بھیجنے کی ضرورت ہے۔",
|
||||
"require_for_sends_to_internal_wallets" : "اندرونی بٹوے پر بھیجنے کے لیے درکار ہے۔",
|
||||
"require_for_exchanges_to_internal_wallets" : "اندرونی بٹوے میں تبادلے کی ضرورت ہے۔",
|
||||
"require_for_adding_contacts" : "رابطوں کو شامل کرنے کی ضرورت ہے۔",
|
||||
"require_for_creating_new_wallets" : "نئے بٹوے بنانے کی ضرورت ہے۔",
|
||||
"require_for_all_security_and_backup_settings" : "تمام سیکورٹی اور بیک اپ کی ترتیبات کے لیے درکار ہے۔",
|
||||
"available_balance_description": "”دستیاب بیلنس” یا ”تصدیق شدہ بیلنس” وہ فنڈز ہیں جو فوری طور پر خرچ کیے جا سکتے ہیں۔ اگر فنڈز کم بیلنس میں ظاہر ہوتے ہیں لیکن اوپر کے بیلنس میں نہیں، تو آپ کو مزید نیٹ ورک کی تصدیقات حاصل کرنے کے لیے آنے والے فنڈز کے لیے چند منٹ انتظار کرنا چاہیے۔ مزید تصدیق حاصل کرنے کے بعد، وہ قابل خرچ ہوں گے۔",
|
||||
"syncing_wallet_alert_title": "آپ کا بٹوہ مطابقت پذیر ہو رہا ہے۔",
|
||||
"syncing_wallet_alert_content": "آپ کے بیلنس اور لین دین کی فہرست اس وقت تک مکمل نہیں ہو سکتی جب تک کہ یہ سب سے اوپر \"SYNCRONIZED\" نہ کہے۔ مزید جاننے کے لیے کلک/تھپتھپائیں۔",
|
||||
|
@ -664,11 +664,5 @@
|
|||
"slidable": "سلائیڈ ایبل",
|
||||
"manage_nodes": "۔ﮟﯾﺮﮐ ﻢﻈﻧ ﺎﮐ ﺱﮈﻮﻧ",
|
||||
"etherscan_history": "ﺦﯾﺭﺎﺗ ﯽﮐ ﻦﯿﮑﺳﺍ ﺮﮭﺘﯾﺍ",
|
||||
"template_name": "ٹیمپلیٹ کا نام",
|
||||
"support_title_live_chat": "براہ راست مدد",
|
||||
"support_description_live_chat": "مفت اور تیز! تربیت یافتہ معاون نمائندے مدد کے لئے دستیاب ہیں",
|
||||
"support_title_guides": "کیک پرس گائڈز",
|
||||
"support_description_guides": "عام مسائل کے لئے دستاویزات اور مدد",
|
||||
"support_title_other_links": "دوسرے سپورٹ لنکس",
|
||||
"support_description_other_links": "ہماری برادریوں میں شامل ہوں یا دوسرے طریقوں سے ہمارے شراکت داروں تک پہنچیں"
|
||||
"template_name": "ٹیمپلیٹ کا نام"
|
||||
}
|
|
@ -628,18 +628,18 @@
|
|||
"setup_totp_recommended": "Sọ TOTP (Kẹṣọdọ)",
|
||||
"disable_buy": "Ko iṣọrọ ọja",
|
||||
"disable_sell": "Ko iṣọrọ iṣọrọ",
|
||||
"cake_2fa_preset": "Cake 2FA Tito",
|
||||
"cake_2fa_preset" : "Cake 2FA Tito",
|
||||
"narrow": "Taara",
|
||||
"normal": "Deede",
|
||||
"aggressive": "Onítara",
|
||||
"require_for_assessing_wallet": "Beere fun wiwọle si apamọwọ",
|
||||
"require_for_sends_to_non_contacts": "Beere fun fifiranṣẹ si awọn ti kii ṣe awọn olubasọrọ",
|
||||
"require_for_sends_to_contacts": "Beere fun fifiranṣẹ si awọn olubasọrọ",
|
||||
"require_for_sends_to_internal_wallets": "Beere fun fifiranṣẹ si awọn apamọwọ inu",
|
||||
"require_for_exchanges_to_internal_wallets": "Beere fun awọn paṣipaarọ si awọn apamọwọ inu",
|
||||
"require_for_adding_contacts": "Beere fun fifi awọn olubasọrọ kun",
|
||||
"require_for_creating_new_wallets": "Beere fun ṣiṣẹda titun Woleti",
|
||||
"require_for_all_security_and_backup_settings": "Beere fun gbogbo aabo ati awọn eto afẹyinti",
|
||||
"require_for_sends_to_non_contacts" : "Beere fun fifiranṣẹ si awọn ti kii ṣe awọn olubasọrọ",
|
||||
"require_for_sends_to_contacts" : "Beere fun fifiranṣẹ si awọn olubasọrọ",
|
||||
"require_for_sends_to_internal_wallets" : "Beere fun fifiranṣẹ si awọn apamọwọ inu",
|
||||
"require_for_exchanges_to_internal_wallets" : "Beere fun awọn paṣipaarọ si awọn apamọwọ inu",
|
||||
"require_for_adding_contacts" : "Beere fun fifi awọn olubasọrọ kun",
|
||||
"require_for_creating_new_wallets" : "Beere fun ṣiṣẹda titun Woleti",
|
||||
"require_for_all_security_and_backup_settings" : "Beere fun gbogbo aabo ati awọn eto afẹyinti",
|
||||
"available_balance_description": "“Iwọntunwọnsi Wa” tabi “Iwọntunwọnsi Ijẹrisi” jẹ awọn owo ti o le ṣee lo lẹsẹkẹsẹ. Ti awọn owo ba han ni iwọntunwọnsi kekere ṣugbọn kii ṣe iwọntunwọnsi oke, lẹhinna o gbọdọ duro iṣẹju diẹ fun awọn owo ti nwọle lati gba awọn ijẹrisi nẹtiwọọki diẹ sii. Lẹhin ti wọn gba awọn ijẹrisi diẹ sii, wọn yoo jẹ inawo.",
|
||||
"syncing_wallet_alert_title": "Apamọwọ rẹ n muṣiṣẹpọ",
|
||||
"syncing_wallet_alert_content": "Iwontunws.funfun rẹ ati atokọ idunadura le ma pari titi ti yoo fi sọ “SYNCHRONIZED” ni oke. Tẹ/tẹ ni kia kia lati ni imọ siwaju sii.",
|
||||
|
@ -666,11 +666,5 @@
|
|||
"slidable": "Slidable",
|
||||
"manage_nodes": "Ṣakoso awọn apa",
|
||||
"etherscan_history": "Etherscan itan",
|
||||
"template_name": "Orukọ Awoṣe",
|
||||
"support_title_live_chat": "Atilẹyin ifiwe",
|
||||
"support_description_live_chat": "Free ati sare! Ti oṣiṣẹ awọn aṣoju wa lati ṣe iranlọwọ",
|
||||
"support_title_guides": "Akara oyinbo Awọn Itọsọna Awọki oyinbo",
|
||||
"support_description_guides": "Iwe ati atilẹyin fun awọn ọran ti o wọpọ",
|
||||
"support_title_other_links": "Awọn ọna asopọ atilẹyin miiran",
|
||||
"support_description_other_links": "Darapọ mọ awọn agbegbe wa tabi de wa awọn alabaṣepọ wa nipasẹ awọn ọna miiran"
|
||||
"template_name": "Orukọ Awoṣe"
|
||||
}
|
|
@ -633,18 +633,18 @@
|
|||
"setup_totp_recommended": "设置 TOTP(推荐)",
|
||||
"disable_buy": "禁用购买操作",
|
||||
"disable_sell": "禁用卖出操作",
|
||||
"cake_2fa_preset": "蛋糕 2FA 预设",
|
||||
"cake_2fa_preset" : "蛋糕 2FA 预设",
|
||||
"narrow": "狭窄的",
|
||||
"normal": "普通的",
|
||||
"aggressive": "过分热心",
|
||||
"require_for_assessing_wallet": "需要访问钱包",
|
||||
"require_for_sends_to_non_contacts": "需要发送给非联系人",
|
||||
"require_for_sends_to_contacts": "需要发送给联系人",
|
||||
"require_for_sends_to_internal_wallets": "需要发送到内部钱包",
|
||||
"require_for_exchanges_to_internal_wallets": "需要兑换到内部钱包",
|
||||
"require_for_adding_contacts": "需要添加联系人",
|
||||
"require_for_creating_new_wallets": "创建新钱包的要求",
|
||||
"require_for_all_security_and_backup_settings": "需要所有安全和备份设置",
|
||||
"require_for_sends_to_non_contacts" : "需要发送给非联系人",
|
||||
"require_for_sends_to_contacts" : "需要发送给联系人",
|
||||
"require_for_sends_to_internal_wallets" : "需要发送到内部钱包",
|
||||
"require_for_exchanges_to_internal_wallets" : "需要兑换到内部钱包",
|
||||
"require_for_adding_contacts" : "需要添加联系人",
|
||||
"require_for_creating_new_wallets" : "创建新钱包的要求",
|
||||
"require_for_all_security_and_backup_settings" : "需要所有安全和备份设置",
|
||||
"available_balance_description": "可用余额是您可以使用的金额。冻结余额是您当前正在等待确认的金额。",
|
||||
"syncing_wallet_alert_title": "您的钱包正在同步",
|
||||
"syncing_wallet_alert_content": "您的余额和交易列表可能不完整,直到顶部显示“已同步”。单击/点击以了解更多信息。",
|
||||
|
@ -671,11 +671,5 @@
|
|||
"slidable": "可滑动",
|
||||
"manage_nodes": "管理节点",
|
||||
"etherscan_history": "以太扫描历史",
|
||||
"template_name": "模板名称",
|
||||
"support_title_live_chat": "实时支持",
|
||||
"support_description_live_chat": "免费快速!训练有素的支持代表可以协助",
|
||||
"support_title_guides": "蛋糕钱包指南",
|
||||
"support_description_guides": "对常见问题的文档和支持",
|
||||
"support_title_other_links": "其他支持链接",
|
||||
"support_description_other_links": "加入我们的社区或通过其他方法与我们联系我们的合作伙伴"
|
||||
"template_name": "模板名称"
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:translator/translator.dart';
|
||||
|
||||
const defaultLang = "en";
|
||||
const langs = [
|
||||
"ar", "bg", "cs", "de", "en", "es", "fr", "ha", "hi", "hr", "id", "it",
|
||||
"ja", "ko", "my", "nl", "pl", "pt", "ru", "th", "tr", "uk", "ur", "yo",
|
||||
"zh-cn" // zh, but Google Translate uses zh-cn for Chinese (Simplified)
|
||||
];
|
||||
final translator = GoogleTranslator();
|
||||
|
||||
void main(List<String> args) async {
|
||||
if (args.length != 2) {
|
||||
throw Exception(
|
||||
'Insufficient arguments!\n\nTry to run `./append_translation.dart greetings "Hello World!"`');
|
||||
}
|
||||
|
||||
final name = args.first;
|
||||
final text = args.last;
|
||||
|
||||
print('Appending "$name": "$text"');
|
||||
|
||||
for (var lang in langs) {
|
||||
final fileName = getFileName(lang);
|
||||
final translation = await getTranslation(text, lang);
|
||||
|
||||
appendArbFile(fileName, name, translation);
|
||||
}
|
||||
}
|
||||
|
||||
void appendArbFile(String fileName, String name, String text) {
|
||||
final file = File(fileName);
|
||||
final inputContent = file.readAsStringSync();
|
||||
final arbObj = json.decode(inputContent) as Map<String, dynamic>;
|
||||
|
||||
if (arbObj.containsKey(name)) {
|
||||
print("String $name already exists in $fileName!");
|
||||
return;
|
||||
}
|
||||
|
||||
arbObj.addAll({name: text});
|
||||
|
||||
final outputContent = json
|
||||
.encode(arbObj)
|
||||
.replaceAll('","', '",\n "')
|
||||
.replaceAll('{"', '{\n "')
|
||||
.replaceAll('"}', '"\n}')
|
||||
.replaceAll('":"', '": "');
|
||||
|
||||
file.writeAsStringSync(outputContent);
|
||||
}
|
||||
|
||||
|
||||
Future<String> getTranslation(String text, String lang) async {
|
||||
if (lang == defaultLang) return text;
|
||||
return (await translator.translate(text, from: defaultLang, to: lang)).text;
|
||||
}
|
||||
|
||||
String getFileName(String lang) {
|
||||
final shortLang = lang
|
||||
.split("-")
|
||||
.first;
|
||||
return "./res/values/strings_$shortLang.arb";
|
||||
}
|
|
@ -33,7 +33,8 @@ Future<void> updateSecretsConfig(List<String> args) async {
|
|||
});
|
||||
|
||||
final fileConfig =
|
||||
json.decode(configFile.readAsStringSync()) as Map<String, dynamic>;
|
||||
json.decode(configFile.readAsStringSync()) as Map<String, dynamic> ??
|
||||
<String, dynamic>{};
|
||||
fileConfig.forEach((key, dynamic value) {
|
||||
if (secrets[key] == null) {
|
||||
secrets[key] = value;
|
||||
|
|
|
@ -31,7 +31,6 @@ class SecretKey {
|
|||
SecretKey('anonPayReferralCode', () => ''),
|
||||
SecretKey('fiatApiKey', () => ''),
|
||||
SecretKey('payfuraApiKey', () => ''),
|
||||
SecretKey('chatwootWebsiteToken', () => ''),
|
||||
];
|
||||
|
||||
static final ethereumSecrets = [
|
||||
|
|
Loading…
Reference in a new issue