✨ Dashboard explore
This commit is contained in:
10
lib/utils/service_url.dart
Normal file
10
lib/utils/service_url.dart
Normal file
@ -0,0 +1,10 @@
|
||||
const serviceUrls = {
|
||||
'passport': 'https://id.solsynth.dev',
|
||||
'interactive': 'https://co.solsynth.dev',
|
||||
'messaging': 'https://im.solsynth.dev'
|
||||
};
|
||||
|
||||
Uri getRequestUri(String service, String path) {
|
||||
final baseUrl = serviceUrls[service];
|
||||
return Uri.parse(baseUrl! + path);
|
||||
}
|
5
lib/utils/timeago.dart
Normal file
5
lib/utils/timeago.dart
Normal file
@ -0,0 +1,5 @@
|
||||
import 'package:timeago/timeago.dart' as timeago;
|
||||
|
||||
void initTimeAgo() {
|
||||
timeago.setLocaleMessages('zh', timeago.ZhMessages());
|
||||
}
|
Reference in New Issue
Block a user