2021-02-25 18:25:52 +00:00
|
|
|
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/settings_list_item.dart';
|
2023-08-14 13:57:47 +00:00
|
|
|
import 'package:cake_wallet/wallet_type_utils.dart';
|
2023-08-15 00:47:25 +00:00
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
2021-02-25 18:25:52 +00:00
|
|
|
|
|
|
|
part 'support_view_model.g.dart';
|
|
|
|
|
|
|
|
class SupportViewModel = SupportViewModelBase with _$SupportViewModel;
|
|
|
|
|
|
|
|
abstract class SupportViewModelBase with Store {
|
2022-10-12 17:09:57 +00:00
|
|
|
SupportViewModelBase()
|
|
|
|
: items = [
|
2021-02-25 18:25:52 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Email',
|
2024-09-23 14:10:40 +00:00
|
|
|
icon: 'assets/images/support_icon.png',
|
2021-02-25 18:25:52 +00:00
|
|
|
linkTitle: 'support@cakewallet.com',
|
|
|
|
link: 'mailto:support@cakewallet.com'),
|
2022-01-05 19:17:50 +00:00
|
|
|
if (!isMoneroOnly)
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Website',
|
2024-09-23 14:10:40 +00:00
|
|
|
icon: 'assets/images/global.png',
|
2022-01-05 19:17:50 +00:00
|
|
|
linkTitle: 'cakewallet.com',
|
|
|
|
link: 'https://cakewallet.com'),
|
2024-09-23 14:10:40 +00:00
|
|
|
if (!isMoneroOnly)
|
2022-01-05 19:17:50 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'GitHub',
|
|
|
|
icon: 'assets/images/github.png',
|
|
|
|
hasIconColor: true,
|
|
|
|
linkTitle: S.current.apk_update,
|
|
|
|
link: 'https://github.com/cake-tech/cake_wallet/releases'),
|
2021-02-25 18:25:52 +00:00
|
|
|
LinkListItem(
|
2024-12-14 00:20:16 +00:00
|
|
|
title: 'Discord',
|
|
|
|
icon: 'assets/images/discord.png',
|
|
|
|
linkTitle: 'discord.gg/pwmWa6aFpX',
|
|
|
|
link: 'https://discord.gg/pwmWa6aFpX'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Telegram',
|
|
|
|
icon: 'assets/images/Telegram.png',
|
|
|
|
linkTitle: 't.me/cakewallet',
|
|
|
|
link: 'https://t.me/cakewalletannouncements'),
|
2024-09-23 14:10:40 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Telegram Support Bot',
|
2021-02-25 18:25:52 +00:00
|
|
|
icon: 'assets/images/Telegram.png',
|
|
|
|
linkTitle: '@cakewallet_bot',
|
2023-02-08 19:33:54 +00:00
|
|
|
link: 'https://t.me/cakewallet_bot'),
|
2021-02-25 18:25:52 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'ChangeNow',
|
|
|
|
icon: 'assets/images/change_now.png',
|
|
|
|
linkTitle: 'support@changenow.io',
|
2021-03-26 18:59:38 +00:00
|
|
|
link: 'mailto:support@changenow.io'),
|
2022-11-02 18:11:05 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'SideShift',
|
|
|
|
icon: 'assets/images/sideshift.png',
|
2024-08-13 11:15:47 +00:00
|
|
|
linkTitle: 'help.sideshift.ai',
|
2022-11-02 18:11:05 +00:00
|
|
|
link: 'https://help.sideshift.ai/en/'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'SimpleSwap',
|
|
|
|
icon: 'assets/images/simpleSwap.png',
|
|
|
|
linkTitle: 'support@simpleswap.io',
|
|
|
|
link: 'mailto:support@simpleswap.io'),
|
2023-10-12 00:20:19 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Exolix',
|
|
|
|
icon: 'assets/images/exolix.png',
|
|
|
|
linkTitle: 'support@exolix.com',
|
|
|
|
link: 'mailto:support@exolix.com'),
|
2024-08-13 11:15:47 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Quantex',
|
|
|
|
icon: 'assets/images/quantex.png',
|
|
|
|
linkTitle: 'help.myquantex.com',
|
|
|
|
link: 'mailto:support@exolix.com'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Trocador',
|
|
|
|
icon: 'assets/images/trocador.png',
|
|
|
|
linkTitle: 'mail@trocador.app',
|
|
|
|
link: 'mailto:mail@trocador.app'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Onramper',
|
|
|
|
icon: 'assets/images/onramper_dark.png',
|
|
|
|
lightIcon: 'assets/images/onramper_light.png',
|
|
|
|
linkTitle: 'View exchanges',
|
2024-12-14 00:20:16 +00:00
|
|
|
link: 'https://docs.cakewallet.com/support/buy/#onramper'),
|
2024-08-13 11:15:47 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'DFX',
|
|
|
|
icon: 'assets/images/dfx_dark.png',
|
|
|
|
lightIcon: 'assets/images/dfx_light.png',
|
|
|
|
linkTitle: 'support@dfx.swiss',
|
|
|
|
link: 'mailto:support@dfx.swiss'),
|
|
|
|
if (!isMoneroOnly) ... [
|
2022-10-12 17:09:57 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'MoonPay',
|
|
|
|
icon: 'assets/images/moonpay.png',
|
|
|
|
linkTitle: S.current.submit_request,
|
2024-08-13 11:15:47 +00:00
|
|
|
link: 'https://support.moonpay.com/hc/en-gb/requests/new'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Robinhood Connect',
|
|
|
|
icon: 'assets/images/robinhood_dark.png',
|
|
|
|
lightIcon: 'assets/images/robinhood_light.png',
|
|
|
|
linkTitle: S.current.submit_request,
|
|
|
|
link: 'https://robinhood.com/contact')
|
|
|
|
]
|
2021-12-30 17:20:00 +00:00
|
|
|
//LinkListItem(
|
|
|
|
// title: 'Yat',
|
|
|
|
// icon: 'assets/images/yat_mini_logo.png',
|
|
|
|
// hasIconColor: true,
|
|
|
|
// linkTitle: 'support@y.at',
|
|
|
|
// link: 'mailto:support@y.at')
|
2022-10-12 17:09:57 +00:00
|
|
|
];
|
|
|
|
|
2024-12-14 00:20:16 +00:00
|
|
|
final docsUrl = 'https://docs.cakewallet.com';
|
2023-08-15 00:47:25 +00:00
|
|
|
|
|
|
|
String fetchUrl({String locale = "en", String authToken = ""}) {
|
|
|
|
var supportUrl =
|
|
|
|
"https://app.chatwoot.com/widget?website_token=${secrets.chatwootWebsiteToken}&locale=${locale}";
|
|
|
|
|
|
|
|
if (authToken.isNotEmpty)
|
|
|
|
supportUrl += "&cw_conversation=$authToken";
|
|
|
|
|
|
|
|
return supportUrl;
|
|
|
|
}
|
2021-03-01 18:16:28 +00:00
|
|
|
|
2021-02-25 18:25:52 +00:00
|
|
|
List<SettingsListItem> items;
|
2023-08-15 00:47:25 +00:00
|
|
|
}
|