Skip to content

Commit

Permalink
.me -> .one
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfiji committed Sep 29, 2023
1 parent c0b910a commit 6597aed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/constants/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class AppConfig {
static const int databaseVersion = 1;
static const String databaseVersionKey = "isarVersionKey";

static const String baseUrl = 'https://shikimori.me/api/';
static const String staticUrl = 'https://shikimori.me';
static const String baseUrl = 'https://shikimori.one/api/';
static const String staticUrl = 'https://shikimori.one';
}

String get kAppArch {
Expand Down
8 changes: 8 additions & 0 deletions lib/src/presentation/pages/library/library_page_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';

import '../../../services/secure_storage/secure_storage_service.dart';
import '../../../domain/enums/library_state.dart';
import '../../../utils/app_utils.dart';
import '../../../utils/extensions/buildcontext.dart';
import '../../providers/settings_provider.dart';
import '../../widgets/cached_image.dart';
Expand Down Expand Up @@ -42,6 +43,13 @@ class LibraryPageAppBar extends ConsumerWidget {
title: state == LibraryFragmentMode.anime
? CustomSearchBar(
onTap: () {
showErrorSnackBar(
ctx: context,
msg: 'Временно не работает, используй глобальный поиск',
);

return;

Navigator.push(
context,
PageRouteBuilder(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/oauth/oauth_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class OAuthService {
Future<String?> refreshToken() async {
http.Response tokenRefreshResponse = await http.post(
getUrl(
Uri.parse('https://shikimori.me'),
Uri.parse('https://shikimori.one'),
'/oauth/token',
{
'grant_type': 'refresh_token',
Expand Down

0 comments on commit 6597aed

Please sign in to comment.