Backup before removing hiddify references
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
abstract class Constants {
|
||||
static const appName = "Hiddify";
|
||||
static const githubUrl = "https://github.com/hiddify/hiddify-next";
|
||||
static const githubReleasesApiUrl =
|
||||
"https://api.github.com/repos/hiddify/hiddify-next/releases";
|
||||
static const githubLatestReleaseUrl =
|
||||
"https://github.com/hiddify/hiddify-next/releases/latest";
|
||||
static const appCastUrl =
|
||||
"https://raw.githubusercontent.com/hiddify/hiddify-next/main/appcast.xml";
|
||||
static const telegramChannelUrl = "https://t.me/hiddify";
|
||||
static const privacyPolicyUrl = "https://hiddify.com/privacy-policy/";
|
||||
static const termsAndConditionsUrl = "https://hiddify.com/terms/";
|
||||
static const cfWarpPrivacyPolicy =
|
||||
"https://www.cloudflare.com/application/privacypolicy/";
|
||||
static const cfWarpTermsOfService =
|
||||
"https://www.cloudflare.com/application/terms/";
|
||||
static const appName = "Umbrix";
|
||||
static const githubUrl = "https://github.com/umbrix-app/umbrix";
|
||||
static const githubReleasesApiUrl = "https://api.github.com/repos/umbrix-app/umbrix/releases";
|
||||
static const githubLatestReleaseUrl = "https://github.com/umbrix-app/umbrix/releases/latest";
|
||||
static const appCastUrl = "https://raw.githubusercontent.com/umbrix-app/umbrix/main/appcast.xml";
|
||||
static const telegramChannelUrl = "https://t.me/umbrix_app";
|
||||
static const privacyPolicyUrl = "https://umbrix.net/privacy.html";
|
||||
static const termsAndConditionsUrl = "https://umbrix.net/terms.html";
|
||||
static const cfWarpPrivacyPolicy = "https://www.cloudflare.com/application/privacypolicy/";
|
||||
static const cfWarpTermsOfService = "https://www.cloudflare.com/application/terms/";
|
||||
}
|
||||
|
||||
const kAnimationDuration = Duration(milliseconds: 250);
|
||||
|
||||
@@ -8,6 +8,7 @@ enum Region {
|
||||
id,
|
||||
tr,
|
||||
br,
|
||||
in_, // India
|
||||
other;
|
||||
|
||||
String present(TranslationsEn t) => switch (this) {
|
||||
@@ -18,6 +19,7 @@ enum Region {
|
||||
af => t.settings.general.regions.af,
|
||||
id => t.settings.general.regions.id,
|
||||
br => t.settings.general.regions.br,
|
||||
in_ => "India", // Добавим в переводы позже
|
||||
other => t.settings.general.regions.other,
|
||||
};
|
||||
}
|
||||
|
||||
30
lib/core/model/secrets.dart
Normal file
30
lib/core/model/secrets.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
/// UMBRIX: Секретные ключи для Telegram Bot (отправка логов)
|
||||
///
|
||||
/// ⚠️ ВАЖНО: НЕ КОММИТИТЬ ЭТОТ ФАЙЛ В GIT!
|
||||
/// Добавьте в .gitignore: lib/core/model/secrets.dart
|
||||
///
|
||||
/// Инструкция по получению токена:
|
||||
/// 1. Откройте Telegram, найдите @BotFather
|
||||
/// 2. Отправьте команду /newbot
|
||||
/// 3. Следуйте инструкциям, придумайте имя (например, UmbrixLogsBot)
|
||||
/// 4. Скопируйте токен и вставьте ниже
|
||||
/// 5. Отправьте команду /mybots → выберите бота → Bot Settings → Group Privacy → Turn OFF
|
||||
/// 6. Добавьте бота в свою группу/канал
|
||||
/// 7. Отправьте любое сообщение в группу
|
||||
/// 8. Откройте: https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
|
||||
/// 9. Найдите "chat":{"id":-100XXXXXXXXX} и скопируйте этот ID
|
||||
library;
|
||||
|
||||
abstract class Secrets {
|
||||
/// Токен Telegram бота для отправки логов
|
||||
/// Получить: @BotFather в Telegram → /newbot
|
||||
static const String telegramBotToken = ""; // ← ВСТАВЬТЕ СЮДА ВАШ ТОКЕН
|
||||
|
||||
/// ID чата/канала куда отправлять логи
|
||||
/// Формат: -100XXXXXXXXX для каналов/групп
|
||||
/// Или просто число для личных сообщений
|
||||
static const String telegramChatId = ""; // ← ВСТАВЬТЕ СЮДА ID ЧАТА
|
||||
|
||||
/// Проверка что токены настроены
|
||||
static bool get isConfigured => telegramBotToken.isNotEmpty && telegramChatId.isNotEmpty;
|
||||
}
|
||||
Reference in New Issue
Block a user