You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB
Dart

2 years ago
import 'package:package_info_plus/package_info_plus.dart';
typedef VoidFutureCallback = Future<void> Function();
typedef BoolFutureCallback = Future<bool> Function();
class Global {
2 years ago
static const String siteTitle = "异世界百科";
static const String siteDescription = "一起创造新世界吧!";
static const String privacyPolicyUrl =
"https://www.isekai.cn/%E5%BC%82%E4%B8%96%E7%95%8C%E7%99%BE%E7%A7%91:%E9%9A%90%E7%A7%81%E6%94%BF%E7%AD%96";
static const String siteConfigUrl = "https://www.isekai.cn/app/config.json";
static const String wikiApiUrl = "https://www.isekai.cn/api.php";
static String wikiHomeUrl = "https://www.isekai.cn/";
static String restfulApiUrl = "https://www.isekai.cn/api/rest_v1";
static String pageUrl = "https://www.isekai.cn/{{title}}";
static const String renderThemeFallback = "vector";
2 years ago
static PackageInfo? packageInfo;
static String wikiLang = "zh-cn";
static String? webOrigin;
2 years ago
// 由于某些手机系统有联网权限弹窗,需要等用户点击引导页后再加载信息
static bool isAppActive = false;
2 years ago
}