diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3cd814848..4061342a3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Clone the repository to a local folder. Note: you have to put it in a folder named as `mimir`. ``` shell -git clone https://github.com/Liplum/Mimir mimir +git clone https://github.com/liplum-dev/mimir mimir ``` Then run the necessary build steps. diff --git a/lib/app.dart b/lib/app.dart index 95ed6a09f..5c44c6bcc 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -9,16 +9,16 @@ import 'package:fit_system_screenshot/fit_system_screenshot.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/files.dart'; -import 'package:sit/file_type/handle.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/qrcode/handle.dart'; -import 'package:sit/r.dart'; -import 'package:sit/route.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/backend/update/utils.dart'; -import 'package:sit/utils/color.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/file_type/handle.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/qrcode/handle.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/route.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/backend/update/utils.dart'; +import 'package:mimir/utils/color.dart'; import 'package:system_theme/system_theme.dart'; final $appLinks = StateProvider((ref) => <({Uri uri, DateTime ts})>[]); diff --git a/lib/backend/bulletin/card.dart b/lib/backend/bulletin/card.dart index dd0204c66..e2fbc9031 100644 --- a/lib/backend/bulletin/card.dart +++ b/lib/backend/bulletin/card.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/app.dart'; +import 'package:mimir/design/widgets/app.dart'; class BulletinAppCard extends ConsumerStatefulWidget { const BulletinAppCard({super.key}); diff --git a/lib/backend/bulletin/service/bulletin.dart b/lib/backend/bulletin/service/bulletin.dart index ec9597909..a6658b579 100644 --- a/lib/backend/bulletin/service/bulletin.dart +++ b/lib/backend/bulletin/service/bulletin.dart @@ -1,7 +1,7 @@ -import 'package:sit/init.dart'; -import 'package:sit/lifecycle.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/lifecycle.dart'; -import 'package:sit/session/mimir.dart'; +import 'package:mimir/session/mimir.dart'; import '../entity/bulletin.dart'; diff --git a/lib/backend/forum/card.dart b/lib/backend/forum/card.dart index 08b9da089..4cd6fe590 100644 --- a/lib/backend/forum/card.dart +++ b/lib/backend/forum/card.dart @@ -2,13 +2,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/backend/bulletin/entity/bulletin.dart'; -import 'package:sit/backend/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/backend/bulletin/entity/bulletin.dart'; +import 'package:mimir/backend/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:text_scroll/text_scroll.dart'; import 'package:universal_platform/universal_platform.dart'; @@ -57,9 +57,7 @@ class _ForumAppCardState extends ConsumerState { await guardLaunchUrl(context, R.forumUri); } }, - label: !dev - ? "敬请期待".text() - : "进入".text(), + label: !dev ? "敬请期待".text() : "进入".text(), icon: Icon(context.icons.home), ), ], diff --git a/lib/backend/forum/i18n.dart b/lib/backend/forum/i18n.dart index 658b41962..93a605f9f 100644 --- a/lib/backend/forum/i18n.dart +++ b/lib/backend/forum/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/backend/forum/page/index.dart b/lib/backend/forum/page/index.dart index 3b320d876..5e22dc474 100644 --- a/lib/backend/forum/page/index.dart +++ b/lib/backend/forum/page/index.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; -import 'package:sit/r.dart'; -import 'package:sit/utils/guard_launch.dart'; -import 'package:sit/widgets/inapp_webview/page.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/utils/guard_launch.dart'; +import 'package:mimir/widgets/inapp_webview/page.dart'; class ForumPage extends StatefulWidget { const ForumPage({super.key}); diff --git a/lib/backend/update/entity/artifact.dart b/lib/backend/update/entity/artifact.dart index 7c778f358..70c5df5cc 100644 --- a/lib/backend/update/entity/artifact.dart +++ b/lib/backend/update/entity/artifact.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/entity/meta.dart'; +import 'package:mimir/entity/meta.dart'; import 'package:version/version.dart'; part 'artifact.g.dart'; diff --git a/lib/backend/update/i18n.dart b/lib/backend/update/i18n.dart index 84a89fbb6..613b06122 100644 --- a/lib/backend/update/i18n.dart +++ b/lib/backend/update/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/backend/update/page/update.dart b/lib/backend/update/page/update.dart index e0c5f6418..67d421966 100644 --- a/lib/backend/update/page/update.dart +++ b/lib/backend/update/page/update.dart @@ -3,10 +3,10 @@ import 'package:go_router/go_router.dart'; import 'package:markdown_widget/markdown_widget.dart'; import 'package:rettulf/rettulf.dart'; import 'package:simple_icons/simple_icons.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/settings.dart'; import '../entity/artifact.dart'; -import 'package:sit/widgets/markdown.dart'; +import 'package:mimir/widgets/markdown.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher_string.dart'; import '../i18n.dart'; diff --git a/lib/backend/update/service/update.dart b/lib/backend/update/service/update.dart index 04fa66cc7..278078602 100644 --- a/lib/backend/update/service/update.dart +++ b/lib/backend/update/service/update.dart @@ -3,10 +3,10 @@ import 'dart:io'; import 'package:dio/dio.dart'; import 'package:package_info_plus/package_info_plus.dart'; -import 'package:sit/files.dart'; -import 'package:sit/init.dart'; -import 'package:sit/session/mimir.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/session/mimir.dart'; +import 'package:mimir/utils/error.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:version/version.dart'; diff --git a/lib/backend/update/utils.dart b/lib/backend/update/utils.dart index d27b828f0..db12412d6 100644 --- a/lib/backend/update/utils.dart +++ b/lib/backend/update/utils.dart @@ -4,14 +4,14 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/entity/meta.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/entity/meta.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/error.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher_string.dart'; import 'package:version/version.dart'; diff --git a/lib/credentials/entity/credential.dart b/lib/credentials/entity/credential.dart index 5aa7be25f..4937dae64 100644 --- a/lib/credentials/entity/credential.dart +++ b/lib/credentials/entity/credential.dart @@ -1,5 +1,5 @@ import 'package:copy_with_extension/copy_with_extension.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'credential.g.dart'; diff --git a/lib/credentials/entity/login_status.dart b/lib/credentials/entity/login_status.dart index daf7914e7..116932d14 100644 --- a/lib/credentials/entity/login_status.dart +++ b/lib/credentials/entity/login_status.dart @@ -1,4 +1,4 @@ -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'login_status.g.dart'; diff --git a/lib/credentials/entity/user_type.dart b/lib/credentials/entity/user_type.dart index 9849eeae7..9e8b18d24 100644 --- a/lib/credentials/entity/user_type.dart +++ b/lib/credentials/entity/user_type.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'user_type.g.dart'; diff --git a/lib/credentials/i18n.dart b/lib/credentials/i18n.dart index 548de778b..857f06980 100644 --- a/lib/credentials/i18n.dart +++ b/lib/credentials/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; class CredentialsI18n with CommonI18nMixin { const CredentialsI18n(); diff --git a/lib/credentials/storage/credential.dart b/lib/credentials/storage/credential.dart index f20f922ce..457cec79e 100644 --- a/lib/credentials/storage/credential.dart +++ b/lib/credentials/storage/credential.dart @@ -1,7 +1,7 @@ import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; import '../entity/credential.dart'; import '../entity/login_status.dart'; diff --git a/lib/credentials/utils.dart b/lib/credentials/utils.dart index 38e1b985d..462e967e2 100644 --- a/lib/credentials/utils.dart +++ b/lib/credentials/utils.dart @@ -1,4 +1,4 @@ -import 'package:sit/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; /// 本、专科生(10位学号) final RegExp _reUndergraduateId = RegExp(r'^(\d{6}[YGHE\d]\d{3})$'); diff --git a/lib/design/adaptive/editor.dart b/lib/design/adaptive/editor.dart index 7d444b02b..6a4192949 100644 --- a/lib/design/adaptive/editor.dart +++ b/lib/design/adaptive/editor.dart @@ -3,8 +3,8 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/l10n/common.dart'; import 'package:rettulf/rettulf.dart'; import 'foundation.dart'; diff --git a/lib/design/adaptive/multiplatform.dart b/lib/design/adaptive/multiplatform.dart index f19752947..08e873a6c 100644 --- a/lib/design/adaptive/multiplatform.dart +++ b/lib/design/adaptive/multiplatform.dart @@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/r.dart'; import 'package:universal_platform/universal_platform.dart'; bool get isCupertino => R.debugCupertino || UniversalPlatform.isIOS || UniversalPlatform.isMacOS; diff --git a/lib/design/entity/dual_color.dart b/lib/design/entity/dual_color.dart index 5319c21c2..7553fbe27 100644 --- a/lib/design/entity/dual_color.dart +++ b/lib/design/entity/dual_color.dart @@ -4,7 +4,7 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; part "dual_color.g.dart"; diff --git a/lib/design/widgets/entry_card.dart b/lib/design/widgets/entry_card.dart index 17cfbd4df..b533061ec 100644 --- a/lib/design/widgets/entry_card.dart +++ b/lib/design/widgets/entry_card.dart @@ -4,10 +4,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' hide isCupertino; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/card.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/card.dart'; import 'package:super_context_menu/super_context_menu.dart'; enum EntryActionType { diff --git a/lib/design/widgets/list_tile.dart b/lib/design/widgets/list_tile.dart index d584d4fcd..16d23948f 100644 --- a/lib/design/widgets/list_tile.dart +++ b/lib/design/widgets/list_tile.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/l10n/common.dart'; class DetailListTile extends StatelessWidget { final String? title; diff --git a/lib/design/widgets/navigation.dart b/lib/design/widgets/navigation.dart index 6237834b1..52feaeac8 100644 --- a/lib/design/widgets/navigation.dart +++ b/lib/design/widgets/navigation.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; class PageNavigationTile extends StatelessWidget { final Widget? title; diff --git a/lib/entity/campus.dart b/lib/entity/campus.dart index 2a653db46..e4ee12c8b 100644 --- a/lib/entity/campus.dart +++ b/lib/entity/campus.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'campus.g.dart'; diff --git a/lib/file_type/handle.dart b/lib/file_type/handle.dart index b82d27fcd..f670fccd1 100644 --- a/lib/file_type/handle.dart +++ b/lib/file_type/handle.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/file_type/protocol.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/file_type/protocol.dart'; +import 'package:mimir/l10n/common.dart'; const _i18n = CommonI18n(); diff --git a/lib/file_type/protocol.dart b/lib/file_type/protocol.dart index cb9cbdd6a..c661cca26 100644 --- a/lib/file_type/protocol.dart +++ b/lib/file_type/protocol.dart @@ -1,5 +1,5 @@ import 'package:flutter/cupertino.dart'; -import 'package:sit/timetable/file_type/timetable.dart'; +import 'package:mimir/timetable/file_type/timetable.dart'; import 'package:path/path.dart'; abstract class FileTypeHandlerProtocol { diff --git a/lib/files.dart b/lib/files.dart index 63f12b4d9..2a49970cc 100644 --- a/lib/files.dart +++ b/lib/files.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:path/path.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/r.dart'; import 'package:universal_platform/universal_platform.dart'; class Files { diff --git a/lib/game/2048/card.dart b/lib/game/2048/card.dart index 38be2ff83..38d8f7549 100644 --- a/lib/game/2048/card.dart +++ b/lib/game/2048/card.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/animation/number.dart'; -import 'package:sit/game/2048/storage.dart'; -import 'package:sit/game/widget/card.dart'; +import 'package:mimir/design/animation/number.dart'; +import 'package:mimir/game/2048/storage.dart'; +import 'package:mimir/game/widget/card.dart'; import 'i18n.dart'; diff --git a/lib/game/2048/entity/board.dart b/lib/game/2048/entity/board.dart index 424a2079c..250139d51 100644 --- a/lib/game/2048/entity/board.dart +++ b/lib/game/2048/entity/board.dart @@ -1,6 +1,6 @@ import 'package:collection/collection.dart'; import 'package:copy_with_extension/copy_with_extension.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import 'package:uuid/uuid.dart'; import '../entity/tile.dart'; diff --git a/lib/game/2048/entity/record.dart b/lib/game/2048/entity/record.dart index 6c4ea31c0..ea16791b6 100644 --- a/lib/game/2048/entity/record.dart +++ b/lib/game/2048/entity/record.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/record.dart'; +import 'package:mimir/game/entity/record.dart'; part "record.g.dart"; diff --git a/lib/game/2048/i18n.dart b/lib/game/2048/i18n.dart index 19c5ac4aa..e9e692275 100644 --- a/lib/game/2048/i18n.dart +++ b/lib/game/2048/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/game/i18n.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/game/i18n.dart'; +import 'package:mimir/l10n/common.dart'; import 'r.dart'; diff --git a/lib/game/2048/manager/logic.dart b/lib/game/2048/manager/logic.dart index f971ea2be..62371ef9a 100644 --- a/lib/game/2048/manager/logic.dart +++ b/lib/game/2048/manager/logic.dart @@ -2,8 +2,8 @@ import 'dart:math'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_swipe_detector/flutter_swipe_detector.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/utils.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/utils.dart'; import 'package:uuid/uuid.dart'; import '../entity/record.dart'; diff --git a/lib/game/2048/page/game.dart b/lib/game/2048/page/game.dart index 5cb853479..c03e33abe 100644 --- a/lib/game/2048/page/game.dart +++ b/lib/game/2048/page/game.dart @@ -4,12 +4,12 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_swipe_detector/flutter_swipe_detector.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/2048/storage.dart'; -import 'package:sit/game/ability/ability.dart'; -import 'package:sit/game/ability/autosave.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/widget/party_popper.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/2048/storage.dart'; +import 'package:mimir/game/ability/ability.dart'; +import 'package:mimir/game/ability/autosave.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/widget/party_popper.dart'; import '../entity/board.dart'; import '../widget/empty_board.dart'; diff --git a/lib/game/2048/page/records.dart b/lib/game/2048/page/records.dart index 826c2ddd1..f4a9c82d5 100644 --- a/lib/game/2048/page/records.dart +++ b/lib/game/2048/page/records.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/page/records.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/game/page/records.dart'; +import 'package:mimir/l10n/extension.dart'; import '../storage.dart'; import '../entity/record.dart'; diff --git a/lib/game/2048/storage.dart b/lib/game/2048/storage.dart index 9d8e4135e..f017428b8 100644 --- a/lib/game/2048/storage.dart +++ b/lib/game/2048/storage.dart @@ -1,7 +1,7 @@ -import 'package:sit/game/storage/record.dart'; -import 'package:sit/game/storage/save.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/game/storage/record.dart'; +import 'package:mimir/game/storage/save.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; import 'entity/record.dart'; import 'entity/save.dart'; diff --git a/lib/game/2048/widget/modal.dart b/lib/game/2048/widget/modal.dart index 5e038fbae..f12626598 100644 --- a/lib/game/2048/widget/modal.dart +++ b/lib/game/2048/widget/modal.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import '../page/game.dart'; import '../theme.dart'; diff --git a/lib/game/2048/widget/score_board.dart b/lib/game/2048/widget/score_board.dart index 6b8641e68..a0cce6cc1 100644 --- a/lib/game/2048/widget/score_board.dart +++ b/lib/game/2048/widget/score_board.dart @@ -3,8 +3,8 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/animation/number.dart'; -import 'package:sit/game/2048/storage.dart'; +import 'package:mimir/design/animation/number.dart'; +import 'package:mimir/game/2048/storage.dart'; import '../page/game.dart'; import '../i18n.dart'; diff --git a/lib/game/2048/widget/tile_board.dart b/lib/game/2048/widget/tile_board.dart index 56a51969d..5edb45495 100644 --- a/lib/game/2048/widget/tile_board.dart +++ b/lib/game/2048/widget/tile_board.dart @@ -3,7 +3,7 @@ import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/2048/widget/tile.dart'; +import 'package:mimir/game/2048/widget/tile.dart'; import '../page/game.dart'; import '../theme.dart'; diff --git a/lib/game/i18n.dart b/lib/game/i18n.dart index e1c47896d..ffaff285d 100644 --- a/lib/game/i18n.dart +++ b/lib/game/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); const _ns = "game"; diff --git a/lib/game/index.dart b/lib/game/index.dart index 432dc845e..748c91bd1 100644 --- a/lib/game/index.dart +++ b/lib/game/index.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/2048/card.dart'; -import 'package:sit/game/minesweeper/card.dart'; -import 'package:sit/game/sudoku/card.dart'; -import 'package:sit/game/wordle/card.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/game/2048/card.dart'; +import 'package:mimir/game/minesweeper/card.dart'; +import 'package:mimir/game/sudoku/card.dart'; +import 'package:mimir/game/wordle/card.dart'; +import 'package:mimir/settings/dev.dart'; import "i18n.dart"; import 'widget/card.dart'; diff --git a/lib/game/minesweeper/card.dart b/lib/game/minesweeper/card.dart index 7334d2b69..2106d74fc 100644 --- a/lib/game/minesweeper/card.dart +++ b/lib/game/minesweeper/card.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/game/widget/mode.dart'; -import 'package:sit/game/widget/card.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/game/widget/mode.dart'; +import 'package:mimir/game/widget/card.dart'; import 'entity/mode.dart'; import 'entity/pref.dart'; diff --git a/lib/game/minesweeper/entity/blueprint.dart b/lib/game/minesweeper/entity/blueprint.dart index e8b82eb61..096a6e3e8 100644 --- a/lib/game/minesweeper/entity/blueprint.dart +++ b/lib/game/minesweeper/entity/blueprint.dart @@ -1,8 +1,8 @@ import 'package:meta/meta.dart'; -import 'package:sit/game/entity/blueprint.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/utils/byte_io/reader.dart'; -import 'package:sit/utils/byte_io/writer.dart'; +import 'package:mimir/game/entity/blueprint.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/utils/byte_io/reader.dart'; +import 'package:mimir/utils/byte_io/writer.dart'; import 'board.dart'; import 'state.dart'; diff --git a/lib/game/minesweeper/entity/board.dart b/lib/game/minesweeper/entity/board.dart index efa15460c..b007e3b21 100644 --- a/lib/game/minesweeper/entity/board.dart +++ b/lib/game/minesweeper/entity/board.dart @@ -1,7 +1,7 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; -import 'package:sit/utils/list2d/list2d.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; +import 'package:mimir/utils/list2d/list2d.dart'; import 'dart:math'; import 'save.dart'; import '../utils.dart'; diff --git a/lib/game/minesweeper/entity/mode.dart b/lib/game/minesweeper/entity/mode.dart index b8c3217eb..3f1fcfc9f 100644 --- a/lib/game/minesweeper/entity/mode.dart +++ b/lib/game/minesweeper/entity/mode.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/game_mode.dart'; +import 'package:mimir/game/entity/game_mode.dart'; @JsonSerializable(createToJson: false, createFactory: false) class GameModeMinesweeper extends GameMode { diff --git a/lib/game/minesweeper/entity/record.dart b/lib/game/minesweeper/entity/record.dart index 88ca16f12..2d7bd9e4d 100644 --- a/lib/game/minesweeper/entity/record.dart +++ b/lib/game/minesweeper/entity/record.dart @@ -1,7 +1,7 @@ import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/entity/record.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/entity/record.dart'; import 'blueprint.dart'; import 'board.dart'; diff --git a/lib/game/minesweeper/entity/save.dart b/lib/game/minesweeper/entity/save.dart index 6a3c8cbc5..e90df9fd4 100644 --- a/lib/game/minesweeper/entity/save.dart +++ b/lib/game/minesweeper/entity/save.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/utils/list2d/list2d.dart'; +import 'package:mimir/utils/list2d/list2d.dart'; import 'mode.dart'; import 'cell.dart'; diff --git a/lib/game/minesweeper/entity/state.dart b/lib/game/minesweeper/entity/state.dart index 1adf8d67a..4d4e5b3e4 100644 --- a/lib/game/minesweeper/entity/state.dart +++ b/lib/game/minesweeper/entity/state.dart @@ -1,7 +1,7 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/cupertino.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import 'save.dart'; import 'board.dart'; diff --git a/lib/game/minesweeper/i18n.dart b/lib/game/minesweeper/i18n.dart index 6d537792e..0a2da4eac 100644 --- a/lib/game/minesweeper/i18n.dart +++ b/lib/game/minesweeper/i18n.dart @@ -1,7 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/game/i18n.dart'; -import 'package:sit/game/minesweeper/entity/mode.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/game/i18n.dart'; +import 'package:mimir/game/minesweeper/entity/mode.dart'; +import 'package:mimir/l10n/common.dart'; import 'r.dart'; diff --git a/lib/game/minesweeper/manager/logic.dart b/lib/game/minesweeper/manager/logic.dart index e64ea46d9..3a470f0b9 100644 --- a/lib/game/minesweeper/manager/logic.dart +++ b/lib/game/minesweeper/manager/logic.dart @@ -1,7 +1,7 @@ -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/minesweeper/entity/record.dart'; -import 'package:sit/game/minesweeper/entity/save.dart'; -import 'package:sit/game/utils.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/minesweeper/entity/record.dart'; +import 'package:mimir/game/minesweeper/entity/save.dart'; +import 'package:mimir/game/utils.dart'; import '../entity/mode.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -10,7 +10,7 @@ import 'package:logger/logger.dart'; import '../entity/board.dart'; import '../entity/cell.dart'; import '../entity/state.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import '../storage.dart'; diff --git a/lib/game/minesweeper/page/game.dart b/lib/game/minesweeper/page/game.dart index 108bbd7da..8e53c7b07 100644 --- a/lib/game/minesweeper/page/game.dart +++ b/lib/game/minesweeper/page/game.dart @@ -2,13 +2,13 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/ability/ability.dart'; -import 'package:sit/game/ability/autosave.dart'; -import 'package:sit/game/ability/timer.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/minesweeper/settings.dart'; -import 'package:sit/game/widget/party_popper.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/ability/ability.dart'; +import 'package:mimir/game/ability/autosave.dart'; +import 'package:mimir/game/ability/timer.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/minesweeper/settings.dart'; +import 'package:mimir/game/widget/party_popper.dart'; import '../entity/screen.dart'; import '../entity/state.dart'; diff --git a/lib/game/minesweeper/page/records.dart b/lib/game/minesweeper/page/records.dart index 71e21c2ed..634cd56ba 100644 --- a/lib/game/minesweeper/page/records.dart +++ b/lib/game/minesweeper/page/records.dart @@ -1,15 +1,15 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/minesweeper/entity/record.dart'; -import 'package:sit/game/minesweeper/storage.dart'; -import 'package:sit/game/page/records.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/qrcode/page/view.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/minesweeper/entity/record.dart'; +import 'package:mimir/game/minesweeper/storage.dart'; +import 'package:mimir/game/page/records.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/qrcode/page/view.dart'; import '../qrcode/blueprint.dart'; import '../i18n.dart'; diff --git a/lib/game/minesweeper/qrcode/blueprint.dart b/lib/game/minesweeper/qrcode/blueprint.dart index 25b87a3ff..ee8451522 100644 --- a/lib/game/minesweeper/qrcode/blueprint.dart +++ b/lib/game/minesweeper/qrcode/blueprint.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/game/minesweeper/r.dart'; -import 'package:sit/game/qrcode/blueprint.dart'; +import 'package:mimir/game/minesweeper/r.dart'; +import 'package:mimir/game/qrcode/blueprint.dart'; import '../entity/blueprint.dart'; import '../storage.dart'; diff --git a/lib/game/minesweeper/resolver.dart b/lib/game/minesweeper/resolver.dart index d8c73b7f6..e212f01fc 100644 --- a/lib/game/minesweeper/resolver.dart +++ b/lib/game/minesweeper/resolver.dart @@ -1,4 +1,4 @@ -import 'package:sit/game/minesweeper/entity/board.dart'; +import 'package:mimir/game/minesweeper/entity/board.dart'; class MinesweeperResolver { final int rowClick; diff --git a/lib/game/minesweeper/settings.dart b/lib/game/minesweeper/settings.dart index e0f910754..1a4137f4c 100644 --- a/lib/game/minesweeper/settings.dart +++ b/lib/game/minesweeper/settings.dart @@ -1,7 +1,7 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/utils/json.dart'; import 'entity/pref.dart'; diff --git a/lib/game/minesweeper/storage.dart b/lib/game/minesweeper/storage.dart index 24419b8ba..72d620999 100644 --- a/lib/game/minesweeper/storage.dart +++ b/lib/game/minesweeper/storage.dart @@ -1,6 +1,6 @@ -import 'package:sit/game/storage/record.dart'; -import 'package:sit/game/storage/save.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/game/storage/record.dart'; +import 'package:mimir/game/storage/save.dart'; +import 'package:mimir/storage/hive/init.dart'; import 'entity/save.dart'; import 'entity/record.dart'; diff --git a/lib/game/minesweeper/widget/cell.dart b/lib/game/minesweeper/widget/cell.dart index c7460f8fc..c23d89f16 100644 --- a/lib/game/minesweeper/widget/cell.dart +++ b/lib/game/minesweeper/widget/cell.dart @@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import '../entity/cell.dart'; import 'cell/button.dart'; import 'cell/cover.dart'; diff --git a/lib/game/minesweeper/widget/cell/button.dart b/lib/game/minesweeper/widget/cell/button.dart index 6207800b9..34c7b4b4f 100644 --- a/lib/game/minesweeper/widget/cell/button.dart +++ b/lib/game/minesweeper/widget/cell/button.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/utils.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/utils.dart'; import '../../entity/cell.dart'; import '../../page/game.dart'; diff --git a/lib/game/minesweeper/widget/hud.dart b/lib/game/minesweeper/widget/hud.dart index 78cedf823..1fc1e345c 100644 --- a/lib/game/minesweeper/widget/hud.dart +++ b/lib/game/minesweeper/widget/hud.dart @@ -1,7 +1,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import '../entity/cell.dart'; import '../theme.dart'; import '../page/game.dart'; diff --git a/lib/game/minesweeper/widget/modal.dart b/lib/game/minesweeper/widget/modal.dart index 188914e5f..1bc5f509a 100644 --- a/lib/game/minesweeper/widget/modal.dart +++ b/lib/game/minesweeper/widget/modal.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/minesweeper/page/game.dart'; +import 'package:mimir/game/minesweeper/page/game.dart'; import '../theme.dart'; import '../i18n.dart'; diff --git a/lib/game/page/records.dart b/lib/game/page/records.dart index c9e0aa3bb..fdad440d6 100644 --- a/lib/game/page/records.dart +++ b/lib/game/page/records.dart @@ -2,11 +2,11 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/game/entity/record.dart'; -import 'package:sit/game/storage/record.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/game/entity/record.dart'; +import 'package:mimir/game/storage/record.dart'; import "../i18n.dart"; class GameRecordsPage extends ConsumerStatefulWidget { diff --git a/lib/game/page/settings.dart b/lib/game/page/settings.dart index cbe8d7649..1010addc6 100644 --- a/lib/game/page/settings.dart +++ b/lib/game/page/settings.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/game/qrcode/blueprint.dart b/lib/game/qrcode/blueprint.dart index 6d64340a3..8841c911b 100644 --- a/lib/game/qrcode/blueprint.dart +++ b/lib/game/qrcode/blueprint.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'package:flutter/widgets.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/r.dart'; import '../entity/blueprint.dart'; import '../i18n.dart'; diff --git a/lib/game/settings.dart b/lib/game/settings.dart index 05350ab6f..d5307d29c 100644 --- a/lib/game/settings.dart +++ b/lib/game/settings.dart @@ -1,5 +1,5 @@ import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; class _K { static const ns = "/game"; diff --git a/lib/game/storage/record.dart b/lib/game/storage/record.dart index ea58547a4..8a01030fa 100644 --- a/lib/game/storage/record.dart +++ b/lib/game/storage/record.dart @@ -1,7 +1,7 @@ import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/game/entity/record.dart'; -import 'package:sit/storage/hive/table.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/game/entity/record.dart'; +import 'package:mimir/storage/hive/table.dart'; +import 'package:mimir/utils/hive.dart'; class GameRecordStorage { final Box Function() box; diff --git a/lib/game/storage/save.dart b/lib/game/storage/save.dart index 7332079b8..352017c90 100644 --- a/lib/game/storage/save.dart +++ b/lib/game/storage/save.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:flutter/cupertino.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; Map _defaultToJson(dynamic obj) { return obj.toJson(); diff --git a/lib/game/sudoku/card.dart b/lib/game/sudoku/card.dart index 4f41f6db3..41a9f4800 100644 --- a/lib/game/sudoku/card.dart +++ b/lib/game/sudoku/card.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/game/sudoku/entity/pref.dart'; -import 'package:sit/game/sudoku/storage.dart'; -import 'package:sit/game/widget/mode.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/game/sudoku/entity/pref.dart'; +import 'package:mimir/game/sudoku/storage.dart'; +import 'package:mimir/game/widget/mode.dart'; import 'entity/mode.dart'; -import 'package:sit/game/widget/card.dart'; +import 'package:mimir/game/widget/card.dart'; import 'i18n.dart'; import 'settings.dart'; diff --git a/lib/game/sudoku/entity/blueprint.dart b/lib/game/sudoku/entity/blueprint.dart index e5ac074fb..e711979d5 100644 --- a/lib/game/sudoku/entity/blueprint.dart +++ b/lib/game/sudoku/entity/blueprint.dart @@ -1,8 +1,8 @@ import 'package:meta/meta.dart'; -import 'package:sit/game/entity/blueprint.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/utils/byte_io/reader.dart'; -import 'package:sit/utils/byte_io/writer.dart'; +import 'package:mimir/game/entity/blueprint.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/utils/byte_io/reader.dart'; +import 'package:mimir/utils/byte_io/writer.dart'; import 'board.dart'; import 'mode.dart'; diff --git a/lib/game/sudoku/entity/board.dart b/lib/game/sudoku/entity/board.dart index a85cd8e7e..5f8609548 100644 --- a/lib/game/sudoku/entity/board.dart +++ b/lib/game/sudoku/entity/board.dart @@ -1,8 +1,8 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/cupertino.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; -import 'package:sit/utils/list2d/list2d.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; +import 'package:mimir/utils/list2d/list2d.dart'; import 'package:sudoku_solver_generator/sudoku_solver_generator.dart'; import 'save.dart'; diff --git a/lib/game/sudoku/entity/mode.dart b/lib/game/sudoku/entity/mode.dart index f18476f3d..f642f0b45 100644 --- a/lib/game/sudoku/entity/mode.dart +++ b/lib/game/sudoku/entity/mode.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/game_mode.dart'; +import 'package:mimir/game/entity/game_mode.dart'; @JsonSerializable(createToJson: false, createFactory: false) class GameModeSudoku extends GameMode { diff --git a/lib/game/sudoku/entity/record.dart b/lib/game/sudoku/entity/record.dart index 59de8f2df..0498d24ff 100644 --- a/lib/game/sudoku/entity/record.dart +++ b/lib/game/sudoku/entity/record.dart @@ -1,7 +1,7 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/entity/record.dart'; -import 'package:sit/game/sudoku/entity/board.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/entity/record.dart'; +import 'package:mimir/game/sudoku/entity/board.dart'; import 'blueprint.dart'; import 'mode.dart'; diff --git a/lib/game/sudoku/entity/save.dart b/lib/game/sudoku/entity/save.dart index 6330632b8..96a700fee 100644 --- a/lib/game/sudoku/entity/save.dart +++ b/lib/game/sudoku/entity/save.dart @@ -1,7 +1,7 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/storage/save.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/list2d/list2d.dart'; +import 'package:mimir/game/storage/save.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/list2d/list2d.dart'; import 'mode.dart'; import 'board.dart'; diff --git a/lib/game/sudoku/entity/state.dart b/lib/game/sudoku/entity/state.dart index 85e4cdcdc..472d15485 100644 --- a/lib/game/sudoku/entity/state.dart +++ b/lib/game/sudoku/entity/state.dart @@ -1,8 +1,8 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/sudoku/entity/save.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/sudoku/entity/save.dart'; import 'board.dart'; import 'mode.dart'; diff --git a/lib/game/sudoku/i18n.dart b/lib/game/sudoku/i18n.dart index 6ad4e390c..657124e7b 100644 --- a/lib/game/sudoku/i18n.dart +++ b/lib/game/sudoku/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/game/i18n.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/game/i18n.dart'; +import 'package:mimir/l10n/common.dart'; import 'entity/mode.dart'; import 'r.dart'; diff --git a/lib/game/sudoku/manager/logic.dart b/lib/game/sudoku/manager/logic.dart index d47da9c09..2350a46eb 100644 --- a/lib/game/sudoku/manager/logic.dart +++ b/lib/game/sudoku/manager/logic.dart @@ -1,8 +1,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/sudoku/entity/state.dart'; -import 'package:sit/game/utils.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/sudoku/entity/state.dart'; +import 'package:mimir/game/utils.dart'; import '../entity/mode.dart'; import '../entity/note.dart'; diff --git a/lib/game/sudoku/page/game.dart b/lib/game/sudoku/page/game.dart index 25a7bd3d5..af5a7b69e 100644 --- a/lib/game/sudoku/page/game.dart +++ b/lib/game/sudoku/page/game.dart @@ -5,15 +5,15 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/ability/ability.dart'; -import 'package:sit/game/ability/autosave.dart'; -import 'package:sit/game/ability/timer.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/entity/timer.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/ability/ability.dart'; +import 'package:mimir/game/ability/autosave.dart'; +import 'package:mimir/game/ability/timer.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/entity/timer.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/widget/party_popper.dart'; -import 'package:sit/utils/keyboard.dart'; +import 'package:mimir/game/widget/party_popper.dart'; +import 'package:mimir/utils/keyboard.dart'; import '../entity/state.dart'; import '../entity/note.dart'; diff --git a/lib/game/sudoku/page/records.dart b/lib/game/sudoku/page/records.dart index e0b29bbb5..2e33a1110 100644 --- a/lib/game/sudoku/page/records.dart +++ b/lib/game/sudoku/page/records.dart @@ -1,13 +1,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/page/records.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/qrcode/page/view.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/page/records.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/qrcode/page/view.dart'; import '../qrcode/blueprint.dart'; import '../storage.dart'; diff --git a/lib/game/sudoku/qrcode/blueprint.dart b/lib/game/sudoku/qrcode/blueprint.dart index 70f5b144c..b81114d42 100644 --- a/lib/game/sudoku/qrcode/blueprint.dart +++ b/lib/game/sudoku/qrcode/blueprint.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/game/qrcode/blueprint.dart'; -import 'package:sit/game/sudoku/r.dart'; +import 'package:mimir/game/qrcode/blueprint.dart'; +import 'package:mimir/game/sudoku/r.dart'; import '../entity/blueprint.dart'; import '../storage.dart'; diff --git a/lib/game/sudoku/settings.dart b/lib/game/sudoku/settings.dart index 87c265f9d..6546c7ad0 100644 --- a/lib/game/sudoku/settings.dart +++ b/lib/game/sudoku/settings.dart @@ -1,7 +1,7 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/utils/json.dart'; import 'entity/pref.dart'; diff --git a/lib/game/sudoku/storage.dart b/lib/game/sudoku/storage.dart index 274ba6413..9b200639e 100644 --- a/lib/game/sudoku/storage.dart +++ b/lib/game/sudoku/storage.dart @@ -1,6 +1,6 @@ -import 'package:sit/game/storage/record.dart'; -import 'package:sit/game/storage/save.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/game/storage/record.dart'; +import 'package:mimir/game/storage/save.dart'; +import 'package:mimir/storage/hive/init.dart'; import 'entity/record.dart'; import 'entity/save.dart'; diff --git a/lib/game/sudoku/utils.dart b/lib/game/sudoku/utils.dart index 920cb14fa..376828c38 100644 --- a/lib/game/sudoku/utils.dart +++ b/lib/game/sudoku/utils.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/sudoku/entity/board.dart'; +import 'package:mimir/game/sudoku/entity/board.dart'; Color getCellBgColor({ required BuildContext context, diff --git a/lib/game/sudoku/widget/cell.dart b/lib/game/sudoku/widget/cell.dart index 196789fc9..8bff8b6a2 100644 --- a/lib/game/sudoku/widget/cell.dart +++ b/lib/game/sudoku/widget/cell.dart @@ -2,7 +2,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/list2d/edge.dart'; +import 'package:mimir/utils/list2d/edge.dart'; import '../entity/board.dart'; import '../entity/note.dart'; diff --git a/lib/game/sudoku/widget/modal.dart b/lib/game/sudoku/widget/modal.dart index 00d536e1b..5c4cb092a 100644 --- a/lib/game/sudoku/widget/modal.dart +++ b/lib/game/sudoku/widget/modal.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/sudoku/page/game.dart'; +import 'package:mimir/game/sudoku/page/game.dart'; import '../i18n.dart'; class GameOverModal extends ConsumerWidget { diff --git a/lib/game/suika/domain/game_state.dart b/lib/game/suika/domain/game_state.dart index 2219d280a..0e6792836 100644 --- a/lib/game/suika/domain/game_state.dart +++ b/lib/game/suika/domain/game_state.dart @@ -3,7 +3,7 @@ import 'dart:math'; import 'package:flame/components.dart'; import 'package:flame_forge2d/flame_forge2d.dart'; -import 'package:sit/game/utils.dart'; +import 'package:mimir/game/utils.dart'; import '../model/fruit.dart'; import '../entity/fruit.dart'; import '../entity/wall.dart'; diff --git a/lib/game/suika/presenter/dialog_presenter.dart b/lib/game/suika/presenter/dialog_presenter.dart index 8d4963942..9387956a9 100644 --- a/lib/game/suika/presenter/dialog_presenter.dart +++ b/lib/game/suika/presenter/dialog_presenter.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:sit/lifecycle.dart'; +import 'package:mimir/lifecycle.dart'; import '../domain/game_state.dart'; import 'package:get_it/get_it.dart'; diff --git a/lib/game/utils.dart b/lib/game/utils.dart index 3c03ad104..d329fc55a 100644 --- a/lib/game/utils.dart +++ b/lib/game/utils.dart @@ -1,5 +1,5 @@ import 'package:flutter/services.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/settings.dart'; enum HapticFeedbackIntensity { light, diff --git a/lib/game/widget/card.dart b/lib/game/widget/card.dart index 9fc6b98d8..9d612147d 100644 --- a/lib/game/widget/card.dart +++ b/lib/game/widget/card.dart @@ -3,7 +3,7 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/app.dart'; +import 'package:mimir/design/widgets/app.dart'; import '../storage/save.dart'; import '../i18n.dart'; diff --git a/lib/game/widget/mode.dart b/lib/game/widget/mode.dart index 7d75cc216..263e70cf9 100644 --- a/lib/game/widget/mode.dart +++ b/lib/game/widget/mode.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/game/entity/game_mode.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/game/entity/game_mode.dart'; import '../i18n.dart'; diff --git a/lib/game/widget/party_popper.dart b/lib/game/widget/party_popper.dart index 6a6cc3ae7..69846b84c 100644 --- a/lib/game/widget/party_popper.dart +++ b/lib/game/widget/party_popper.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/party_popper.dart'; +import 'package:mimir/design/widgets/party_popper.dart'; class VictoryPartyPopper extends StatefulWidget { final Duration duration; diff --git a/lib/game/wordle/card.dart b/lib/game/wordle/card.dart index 2009462e4..3c188d4de 100644 --- a/lib/game/wordle/card.dart +++ b/lib/game/wordle/card.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/game/widget/card.dart'; -import 'package:sit/game/widget/mode.dart'; -import 'package:sit/game/wordle/entity/pref.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/game/widget/card.dart'; +import 'package:mimir/game/widget/mode.dart'; +import 'package:mimir/game/wordle/entity/pref.dart'; import 'entity/vocabulary.dart'; import 'i18n.dart'; diff --git a/lib/game/wordle/entity/blueprint.dart b/lib/game/wordle/entity/blueprint.dart index 913ce6d94..224edb732 100644 --- a/lib/game/wordle/entity/blueprint.dart +++ b/lib/game/wordle/entity/blueprint.dart @@ -1,9 +1,9 @@ import 'package:meta/meta.dart'; -import 'package:sit/game/entity/blueprint.dart'; -import 'package:sit/game/wordle/entity/state.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/utils/byte_io/reader.dart'; -import 'package:sit/utils/byte_io/writer.dart'; +import 'package:mimir/game/entity/blueprint.dart'; +import 'package:mimir/game/wordle/entity/state.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/utils/byte_io/reader.dart'; +import 'package:mimir/utils/byte_io/writer.dart'; @immutable class BlueprintWordle implements GameBlueprint { diff --git a/lib/game/wordle/entity/letter.dart b/lib/game/wordle/entity/letter.dart index 212a51fde..780db38c8 100644 --- a/lib/game/wordle/entity/letter.dart +++ b/lib/game/wordle/entity/letter.dart @@ -1,6 +1,6 @@ import 'package:flutter/animation.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/wordle/entity/status.dart'; +import 'package:mimir/game/wordle/entity/status.dart'; part "letter.g.dart"; diff --git a/lib/game/wordle/entity/record.dart b/lib/game/wordle/entity/record.dart index 3ea92f64d..3e4e1f25a 100644 --- a/lib/game/wordle/entity/record.dart +++ b/lib/game/wordle/entity/record.dart @@ -1,8 +1,8 @@ import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/entity/record.dart'; -import 'package:sit/game/wordle/entity/blueprint.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/entity/record.dart'; +import 'package:mimir/game/wordle/entity/blueprint.dart'; import 'vocabulary.dart'; diff --git a/lib/game/wordle/entity/state.dart b/lib/game/wordle/entity/state.dart index 4ddefbfbf..1256181b1 100644 --- a/lib/game/wordle/entity/state.dart +++ b/lib/game/wordle/entity/state.dart @@ -1,7 +1,7 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; -import 'package:sit/game/entity/game_status.dart'; +import 'package:mimir/game/entity/game_status.dart'; import 'vocabulary.dart'; import 'save.dart'; diff --git a/lib/game/wordle/entity/status.dart b/lib/game/wordle/entity/status.dart index bb9f1a9f6..24a5ae5c8 100644 --- a/lib/game/wordle/entity/status.dart +++ b/lib/game/wordle/entity/status.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/entity/dual_color.dart'; +import 'package:mimir/design/entity/dual_color.dart'; enum LetterStatus { /// 0 diff --git a/lib/game/wordle/entity/vocabulary.dart b/lib/game/wordle/entity/vocabulary.dart index 50d8dea6f..e4479d075 100644 --- a/lib/game/wordle/entity/vocabulary.dart +++ b/lib/game/wordle/entity/vocabulary.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/game/entity/game_mode.dart'; +import 'package:mimir/game/entity/game_mode.dart'; @JsonSerializable(createToJson: false, createFactory: false) class WordleVocabulary extends GameMode { diff --git a/lib/game/wordle/i18n.dart b/lib/game/wordle/i18n.dart index 5bf041e53..0713c2484 100644 --- a/lib/game/wordle/i18n.dart +++ b/lib/game/wordle/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/game/i18n.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/game/i18n.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/game/wordle/manager/logic.dart b/lib/game/wordle/manager/logic.dart index 71afb98f1..6bfe61e6e 100644 --- a/lib/game/wordle/manager/logic.dart +++ b/lib/game/wordle/manager/logic.dart @@ -1,8 +1,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/game/entity/game_result.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/utils.dart'; -import 'package:sit/game/wordle/entity/letter.dart'; +import 'package:mimir/game/entity/game_result.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/utils.dart'; +import 'package:mimir/game/wordle/entity/letter.dart'; import '../entity/keyboard.dart'; import '../entity/state.dart'; diff --git a/lib/game/wordle/page/game.dart b/lib/game/wordle/page/game.dart index 94d531638..ec5b11edb 100644 --- a/lib/game/wordle/page/game.dart +++ b/lib/game/wordle/page/game.dart @@ -3,8 +3,8 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/game/entity/game_status.dart'; -import 'package:sit/game/widget/party_popper.dart'; +import 'package:mimir/game/entity/game_status.dart'; +import 'package:mimir/game/widget/party_popper.dart'; import '../entity/state.dart'; import '../event_bus.dart'; import '../manager/logic.dart'; diff --git a/lib/game/wordle/settings.dart b/lib/game/wordle/settings.dart index 6aae408d2..9cc0f3552 100644 --- a/lib/game/wordle/settings.dart +++ b/lib/game/wordle/settings.dart @@ -1,7 +1,7 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/utils/json.dart'; import 'entity/pref.dart'; diff --git a/lib/game/wordle/storage.dart b/lib/game/wordle/storage.dart index 4dc21d4c4..7002cb3ba 100644 --- a/lib/game/wordle/storage.dart +++ b/lib/game/wordle/storage.dart @@ -1,6 +1,6 @@ -import 'package:sit/game/storage/record.dart'; -import 'package:sit/game/storage/save.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/game/storage/record.dart'; +import 'package:mimir/game/storage/save.dart'; +import 'package:mimir/storage/hive/init.dart'; import 'entity/record.dart'; import 'entity/save.dart'; diff --git a/lib/game/wordle/widget/guide.dart b/lib/game/wordle/widget/guide.dart index 25ed0d2f3..73d27fcff 100644 --- a/lib/game/wordle/widget/guide.dart +++ b/lib/game/wordle/widget/guide.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/entity/dual_color.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/entity/dual_color.dart'; import '../entity/status.dart'; diff --git a/lib/game/wordle/widget/keyboard.dart b/lib/game/wordle/widget/keyboard.dart index 1bf587bba..e840e042d 100644 --- a/lib/game/wordle/widget/keyboard.dart +++ b/lib/game/wordle/widget/keyboard.dart @@ -3,9 +3,9 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/game/wordle/entity/status.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/game/wordle/entity/status.dart'; import '../entity/keyboard.dart'; import '../event_bus.dart'; diff --git a/lib/game/wordle/widget/letter.dart b/lib/game/wordle/widget/letter.dart index e302ffcb2..d5f508946 100644 --- a/lib/game/wordle/widget/letter.dart +++ b/lib/game/wordle/widget/letter.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/game/wordle/entity/status.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/game/wordle/entity/status.dart'; class LetterBox extends StatelessWidget { final String letter; diff --git a/lib/game/wordle/widget/validation.dart b/lib/game/wordle/widget/validation.dart index 153c68b33..bb40682c1 100644 --- a/lib/game/wordle/widget/validation.dart +++ b/lib/game/wordle/widget/validation.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; import '../entity/keyboard.dart'; import '../entity/letter.dart'; import '../entity/status.dart'; diff --git a/lib/index.dart b/lib/index.dart index 54faa0109..fed1bfec0 100644 --- a/lib/index.dart +++ b/lib/index.dart @@ -4,14 +4,14 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/i18n.dart' as $timetable; -import 'package:sit/school/i18n.dart' as $school; -import 'package:sit/life/i18n.dart' as $life; -import 'package:sit/game/i18n.dart' as $game; -import 'package:sit/me/i18n.dart' as $me; -// import 'package:sit/backend/forum/i18n.dart' as $forum; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/i18n.dart' as $timetable; +import 'package:mimir/school/i18n.dart' as $school; +import 'package:mimir/life/i18n.dart' as $life; +import 'package:mimir/game/i18n.dart' as $game; +import 'package:mimir/me/i18n.dart' as $me; +// import 'package:mimir/backend/forum/i18n.dart' as $forum; import 'package:rettulf/rettulf.dart'; import 'package:universal_platform/universal_platform.dart'; diff --git a/lib/init.dart b/lib/init.dart index 172c4da3c..01e98318f 100644 --- a/lib/init.dart +++ b/lib/init.dart @@ -1,41 +1,41 @@ import 'package:flutter/material.dart'; -import 'package:sit/backend/init.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/entity/campus.dart'; +import 'package:mimir/backend/init.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/entity/campus.dart'; import 'package:flutter/foundation.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/session/mimir.dart'; -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/session/class2nd.dart'; -import 'package:sit/session/pg_registration.dart'; -import 'package:sit/session/library.dart'; -import 'package:sit/session/ywb.dart'; -import 'package:sit/life/electricity/init.dart'; -import 'package:sit/life/expense_records/init.dart'; -import 'package:sit/login/init.dart'; -import 'package:sit/me/edu_email/init.dart'; -import 'package:sit/school/ywb/init.dart'; -import 'package:sit/school/exam_arrange/init.dart'; -import 'package:sit/school/library/init.dart'; -import 'package:sit/school/oa_announce/init.dart'; -import 'package:sit/school/class2nd/init.dart'; -import 'package:sit/school/exam_result/init.dart'; -import 'package:sit/school/yellow_pages/init.dart'; -import 'package:sit/session/ug_registration.dart'; -import 'package:sit/timetable/init.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/session/mimir.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/session/class2nd.dart'; +import 'package:mimir/session/pg_registration.dart'; +import 'package:mimir/session/library.dart'; +import 'package:mimir/session/ywb.dart'; +import 'package:mimir/life/electricity/init.dart'; +import 'package:mimir/life/expense_records/init.dart'; +import 'package:mimir/login/init.dart'; +import 'package:mimir/me/edu_email/init.dart'; +import 'package:mimir/school/ywb/init.dart'; +import 'package:mimir/school/exam_arrange/init.dart'; +import 'package:mimir/school/library/init.dart'; +import 'package:mimir/school/oa_announce/init.dart'; +import 'package:mimir/school/class2nd/init.dart'; +import 'package:mimir/school/exam_result/init.dart'; +import 'package:mimir/school/yellow_pages/init.dart'; +import 'package:mimir/session/ug_registration.dart'; +import 'package:mimir/timetable/init.dart'; import 'dart:async'; import 'package:cookie_jar/cookie_jar.dart'; import 'package:dio/dio.dart'; -import 'package:sit/storage/hive/cookie.dart'; -import 'package:sit/network/dio.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/storage/hive/cookie.dart'; +import 'package:mimir/network/dio.dart'; +import 'package:mimir/session/sso.dart'; import '../widgets/captcha_box.dart'; diff --git a/lib/l10n/app.dart b/lib/l10n/app.dart index 96453155f..88798af39 100644 --- a/lib/l10n/app.dart +++ b/lib/l10n/app.dart @@ -1,7 +1,7 @@ -import 'package:sit/timetable/i18n.dart' as t; -import 'package:sit/school/i18n.dart' as s; -import 'package:sit/life/i18n.dart' as l; -import 'package:sit/game/i18n.dart' as g; +import 'package:mimir/timetable/i18n.dart' as t; +import 'package:mimir/school/i18n.dart' as s; +import 'package:mimir/life/i18n.dart' as l; +import 'package:mimir/game/i18n.dart' as g; class AppI18n { const AppI18n(); diff --git a/lib/l10n/extension.dart b/lib/l10n/extension.dart index 1afc0296c..e7b73bc6d 100644 --- a/lib/l10n/extension.dart +++ b/lib/l10n/extension.dart @@ -1,11 +1,11 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:sit/l10n/time.dart'; +import 'package:mimir/l10n/time.dart'; import 'lang.dart'; -export 'package:sit/r.dart'; +export 'package:mimir/r.dart'; export 'lang.dart'; diff --git a/lib/l10n/lang.dart b/lib/l10n/lang.dart index d8e527b64..4913e8137 100644 --- a/lib/l10n/lang.dart +++ b/lib/l10n/lang.dart @@ -1,8 +1,8 @@ import 'dart:ui'; import 'package:intl/intl.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/r.dart'; abstract class RegionalFormatter { DateFormat get hms; diff --git a/lib/life/electricity/aggregated.dart b/lib/life/electricity/aggregated.dart index 69374c047..41f755075 100644 --- a/lib/life/electricity/aggregated.dart +++ b/lib/life/electricity/aggregated.dart @@ -1,5 +1,5 @@ -import 'package:sit/life/electricity/init.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/life/electricity/init.dart'; +import 'package:mimir/settings/settings.dart'; class ElectricityAggregated { static void addSearchHistory(String room) { diff --git a/lib/life/electricity/card.dart b/lib/life/electricity/card.dart index 1939177f3..520356a9c 100644 --- a/lib/life/electricity/card.dart +++ b/lib/life/electricity/card.dart @@ -4,12 +4,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' hide isCupertino; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/async_event.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/async_event.dart'; import 'package:rettulf/rettulf.dart'; import 'package:share_plus/share_plus.dart'; import 'package:super_context_menu/super_context_menu.dart'; diff --git a/lib/life/electricity/entity/balance.dart b/lib/life/electricity/entity/balance.dart index 119353284..214462ee6 100644 --- a/lib/life/electricity/entity/balance.dart +++ b/lib/life/electricity/entity/balance.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'balance.g.dart'; diff --git a/lib/life/electricity/entity/room.dart b/lib/life/electricity/entity/room.dart index b536c7673..89a84e052 100644 --- a/lib/life/electricity/entity/room.dart +++ b/lib/life/electricity/entity/room.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/utils/strings.dart'; +import 'package:mimir/utils/strings.dart'; class DormitoryRoom { final int building; diff --git a/lib/life/electricity/i18n.dart b/lib/life/electricity/i18n.dart index 7e9e96143..f575e97a0 100644 --- a/lib/life/electricity/i18n.dart +++ b/lib/life/electricity/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/life/electricity/init.dart b/lib/life/electricity/init.dart index 8d52c6f03..fb494ed6e 100644 --- a/lib/life/electricity/init.dart +++ b/lib/life/electricity/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/life/electricity/service/electricity.demo.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/life/electricity/service/electricity.demo.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/electricity.dart'; import 'storage/electricity.dart'; diff --git a/lib/life/electricity/service/electricity.dart b/lib/life/electricity/service/electricity.dart index 5d3fcff5a..dae70ff1e 100644 --- a/lib/life/electricity/service/electricity.dart +++ b/lib/life/electricity/service/electricity.dart @@ -1,8 +1,8 @@ import 'dart:convert'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/r.dart'; import '../entity/balance.dart'; const _balanceUrl = "https://xgfy.sit.edu.cn/unifri-flow/WF/Comm/ProcessRequest.do?DoType=DBAccess_RunSQLReturnTable"; diff --git a/lib/life/electricity/storage/electricity.dart b/lib/life/electricity/storage/electricity.dart index 2e00f96a6..0be7b593f 100644 --- a/lib/life/electricity/storage/electricity.dart +++ b/lib/life/electricity/storage/electricity.dart @@ -2,8 +2,8 @@ import 'dart:math'; import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/balance.dart'; diff --git a/lib/life/electricity/widget/card.dart b/lib/life/electricity/widget/card.dart index aa7ba0ef7..40e2dc089 100644 --- a/lib/life/electricity/widget/card.dart +++ b/lib/life/electricity/widget/card.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/animation/number.dart'; +import 'package:mimir/design/animation/number.dart'; import '../entity/balance.dart'; import 'package:rettulf/rettulf.dart'; diff --git a/lib/life/electricity/widget/search.dart b/lib/life/electricity/widget/search.dart index 8de456fac..51e4a7e24 100644 --- a/lib/life/electricity/widget/search.dart +++ b/lib/life/electricity/widget/search.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/life/electricity/entity/room.dart'; -import 'package:sit/widgets/search.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/life/electricity/entity/room.dart'; +import 'package:mimir/widgets/search.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/life/event.dart b/lib/life/event.dart index d05caeae4..6965e3828 100644 --- a/lib/life/event.dart +++ b/lib/life/event.dart @@ -1,3 +1,3 @@ -import 'package:sit/utils/async_event.dart'; +import 'package:mimir/utils/async_event.dart'; final lifeEventBus = AsyncEventEmitter(); diff --git a/lib/life/expense_records/aggregated.dart b/lib/life/expense_records/aggregated.dart index 014032236..2d7fd96b6 100644 --- a/lib/life/expense_records/aggregated.dart +++ b/lib/life/expense_records/aggregated.dart @@ -1,4 +1,4 @@ -import 'package:sit/settings/dev.dart'; +import 'package:mimir/settings/dev.dart'; import 'entity/local.dart'; import 'init.dart'; diff --git a/lib/life/expense_records/card.dart b/lib/life/expense_records/card.dart index 70ff76540..9846f37af 100644 --- a/lib/life/expense_records/card.dart +++ b/lib/life/expense_records/card.dart @@ -3,14 +3,14 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/life/event.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/life/expense_records/init.dart'; -import 'package:sit/utils/async_event.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/life/event.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/life/expense_records/init.dart'; +import 'package:mimir/utils/async_event.dart'; import 'aggregated.dart'; import 'widget/balance.dart'; import 'package:rettulf/rettulf.dart'; diff --git a/lib/life/expense_records/entity/local.dart b/lib/life/expense_records/entity/local.dart index 36dad5577..e806071a6 100644 --- a/lib/life/expense_records/entity/local.dart +++ b/lib/life/expense_records/entity/local.dart @@ -5,7 +5,7 @@ import 'package:dynamic_color/dynamic_color.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; import 'package:unicons/unicons.dart'; import 'remote.dart'; diff --git a/lib/life/expense_records/entity/statistics.dart b/lib/life/expense_records/entity/statistics.dart index 76ac0fa3d..e53859c20 100644 --- a/lib/life/expense_records/entity/statistics.dart +++ b/lib/life/expense_records/entity/statistics.dart @@ -1,7 +1,7 @@ import 'package:collection/collection.dart'; import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/utils/date.dart'; import 'local.dart'; diff --git a/lib/life/expense_records/i18n.dart b/lib/life/expense_records/i18n.dart index d1bedc077..4cd38daa9 100644 --- a/lib/life/expense_records/i18n.dart +++ b/lib/life/expense_records/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; import 'entity/local.dart'; diff --git a/lib/life/expense_records/init.dart b/lib/life/expense_records/init.dart index 3136681e6..418a8c7ff 100644 --- a/lib/life/expense_records/init.dart +++ b/lib/life/expense_records/init.dart @@ -1,4 +1,4 @@ -import 'package:sit/settings/dev.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/fetch.dart'; import 'service/fetch.demo.dart'; diff --git a/lib/life/expense_records/page/records.dart b/lib/life/expense_records/page/records.dart index c31a0060d..115b0d62d 100644 --- a/lib/life/expense_records/page/records.dart +++ b/lib/life/expense_records/page/records.dart @@ -3,13 +3,13 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/life/expense_records/storage/local.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/life/expense_records/storage/local.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/life/expense_records/widget/group.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/life/expense_records/widget/group.dart'; +import 'package:mimir/utils/error.dart'; import '../aggregated.dart'; import '../entity/local.dart'; diff --git a/lib/life/expense_records/page/statistics.dart b/lib/life/expense_records/page/statistics.dart index 81851a383..29df00cea 100644 --- a/lib/life/expense_records/page/statistics.dart +++ b/lib/life/expense_records/page/statistics.dart @@ -2,14 +2,14 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/grouped.dart'; -import 'package:sit/life/expense_records/entity/statistics.dart'; -import 'package:sit/life/expense_records/storage/local.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/grouped.dart'; +import 'package:mimir/life/expense_records/entity/statistics.dart'; +import 'package:mimir/life/expense_records/storage/local.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/life/expense_records/utils.dart'; -import 'package:sit/utils/collection.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/life/expense_records/utils.dart'; +import 'package:mimir/utils/collection.dart'; +import 'package:mimir/utils/date.dart'; import 'package:statistics/statistics.dart'; import '../entity/local.dart'; diff --git a/lib/life/expense_records/service/fetch.dart b/lib/life/expense_records/service/fetch.dart index 8aadbea29..e6858b8e6 100644 --- a/lib/life/expense_records/service/fetch.dart +++ b/lib/life/expense_records/service/fetch.dart @@ -3,9 +3,9 @@ import 'dart:convert'; import 'package:crypto/crypto.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/session/sso.dart'; import '../entity/local.dart'; import '../entity/remote.dart'; diff --git a/lib/life/expense_records/service/fetch.demo.dart b/lib/life/expense_records/service/fetch.demo.dart index c8a4d463f..a5b7037bf 100644 --- a/lib/life/expense_records/service/fetch.demo.dart +++ b/lib/life/expense_records/service/fetch.demo.dart @@ -1,9 +1,9 @@ import 'dart:math'; import 'package:screenshot/screenshot.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/r.dart'; -import 'package:sit/utils/random.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/utils/random.dart'; import '../entity/local.dart'; import 'fetch.dart'; diff --git a/lib/life/expense_records/storage/local.dart b/lib/life/expense_records/storage/local.dart index ae7371edb..9ead24975 100644 --- a/lib/life/expense_records/storage/local.dart +++ b/lib/life/expense_records/storage/local.dart @@ -1,7 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/local.dart'; diff --git a/lib/life/expense_records/utils.dart b/lib/life/expense_records/utils.dart index 8d577be10..b9e072e94 100644 --- a/lib/life/expense_records/utils.dart +++ b/lib/life/expense_records/utils.dart @@ -1,11 +1,11 @@ import 'package:collection/collection.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/widgets.dart'; -import 'package:sit/life/expense_records/entity/local.dart'; -import 'package:sit/lifecycle.dart'; +import 'package:mimir/life/expense_records/entity/local.dart'; +import 'package:mimir/lifecycle.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/utils/date.dart'; import 'entity/remote.dart'; import 'entity/statistics.dart'; diff --git a/lib/life/expense_records/widget/balance.dart b/lib/life/expense_records/widget/balance.dart index 37f1d1fae..fb751288f 100644 --- a/lib/life/expense_records/widget/balance.dart +++ b/lib/life/expense_records/widget/balance.dart @@ -1,7 +1,7 @@ import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/animation/number.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/design/animation/number.dart'; +import 'package:mimir/utils/format.dart'; import 'package:rettulf/rettulf.dart'; import "../i18n.dart"; diff --git a/lib/life/expense_records/widget/chart/bar.dart b/lib/life/expense_records/widget/chart/bar.dart index ceac390dd..b21ea7a87 100644 --- a/lib/life/expense_records/widget/chart/bar.dart +++ b/lib/life/expense_records/widget/chart/bar.dart @@ -3,8 +3,8 @@ import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/date.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/utils/date.dart'; +import 'package:mimir/utils/format.dart'; import '../../entity/statistics.dart'; import '../../utils.dart'; diff --git a/lib/life/expense_records/widget/chart/delegate.dart b/lib/life/expense_records/widget/chart/delegate.dart index 7d3b8c64d..a4616ed0b 100644 --- a/lib/life/expense_records/widget/chart/delegate.dart +++ b/lib/life/expense_records/widget/chart/delegate.dart @@ -4,11 +4,11 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/life/expense_records/utils.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/utils/date.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/life/expense_records/utils.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/utils/date.dart'; +import 'package:mimir/utils/format.dart'; import 'package:statistics/statistics.dart'; import '../../entity/local.dart'; diff --git a/lib/life/expense_records/widget/group.dart b/lib/life/expense_records/widget/group.dart index b8026049c..56c0b3c24 100644 --- a/lib/life/expense_records/widget/group.dart +++ b/lib/life/expense_records/widget/group.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/grouped.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/design/widgets/grouped.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/local.dart'; diff --git a/lib/life/expense_records/widget/transaction.dart b/lib/life/expense_records/widget/transaction.dart index 02393f8b9..3c18b0dfa 100644 --- a/lib/life/expense_records/widget/transaction.dart +++ b/lib/life/expense_records/widget/transaction.dart @@ -1,8 +1,8 @@ import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/settings/dev.dart'; import '../entity/local.dart'; import "../i18n.dart"; diff --git a/lib/life/i18n.dart b/lib/life/i18n.dart index dd3fbd645..009bb0036 100644 --- a/lib/life/i18n.dart +++ b/lib/life/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/life/index.dart b/lib/life/index.dart index 02bcd5f07..b611f4dff 100644 --- a/lib/life/index.dart +++ b/lib/life/index.dart @@ -2,14 +2,14 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/backend/forum/card.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/life/electricity/card.dart'; -import 'package:sit/life/expense_records/card.dart'; -import 'package:sit/life/lab_door/card.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/backend/forum/card.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/life/electricity/card.dart'; +import 'package:mimir/life/expense_records/card.dart'; +import 'package:mimir/life/lab_door/card.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import 'event.dart'; diff --git a/lib/life/lab_door/card.dart b/lib/life/lab_door/card.dart index a4e3876a9..88373c09b 100644 --- a/lib/life/lab_door/card.dart +++ b/lib/life/lab_door/card.dart @@ -3,12 +3,12 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/init.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; const _whitelist = { "221042Y213", diff --git a/lib/life/page/settings.dart b/lib/life/page/settings.dart index 3fb5661f2..36a37f403 100644 --- a/lib/life/page/settings.dart +++ b/lib/life/page/settings.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/life/settings.dart b/lib/life/settings.dart index eeecbbdd9..00e497710 100644 --- a/lib/life/settings.dart +++ b/lib/life/settings.dart @@ -1,5 +1,5 @@ import 'package:flutter/foundation.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; const _kElectricityAutoRefresh = true; diff --git a/lib/login/aggregated.dart b/lib/login/aggregated.dart index e6e7a1366..51d472d3d 100644 --- a/lib/login/aggregated.dart +++ b/lib/login/aggregated.dart @@ -1,10 +1,10 @@ -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/credentials/utils.dart'; -import 'package:sit/init.dart'; -import 'package:sit/settings/meta.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/credentials/utils.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/settings/meta.dart'; +import 'package:mimir/settings/settings.dart'; import 'init.dart'; diff --git a/lib/login/i18n.dart b/lib/login/i18n.dart index 841fbb764..9dd87325a 100644 --- a/lib/login/i18n.dart +++ b/lib/login/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/credentials/i18n.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/credentials/i18n.dart'; +import 'package:mimir/l10n/common.dart'; class CommonLoginI18n with CommonI18nMixin { const CommonLoginI18n(); diff --git a/lib/login/page/captcha.dart b/lib/login/page/captcha.dart index 573c28df8..73b454d5c 100644 --- a/lib/login/page/captcha.dart +++ b/lib/login/page/captcha.dart @@ -4,8 +4,8 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/l10n/common.dart'; const _i18n = CaptchaI18n(); diff --git a/lib/login/page/index.dart b/lib/login/page/index.dart index 50b0d1d2f..4591b9dad 100644 --- a/lib/login/page/index.dart +++ b/lib/login/page/index.dart @@ -5,21 +5,21 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/credentials/utils.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/init.dart'; -import 'package:sit/login/utils.dart'; -import 'package:sit/r.dart'; -import 'package:sit/school/widgets/campus.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/credentials/utils.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/login/utils.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/school/widgets/campus.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/meta.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/meta.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' hide isCupertino; import '../aggregated.dart'; diff --git a/lib/login/service/authserver.dart b/lib/login/service/authserver.dart index 2143c2dd4..13edbd09e 100644 --- a/lib/login/service/authserver.dart +++ b/lib/login/service/authserver.dart @@ -1,9 +1,9 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/sso.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/session/sso.dart'; +import 'package:mimir/utils/error.dart'; class AuthServerService { SsoSession get session => Init.ssoSession; diff --git a/lib/login/utils.dart b/lib/login/utils.dart index e3310524a..3b267e481 100644 --- a/lib/login/utils.dart +++ b/lib/login/utils.dart @@ -1,9 +1,9 @@ import 'package:dio/dio.dart'; import 'package:flutter/cupertino.dart'; -import 'package:sit/credentials/error.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/session/sso.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/credentials/error.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/session/sso.dart'; +import 'package:mimir/utils/error.dart'; import "./i18n.dart"; const _i18n = OaLoginI18n(); diff --git a/lib/login/widgets/forgot_pwd.dart b/lib/login/widgets/forgot_pwd.dart index 7db520784..4dd7843f5 100644 --- a/lib/login/widgets/forgot_pwd.dart +++ b/lib/login/widgets/forgot_pwd.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/utils/guard_launch.dart'; import '../i18n.dart'; const _i18n = OaLoginI18n(); diff --git a/lib/main.dart b/lib/main.dart index e22f03664..765d1d0c0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -9,21 +9,21 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:sit/files.dart'; -import 'package:sit/migration/foundation.dart'; -import 'package:sit/network/proxy.dart'; -import 'package:sit/platform/windows/windows.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/init.dart'; -import 'package:sit/migration/migrations.dart'; -import 'package:sit/platform/desktop.dart'; -import 'package:sit/school/yellow_pages/entity/contact.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/migration/foundation.dart'; +import 'package:mimir/network/proxy.dart'; +import 'package:mimir/platform/windows/windows.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/migration/migrations.dart'; +import 'package:mimir/platform/desktop.dart'; +import 'package:mimir/school/yellow_pages/entity/contact.dart'; import 'package:path_provider/path_provider.dart'; -import 'package:sit/settings/meta.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/entity/meta.dart'; -import 'package:sit/storage/prefs.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/settings/meta.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/entity/meta.dart'; +import 'package:mimir/storage/prefs.dart'; +import 'package:mimir/utils/error.dart'; import 'package:system_theme/system_theme.dart'; import 'package:version/version.dart'; diff --git a/lib/me/edu_email/i18n.dart b/lib/me/edu_email/i18n.dart index 110ca2430..6c202dd7d 100644 --- a/lib/me/edu_email/i18n.dart +++ b/lib/me/edu_email/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/login/i18n.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/login/i18n.dart'; const i18n = _I18n(); diff --git a/lib/me/edu_email/index.dart b/lib/me/edu_email/index.dart index 1015dadbb..54b59bd00 100644 --- a/lib/me/edu_email/index.dart +++ b/lib/me/edu_email/index.dart @@ -2,8 +2,8 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/widgets/app.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/widgets/app.dart'; import 'package:rettulf/rettulf.dart'; import 'package:url_launcher/url_launcher_string.dart'; diff --git a/lib/me/edu_email/page/details.dart b/lib/me/edu_email/page/details.dart index b0760d47b..94bbbc37e 100644 --- a/lib/me/edu_email/page/details.dart +++ b/lib/me/edu_email/page/details.dart @@ -2,8 +2,8 @@ import 'package:enough_mail/enough_mail.dart'; import 'package:enough_mail_html/enough_mail_html.dart'; import 'package:flutter/material.dart'; import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/widgets/html.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/widgets/html.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/me/edu_email/page/inbox.dart b/lib/me/edu_email/page/inbox.dart index 08d4850f7..63a3b0dff 100644 --- a/lib/me/edu_email/page/inbox.dart +++ b/lib/me/edu_email/page/inbox.dart @@ -1,10 +1,10 @@ import 'package:enough_mail/enough_mail.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/init.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/init.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../init.dart'; import '../i18n.dart'; diff --git a/lib/me/edu_email/page/login.dart b/lib/me/edu_email/page/login.dart index cf0c87c90..abf239f2c 100644 --- a/lib/me/edu_email/page/login.dart +++ b/lib/me/edu_email/page/login.dart @@ -2,15 +2,15 @@ import 'package:email_validator/email_validator.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/login/utils.dart'; -import 'package:sit/login/widgets/forgot_pwd.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/login/utils.dart'; +import 'package:mimir/login/widgets/forgot_pwd.dart'; +import 'package:mimir/r.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/error.dart'; import '../init.dart'; import '../i18n.dart'; diff --git a/lib/me/edu_email/service/email.dart b/lib/me/edu_email/service/email.dart index bb5836937..6adf3992f 100644 --- a/lib/me/edu_email/service/email.dart +++ b/lib/me/edu_email/service/email.dart @@ -1,6 +1,6 @@ import 'package:enough_mail/enough_mail.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/error.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/error.dart'; const _server = "imap.mail.sit.edu.cn"; const _port = 993; diff --git a/lib/me/edu_email/storage/email.dart b/lib/me/edu_email/storage/email.dart index 1a4214afa..cfd530f61 100644 --- a/lib/me/edu_email/storage/email.dart +++ b/lib/me/edu_email/storage/email.dart @@ -1,5 +1,5 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/storage/hive/init.dart'; class EduEmailStorage { Box get box => HiveInit.eduEmail; diff --git a/lib/me/edu_email/widgets/item.dart b/lib/me/edu_email/widgets/item.dart index e57032ca7..e58f11418 100644 --- a/lib/me/edu_email/widgets/item.dart +++ b/lib/me/edu_email/widgets/item.dart @@ -1,6 +1,6 @@ import 'package:enough_mail/enough_mail.dart'; import 'package:flutter/material.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/l10n/extension.dart'; import '../page/details.dart'; diff --git a/lib/me/i18n.dart b/lib/me/i18n.dart index 1598f791c..24be0d4b9 100644 --- a/lib/me/i18n.dart +++ b/lib/me/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/me/index.dart b/lib/me/index.dart index 0b3232bad..5d927f57b 100644 --- a/lib/me/index.dart +++ b/lib/me/index.dart @@ -4,13 +4,13 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:simple_icons/simple_icons.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/me/edu_email/index.dart'; -import 'package:sit/me/widgets/greeting.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/me/edu_email/index.dart'; +import 'package:mimir/me/widgets/greeting.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/utils/error.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher_string.dart'; diff --git a/lib/me/widgets/greeting.dart b/lib/me/widgets/greeting.dart index adc1d5499..b8841de31 100644 --- a/lib/me/widgets/greeting.dart +++ b/lib/me/widgets/greeting.dart @@ -3,10 +3,10 @@ import 'dart:async'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/utils/timer.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/utils/timer.dart'; import 'package:rettulf/rettulf.dart'; class Greeting extends ConsumerStatefulWidget { diff --git a/lib/migration/migrations.dart b/lib/migration/migrations.dart index 372562926..f6d4c196a 100644 --- a/lib/migration/migrations.dart +++ b/lib/migration/migrations.dart @@ -1,11 +1,11 @@ import 'package:flutter/foundation.dart'; -import 'package:sit/files.dart'; -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/timetable/init.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/timetable/init.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:version/version.dart'; import 'foundation.dart'; diff --git a/lib/network/dio.dart b/lib/network/dio.dart index 621236e0f..7a0eb5941 100644 --- a/lib/network/dio.dart +++ b/lib/network/dio.dart @@ -5,7 +5,7 @@ import 'package:dio/dio.dart'; import 'package:dio_cookie_manager/dio_cookie_manager.dart'; import 'package:fk_user_agent/fk_user_agent.dart'; import 'package:flutter/foundation.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/r.dart'; import 'package:universal_platform/universal_platform.dart'; final _rand = Random(); diff --git a/lib/network/i18n.dart b/lib/network/i18n.dart index 31ab7f3d0..c50c7bfd2 100644 --- a/lib/network/i18n.dart +++ b/lib/network/i18n.dart @@ -1,7 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/credentials/i18n.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/network/widgets/checker.dart'; +import 'package:mimir/credentials/i18n.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/network/widgets/checker.dart'; const i18n = _I18n(); diff --git a/lib/network/page/index.dart b/lib/network/page/index.dart index 9043c7dfe..b4d329fbd 100644 --- a/lib/network/page/index.dart +++ b/lib/network/page/index.dart @@ -2,15 +2,15 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/animation/animated.dart'; -import 'package:sit/design/widgets/icon.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/animation/animated.dart'; +import 'package:mimir/design/widgets/icon.dart'; +import 'package:mimir/init.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/network/service/network.dart'; -import 'package:sit/network/widgets/buttons.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/network/service/network.dart'; +import 'package:mimir/network/widgets/buttons.dart'; +import 'package:mimir/settings/dev.dart'; import '../connectivity.dart'; import '../i18n.dart'; diff --git a/lib/network/proxy.dart b/lib/network/proxy.dart index a986a77e4..b3ca2d852 100644 --- a/lib/network/proxy.dart +++ b/lib/network/proxy.dart @@ -1,9 +1,9 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/settings/settings.dart'; class SitHttpOverrides extends HttpOverrides { SitHttpOverrides(); diff --git a/lib/network/utils.dart b/lib/network/utils.dart index 93d0c54c6..263866095 100644 --- a/lib/network/utils.dart +++ b/lib/network/utils.dart @@ -1,5 +1,5 @@ -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/settings/settings.dart'; import 'connectivity.dart'; diff --git a/lib/network/widgets/buttons.dart b/lib/network/widgets/buttons.dart index 4d0e7b6f4..3c7b026fa 100644 --- a/lib/network/widgets/buttons.dart +++ b/lib/network/widgets/buttons.dart @@ -1,8 +1,8 @@ import 'package:app_settings/app_settings.dart'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/network/widgets/checker.dart b/lib/network/widgets/checker.dart index 10e36baa9..2ab069655 100644 --- a/lib/network/widgets/checker.dart +++ b/lib/network/widgets/checker.dart @@ -2,11 +2,11 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/animation/animated.dart'; -import 'package:sit/network/connectivity.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/animation/animated.dart'; +import 'package:mimir/network/connectivity.dart'; +import 'package:mimir/utils/error.dart'; import 'package:rettulf/rettulf.dart'; import '../utils.dart'; diff --git a/lib/network/widgets/entrance.dart b/lib/network/widgets/entrance.dart index e614fa426..ee3b2c322 100644 --- a/lib/network/widgets/entrance.dart +++ b/lib/network/widgets/entrance.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/navigation.dart'; +import 'package:mimir/design/widgets/navigation.dart'; import '../i18n.dart'; class NetworkToolEntranceTile extends StatelessWidget { diff --git a/lib/platform/desktop.dart b/lib/platform/desktop.dart index d34a6e48b..0e1208c0f 100644 --- a/lib/platform/desktop.dart +++ b/lib/platform/desktop.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:sit/r.dart'; -import 'package:sit/storage/prefs.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/storage/prefs.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:window_manager/window_manager.dart'; diff --git a/lib/platform/quick_action.dart b/lib/platform/quick_action.dart index 5d1409f46..18b9b4a4a 100644 --- a/lib/platform/quick_action.dart +++ b/lib/platform/quick_action.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:quick_actions/quick_actions.dart'; -import 'package:sit/lifecycle.dart'; +import 'package:mimir/lifecycle.dart'; class _Type { const _Type._(); diff --git a/lib/qrcode/deep_link.dart b/lib/qrcode/deep_link.dart index aef39d4b8..3bbf6f13f 100644 --- a/lib/qrcode/deep_link.dart +++ b/lib/qrcode/deep_link.dart @@ -1,10 +1,10 @@ import 'package:flutter/cupertino.dart'; -import 'package:sit/game/minesweeper/qrcode/blueprint.dart'; -import 'package:sit/game/sudoku/qrcode/blueprint.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/qrcode/proxy.dart'; -import 'package:sit/timetable/qrcode/palette.dart'; -import 'package:sit/timetable/qrcode/timetable.dart'; +import 'package:mimir/game/minesweeper/qrcode/blueprint.dart'; +import 'package:mimir/game/sudoku/qrcode/blueprint.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/qrcode/proxy.dart'; +import 'package:mimir/timetable/qrcode/palette.dart'; +import 'package:mimir/timetable/qrcode/timetable.dart'; import '../timetable/qrcode/patch.dart'; diff --git a/lib/qrcode/handle.dart b/lib/qrcode/handle.dart index 9f2844cdd..7f6387757 100644 --- a/lib/qrcode/handle.dart +++ b/lib/qrcode/handle.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/r.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/utils/error.dart'; enum DeepLinkHandleResult { success, diff --git a/lib/qrcode/i18n.dart b/lib/qrcode/i18n.dart index 576d4483a..ce4774a9a 100644 --- a/lib/qrcode/i18n.dart +++ b/lib/qrcode/i18n.dart @@ -1,7 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/l10n/tr.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/l10n/tr.dart'; const i18n = _I18n(); diff --git a/lib/qrcode/page/scanner.dart b/lib/qrcode/page/scanner.dart index 875630392..cf2aebcca 100644 --- a/lib/qrcode/page/scanner.dart +++ b/lib/qrcode/page/scanner.dart @@ -9,14 +9,14 @@ import 'package:go_router/go_router.dart'; import 'package:image_picker/image_picker.dart'; import 'package:path/path.dart' as p; import 'package:permission_handler/permission_handler.dart'; -import 'package:sit/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/files.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/images.dart'; -import 'package:sit/utils/permission.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/images.dart'; +import 'package:mimir/utils/permission.dart'; import 'package:universal_platform/universal_platform.dart'; import '../i18n.dart'; diff --git a/lib/qrcode/page/view.dart b/lib/qrcode/page/view.dart index f89045e7c..1775bcd16 100644 --- a/lib/qrcode/page/view.dart +++ b/lib/qrcode/page/view.dart @@ -11,11 +11,11 @@ import 'package:qr_flutter/qr_flutter.dart'; import 'package:rettulf/rettulf.dart'; import 'package:sanitize_filename/sanitize_filename.dart'; import 'package:share_plus/share_plus.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/screenshot.dart'; -import 'package:sit/widgets/modal_image_view.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/screenshot.dart'; +import 'package:mimir/widgets/modal_image_view.dart'; import 'package:text_scroll/text_scroll.dart'; import '../i18n.dart'; diff --git a/lib/qrcode/utils.dart b/lib/qrcode/utils.dart index 68afc3e11..1900e2fe3 100644 --- a/lib/qrcode/utils.dart +++ b/lib/qrcode/utils.dart @@ -5,9 +5,9 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:hashlib_codecs/hashlib_codecs.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:universal_platform/universal_platform.dart'; import 'handle.dart'; diff --git a/lib/r.dart b/lib/r.dart index 76a8a2d07..be1be31ef 100644 --- a/lib/r.dart +++ b/lib/r.dart @@ -2,10 +2,10 @@ import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/foundation.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/life/lab_door/card.dart'; -import 'package:sit/school/yellow_pages/entity/contact.dart'; -import 'package:sit/entity/meta.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/life/lab_door/card.dart'; +import 'package:mimir/school/yellow_pages/entity/contact.dart'; +import 'package:mimir/entity/meta.dart'; class R { const R._(); diff --git a/lib/route.dart b/lib/route.dart index b1d826bed..729af03c4 100644 --- a/lib/route.dart +++ b/lib/route.dart @@ -5,80 +5,80 @@ import 'package:flutter/widgets.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/backend/forum/page/index.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/game/2048/page/index.dart'; -import 'package:sit/game/2048/page/records.dart'; -import 'package:sit/game/index.dart'; -import 'package:sit/game/minesweeper/page/index.dart'; -import 'package:sit/game/page/settings.dart'; -import 'package:sit/game/sudoku/page/index.dart'; -import 'package:sit/game/sudoku/page/records.dart'; -import 'package:sit/game/suika/index.dart'; -import 'package:sit/game/wordle/page/index.dart'; -import 'package:sit/index.dart'; -import 'package:sit/life/page/settings.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/me/edu_email/page/login.dart'; -import 'package:sit/me/edu_email/page/outbox.dart'; -import 'package:sit/school/class2nd/entity/attended.dart'; -import 'package:sit/school/exam_result/page/gpa.dart'; -import 'package:sit/school/exam_result/page/result.pg.dart'; -import 'package:sit/school/library/page/history.dart'; -import 'package:sit/school/library/page/login.dart'; -import 'package:sit/school/library/page/borrowing.dart'; -import 'package:sit/school/student_plan/course_selection/page/index.dart'; -import 'package:sit/school/ywb/entity/service.dart'; -import 'package:sit/school/ywb/page/details.dart'; -import 'package:sit/school/ywb/page/service.dart'; -import 'package:sit/school/ywb/page/application.dart'; -import 'package:sit/settings/page/about.dart'; -import 'package:sit/settings/page/language.dart'; -import 'package:sit/settings/page/proxy.dart'; -import 'package:sit/school/page/settings.dart'; -import 'package:sit/settings/page/storage.dart'; -import 'package:sit/life/expense_records/page/records.dart'; -import 'package:sit/life/expense_records/page/statistics.dart'; -import 'package:sit/life/index.dart'; -import 'package:sit/login/page/index.dart'; -import 'package:sit/me/edu_email/page/inbox.dart'; -import 'package:sit/network/page/index.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/page/theme_color.dart'; -import 'package:sit/timetable/p13n/entity/palette.dart'; -import 'package:sit/timetable/entity/timetable.dart'; -import 'package:sit/timetable/init.dart'; -import 'package:sit/timetable/p13n/page/background.dart'; -import 'package:sit/timetable/p13n/page/cell_style.dart'; -import 'package:sit/timetable/page/edit/editor.dart'; -import 'package:sit/timetable/p13n/page/palette_editor.dart'; -import 'package:sit/timetable/patch/page/patch.dart'; -import 'package:sit/timetable/page/settings.dart'; -import 'package:sit/widgets/inapp_webview/page.dart'; -import 'package:sit/widgets/not_found.dart'; -import 'package:sit/school/oa_announce/entity/announce.dart'; -import 'package:sit/school/oa_announce/page/details.dart'; -import 'package:sit/school/exam_arrange/page/list.dart'; -import 'package:sit/school/oa_announce/page/list.dart'; -import 'package:sit/qrcode/page/scanner.dart'; -import 'package:sit/school/class2nd/page/details.dart'; -import 'package:sit/school/class2nd/page/activity.dart'; -import 'package:sit/school/class2nd/page/attended.dart'; -import 'package:sit/school/exam_result/page/evaluation.dart'; -import 'package:sit/school/exam_result/page/result.ug.dart'; -import 'package:sit/school/yellow_pages/page/index.dart'; -import 'package:sit/settings/page/credentials.dart'; -import 'package:sit/settings/page/developer.dart'; -import 'package:sit/settings/page/index.dart'; -import 'package:sit/me/index.dart'; -import 'package:sit/school/index.dart'; -import 'package:sit/timetable/page/import.dart'; -import 'package:sit/timetable/page/index.dart'; -import 'package:sit/timetable/page/mine.dart'; -import 'package:sit/timetable/p13n/page/palette.dart'; -import 'package:sit/widgets/image.dart'; -import 'package:sit/widgets/webview/page.dart'; +import 'package:mimir/backend/forum/page/index.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/game/2048/page/index.dart'; +import 'package:mimir/game/2048/page/records.dart'; +import 'package:mimir/game/index.dart'; +import 'package:mimir/game/minesweeper/page/index.dart'; +import 'package:mimir/game/page/settings.dart'; +import 'package:mimir/game/sudoku/page/index.dart'; +import 'package:mimir/game/sudoku/page/records.dart'; +import 'package:mimir/game/suika/index.dart'; +import 'package:mimir/game/wordle/page/index.dart'; +import 'package:mimir/index.dart'; +import 'package:mimir/life/page/settings.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/me/edu_email/page/login.dart'; +import 'package:mimir/me/edu_email/page/outbox.dart'; +import 'package:mimir/school/class2nd/entity/attended.dart'; +import 'package:mimir/school/exam_result/page/gpa.dart'; +import 'package:mimir/school/exam_result/page/result.pg.dart'; +import 'package:mimir/school/library/page/history.dart'; +import 'package:mimir/school/library/page/login.dart'; +import 'package:mimir/school/library/page/borrowing.dart'; +import 'package:mimir/school/student_plan/course_selection/page/index.dart'; +import 'package:mimir/school/ywb/entity/service.dart'; +import 'package:mimir/school/ywb/page/details.dart'; +import 'package:mimir/school/ywb/page/service.dart'; +import 'package:mimir/school/ywb/page/application.dart'; +import 'package:mimir/settings/page/about.dart'; +import 'package:mimir/settings/page/language.dart'; +import 'package:mimir/settings/page/proxy.dart'; +import 'package:mimir/school/page/settings.dart'; +import 'package:mimir/settings/page/storage.dart'; +import 'package:mimir/life/expense_records/page/records.dart'; +import 'package:mimir/life/expense_records/page/statistics.dart'; +import 'package:mimir/life/index.dart'; +import 'package:mimir/login/page/index.dart'; +import 'package:mimir/me/edu_email/page/inbox.dart'; +import 'package:mimir/network/page/index.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/page/theme_color.dart'; +import 'package:mimir/timetable/p13n/entity/palette.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; +import 'package:mimir/timetable/init.dart'; +import 'package:mimir/timetable/p13n/page/background.dart'; +import 'package:mimir/timetable/p13n/page/cell_style.dart'; +import 'package:mimir/timetable/page/edit/editor.dart'; +import 'package:mimir/timetable/p13n/page/palette_editor.dart'; +import 'package:mimir/timetable/patch/page/patch.dart'; +import 'package:mimir/timetable/page/settings.dart'; +import 'package:mimir/widgets/inapp_webview/page.dart'; +import 'package:mimir/widgets/not_found.dart'; +import 'package:mimir/school/oa_announce/entity/announce.dart'; +import 'package:mimir/school/oa_announce/page/details.dart'; +import 'package:mimir/school/exam_arrange/page/list.dart'; +import 'package:mimir/school/oa_announce/page/list.dart'; +import 'package:mimir/qrcode/page/scanner.dart'; +import 'package:mimir/school/class2nd/page/details.dart'; +import 'package:mimir/school/class2nd/page/activity.dart'; +import 'package:mimir/school/class2nd/page/attended.dart'; +import 'package:mimir/school/exam_result/page/evaluation.dart'; +import 'package:mimir/school/exam_result/page/result.ug.dart'; +import 'package:mimir/school/yellow_pages/page/index.dart'; +import 'package:mimir/settings/page/credentials.dart'; +import 'package:mimir/settings/page/developer.dart'; +import 'package:mimir/settings/page/index.dart'; +import 'package:mimir/me/index.dart'; +import 'package:mimir/school/index.dart'; +import 'package:mimir/timetable/page/import.dart'; +import 'package:mimir/timetable/page/index.dart'; +import 'package:mimir/timetable/page/mine.dart'; +import 'package:mimir/timetable/p13n/page/palette.dart'; +import 'package:mimir/widgets/image.dart'; +import 'package:mimir/widgets/webview/page.dart'; import 'game/minesweeper/page/records.dart'; diff --git a/lib/school/class2nd/entity/activity.dart b/lib/school/class2nd/entity/activity.dart index 5b2bbf687..34cd4a10f 100644 --- a/lib/school/class2nd/entity/activity.dart +++ b/lib/school/class2nd/entity/activity.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; import 'attended.dart'; diff --git a/lib/school/class2nd/entity/application.dart b/lib/school/class2nd/entity/application.dart index bb85b9f66..c5e893d03 100644 --- a/lib/school/class2nd/entity/application.dart +++ b/lib/school/class2nd/entity/application.dart @@ -3,7 +3,7 @@ import 'dart:core'; import 'package:easy_localization/easy_localization.dart'; import 'activity.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'application.g.dart'; diff --git a/lib/school/class2nd/entity/attended.dart b/lib/school/class2nd/entity/attended.dart index 6d1819ac7..d1d59f110 100644 --- a/lib/school/class2nd/entity/attended.dart +++ b/lib/school/class2nd/entity/attended.dart @@ -3,7 +3,7 @@ import 'dart:core'; import 'package:easy_localization/easy_localization.dart'; import 'activity.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; import 'application.dart'; diff --git a/lib/school/class2nd/entity/details.dart b/lib/school/class2nd/entity/details.dart index 63bd5b016..bdba08854 100644 --- a/lib/school/class2nd/entity/details.dart +++ b/lib/school/class2nd/entity/details.dart @@ -1,4 +1,4 @@ -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'details.g.dart'; diff --git a/lib/school/class2nd/i18n.dart b/lib/school/class2nd/i18n.dart index 8effe74bd..fa36a43ee 100644 --- a/lib/school/class2nd/i18n.dart +++ b/lib/school/class2nd/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/class2nd/index.dart b/lib/school/class2nd/index.dart index bddda5ac4..f29bd302b 100644 --- a/lib/school/class2nd/index.dart +++ b/lib/school/class2nd/index.dart @@ -5,17 +5,17 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' hide isCupertino; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/school/class2nd/widgets/summary.dart'; -import 'package:sit/school/event.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/utils/async_event.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/school/class2nd/widgets/summary.dart'; +import 'package:mimir/school/event.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/utils/async_event.dart'; import 'package:rettulf/rettulf.dart'; import 'package:share_plus/share_plus.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import 'package:super_context_menu/super_context_menu.dart'; import 'entity/attended.dart'; diff --git a/lib/school/class2nd/init.dart b/lib/school/class2nd/init.dart index c7971846f..22d0978ce 100644 --- a/lib/school/class2nd/init.dart +++ b/lib/school/class2nd/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/school/class2nd/service/points.demo.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/class2nd/service/points.demo.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/activity.dart'; import 'service/activity.demo.dart'; diff --git a/lib/school/class2nd/page/activity.dart b/lib/school/class2nd/page/activity.dart index b27394fde..711d42fc5 100644 --- a/lib/school/class2nd/page/activity.dart +++ b/lib/school/class2nd/page/activity.dart @@ -3,10 +3,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/utils/collection.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/utils/collection.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/activity.dart'; import '../init.dart'; diff --git a/lib/school/class2nd/page/attended.dart b/lib/school/class2nd/page/attended.dart index c864e2438..8bb77d345 100644 --- a/lib/school/class2nd/page/attended.dart +++ b/lib/school/class2nd/page/attended.dart @@ -3,19 +3,19 @@ import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/animation/progress.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/animation/progress.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/design/widgets/tags.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/class2nd/entity/activity.dart'; -import 'package:sit/school/class2nd/utils.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/design/widgets/tags.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/class2nd/entity/activity.dart'; +import 'package:mimir/school/class2nd/utils.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/application.dart'; import '../entity/attended.dart'; diff --git a/lib/school/class2nd/page/details.dart b/lib/school/class2nd/page/details.dart index 187157a7e..82e2ce852 100644 --- a/lib/school/class2nd/page/details.dart +++ b/lib/school/class2nd/page/details.dart @@ -1,18 +1,18 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/design/widgets/tags.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/class2nd/service/application.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/guard_launch.dart'; -import 'package:sit/utils/tel.dart'; -import 'package:sit/widgets/html.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/design/widgets/tags.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/class2nd/service/application.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/guard_launch.dart'; +import 'package:mimir/utils/tel.dart'; +import 'package:mimir/widgets/html.dart'; import 'package:rettulf/rettulf.dart'; import 'package:url_launcher/url_launcher_string.dart'; diff --git a/lib/school/class2nd/service/activity.dart b/lib/school/class2nd/service/activity.dart index e82facdaa..ea9b1b466 100644 --- a/lib/school/class2nd/service/activity.dart +++ b/lib/school/class2nd/service/activity.dart @@ -1,9 +1,9 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/session/class2nd.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/session/class2nd.dart'; import '../entity/details.dart'; import '../entity/activity.dart'; diff --git a/lib/school/class2nd/service/activity.demo.dart b/lib/school/class2nd/service/activity.demo.dart index f2f42fa6b..ac01a8a15 100644 --- a/lib/school/class2nd/service/activity.demo.dart +++ b/lib/school/class2nd/service/activity.demo.dart @@ -1,6 +1,6 @@ import 'dart:math'; -import 'package:sit/school/class2nd/entity/details.dart'; +import 'package:mimir/school/class2nd/entity/details.dart'; import '../entity/activity.dart'; import 'activity.dart'; diff --git a/lib/school/class2nd/service/application.dart b/lib/school/class2nd/service/application.dart index 2baac32f9..9da1290f8 100644 --- a/lib/school/class2nd/service/application.dart +++ b/lib/school/class2nd/service/application.dart @@ -1,8 +1,8 @@ import 'package:dio/dio.dart'; import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/class2nd.dart'; +import 'package:mimir/session/class2nd.dart'; enum Class2ndApplicationCheckResponse { successfulCheck, diff --git a/lib/school/class2nd/service/points.dart b/lib/school/class2nd/service/points.dart index 5103c927d..c60b709bb 100644 --- a/lib/school/class2nd/service/points.dart +++ b/lib/school/class2nd/service/points.dart @@ -2,10 +2,10 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; import 'package:intl/intl.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/session/class2nd.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/session/class2nd.dart'; import '../entity/activity.dart'; import '../entity/application.dart'; diff --git a/lib/school/class2nd/storage/activity.dart b/lib/school/class2nd/storage/activity.dart index 794b041a3..1bcc91dbf 100644 --- a/lib/school/class2nd/storage/activity.dart +++ b/lib/school/class2nd/storage/activity.dart @@ -1,6 +1,6 @@ import 'package:hive/hive.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/details.dart'; import '../entity/activity.dart'; diff --git a/lib/school/class2nd/storage/points.dart b/lib/school/class2nd/storage/points.dart index 1d6be8265..160ffb147 100644 --- a/lib/school/class2nd/storage/points.dart +++ b/lib/school/class2nd/storage/points.dart @@ -1,7 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/application.dart'; import '../entity/attended.dart'; diff --git a/lib/school/class2nd/utils.dart b/lib/school/class2nd/utils.dart index 9d893eb04..ac915c206 100644 --- a/lib/school/class2nd/utils.dart +++ b/lib/school/class2nd/utils.dart @@ -1,4 +1,4 @@ -import 'package:sit/school/class2nd/entity/activity.dart'; +import 'package:mimir/school/class2nd/entity/activity.dart'; import 'entity/application.dart'; import 'entity/attended.dart'; diff --git a/lib/school/class2nd/widgets/activity.dart b/lib/school/class2nd/widgets/activity.dart index 06ec79a85..2abfa0032 100644 --- a/lib/school/class2nd/widgets/activity.dart +++ b/lib/school/class2nd/widgets/activity.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/tags.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/design/widgets/tags.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/activity.dart'; diff --git a/lib/school/class2nd/widgets/search.dart b/lib/school/class2nd/widgets/search.dart index dc8ffe4f0..67990f693 100644 --- a/lib/school/class2nd/widgets/search.dart +++ b/lib/school/class2nd/widgets/search.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; import '../entity/activity.dart'; import '../init.dart'; diff --git a/lib/school/entity/school.dart b/lib/school/entity/school.dart index cade65e18..9dd2b7c79 100644 --- a/lib/school/entity/school.dart +++ b/lib/school/entity/school.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'school.g.dart'; diff --git a/lib/school/entity/timetable.dart b/lib/school/entity/timetable.dart index 2f8bccf80..da07c98e6 100644 --- a/lib/school/entity/timetable.dart +++ b/lib/school/entity/timetable.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/l10n/extension.dart'; class TimePoint { final int hour; diff --git a/lib/school/event.dart b/lib/school/event.dart index 89baad9fe..c170f1395 100644 --- a/lib/school/event.dart +++ b/lib/school/event.dart @@ -1,3 +1,3 @@ -import 'package:sit/utils/async_event.dart'; +import 'package:mimir/utils/async_event.dart'; final schoolEventBus = AsyncEventEmitter(); diff --git a/lib/school/exam_arrange/entity/exam.dart b/lib/school/exam_arrange/entity/exam.dart index c5b95199f..39173ab12 100644 --- a/lib/school/exam_arrange/entity/exam.dart +++ b/lib/school/exam_arrange/entity/exam.dart @@ -1,9 +1,9 @@ import 'package:flutter/widgets.dart'; import 'package:intl/intl.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/utils/date.dart'; part 'exam.g.dart'; diff --git a/lib/school/exam_arrange/i18n.dart b/lib/school/exam_arrange/i18n.dart index f23b0025c..fbae0f953 100644 --- a/lib/school/exam_arrange/i18n.dart +++ b/lib/school/exam_arrange/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/exam_arrange/index.dart b/lib/school/exam_arrange/index.dart index 0f376e5ee..81894cf73 100644 --- a/lib/school/exam_arrange/index.dart +++ b/lib/school/exam_arrange/index.dart @@ -6,11 +6,11 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:share_plus/share_plus.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/school/exam_arrange/entity/exam.dart'; -import 'package:sit/school/exam_arrange/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/school/exam_arrange/entity/exam.dart'; +import 'package:mimir/school/exam_arrange/init.dart'; import 'package:rettulf/rettulf.dart'; import 'package:super_context_menu/super_context_menu.dart'; import 'package:universal_platform/universal_platform.dart'; diff --git a/lib/school/exam_arrange/init.dart b/lib/school/exam_arrange/init.dart index 56dfa49fc..a6cc94e1e 100644 --- a/lib/school/exam_arrange/init.dart +++ b/lib/school/exam_arrange/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/school/exam_arrange/storage/exam.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/exam_arrange/storage/exam.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/exam.dart'; import 'service/exam.demo.dart'; diff --git a/lib/school/exam_arrange/page/list.dart b/lib/school/exam_arrange/page/list.dart index 753f94ab4..1f8519103 100644 --- a/lib/school/exam_arrange/page/list.dart +++ b/lib/school/exam_arrange/page/list.dart @@ -2,12 +2,12 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/school/widgets/semester.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/school/widgets/semester.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/exam.dart'; import '../i18n.dart'; diff --git a/lib/school/exam_arrange/service/exam.dart b/lib/school/exam_arrange/service/exam.dart index 4ea8fc85f..cc056873d 100644 --- a/lib/school/exam_arrange/service/exam.dart +++ b/lib/school/exam_arrange/service/exam.dart @@ -1,10 +1,10 @@ import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/ug_registration.dart'; +import 'package:mimir/session/ug_registration.dart'; import '../entity/exam.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/school/entity/school.dart'; class ExamArrangeService { static const _examRoomUrl = 'http://jwxt.sit.edu.cn/jwglxt/kwgl/kscx_cxXsksxxIndex.html'; diff --git a/lib/school/exam_arrange/service/exam.demo.dart b/lib/school/exam_arrange/service/exam.demo.dart index 82853d6e1..568920793 100644 --- a/lib/school/exam_arrange/service/exam.demo.dart +++ b/lib/school/exam_arrange/service/exam.demo.dart @@ -1,5 +1,5 @@ import '../entity/exam.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/school/entity/school.dart'; import 'exam.dart'; diff --git a/lib/school/exam_arrange/storage/exam.dart b/lib/school/exam_arrange/storage/exam.dart index c0c88dfc9..fbb73ecea 100644 --- a/lib/school/exam_arrange/storage/exam.dart +++ b/lib/school/exam_arrange/storage/exam.dart @@ -1,8 +1,8 @@ import 'package:hive/hive.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/utils/json.dart'; import '../entity/exam.dart'; diff --git a/lib/school/exam_arrange/widgets/exam.dart b/lib/school/exam_arrange/widgets/exam.dart index 3ce69ed1d..0a54f7729 100644 --- a/lib/school/exam_arrange/widgets/exam.dart +++ b/lib/school/exam_arrange/widgets/exam.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; import 'package:add_2_calendar/add_2_calendar.dart'; -import 'package:sit/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; import 'package:universal_platform/universal_platform.dart'; import '../i18n.dart'; diff --git a/lib/school/exam_result/aggregated.dart b/lib/school/exam_result/aggregated.dart index cb610b6ca..49168151a 100644 --- a/lib/school/exam_result/aggregated.dart +++ b/lib/school/exam_result/aggregated.dart @@ -1,5 +1,5 @@ import 'package:collection/collection.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/school/entity/school.dart'; import 'entity/result.ug.dart'; import 'init.dart'; diff --git a/lib/school/exam_result/entity/gpa.dart b/lib/school/exam_result/entity/gpa.dart index 0b4a2dd44..af5c2faa4 100644 --- a/lib/school/exam_result/entity/gpa.dart +++ b/lib/school/exam_result/entity/gpa.dart @@ -1,6 +1,6 @@ import 'package:collection/collection.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/exam_result/entity/result.ug.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/exam_result/entity/result.ug.dart'; class ExamResultGpaItem { // for multi-selection diff --git a/lib/school/exam_result/entity/result.pg.dart b/lib/school/exam_result/entity/result.pg.dart index 18774ad4a..593fc1c0a 100644 --- a/lib/school/exam_result/entity/result.pg.dart +++ b/lib/school/exam_result/entity/result.pg.dart @@ -1,4 +1,4 @@ -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'result.pg.g.dart'; diff --git a/lib/school/exam_result/entity/result.ug.dart b/lib/school/exam_result/entity/result.ug.dart index 1918bcec5..d7a517d8c 100644 --- a/lib/school/exam_result/entity/result.ug.dart +++ b/lib/school/exam_result/entity/result.ug.dart @@ -2,10 +2,10 @@ import 'package:collection/collection.dart'; import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/storage/hive/type_id.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/storage/hive/type_id.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/utils/date.dart'; part 'result.ug.g.dart'; diff --git a/lib/school/exam_result/i18n.dart b/lib/school/exam_result/i18n.dart index a338eeb4c..f71c63525 100644 --- a/lib/school/exam_result/i18n.dart +++ b/lib/school/exam_result/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/school/i18n.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/school/i18n.dart'; const i18n = _I18n(); diff --git a/lib/school/exam_result/index.pg.dart b/lib/school/exam_result/index.pg.dart index 9bcbfc608..35806a6a8 100644 --- a/lib/school/exam_result/index.pg.dart +++ b/lib/school/exam_result/index.pg.dart @@ -2,10 +2,10 @@ import 'package:carousel_slider_plus/carousel_slider_plus.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/school/exam_result/init.dart'; -import 'package:sit/school/exam_result/widgets/pg.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/school/exam_result/init.dart'; +import 'package:mimir/school/exam_result/widgets/pg.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import 'entity/result.pg.dart'; diff --git a/lib/school/exam_result/index.ug.dart b/lib/school/exam_result/index.ug.dart index c851530d8..0664839c4 100644 --- a/lib/school/exam_result/index.ug.dart +++ b/lib/school/exam_result/index.ug.dart @@ -4,13 +4,13 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/school/exam_result/init.dart'; -import 'package:sit/school/exam_result/widgets/ug.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/school/exam_result/init.dart'; +import 'package:mimir/school/exam_result/widgets/ug.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:universal_platform/universal_platform.dart'; import 'entity/result.ug.dart'; diff --git a/lib/school/exam_result/init.dart b/lib/school/exam_result/init.dart index 6a71c232d..4973c0b95 100644 --- a/lib/school/exam_result/init.dart +++ b/lib/school/exam_result/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/school/exam_result/service/result.ug.demo.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/exam_result/service/result.ug.demo.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/result.pg.dart'; import 'service/result.pg.demo.dart'; diff --git a/lib/school/exam_result/page/details.gpa.dart b/lib/school/exam_result/page/details.gpa.dart index d44e9b95c..5413edc69 100644 --- a/lib/school/exam_result/page/details.gpa.dart +++ b/lib/school/exam_result/page/details.gpa.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/exam_result/entity/gpa.dart'; -import 'package:sit/school/exam_result/widgets/ug.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/exam_result/entity/gpa.dart'; +import 'package:mimir/school/exam_result/widgets/ug.dart'; import '../i18n.dart'; class ExamResultGpaItemDetailsPage extends StatefulWidget { diff --git a/lib/school/exam_result/page/details.ug.dart b/lib/school/exam_result/page/details.ug.dart index 9c4110e66..2d9471624 100644 --- a/lib/school/exam_result/page/details.ug.dart +++ b/lib/school/exam_result/page/details.ug.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/design/widgets/navigation.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/exam_result/entity/result.ug.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/design/widgets/navigation.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/exam_result/entity/result.ug.dart'; import '../i18n.dart'; class ExamResultUgDetailsPage extends StatefulWidget { diff --git a/lib/school/exam_result/page/evaluation.dart b/lib/school/exam_result/page/evaluation.dart index 5b3c1313f..7e3742929 100644 --- a/lib/school/exam_result/page/evaluation.dart +++ b/lib/school/exam_result/page/evaluation.dart @@ -2,12 +2,12 @@ import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/cookies.dart'; -import 'package:sit/widgets/webview/injectable.dart'; -import 'package:sit/widgets/webview/page.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/cookies.dart'; +import 'package:mimir/widgets/webview/injectable.dart'; +import 'package:mimir/widgets/webview/page.dart'; import 'package:rettulf/rettulf.dart'; import 'package:webview_flutter/webview_flutter.dart'; diff --git a/lib/school/exam_result/page/gpa.dart b/lib/school/exam_result/page/gpa.dart index 95d9a45a1..5ef312653 100644 --- a/lib/school/exam_result/page/gpa.dart +++ b/lib/school/exam_result/page/gpa.dart @@ -2,16 +2,16 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/design/widgets/grouped.dart'; -import 'package:sit/design/widgets/multi_select.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/exam_result/entity/gpa.dart'; -import 'package:sit/school/exam_result/entity/result.ug.dart'; -import 'package:sit/school/exam_result/init.dart'; -import 'package:sit/school/exam_result/page/details.gpa.dart'; -import 'package:sit/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/design/widgets/grouped.dart'; +import 'package:mimir/design/widgets/multi_select.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/exam_result/entity/gpa.dart'; +import 'package:mimir/school/exam_result/entity/result.ug.dart'; +import 'package:mimir/school/exam_result/init.dart'; +import 'package:mimir/school/exam_result/page/details.gpa.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; import 'package:text_scroll/text_scroll.dart'; import '../i18n.dart'; diff --git a/lib/school/exam_result/page/result.pg.dart b/lib/school/exam_result/page/result.pg.dart index b9e9be3b0..28cd8300b 100644 --- a/lib/school/exam_result/page/result.pg.dart +++ b/lib/school/exam_result/page/result.pg.dart @@ -1,8 +1,8 @@ import 'package:fit_system_screenshot/fit_system_screenshot.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/result.pg.dart'; import '../init.dart'; diff --git a/lib/school/exam_result/page/result.ug.dart b/lib/school/exam_result/page/result.ug.dart index aff2dc040..1b2f33f35 100644 --- a/lib/school/exam_result/page/result.ug.dart +++ b/lib/school/exam_result/page/result.ug.dart @@ -2,16 +2,16 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/animation/progress.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/design/widgets/fab.dart'; -import 'package:sit/school/exam_result/aggregated.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/school/widgets/semester.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/animation/progress.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/design/widgets/fab.dart'; +import 'package:mimir/school/exam_result/aggregated.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/school/widgets/semester.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/result.ug.dart'; import '../init.dart'; diff --git a/lib/school/exam_result/service/result.pg.dart b/lib/school/exam_result/service/result.pg.dart index 503bff2a5..a21979c9f 100644 --- a/lib/school/exam_result/service/result.pg.dart +++ b/lib/school/exam_result/service/result.pg.dart @@ -1,8 +1,8 @@ import 'package:dio/dio.dart'; import 'package:html/parser.dart'; -import 'package:sit/init.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/session/pg_registration.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/session/pg_registration.dart'; import '../entity/result.pg.dart'; diff --git a/lib/school/exam_result/service/result.ug.dart b/lib/school/exam_result/service/result.ug.dart index 1cca5b50b..de27ccb09 100644 --- a/lib/school/exam_result/service/result.ug.dart +++ b/lib/school/exam_result/service/result.ug.dart @@ -1,10 +1,10 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/design/animation/progress.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/design/animation/progress.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/session/ug_registration.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/session/ug_registration.dart'; import '../entity/result.ug.dart'; diff --git a/lib/school/exam_result/service/result.ug.demo.dart b/lib/school/exam_result/service/result.ug.demo.dart index 8580459da..0fe59ebec 100644 --- a/lib/school/exam_result/service/result.ug.demo.dart +++ b/lib/school/exam_result/service/result.ug.demo.dart @@ -1,7 +1,7 @@ import 'dart:math'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/utils.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/utils.dart'; import '../entity/result.ug.dart'; import 'result.ug.dart'; diff --git a/lib/school/exam_result/storage/result.pg.dart b/lib/school/exam_result/storage/result.pg.dart index 556985482..0be34136c 100644 --- a/lib/school/exam_result/storage/result.pg.dart +++ b/lib/school/exam_result/storage/result.pg.dart @@ -1,7 +1,7 @@ -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/school/exam_result/entity/result.pg.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/school/exam_result/entity/result.pg.dart'; +import 'package:mimir/storage/hive/init.dart'; class _K { static const ns = "/pg"; diff --git a/lib/school/exam_result/storage/result.ug.dart b/lib/school/exam_result/storage/result.ug.dart index c04efe554..6a27e6cd8 100644 --- a/lib/school/exam_result/storage/result.ug.dart +++ b/lib/school/exam_result/storage/result.ug.dart @@ -1,8 +1,8 @@ import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/school/entity/school.dart'; import '../entity/result.ug.dart'; diff --git a/lib/school/exam_result/utils.dart b/lib/school/exam_result/utils.dart index a61c3d128..eb459269d 100644 --- a/lib/school/exam_result/utils.dart +++ b/lib/school/exam_result/utils.dart @@ -1,5 +1,5 @@ import 'package:collection/collection.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/school/entity/school.dart'; import 'entity/gpa.dart'; import 'entity/result.ug.dart'; diff --git a/lib/school/exam_result/widgets/pg.dart b/lib/school/exam_result/widgets/pg.dart index 54bc5feed..3c2b16817 100644 --- a/lib/school/exam_result/widgets/pg.dart +++ b/lib/school/exam_result/widgets/pg.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/widgets/card.dart'; -import 'package:sit/school/widgets/course.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/widgets/card.dart'; +import 'package:mimir/school/widgets/course.dart'; import 'package:rettulf/rettulf.dart'; import 'package:text_scroll/text_scroll.dart'; diff --git a/lib/school/exam_result/widgets/ug.dart b/lib/school/exam_result/widgets/ug.dart index e43dad7c6..fc43e48ed 100644 --- a/lib/school/exam_result/widgets/ug.dart +++ b/lib/school/exam_result/widgets/ug.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/school/exam_result/page/details.ug.dart'; -import 'package:sit/school/widgets/course.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/school/exam_result/page/details.ug.dart'; +import 'package:mimir/school/widgets/course.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/school/i18n.dart b/lib/school/i18n.dart index 15ba469f3..b78d396fe 100644 --- a/lib/school/i18n.dart +++ b/lib/school/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/index.dart b/lib/school/index.dart index 9f8220e04..361095654 100644 --- a/lib/school/index.dart +++ b/lib/school/index.dart @@ -1,21 +1,21 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/school/class2nd/index.dart'; -import 'package:sit/school/event.dart'; -import 'package:sit/school/exam_arrange/index.dart'; -import 'package:sit/school/exam_result/index.pg.dart'; -import 'package:sit/school/exam_result/index.ug.dart'; -import 'package:sit/school/library/index.dart'; -import 'package:sit/school/oa_announce/index.dart'; -import 'package:sit/school/student_plan/card.dart'; -import 'package:sit/school/yellow_pages/card.dart'; -import 'package:sit/school/ywb/index.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/school/class2nd/index.dart'; +import 'package:mimir/school/event.dart'; +import 'package:mimir/school/exam_arrange/index.dart'; +import 'package:mimir/school/exam_result/index.pg.dart'; +import 'package:mimir/school/exam_result/index.ug.dart'; +import 'package:mimir/school/library/index.dart'; +import 'package:mimir/school/oa_announce/index.dart'; +import 'package:mimir/school/student_plan/card.dart'; +import 'package:mimir/school/yellow_pages/card.dart'; +import 'package:mimir/school/ywb/index.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/settings/dev.dart'; import 'i18n.dart'; class SchoolPage extends ConsumerStatefulWidget { diff --git a/lib/school/init.dart b/lib/school/init.dart index 685b0504b..a197a2b83 100644 --- a/lib/school/init.dart +++ b/lib/school/init.dart @@ -1,4 +1,4 @@ -import 'package:sit/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/editor.dart'; import 'entity/school.dart'; diff --git a/lib/school/library/entity/book.dart b/lib/school/library/entity/book.dart index 4b5872960..9678b76b8 100644 --- a/lib/school/library/entity/book.dart +++ b/lib/school/library/entity/book.dart @@ -1,4 +1,4 @@ -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part "book.g.dart"; diff --git a/lib/school/library/entity/borrow.dart b/lib/school/library/entity/borrow.dart index 477d6f768..48335c283 100644 --- a/lib/school/library/entity/borrow.dart +++ b/lib/school/library/entity/borrow.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part "borrow.g.dart"; diff --git a/lib/school/library/entity/image.dart b/lib/school/library/entity/image.dart index cb20487a4..c245d7f9a 100644 --- a/lib/school/library/entity/image.dart +++ b/lib/school/library/entity/image.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'image.g.dart'; diff --git a/lib/school/library/i18n.dart b/lib/school/library/i18n.dart index 5c9ed2e62..e1ff109da 100644 --- a/lib/school/library/i18n.dart +++ b/lib/school/library/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/login/i18n.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/login/i18n.dart'; const i18n = _I18n(); diff --git a/lib/school/library/index.dart b/lib/school/library/index.dart index 111390364..ea4621b14 100644 --- a/lib/school/library/index.dart +++ b/lib/school/library/index.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/school/library/page/borrowing.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/school/library/page/borrowing.dart'; import 'package:super_context_menu/super_context_menu.dart'; import './i18n.dart'; diff --git a/lib/school/library/init.dart b/lib/school/library/init.dart index 3940df4e0..f77e98c75 100644 --- a/lib/school/library/init.dart +++ b/lib/school/library/init.dart @@ -1,7 +1,7 @@ -import 'package:sit/school/library/service/auth.dart'; -import 'package:sit/school/library/storage/book.dart'; -import 'package:sit/school/library/storage/borrow.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/library/service/auth.dart'; +import 'package:mimir/school/library/storage/book.dart'; +import 'package:mimir/school/library/storage/borrow.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/book.demo.dart'; import 'service/details.dart'; diff --git a/lib/school/library/page/borrowing.dart b/lib/school/library/page/borrowing.dart index 17e71878d..da9e8f365 100644 --- a/lib/school/library/page/borrowing.dart +++ b/lib/school/library/page/borrowing.dart @@ -2,13 +2,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/widgets/card.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/library/init.dart'; -import 'package:sit/school/library/utils.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/widgets/card.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/library/init.dart'; +import 'package:mimir/school/library/utils.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/borrow.dart'; import '../i18n.dart'; diff --git a/lib/school/library/page/details.dart b/lib/school/library/page/details.dart index d7b035147..6d81a55bd 100644 --- a/lib/school/library/page/details.dart +++ b/lib/school/library/page/details.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/school/library/aggregated.dart'; -import 'package:sit/school/library/page/details.model.dart'; -import 'package:sit/school/library/widgets/book.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/school/library/aggregated.dart'; +import 'package:mimir/school/library/page/details.model.dart'; +import 'package:mimir/school/library/widgets/book.dart'; +import 'package:mimir/utils/error.dart'; import 'package:text_scroll/text_scroll.dart'; import '../entity/book.dart'; diff --git a/lib/school/library/page/history.dart b/lib/school/library/page/history.dart index 57ca802d9..8855e4276 100644 --- a/lib/school/library/page/history.dart +++ b/lib/school/library/page/history.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/library/init.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/library/init.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/borrow.dart'; import '../i18n.dart'; diff --git a/lib/school/library/page/login.dart b/lib/school/library/page/login.dart index 982ad602b..34deafa00 100644 --- a/lib/school/library/page/login.dart +++ b/lib/school/library/page/login.dart @@ -1,15 +1,15 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/login/utils.dart'; -import 'package:sit/login/widgets/forgot_pwd.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/login/utils.dart'; +import 'package:mimir/login/widgets/forgot_pwd.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/school/library/api.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/school/library/api.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/error.dart'; import '../init.dart'; import '../i18n.dart'; diff --git a/lib/school/library/page/search.dart b/lib/school/library/page/search.dart index 400d5ab7d..546fb4073 100644 --- a/lib/school/library/page/search.dart +++ b/lib/school/library/page/search.dart @@ -3,9 +3,9 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/school/library/storage/search.dart'; -import 'package:sit/school/library/widgets/search.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/school/library/storage/search.dart'; +import 'package:mimir/school/library/widgets/search.dart'; import '../entity/search.dart'; import '../init.dart'; diff --git a/lib/school/library/page/search_result.dart b/lib/school/library/page/search_result.dart index 2dabdacb9..c772575a3 100644 --- a/lib/school/library/page/search_result.dart +++ b/lib/school/library/page/search_result.dart @@ -2,13 +2,13 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/school/library/page/details.model.dart'; -import 'package:sit/school/library/widgets/book.dart'; -import 'package:sit/school/library/widgets/search.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/school/library/page/details.model.dart'; +import 'package:mimir/school/library/widgets/book.dart'; +import 'package:mimir/school/library/widgets/search.dart'; import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/book.dart'; import '../entity/search.dart'; diff --git a/lib/school/library/service/auth.dart b/lib/school/library/service/auth.dart index 390515807..7f47baa94 100644 --- a/lib/school/library/service/auth.dart +++ b/lib/school/library/service/auth.dart @@ -4,10 +4,10 @@ import 'package:crypto/crypto.dart'; import 'package:dio/dio.dart'; import 'package:encrypt/encrypt.dart'; import 'package:pointycastle/pointycastle.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/error.dart'; -import 'package:sit/init.dart'; -import 'package:sit/utils/dio.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/error.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/utils/dio.dart'; const _opacUrl = 'http://210.35.66.106/opac'; const _pemUrl = '$_opacUrl/certificate/pem'; diff --git a/lib/school/library/service/book.dart b/lib/school/library/service/book.dart index 09bf83714..3c6cb0810 100644 --- a/lib/school/library/service/book.dart +++ b/lib/school/library/service/book.dart @@ -1,8 +1,8 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../entity/book.dart'; import '../api.dart'; diff --git a/lib/school/library/service/borrow.dart b/lib/school/library/service/borrow.dart index 1d198260d..4af0fbc62 100644 --- a/lib/school/library/service/borrow.dart +++ b/lib/school/library/service/borrow.dart @@ -1,9 +1,9 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; import 'package:intl/intl.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../entity/borrow.dart'; import '../api.dart'; diff --git a/lib/school/library/service/collection.dart b/lib/school/library/service/collection.dart index 3835f4ee7..324ee2af7 100644 --- a/lib/school/library/service/collection.dart +++ b/lib/school/library/service/collection.dart @@ -1,8 +1,8 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../entity/collection.dart'; import '../api.dart'; diff --git a/lib/school/library/service/collection_preview.dart b/lib/school/library/service/collection_preview.dart index c4ca6a849..220655be3 100644 --- a/lib/school/library/service/collection_preview.dart +++ b/lib/school/library/service/collection_preview.dart @@ -1,7 +1,7 @@ import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../entity/collection_preview.dart'; import '../api.dart'; diff --git a/lib/school/library/service/details.dart b/lib/school/library/service/details.dart index 2c8033865..2adef8642 100644 --- a/lib/school/library/service/details.dart +++ b/lib/school/library/service/details.dart @@ -2,9 +2,9 @@ import 'dart:collection'; import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../api.dart'; import '../entity/book.dart'; diff --git a/lib/school/library/service/image_search.dart b/lib/school/library/service/image_search.dart index 6b09e4082..1e3cae63c 100644 --- a/lib/school/library/service/image_search.dart +++ b/lib/school/library/service/image_search.dart @@ -1,9 +1,9 @@ import 'dart:convert'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../entity/image.dart'; import '../api.dart'; diff --git a/lib/school/library/service/trends.dart b/lib/school/library/service/trends.dart index e7da168e1..87aac9159 100644 --- a/lib/school/library/service/trends.dart +++ b/lib/school/library/service/trends.dart @@ -1,8 +1,8 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/library.dart'; +import 'package:mimir/session/library.dart'; import '../api.dart'; import '../entity/search.dart'; diff --git a/lib/school/library/storage/book.dart b/lib/school/library/storage/book.dart index 0ddadce0d..584257d1e 100644 --- a/lib/school/library/storage/book.dart +++ b/lib/school/library/storage/book.dart @@ -1,6 +1,6 @@ import 'package:hive/hive.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/book.dart'; diff --git a/lib/school/library/storage/borrow.dart b/lib/school/library/storage/borrow.dart index 976039a18..6a2b0d3a7 100644 --- a/lib/school/library/storage/borrow.dart +++ b/lib/school/library/storage/borrow.dart @@ -1,6 +1,6 @@ -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/borrow.dart'; diff --git a/lib/school/library/storage/browse.dart b/lib/school/library/storage/browse.dart index 5824bc497..9f5760563 100644 --- a/lib/school/library/storage/browse.dart +++ b/lib/school/library/storage/browse.dart @@ -1,6 +1,6 @@ import 'package:hive/hive.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; class _K { static const ns = "/library/browse"; diff --git a/lib/school/library/storage/image.dart b/lib/school/library/storage/image.dart index d71af27a9..63c627a05 100644 --- a/lib/school/library/storage/image.dart +++ b/lib/school/library/storage/image.dart @@ -1,6 +1,6 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; import '../entity/image.dart'; diff --git a/lib/school/library/storage/search.dart b/lib/school/library/storage/search.dart index 3bc96d4de..7b0f18aaf 100644 --- a/lib/school/library/storage/search.dart +++ b/lib/school/library/storage/search.dart @@ -1,9 +1,9 @@ import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/collection.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/collection.dart'; +import 'package:mimir/utils/json.dart'; import '../entity/search.dart'; class _K { diff --git a/lib/school/library/utils.dart b/lib/school/library/utils.dart index 519db6e90..ef145d88c 100644 --- a/lib/school/library/utils.dart +++ b/lib/school/library/utils.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/utils/error.dart'; import 'init.dart'; import 'i18n.dart'; diff --git a/lib/school/library/widgets/book.dart b/lib/school/library/widgets/book.dart index 4aa1aeec9..ca94fe5b6 100644 --- a/lib/school/library/widgets/book.dart +++ b/lib/school/library/widgets/book.dart @@ -1,6 +1,6 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../aggregated.dart'; import '../entity/image.dart'; diff --git a/lib/school/oa_announce/entity/announce.dart b/lib/school/oa_announce/entity/announce.dart index 0da08ed0a..3fbfc4b9f 100644 --- a/lib/school/oa_announce/entity/announce.dart +++ b/lib/school/oa_announce/entity/announce.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'announce.g.dart'; diff --git a/lib/school/oa_announce/i18n.dart b/lib/school/oa_announce/i18n.dart index 0d3112a36..677c0a929 100644 --- a/lib/school/oa_announce/i18n.dart +++ b/lib/school/oa_announce/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/oa_announce/index.dart b/lib/school/oa_announce/index.dart index 2e79e5f4c..20751326b 100644 --- a/lib/school/oa_announce/index.dart +++ b/lib/school/oa_announce/index.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/app.dart'; +import 'package:mimir/design/widgets/app.dart'; import 'package:rettulf/rettulf.dart'; import "i18n.dart"; diff --git a/lib/school/oa_announce/init.dart b/lib/school/oa_announce/init.dart index 633e2e57f..ad05543a4 100644 --- a/lib/school/oa_announce/init.dart +++ b/lib/school/oa_announce/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/school/oa_announce/service/announce.demo.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/oa_announce/service/announce.demo.dart'; +import 'package:mimir/settings/dev.dart'; import 'storage/announce.dart'; diff --git a/lib/school/oa_announce/page/details.dart b/lib/school/oa_announce/page/details.dart index 97e650ae5..cd08a286f 100644 --- a/lib/school/oa_announce/page/details.dart +++ b/lib/school/oa_announce/page/details.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/design/widgets/tags.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/school/class2nd/utils.dart'; -import 'package:sit/school/oa_announce/widget/article.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/design/widgets/tags.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/school/class2nd/utils.dart'; +import 'package:mimir/school/oa_announce/widget/article.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import 'package:url_launcher/url_launcher_string.dart'; import '../entity/announce.dart'; diff --git a/lib/school/oa_announce/page/list.dart b/lib/school/oa_announce/page/list.dart index a227f001a..8b77d7627 100644 --- a/lib/school/oa_announce/page/list.dart +++ b/lib/school/oa_announce/page/list.dart @@ -3,13 +3,13 @@ import 'dart:math'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/widgets/common.dart'; -import 'package:sit/school/oa_announce/widget/tile.dart'; +import 'package:mimir/school/oa_announce/widget/tile.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/collection.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/collection.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/announce.dart'; import '../init.dart'; diff --git a/lib/school/oa_announce/service/announce.dart b/lib/school/oa_announce/service/announce.dart index 4fbe80869..879cb9390 100644 --- a/lib/school/oa_announce/service/announce.dart +++ b/lib/school/oa_announce/service/announce.dart @@ -2,9 +2,9 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:intl/intl.dart'; -import 'package:sit/init.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/session/sso.dart'; import '../entity/announce.dart'; import '../entity/page.dart'; diff --git a/lib/school/oa_announce/service/announce.demo.dart b/lib/school/oa_announce/service/announce.demo.dart index d39583546..adcf11e32 100644 --- a/lib/school/oa_announce/service/announce.demo.dart +++ b/lib/school/oa_announce/service/announce.demo.dart @@ -1,9 +1,9 @@ import 'dart:math'; import 'package:flame/extensions.dart'; -import 'package:sit/school/oa_announce/entity/announce.dart'; +import 'package:mimir/school/oa_announce/entity/announce.dart'; -import 'package:sit/school/oa_announce/entity/page.dart'; +import 'package:mimir/school/oa_announce/entity/page.dart'; import 'announce.dart'; diff --git a/lib/school/oa_announce/storage/announce.dart b/lib/school/oa_announce/storage/announce.dart index 8ddcb5ffd..509f9e243 100644 --- a/lib/school/oa_announce/storage/announce.dart +++ b/lib/school/oa_announce/storage/announce.dart @@ -1,6 +1,6 @@ -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/announce.dart'; diff --git a/lib/school/oa_announce/widget/article.dart b/lib/school/oa_announce/widget/article.dart index f827f2228..e77fc045c 100644 --- a/lib/school/oa_announce/widget/article.dart +++ b/lib/school/oa_announce/widget/article.dart @@ -1,8 +1,8 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; -import 'package:sit/utils/tel.dart'; -import 'package:sit/widgets/html.dart'; +import 'package:mimir/utils/tel.dart'; +import 'package:mimir/widgets/html.dart'; import '../entity/announce.dart'; diff --git a/lib/school/oa_announce/widget/attachment.dart b/lib/school/oa_announce/widget/attachment.dart index b95e46e5b..421881518 100644 --- a/lib/school/oa_announce/widget/attachment.dart +++ b/lib/school/oa_announce/widget/attachment.dart @@ -3,12 +3,12 @@ import 'dart:io'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:sanitize_filename/sanitize_filename.dart'; -import 'package:sit/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; import 'package:open_file/open_file.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/files.dart'; -import 'package:sit/init.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/announce.dart'; import '../i18n.dart'; diff --git a/lib/school/oa_announce/widget/tile.dart b/lib/school/oa_announce/widget/tile.dart index 97e351897..fd4bb7998 100644 --- a/lib/school/oa_announce/widget/tile.dart +++ b/lib/school/oa_announce/widget/tile.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/tags.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/design/widgets/tags.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/school/class2nd/utils.dart'; +import 'package:mimir/school/class2nd/utils.dart'; import '../entity/announce.dart'; diff --git a/lib/school/page/settings.dart b/lib/school/page/settings.dart index ad7f24526..f6b70bbf5 100644 --- a/lib/school/page/settings.dart +++ b/lib/school/page/settings.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/school/settings.dart b/lib/school/settings.dart index 5cd04cf79..c3d91c4cf 100644 --- a/lib/school/settings.dart +++ b/lib/school/settings.dart @@ -1,5 +1,5 @@ import 'package:flutter/cupertino.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; const _kClass2ndAutoRefresh = true; diff --git a/lib/school/student_plan/card.dart b/lib/school/student_plan/card.dart index c568a9c3e..8e843129f 100644 --- a/lib/school/student_plan/card.dart +++ b/lib/school/student_plan/card.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/app.dart'; +import 'package:mimir/design/widgets/app.dart'; import 'package:rettulf/rettulf.dart'; class StudentPlanAppCard extends StatefulWidget { diff --git a/lib/school/student_plan/course_selection/service/service.dart b/lib/school/student_plan/course_selection/service/service.dart index d967a175e..9a4fa5527 100644 --- a/lib/school/student_plan/course_selection/service/service.dart +++ b/lib/school/student_plan/course_selection/service/service.dart @@ -1,5 +1,5 @@ -import 'package:sit/init.dart'; -import 'package:sit/session/ug_registration.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/session/ug_registration.dart'; class CourseSelectionService { UgRegistrationSession get _session => Init.ugRegSession; diff --git a/lib/school/utils.dart b/lib/school/utils.dart index 773cfb62c..6599361d5 100644 --- a/lib/school/utils.dart +++ b/lib/school/utils.dart @@ -1,5 +1,5 @@ -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/entity/school.dart'; /// 将 "第几周、周几" 转换为日期. 如, 开学日期为 2021-9-1, 那么将第一周周一转换为 2021-9-1 DateTime reflectWeekDayIndexToDate({ diff --git a/lib/school/widgets/campus.dart b/lib/school/widgets/campus.dart index 8cad2e1c4..c5ebf4b88 100644 --- a/lib/school/widgets/campus.dart +++ b/lib/school/widgets/campus.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; class CampusSelector extends ConsumerWidget { diff --git a/lib/school/widgets/course.dart b/lib/school/widgets/course.dart index 9d5f18d5e..a17a51e07 100644 --- a/lib/school/widgets/course.dart +++ b/lib/school/widgets/course.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/school/entity/icon.dart'; +import 'package:mimir/school/entity/icon.dart'; class CourseIcon extends StatelessWidget { final String courseName; diff --git a/lib/school/widgets/semester.dart b/lib/school/widgets/semester.dart index eb7f720e0..e603d266e 100644 --- a/lib/school/widgets/semester.dart +++ b/lib/school/widgets/semester.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/school/utils.dart'; +import 'package:mimir/school/utils.dart'; import '../entity/school.dart'; import "../i18n.dart"; diff --git a/lib/school/yellow_pages/card.dart b/lib/school/yellow_pages/card.dart index 2ba504277..58a83072c 100644 --- a/lib/school/yellow_pages/card.dart +++ b/lib/school/yellow_pages/card.dart @@ -4,8 +4,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/r.dart'; import 'init.dart'; import 'storage/contact.dart'; import 'widgets/contact.dart'; diff --git a/lib/school/yellow_pages/entity/contact.dart b/lib/school/yellow_pages/entity/contact.dart index 746c9c845..189627839 100644 --- a/lib/school/yellow_pages/entity/contact.dart +++ b/lib/school/yellow_pages/entity/contact.dart @@ -1,5 +1,5 @@ import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; +import 'package:mimir/storage/hive/type_id.dart'; part 'contact.g.dart'; diff --git a/lib/school/yellow_pages/i18n.dart b/lib/school/yellow_pages/i18n.dart index 2a26a296d..442969236 100644 --- a/lib/school/yellow_pages/i18n.dart +++ b/lib/school/yellow_pages/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/yellow_pages/init.dart b/lib/school/yellow_pages/init.dart index 8a1aa381a..cc15de987 100644 --- a/lib/school/yellow_pages/init.dart +++ b/lib/school/yellow_pages/init.dart @@ -1,4 +1,4 @@ -import 'package:sit/school/yellow_pages/storage/contact.dart'; +import 'package:mimir/school/yellow_pages/storage/contact.dart'; class YellowPagesInit { static late YellowPagesStorage storage; diff --git a/lib/school/yellow_pages/page/index.dart b/lib/school/yellow_pages/page/index.dart index d0b75678e..cb07d571a 100644 --- a/lib/school/yellow_pages/page/index.dart +++ b/lib/school/yellow_pages/page/index.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/r.dart'; -import 'package:sit/school/yellow_pages/init.dart'; -import 'package:sit/school/yellow_pages/storage/contact.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/school/yellow_pages/init.dart'; +import 'package:mimir/school/yellow_pages/storage/contact.dart'; import 'package:rettulf/rettulf.dart'; import '../widgets/list.dart'; diff --git a/lib/school/yellow_pages/storage/contact.dart b/lib/school/yellow_pages/storage/contact.dart index 19a4b8aa8..dc1969690 100644 --- a/lib/school/yellow_pages/storage/contact.dart +++ b/lib/school/yellow_pages/storage/contact.dart @@ -1,8 +1,8 @@ import 'dart:math'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/contact.dart'; diff --git a/lib/school/yellow_pages/widgets/contact.dart b/lib/school/yellow_pages/widgets/contact.dart index c17732bb8..bef8de5ee 100644 --- a/lib/school/yellow_pages/widgets/contact.dart +++ b/lib/school/yellow_pages/widgets/contact.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/school/yellow_pages/init.dart'; -import 'package:sit/school/yellow_pages/storage/contact.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/school/yellow_pages/init.dart'; +import 'package:mimir/school/yellow_pages/storage/contact.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/contact.dart'; diff --git a/lib/school/yellow_pages/widgets/list.dart b/lib/school/yellow_pages/widgets/list.dart index ce4b4594c..4f27f45c2 100644 --- a/lib/school/yellow_pages/widgets/list.dart +++ b/lib/school/yellow_pages/widgets/list.dart @@ -1,7 +1,7 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/grouped.dart'; -import 'package:sit/school/yellow_pages/init.dart'; +import 'package:mimir/design/widgets/grouped.dart'; +import 'package:mimir/school/yellow_pages/init.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/contact.dart'; diff --git a/lib/school/yellow_pages/widgets/search.dart b/lib/school/yellow_pages/widgets/search.dart index 5f1cfba5b..77cd07a15 100644 --- a/lib/school/yellow_pages/widgets/search.dart +++ b/lib/school/yellow_pages/widgets/search.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; import '../entity/contact.dart'; import 'list.dart'; diff --git a/lib/school/ywb/entity/application.dart b/lib/school/ywb/entity/application.dart index 09604dec0..9cf547cc4 100644 --- a/lib/school/ywb/entity/application.dart +++ b/lib/school/ywb/entity/application.dart @@ -1,8 +1,8 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; -import 'package:sit/school/utils.dart'; +import 'package:mimir/storage/hive/type_id.dart'; +import 'package:mimir/school/utils.dart'; part 'application.g.dart'; diff --git a/lib/school/ywb/entity/service.dart b/lib/school/ywb/entity/service.dart index beed795e2..8cf4447a2 100644 --- a/lib/school/ywb/entity/service.dart +++ b/lib/school/ywb/entity/service.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; -import 'package:sit/utils/iconfont.dart'; +import 'package:mimir/storage/hive/type_id.dart'; +import 'package:mimir/utils/iconfont.dart'; part 'service.g.dart'; diff --git a/lib/school/ywb/i18n.dart b/lib/school/ywb/i18n.dart index 2f2d99e3b..452b5e3a1 100644 --- a/lib/school/ywb/i18n.dart +++ b/lib/school/ywb/i18n.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; const i18n = _I18n(); diff --git a/lib/school/ywb/index.dart b/lib/school/ywb/index.dart index 7fad064d2..3887b62c8 100644 --- a/lib/school/ywb/index.dart +++ b/lib/school/ywb/index.dart @@ -3,10 +3,10 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/app.dart'; -import 'package:sit/school/ywb/entity/application.dart'; -import 'package:sit/school/ywb/init.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/app.dart'; +import 'package:mimir/school/ywb/entity/application.dart'; +import 'package:mimir/school/ywb/init.dart'; import 'package:rettulf/rettulf.dart'; import "i18n.dart"; diff --git a/lib/school/ywb/init.dart b/lib/school/ywb/init.dart index bafb19b91..897b0a3cf 100644 --- a/lib/school/ywb/init.dart +++ b/lib/school/ywb/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/school/ywb/service/application.demo.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/school/ywb/service/application.demo.dart'; +import 'package:mimir/settings/dev.dart'; import 'service/service.dart'; import 'service/application.dart'; diff --git a/lib/school/ywb/page/application.dart b/lib/school/ywb/page/application.dart index a4dd129ca..9af515982 100644 --- a/lib/school/ywb/page/application.dart +++ b/lib/school/ywb/page/application.dart @@ -1,8 +1,8 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/application.dart'; import '../init.dart'; diff --git a/lib/school/ywb/page/details.dart b/lib/school/ywb/page/details.dart index f01f5652c..edbf86034 100644 --- a/lib/school/ywb/page/details.dart +++ b/lib/school/ywb/page/details.dart @@ -1,9 +1,9 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/fab.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/fab.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:rettulf/rettulf.dart'; import 'package:universal_platform/universal_platform.dart'; diff --git a/lib/school/ywb/page/form.dart b/lib/school/ywb/page/form.dart index 116f540d9..78e24caaa 100644 --- a/lib/school/ywb/page/form.dart +++ b/lib/school/ywb/page/form.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/init.dart'; -import 'package:sit/utils/cookies.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/utils/cookies.dart'; import 'package:webview_flutter/webview_flutter.dart'; const ywbUrl = 'https://xgfy.sit.edu.cn'; diff --git a/lib/school/ywb/page/service.dart b/lib/school/ywb/page/service.dart index fc5a8d784..c05e74b9e 100644 --- a/lib/school/ywb/page/service.dart +++ b/lib/school/ywb/page/service.dart @@ -1,10 +1,10 @@ import 'package:collection/collection.dart'; import 'package:fit_system_screenshot/fit_system_screenshot.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import '../entity/service.dart'; import '../init.dart'; diff --git a/lib/school/ywb/service/application.dart b/lib/school/ywb/service/application.dart index a10d26684..555d5de6a 100644 --- a/lib/school/ywb/service/application.dart +++ b/lib/school/ywb/service/application.dart @@ -1,10 +1,10 @@ import 'dart:convert'; import 'package:dio/dio.dart'; -import 'package:sit/design/animation/progress.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/design/animation/progress.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/ywb.dart'; +import 'package:mimir/session/ywb.dart'; import '../entity/application.dart'; diff --git a/lib/school/ywb/service/service.dart b/lib/school/ywb/service/service.dart index fb711e6e3..f4c920c45 100644 --- a/lib/school/ywb/service/service.dart +++ b/lib/school/ywb/service/service.dart @@ -1,7 +1,7 @@ import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/session/ywb.dart'; +import 'package:mimir/session/ywb.dart'; import '../entity/service.dart'; diff --git a/lib/school/ywb/service/service.demo.dart b/lib/school/ywb/service/service.demo.dart index a35a5b3b6..e5a9eb5c2 100644 --- a/lib/school/ywb/service/service.demo.dart +++ b/lib/school/ywb/service/service.demo.dart @@ -1,4 +1,4 @@ -import 'package:sit/school/ywb/entity/service.dart'; +import 'package:mimir/school/ywb/entity/service.dart'; import 'service.dart'; diff --git a/lib/school/ywb/storage/application.dart b/lib/school/ywb/storage/application.dart index 14ec98e60..3529ce1aa 100644 --- a/lib/school/ywb/storage/application.dart +++ b/lib/school/ywb/storage/application.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; import '../entity/application.dart'; diff --git a/lib/school/ywb/storage/service.dart b/lib/school/ywb/storage/service.dart index 134c87d4e..6dc5a96a5 100644 --- a/lib/school/ywb/storage/service.dart +++ b/lib/school/ywb/storage/service.dart @@ -1,6 +1,6 @@ import 'package:hive/hive.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/utils/hive.dart'; import '../entity/service.dart'; diff --git a/lib/school/ywb/widgets/application.dart b/lib/school/ywb/widgets/application.dart index 258a50361..81684ccc5 100644 --- a/lib/school/ywb/widgets/application.dart +++ b/lib/school/ywb/widgets/application.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/application.dart'; diff --git a/lib/school/ywb/widgets/detail.dart b/lib/school/ywb/widgets/detail.dart index 18d72e1fd..435445dbd 100644 --- a/lib/school/ywb/widgets/detail.dart +++ b/lib/school/ywb/widgets/detail.dart @@ -1,7 +1,7 @@ import 'dart:convert'; import 'package:flutter/material.dart'; -import 'package:sit/widgets/html.dart'; +import 'package:mimir/widgets/html.dart'; import 'package:rettulf/rettulf.dart'; import '../entity/service.dart'; diff --git a/lib/session/auth.dart b/lib/session/auth.dart index f3494fb81..aaf720e58 100644 --- a/lib/session/auth.dart +++ b/lib/session/auth.dart @@ -2,8 +2,8 @@ import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; -import 'package:sit/init.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/utils/error.dart'; class AuthSession { static final String _ocrServerUrl = diff --git a/lib/session/class2nd.dart b/lib/session/class2nd.dart index 16840bc18..ca221882e 100644 --- a/lib/session/class2nd.dart +++ b/lib/session/class2nd.dart @@ -1,6 +1,6 @@ import 'package:dio/dio.dart'; -import 'package:sit/init.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/session/sso.dart'; class Class2ndSession { final SsoSession ssoSession; diff --git a/lib/session/library.dart b/lib/session/library.dart index 80115242b..798345cab 100644 --- a/lib/session/library.dart +++ b/lib/session/library.dart @@ -1,7 +1,7 @@ import 'package:dio/dio.dart'; -import 'package:sit/credentials/init.dart'; +import 'package:mimir/credentials/init.dart'; -import 'package:sit/school/library/init.dart'; +import 'package:mimir/school/library/init.dart'; class LibrarySession { final Dio dio; diff --git a/lib/session/pg_registration.dart b/lib/session/pg_registration.dart index f3225cfbd..2bf81106c 100644 --- a/lib/session/pg_registration.dart +++ b/lib/session/pg_registration.dart @@ -1,6 +1,6 @@ import 'package:dio/dio.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/session/sso.dart'; /// gms.sit.edu.cn /// Student registration system for postgraduate diff --git a/lib/session/sso.dart b/lib/session/sso.dart index ad0337d25..2e43c0075 100644 --- a/lib/session/sso.dart +++ b/lib/session/sso.dart @@ -7,16 +7,16 @@ import 'package:cookie_jar/cookie_jar.dart'; import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart' hide Key; import 'package:logger/logger.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/error.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/init.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/r.dart'; - -import 'package:sit/session/auth.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/riverpod.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/error.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/r.dart'; + +import 'package:mimir/session/auth.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/riverpod.dart'; import 'package:encrypt/encrypt.dart'; import '../utils/dio.dart'; diff --git a/lib/session/ug_registration.dart b/lib/session/ug_registration.dart index 307aac618..1fbd03e0d 100644 --- a/lib/session/ug_registration.dart +++ b/lib/session/ug_registration.dart @@ -1,10 +1,10 @@ import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:sit/init.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/r.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/session/sso.dart'; /// jwxt.sit.edu.cn /// Student registration system for undergraduate diff --git a/lib/session/ywb.dart b/lib/session/ywb.dart index 7cc563fea..382f2ad50 100644 --- a/lib/session/ywb.dart +++ b/lib/session/ywb.dart @@ -1,10 +1,10 @@ import 'dart:convert'; import 'package:crypto/crypto.dart'; import 'package:dio/dio.dart'; -import 'package:sit/credentials/error.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/init.dart'; -import 'package:sit/session/sso.dart'; +import 'package:mimir/credentials/error.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/session/sso.dart'; /// 应网办 official website const _ywbUrl = "https://ywb.sit.edu.cn/v1"; diff --git a/lib/settings/dev.dart b/lib/settings/dev.dart index dfed9143d..f773726c5 100644 --- a/lib/settings/dev.dart +++ b/lib/settings/dev.dart @@ -1,7 +1,7 @@ import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/utils/collection.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/utils/collection.dart'; class _K { static const ns = '/dev'; diff --git a/lib/settings/entity/proxy.dart b/lib/settings/entity/proxy.dart index 59711a2b4..6e05ea600 100644 --- a/lib/settings/entity/proxy.dart +++ b/lib/settings/entity/proxy.dart @@ -2,8 +2,8 @@ import 'dart:typed_data'; import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/storage/hive/type_id.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/storage/hive/type_id.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; part "proxy.g.dart"; diff --git a/lib/settings/i18n.dart b/lib/settings/i18n.dart index d2b995056..17669fa5a 100644 --- a/lib/settings/i18n.dart +++ b/lib/settings/i18n.dart @@ -1,8 +1,8 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/credentials/i18n.dart'; -import 'package:sit/l10n/app.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/settings/entity/proxy.dart'; +import 'package:mimir/credentials/i18n.dart'; +import 'package:mimir/l10n/app.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/settings/entity/proxy.dart'; const i18n = _I18n(); diff --git a/lib/settings/meta.dart b/lib/settings/meta.dart index 6d0311f4b..16d6bc8eb 100644 --- a/lib/settings/meta.dart +++ b/lib/settings/meta.dart @@ -1,4 +1,4 @@ -import 'package:sit/utils/hive.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; class _K { diff --git a/lib/settings/page/about.dart b/lib/settings/page/about.dart index a82e02c07..018ed778c 100644 --- a/lib/settings/page/about.dart +++ b/lib/settings/page/about.dart @@ -2,14 +2,14 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/dev.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/backend/update/utils.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/backend/update/utils.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/guard_launch.dart'; import '../i18n.dart'; import '../widget/device.dart'; diff --git a/lib/settings/page/credentials.dart b/lib/settings/page/credentials.dart index 47929ce1c..4f3c69dfc 100644 --- a/lib/settings/page/credentials.dart +++ b/lib/settings/page/credentials.dart @@ -2,14 +2,14 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/editor.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/editor.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/init.dart'; -import 'package:sit/login/utils.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/login/utils.dart'; import '../i18n.dart'; const _changePasswordUrl = "https://authserver.sit.edu.cn/authserver/passwordChange.do"; diff --git a/lib/settings/page/developer.dart b/lib/settings/page/developer.dart index 1ac6eee0c..7b92ba2b0 100644 --- a/lib/settings/page/developer.dart +++ b/lib/settings/page/developer.dart @@ -10,30 +10,30 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:simple_icons/simple_icons.dart'; -import 'package:sit/app.dart'; -import 'package:sit/backend/init.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/credentials/utils.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; -import 'package:sit/game/widget/party_popper.dart'; -import 'package:sit/init.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/login/aggregated.dart'; -import 'package:sit/login/utils.dart'; -import 'package:sit/qrcode/handle.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/design/widgets/navigation.dart'; +import 'package:mimir/app.dart'; +import 'package:mimir/backend/init.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/credentials/utils.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; +import 'package:mimir/game/widget/party_popper.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/login/aggregated.dart'; +import 'package:mimir/login/utils.dart'; +import 'package:mimir/qrcode/handle.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/design/widgets/navigation.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/guard_launch.dart'; -import 'package:sit/widgets/inapp_webview/page.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/guard_launch.dart'; +import 'package:mimir/widgets/inapp_webview/page.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher.dart'; import '../i18n.dart'; diff --git a/lib/settings/page/index.dart b/lib/settings/page/index.dart index 70823aa7f..75eb4bc61 100644 --- a/lib/settings/page/index.dart +++ b/lib/settings/page/index.dart @@ -4,22 +4,22 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/login/i18n.dart'; -import 'package:sit/network/widgets/entrance.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/init.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/school/widgets/campus.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/login/i18n.dart'; +import 'package:mimir/network/widgets/entrance.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/school/widgets/campus.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/settings/dev.dart'; import 'package:locale_names/locale_names.dart'; -import 'package:sit/utils/riverpod.dart'; +import 'package:mimir/utils/riverpod.dart'; import '../i18n.dart'; import '../../design/widgets/navigation.dart'; diff --git a/lib/settings/page/language.dart b/lib/settings/page/language.dart index 0ad6105a6..9e8aaf66f 100644 --- a/lib/settings/page/language.dart +++ b/lib/settings/page/language.dart @@ -3,10 +3,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:locale_names/locale_names.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/r.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/utils/save.dart'; import '../i18n.dart'; class LanguagePage extends StatefulWidget { diff --git a/lib/settings/page/proxy.dart b/lib/settings/page/proxy.dart index ee158b0c2..b17a3f39e 100644 --- a/lib/settings/page/proxy.dart +++ b/lib/settings/page/proxy.dart @@ -5,20 +5,20 @@ import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/list_tile.dart'; -import 'package:sit/design/widgets/tooltip.dart'; -import 'package:sit/init.dart'; -import 'package:sit/network/widgets/checker.dart'; -import 'package:sit/qrcode/page/view.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/list_tile.dart'; +import 'package:mimir/design/widgets/tooltip.dart'; +import 'package:mimir/init.dart'; +import 'package:mimir/network/widgets/checker.dart'; +import 'package:mimir/qrcode/page/view.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/save.dart'; import '../entity/proxy.dart'; import '../i18n.dart'; import '../qrcode/proxy.dart'; diff --git a/lib/settings/page/storage.dart b/lib/settings/page/storage.dart index a0feb5182..f34ec4f46 100644 --- a/lib/settings/page/storage.dart +++ b/lib/settings/page/storage.dart @@ -3,15 +3,15 @@ import 'dart:math'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/widgets/page_grouper.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/widgets/page_grouper.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/settings/page/theme_color.dart b/lib/settings/page/theme_color.dart index 3a9db95ba..0e1efecf7 100644 --- a/lib/settings/page/theme_color.dart +++ b/lib/settings/page/theme_color.dart @@ -3,10 +3,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/dash.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/color.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/design/dash.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/color.dart'; +import 'package:mimir/utils/save.dart'; import 'package:system_theme/system_theme.dart'; import '../i18n.dart'; diff --git a/lib/settings/qrcode/proxy.dart b/lib/settings/qrcode/proxy.dart index 33074f1fa..34c105cfc 100644 --- a/lib/settings/qrcode/proxy.dart +++ b/lib/settings/qrcode/proxy.dart @@ -1,9 +1,9 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/r.dart'; -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/settings/page/proxy.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/settings/page/proxy.dart'; class ProxyDeepLink extends DeepLinkHandlerProtocol { static const host = "proxy"; diff --git a/lib/settings/settings.dart b/lib/settings/settings.dart index 0662ac193..43f87f622 100644 --- a/lib/settings/settings.dart +++ b/lib/settings/settings.dart @@ -2,13 +2,13 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/game/settings.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/school/settings.dart'; -import 'package:sit/timetable/settings.dart'; -import 'package:sit/utils/json.dart'; -import 'package:sit/utils/riverpod.dart'; +import 'package:mimir/game/settings.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/school/settings.dart'; +import 'package:mimir/timetable/settings.dart'; +import 'package:mimir/utils/json.dart'; +import 'package:mimir/utils/riverpod.dart'; import 'package:statistics/statistics.dart'; import '../life/settings.dart'; diff --git a/lib/settings/widget/device.dart b/lib/settings/widget/device.dart index 8933560d1..3e4260520 100644 --- a/lib/settings/widget/device.dart +++ b/lib/settings/widget/device.dart @@ -1,7 +1,7 @@ import 'package:device_info_plus/device_info_plus.dart'; import 'package:flutter/material.dart'; import 'package:simple_icons/simple_icons.dart'; -import 'package:sit/entity/meta.dart'; +import 'package:mimir/entity/meta.dart'; import 'package:web_browser_detect/web_browser_detect.dart'; IconData getDeviceIcon(AppMeta meta) { diff --git a/lib/storage/hive/adapter.dart b/lib/storage/hive/adapter.dart index 835486e1d..198148f6c 100644 --- a/lib/storage/hive/adapter.dart +++ b/lib/storage/hive/adapter.dart @@ -1,27 +1,27 @@ import 'package:flutter/cupertino.dart'; import 'package:hive/hive.dart'; -import 'package:sit/credentials/entity/credential.dart'; -import 'package:sit/credentials/entity/login_status.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/life/electricity/entity/balance.dart'; -import 'package:sit/life/expense_records/entity/local.dart'; -import 'package:sit/school/class2nd/entity/application.dart'; -import 'package:sit/school/exam_result/entity/result.pg.dart'; -import 'package:sit/school/library/entity/book.dart'; -import 'package:sit/school/library/entity/borrow.dart'; -import 'package:sit/school/library/entity/image.dart'; -import 'package:sit/school/ywb/entity/service.dart'; -import 'package:sit/school/ywb/entity/application.dart'; -import 'package:sit/school/exam_result/entity/result.ug.dart'; -import 'package:sit/school/oa_announce/entity/announce.dart'; -import 'package:sit/school/class2nd/entity/details.dart'; -import 'package:sit/school/class2nd/entity/activity.dart'; -import 'package:sit/school/class2nd/entity/attended.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/yellow_pages/entity/contact.dart'; -import 'package:sit/settings/entity/proxy.dart'; -import 'package:sit/storage/hive/init.dart'; +import 'package:mimir/credentials/entity/credential.dart'; +import 'package:mimir/credentials/entity/login_status.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/life/electricity/entity/balance.dart'; +import 'package:mimir/life/expense_records/entity/local.dart'; +import 'package:mimir/school/class2nd/entity/application.dart'; +import 'package:mimir/school/exam_result/entity/result.pg.dart'; +import 'package:mimir/school/library/entity/book.dart'; +import 'package:mimir/school/library/entity/borrow.dart'; +import 'package:mimir/school/library/entity/image.dart'; +import 'package:mimir/school/ywb/entity/service.dart'; +import 'package:mimir/school/ywb/entity/application.dart'; +import 'package:mimir/school/exam_result/entity/result.ug.dart'; +import 'package:mimir/school/oa_announce/entity/announce.dart'; +import 'package:mimir/school/class2nd/entity/details.dart'; +import 'package:mimir/school/class2nd/entity/activity.dart'; +import 'package:mimir/school/class2nd/entity/attended.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/yellow_pages/entity/contact.dart'; +import 'package:mimir/settings/entity/proxy.dart'; +import 'package:mimir/storage/hive/init.dart'; import 'builtin.dart'; diff --git a/lib/storage/hive/cookie.dart b/lib/storage/hive/cookie.dart index 9fc2e3d18..337f42a6a 100644 --- a/lib/storage/hive/cookie.dart +++ b/lib/storage/hive/cookie.dart @@ -1,6 +1,6 @@ import 'package:flutter/foundation.dart'; -import 'package:sit/r.dart'; -import 'package:sit/utils/hive.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/utils/hive.dart'; import 'package:cookie_jar/cookie_jar.dart'; import 'package:hive/hive.dart'; diff --git a/lib/storage/hive/init.dart b/lib/storage/hive/init.dart index acfba3f4e..90e066801 100644 --- a/lib/storage/hive/init.dart +++ b/lib/storage/hive/init.dart @@ -3,9 +3,9 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:hive/hive.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/meta.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/meta.dart'; +import 'package:mimir/settings/settings.dart'; import "package:hive/src/hive_impl.dart"; import 'adapter.dart'; diff --git a/lib/storage/hive/table.dart b/lib/storage/hive/table.dart index 3fbc1c2b4..f48494176 100644 --- a/lib/storage/hive/table.dart +++ b/lib/storage/hive/table.dart @@ -4,8 +4,8 @@ import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/utils/riverpod.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/utils/riverpod.dart'; const _kLastId = "lastId"; const _kIdList = "idList"; diff --git a/lib/storage/prefs.dart b/lib/storage/prefs.dart index 36974cbf6..ee6ed8ea9 100644 --- a/lib/storage/prefs.dart +++ b/lib/storage/prefs.dart @@ -1,7 +1,7 @@ import 'dart:ui'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/r.dart'; class _K { static const lastVersion = "${R.appId}.lastVersion"; diff --git a/lib/timetable/entity/issue.dart b/lib/timetable/entity/issue.dart index ab70f1382..300d866d2 100644 --- a/lib/timetable/entity/issue.dart +++ b/lib/timetable/entity/issue.dart @@ -1,5 +1,5 @@ -import 'package:sit/l10n/time.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/settings/dev.dart'; import 'package:statistics/statistics.dart'; import '../patch/entity/patch.dart'; diff --git a/lib/timetable/entity/loc.dart b/lib/timetable/entity/loc.dart index ef6458e4a..5919ecfb7 100644 --- a/lib/timetable/entity/loc.dart +++ b/lib/timetable/entity/loc.dart @@ -1,9 +1,9 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; import 'pos.dart'; import 'timetable_entity.dart'; diff --git a/lib/timetable/entity/pos.dart b/lib/timetable/entity/pos.dart index eaedb3b9d..43e18b37c 100644 --- a/lib/timetable/entity/pos.dart +++ b/lib/timetable/entity/pos.dart @@ -1,7 +1,7 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; import 'timetable.dart'; import '../i18n.dart'; diff --git a/lib/timetable/entity/timetable.dart b/lib/timetable/entity/timetable.dart index c84f65d34..a0fa58c8f 100644 --- a/lib/timetable/entity/timetable.dart +++ b/lib/timetable/entity/timetable.dart @@ -4,13 +4,13 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/entity/timetable.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/utils.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/entity/timetable.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/utils.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; import 'package:statistics/statistics.dart'; import '../patch/entity/patch.dart'; diff --git a/lib/timetable/entity/timetable_entity.dart b/lib/timetable/entity/timetable_entity.dart index dbdcbeada..0c5568d4c 100644 --- a/lib/timetable/entity/timetable_entity.dart +++ b/lib/timetable/entity/timetable_entity.dart @@ -1,13 +1,13 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/foundation.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/entity/timetable.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/timetable/utils.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/entity/timetable.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/timetable/utils.dart'; import 'package:collection/collection.dart'; -import 'package:sit/utils/date.dart'; +import 'package:mimir/utils/date.dart'; import '../p13n/entity/palette.dart'; import '../patch/entity/patch.dart'; import 'timetable.dart'; diff --git a/lib/timetable/file_type/timetable.dart b/lib/timetable/file_type/timetable.dart index bd8819683..0588e0df8 100644 --- a/lib/timetable/file_type/timetable.dart +++ b/lib/timetable/file_type/timetable.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/file_type/protocol.dart'; -import 'package:sit/timetable/utils.dart'; +import 'package:mimir/file_type/protocol.dart'; +import 'package:mimir/timetable/utils.dart'; import '../page/mine.dart'; diff --git a/lib/timetable/i18n.dart b/lib/timetable/i18n.dart index 9019bdebe..f4af015b2 100644 --- a/lib/timetable/i18n.dart +++ b/lib/timetable/i18n.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/school/i18n.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/school/i18n.dart'; import 'entity/issue.dart'; diff --git a/lib/timetable/init.dart b/lib/timetable/init.dart index f6c3d7566..be0c18344 100644 --- a/lib/timetable/init.dart +++ b/lib/timetable/init.dart @@ -1,5 +1,5 @@ -import 'package:sit/settings/dev.dart'; -import 'package:sit/timetable/service/school.demo.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/timetable/service/school.demo.dart'; import 'service/school.dart'; import 'storage/timetable.dart'; diff --git a/lib/timetable/p13n/builtin.dart b/lib/timetable/p13n/builtin.dart index e470f6ce5..ee55a3863 100644 --- a/lib/timetable/p13n/builtin.dart +++ b/lib/timetable/p13n/builtin.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/timetable/p13n/entity/palette.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/timetable/p13n/entity/palette.dart'; import '../entity/timetable.dart'; diff --git a/lib/timetable/p13n/entity/cell_style.dart b/lib/timetable/p13n/entity/cell_style.dart index 7d5accb85..9b6962562 100644 --- a/lib/timetable/p13n/entity/cell_style.dart +++ b/lib/timetable/p13n/entity/cell_style.dart @@ -3,7 +3,7 @@ import 'dart:ui'; import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:dynamic_color/dynamic_color.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/utils/color.dart'; +import 'package:mimir/utils/color.dart'; part "cell_style.g.dart"; diff --git a/lib/timetable/p13n/entity/palette.dart b/lib/timetable/p13n/entity/palette.dart index 48b63ba0e..067d523b7 100644 --- a/lib/timetable/p13n/entity/palette.dart +++ b/lib/timetable/p13n/entity/palette.dart @@ -4,8 +4,8 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; import '../../entity/timetable.dart'; diff --git a/lib/timetable/p13n/page/background.dart b/lib/timetable/p13n/page/background.dart index bff65253b..5223158d7 100644 --- a/lib/timetable/p13n/page/background.dart +++ b/lib/timetable/p13n/page/background.dart @@ -7,16 +7,16 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:image_picker/image_picker.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/files.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/images.dart'; -import 'package:sit/utils/save.dart'; -import 'package:sit/widgets/modal_image_view.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/images.dart'; +import 'package:mimir/utils/save.dart'; +import 'package:mimir/widgets/modal_image_view.dart'; import 'package:universal_platform/universal_platform.dart'; import "../../i18n.dart"; import '../entity/background.dart'; diff --git a/lib/timetable/p13n/page/cell_style.dart b/lib/timetable/p13n/page/cell_style.dart index 3ceba2527..c9a51fffc 100644 --- a/lib/timetable/p13n/page/cell_style.dart +++ b/lib/timetable/p13n/page/cell_style.dart @@ -2,8 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/save.dart'; import '../widget/style.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/p13n/page/palette.dart b/lib/timetable/p13n/page/palette.dart index aa9c25a18..da8b16fac 100644 --- a/lib/timetable/p13n/page/palette.dart +++ b/lib/timetable/p13n/page/palette.dart @@ -6,17 +6,17 @@ import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/design/widgets/entry_card.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/qrcode/page/view.dart'; -import 'package:sit/timetable/p13n/entity/palette.dart'; -import 'package:sit/timetable/entity/timetable.dart'; -import 'package:sit/timetable/init.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/design/widgets/entry_card.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/qrcode/page/view.dart'; +import 'package:mimir/timetable/p13n/entity/palette.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; +import 'package:mimir/timetable/init.dart'; +import 'package:mimir/utils/format.dart'; import 'package:text_scroll/text_scroll.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/p13n/page/palette_editor.dart b/lib/timetable/p13n/page/palette_editor.dart index 76aa1a356..17358d3af 100644 --- a/lib/timetable/p13n/page/palette_editor.dart +++ b/lib/timetable/p13n/page/palette_editor.dart @@ -4,13 +4,13 @@ import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' hide isCupertino; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/timetable/page/preview.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/timetable/page/preview.dart'; +import 'package:mimir/utils/save.dart'; import '../entity/palette.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/p13n/widget/style.dart b/lib/timetable/p13n/widget/style.dart index 86c6f0c55..32b7aa70f 100644 --- a/lib/timetable/p13n/widget/style.dart +++ b/lib/timetable/p13n/widget/style.dart @@ -1,8 +1,8 @@ import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/p13n/entity/palette.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/p13n/entity/palette.dart'; import '../../init.dart'; import '../builtin.dart'; diff --git a/lib/timetable/page/edit/course_editor.dart b/lib/timetable/page/edit/course_editor.dart index 13035148a..67f2fb078 100644 --- a/lib/timetable/page/edit/course_editor.dart +++ b/lib/timetable/page/edit/course_editor.dart @@ -2,12 +2,12 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/page/edit/editor.dart b/lib/timetable/page/edit/editor.dart index b1dd5c729..17c5c91b8 100644 --- a/lib/timetable/page/edit/editor.dart +++ b/lib/timetable/page/edit/editor.dart @@ -4,21 +4,21 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/widgets/card.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/l10n/extension.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/widgets/card.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/l10n/extension.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/widgets/course.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/widgets/course.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/settings.dart'; import '../../entity/issue.dart'; import '../../widgets/issue.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/page/ical.dart b/lib/timetable/page/ical.dart index e7438d97f..3ab35226b 100644 --- a/lib/timetable/page/ical.dart +++ b/lib/timetable/page/ical.dart @@ -3,10 +3,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/duration_picker.dart'; -import 'package:sit/design/widgets/tooltip.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/duration_picker.dart'; +import 'package:mimir/design/widgets/tooltip.dart'; +import 'package:mimir/r.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher_string.dart'; import '../entity/timetable.dart'; diff --git a/lib/timetable/page/import.dart b/lib/timetable/page/import.dart index 5e1ff9d57..92ec805ae 100644 --- a/lib/timetable/page/import.dart +++ b/lib/timetable/page/import.dart @@ -4,18 +4,18 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/animation/animated.dart'; -import 'package:sit/network/widgets/checker.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/school/widgets/semester.dart'; -import 'package:sit/settings/meta.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/utils.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/animation/animated.dart'; +import 'package:mimir/network/widgets/checker.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/school/widgets/semester.dart'; +import 'package:mimir/settings/meta.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/utils.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/timetable/page/mine.dart b/lib/timetable/page/mine.dart index 5d2263f76..0f3a443e1 100644 --- a/lib/timetable/page/mine.dart +++ b/lib/timetable/page/mine.dart @@ -5,24 +5,24 @@ import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/widgets/entry_card.dart'; -import 'package:sit/design/widgets/fab.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/qrcode/page/view.dart'; -import 'package:sit/route.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/widgets/entry_card.dart'; +import 'package:mimir/design/widgets/fab.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/qrcode/page/view.dart'; +import 'package:mimir/route.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/dev.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/page/ical.dart'; -import 'package:sit/timetable/qrcode/timetable.dart'; -import 'package:sit/timetable/widgets/course.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/settings/dev.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/page/ical.dart'; +import 'package:mimir/timetable/qrcode/timetable.dart'; +import 'package:mimir/timetable/widgets/course.dart'; +import 'package:mimir/utils/format.dart'; import 'package:text_scroll/text_scroll.dart'; import 'package:universal_platform/universal_platform.dart'; diff --git a/lib/timetable/page/preview.dart b/lib/timetable/page/preview.dart index b6d368044..517cc50ad 100644 --- a/lib/timetable/page/preview.dart +++ b/lib/timetable/page/preview.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/animation/marquee.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/animation/marquee.dart'; import 'package:text_scroll/text_scroll.dart'; import '../entity/display.dart'; diff --git a/lib/timetable/page/screenshot.dart b/lib/timetable/page/screenshot.dart index 46edb5361..124fa68cc 100644 --- a/lib/timetable/page/screenshot.dart +++ b/lib/timetable/page/screenshot.dart @@ -2,9 +2,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/utils/screenshot.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/utils/screenshot.dart'; import "../i18n.dart"; import '../p13n/widget/style.dart'; diff --git a/lib/timetable/page/settings.dart b/lib/timetable/page/settings.dart index da31a890e..0e93a57c6 100644 --- a/lib/timetable/page/settings.dart +++ b/lib/timetable/page/settings.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import '../i18n.dart'; diff --git a/lib/timetable/page/timetable.dart b/lib/timetable/page/timetable.dart index 6f93fb577..4ca362c38 100644 --- a/lib/timetable/page/timetable.dart +++ b/lib/timetable/page/timetable.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/widgets/fab.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/widgets/fab.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/settings/settings.dart'; -import 'package:sit/timetable/page/screenshot.dart'; +import 'package:mimir/settings/settings.dart'; +import 'package:mimir/timetable/page/screenshot.dart'; import '../entity/display.dart'; import '../entity/timetable.dart'; import '../events.dart'; diff --git a/lib/timetable/patch/entity/patch.dart b/lib/timetable/patch/entity/patch.dart index 1dfe1be0a..16c77cf94 100644 --- a/lib/timetable/patch/entity/patch.dart +++ b/lib/timetable/patch/entity/patch.dart @@ -8,9 +8,9 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/utils/byte_io/byte_io.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/utils/byte_io/byte_io.dart'; +import 'package:mimir/utils/error.dart'; import 'package:statistics/statistics.dart'; import '../../entity/loc.dart'; diff --git a/lib/timetable/patch/page/patch.dart b/lib/timetable/patch/page/patch.dart index 2e92fa4cb..3200ac62f 100644 --- a/lib/timetable/patch/page/patch.dart +++ b/lib/timetable/patch/page/patch.dart @@ -4,14 +4,14 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:reorderables/reorderables.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/timetable/patch/widget/shared.dart'; -import 'package:sit/utils/format.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/timetable/patch/widget/shared.dart'; +import 'package:mimir/utils/format.dart'; +import 'package:mimir/utils/save.dart'; import '../entity/patch.dart'; import 'patch_prefab.dart'; diff --git a/lib/timetable/patch/page/patch_set.dart b/lib/timetable/patch/page/patch_set.dart index cc51604dd..621cca4af 100644 --- a/lib/timetable/patch/page/patch_set.dart +++ b/lib/timetable/patch/page/patch_set.dart @@ -3,13 +3,13 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:reorderables/reorderables.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/editor.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/timetable/patch/widget/shared.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/design/adaptive/editor.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/timetable/patch/widget/shared.dart'; +import 'package:mimir/utils/save.dart'; import 'package:text_scroll/text_scroll.dart'; import '../../entity/timetable.dart'; diff --git a/lib/timetable/patch/page/qrcode.dart b/lib/timetable/patch/page/qrcode.dart index d07075743..d5e39ca78 100644 --- a/lib/timetable/patch/page/qrcode.dart +++ b/lib/timetable/patch/page/qrcode.dart @@ -3,10 +3,10 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/timetable/entity/timetable.dart'; -import 'package:sit/timetable/patch/page/patch.dart'; -import 'package:sit/timetable/page/preview.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; +import 'package:mimir/timetable/patch/page/patch.dart'; +import 'package:mimir/timetable/page/preview.dart'; import 'package:text_scroll/text_scroll.dart'; import '../../i18n.dart'; diff --git a/lib/timetable/patch/widget/copy_day.dart b/lib/timetable/patch/widget/copy_day.dart index 95188fd5e..e92d181dc 100644 --- a/lib/timetable/patch/widget/copy_day.dart +++ b/lib/timetable/patch/widget/copy_day.dart @@ -2,8 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/timetable/entity/loc.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/timetable/entity/loc.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../page/preview.dart'; diff --git a/lib/timetable/patch/widget/move_day.dart b/lib/timetable/patch/widget/move_day.dart index 1bc185f13..4a79b93aa 100644 --- a/lib/timetable/patch/widget/move_day.dart +++ b/lib/timetable/patch/widget/move_day.dart @@ -2,8 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/timetable/entity/loc.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/timetable/entity/loc.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../page/preview.dart'; diff --git a/lib/timetable/patch/widget/patch_set.dart b/lib/timetable/patch/widget/patch_set.dart index a5acadeb6..e0578d7f7 100644 --- a/lib/timetable/patch/widget/patch_set.dart +++ b/lib/timetable/patch/widget/patch_set.dart @@ -2,9 +2,9 @@ import 'package:collection/collection.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; import '../../entity/timetable.dart'; import '../../i18n.dart'; import '../../page/preview.dart'; diff --git a/lib/timetable/patch/widget/remove_day.dart b/lib/timetable/patch/widget/remove_day.dart index 1ec1d4496..b613497ce 100644 --- a/lib/timetable/patch/widget/remove_day.dart +++ b/lib/timetable/patch/widget/remove_day.dart @@ -4,12 +4,12 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/adaptive/swipe.dart'; -import 'package:sit/timetable/entity/loc.dart'; -import 'package:sit/timetable/entity/pos.dart'; -import 'package:sit/utils/date.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/swipe.dart'; +import 'package:mimir/timetable/entity/loc.dart'; +import 'package:mimir/timetable/entity/pos.dart'; +import 'package:mimir/utils/date.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../page/preview.dart'; diff --git a/lib/timetable/patch/widget/shared.dart b/lib/timetable/patch/widget/shared.dart index ec59b2227..69370f3a8 100644 --- a/lib/timetable/patch/widget/shared.dart +++ b/lib/timetable/patch/widget/shared.dart @@ -2,12 +2,12 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/qrcode/page/view.dart'; -import 'package:sit/timetable/entity/pos.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/qrcode/page/view.dart'; +import 'package:mimir/timetable/entity/pos.dart'; import '../../entity/loc.dart'; import '../../entity/timetable.dart'; diff --git a/lib/timetable/patch/widget/swap_days.dart b/lib/timetable/patch/widget/swap_days.dart index d1494abcd..b68a48f06 100644 --- a/lib/timetable/patch/widget/swap_days.dart +++ b/lib/timetable/patch/widget/swap_days.dart @@ -2,8 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/timetable/entity/loc.dart'; -import 'package:sit/utils/save.dart'; +import 'package:mimir/timetable/entity/loc.dart'; +import 'package:mimir/utils/save.dart'; import '../../entity/timetable.dart'; import '../../page/preview.dart'; diff --git a/lib/timetable/qrcode/palette.dart b/lib/timetable/qrcode/palette.dart index e2f670e63..f7ec560f1 100644 --- a/lib/timetable/qrcode/palette.dart +++ b/lib/timetable/qrcode/palette.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/r.dart'; import '../p13n/entity/palette.dart'; import '../p13n/page/palette.dart'; diff --git a/lib/timetable/qrcode/patch.dart b/lib/timetable/qrcode/patch.dart index b647cda36..1714e7550 100644 --- a/lib/timetable/qrcode/patch.dart +++ b/lib/timetable/qrcode/patch.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/r.dart'; import '../patch/entity/patch.dart'; import '../patch/page/qrcode.dart'; diff --git a/lib/timetable/qrcode/timetable.dart b/lib/timetable/qrcode/timetable.dart index 6b6758b96..0c8088f7b 100644 --- a/lib/timetable/qrcode/timetable.dart +++ b/lib/timetable/qrcode/timetable.dart @@ -1,8 +1,8 @@ import 'package:flutter/widgets.dart'; -import 'package:sit/qrcode/deep_link.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/r.dart'; -import 'package:sit/timetable/entity/timetable.dart'; +import 'package:mimir/qrcode/deep_link.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/r.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; import '../page/mine.dart'; diff --git a/lib/timetable/service/school.dart b/lib/timetable/service/school.dart index e7980cb1c..c77d7ab28 100644 --- a/lib/timetable/service/school.dart +++ b/lib/timetable/service/school.dart @@ -1,14 +1,14 @@ import 'package:beautiful_soup_dart/beautiful_soup.dart'; import 'package:dio/dio.dart'; import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/credentials/init.dart'; -import 'package:sit/init.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/init.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/school/exam_result/init.dart'; -import 'package:sit/session/pg_registration.dart'; -import 'package:sit/session/ug_registration.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/school/exam_result/init.dart'; +import 'package:mimir/session/pg_registration.dart'; +import 'package:mimir/session/ug_registration.dart'; +import 'package:mimir/settings/settings.dart'; import '../entity/timetable.dart'; import '../utils.dart'; diff --git a/lib/timetable/service/school.demo.dart b/lib/timetable/service/school.demo.dart index 989f6f609..393ab1c0f 100644 --- a/lib/timetable/service/school.demo.dart +++ b/lib/timetable/service/school.demo.dart @@ -1,6 +1,6 @@ -import 'package:sit/credentials/init.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/credentials/init.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/school/entity/school.dart'; import '../entity/timetable.dart'; import 'school.dart'; diff --git a/lib/timetable/settings.dart b/lib/timetable/settings.dart index a8b2e354b..2c3c91d16 100644 --- a/lib/timetable/settings.dart +++ b/lib/timetable/settings.dart @@ -2,8 +2,8 @@ import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/utils/json.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/utils/json.dart'; import 'p13n/entity/background.dart'; import 'p13n/entity/cell_style.dart'; diff --git a/lib/timetable/storage/timetable.dart b/lib/timetable/storage/timetable.dart index ae142d8f0..2cdddb08e 100644 --- a/lib/timetable/storage/timetable.dart +++ b/lib/timetable/storage/timetable.dart @@ -1,8 +1,8 @@ import 'package:hive_flutter/hive_flutter.dart'; -import 'package:sit/storage/hive/init.dart'; -import 'package:sit/storage/hive/table.dart'; -import 'package:sit/utils/hive.dart'; -import 'package:sit/timetable/entity/timetable.dart'; +import 'package:mimir/storage/hive/init.dart'; +import 'package:mimir/storage/hive/table.dart'; +import 'package:mimir/utils/hive.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; import '../entity/display.dart'; import '../p13n/builtin.dart'; diff --git a/lib/timetable/utils.dart b/lib/timetable/utils.dart index 7ba46f464..29116dbb4 100644 --- a/lib/timetable/utils.dart +++ b/lib/timetable/utils.dart @@ -9,22 +9,22 @@ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:open_file/open_file.dart'; import 'package:permission_handler/permission_handler.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/credentials/entity/user_type.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/files.dart'; -import 'package:sit/l10n/extension.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/entity/school.dart'; +import 'package:mimir/credentials/entity/user_type.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/l10n/extension.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/entity/school.dart'; import 'package:sanitize_filename/sanitize_filename.dart'; import 'package:share_plus/share_plus.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/timetable/entity/pos.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/utils/ical.dart'; -import 'package:sit/utils/permission.dart'; -import 'package:sit/utils/strings.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/timetable/entity/pos.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/utils/ical.dart'; +import 'package:mimir/utils/permission.dart'; +import 'package:mimir/utils/strings.dart'; import 'package:universal_platform/universal_platform.dart'; import '../school/exam_result/entity/result.pg.dart'; import 'entity/timetable.dart'; diff --git a/lib/timetable/widgets/course.dart b/lib/timetable/widgets/course.dart index 337ed8451..9af82d82b 100644 --- a/lib/timetable/widgets/course.dart +++ b/lib/timetable/widgets/course.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/card.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/widgets/course.dart'; -import 'package:sit/timetable/entity/timetable.dart'; +import 'package:mimir/design/widgets/card.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/widgets/course.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; import '../i18n.dart'; class TimetableCourseCard extends StatelessWidget { diff --git a/lib/timetable/widgets/focus.dart b/lib/timetable/widgets/focus.dart index 8e032ae76..ebfb463a7 100644 --- a/lib/timetable/widgets/focus.dart +++ b/lib/timetable/widgets/focus.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/menu.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/school/i18n.dart' as $school; -import 'package:sit/life/i18n.dart' as $life; -import 'package:sit/game/i18n.dart' as $game; -import 'package:sit/me/i18n.dart' as $me; +import 'package:mimir/design/adaptive/menu.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/school/i18n.dart' as $school; +import 'package:mimir/life/i18n.dart' as $life; +import 'package:mimir/game/i18n.dart' as $game; +import 'package:mimir/me/i18n.dart' as $me; List buildFocusPopupActions(BuildContext context) { return [ diff --git a/lib/timetable/widgets/free.dart b/lib/timetable/widgets/free.dart index 4992532e6..3d3c9cc6b 100644 --- a/lib/timetable/widgets/free.dart +++ b/lib/timetable/widgets/free.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/l10n/time.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/l10n/time.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/timetable/utils.dart'; +import 'package:mimir/timetable/utils.dart'; import '../entity/pos.dart'; import '../entity/timetable_entity.dart'; import '../events.dart'; diff --git a/lib/timetable/widgets/issue.dart b/lib/timetable/widgets/issue.dart index 6d13f6c11..6a0f99254 100644 --- a/lib/timetable/widgets/issue.dart +++ b/lib/timetable/widgets/issue.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/widgets/expansion_tile.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/timetable/patch/page/patch.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/widgets/expansion_tile.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/timetable/patch/page/patch.dart'; import '../entity/timetable.dart'; import '../entity/issue.dart'; diff --git a/lib/timetable/widgets/timetable/background.dart b/lib/timetable/widgets/timetable/background.dart index 8cb519eea..6e44c0ae5 100644 --- a/lib/timetable/widgets/timetable/background.dart +++ b/lib/timetable/widgets/timetable/background.dart @@ -1,7 +1,7 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:sit/files.dart'; +import 'package:mimir/files.dart'; import '../../p13n/entity/background.dart'; diff --git a/lib/timetable/widgets/timetable/board.dart b/lib/timetable/widgets/timetable/board.dart index b2bfc50c4..c60de2d36 100644 --- a/lib/timetable/widgets/timetable/board.dart +++ b/lib/timetable/widgets/timetable/board.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/timetable/p13n/widget/style.dart'; +import 'package:mimir/timetable/p13n/widget/style.dart'; import '../../entity/display.dart'; import '../../entity/pos.dart'; diff --git a/lib/timetable/widgets/timetable/course_sheet.dart b/lib/timetable/widgets/timetable/course_sheet.dart index 94064ce4c..320da3b3d 100644 --- a/lib/timetable/widgets/timetable/course_sheet.dart +++ b/lib/timetable/widgets/timetable/course_sheet.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/l10n/time.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/l10n/time.dart'; import 'package:text_scroll/text_scroll.dart'; import '../../entity/timetable_entity.dart'; diff --git a/lib/timetable/widgets/timetable/daily.dart b/lib/timetable/widgets/timetable/daily.dart index bd24e8921..031776a63 100644 --- a/lib/timetable/widgets/timetable/daily.dart +++ b/lib/timetable/widgets/timetable/daily.dart @@ -2,14 +2,14 @@ import 'dart:async'; import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/school/entity/timetable.dart'; -import 'package:sit/school/widgets/course.dart'; -import 'package:sit/timetable/widgets/timetable/course_sheet.dart'; -import 'package:sit/timetable/widgets/free.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/school/entity/timetable.dart'; +import 'package:mimir/school/widgets/course.dart'; +import 'package:mimir/timetable/widgets/timetable/course_sheet.dart'; +import 'package:mimir/timetable/widgets/free.dart'; import 'package:rettulf/rettulf.dart'; import '../../entity/timetable.dart'; diff --git a/lib/timetable/widgets/timetable/header.dart b/lib/timetable/widgets/timetable/header.dart index 3e4040882..eb40d46bd 100644 --- a/lib/timetable/widgets/timetable/header.dart +++ b/lib/timetable/widgets/timetable/header.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:sit/l10n/time.dart'; -import 'package:sit/school/utils.dart'; +import 'package:mimir/l10n/time.dart'; +import 'package:mimir/school/utils.dart'; import 'package:rettulf/rettulf.dart'; BorderSide getTimetableBorderSide(BuildContext ctx) => diff --git a/lib/timetable/widgets/timetable/weekly.dart b/lib/timetable/widgets/timetable/weekly.dart index 9ee8acc4a..25141e278 100644 --- a/lib/timetable/widgets/timetable/weekly.dart +++ b/lib/timetable/widgets/timetable/weekly.dart @@ -3,11 +3,11 @@ import 'dart:async'; import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/design/dash.dart'; -import 'package:sit/design/entity/dual_color.dart'; -import 'package:sit/school/utils.dart'; -import 'package:sit/settings/settings.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/design/dash.dart'; +import 'package:mimir/design/entity/dual_color.dart'; +import 'package:mimir/school/utils.dart'; +import 'package:mimir/settings/settings.dart'; import 'package:rettulf/rettulf.dart'; import 'package:universal_platform/universal_platform.dart'; diff --git a/lib/utils/async_event.dart b/lib/utils/async_event.dart index 96a1f84fe..8a0f9864d 100644 --- a/lib/utils/async_event.dart +++ b/lib/utils/async_event.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; -const String _thisLibrary = 'package:sit/utils/event_bus.dart'; +const String _thisLibrary = 'package:mimir/utils/event_bus.dart'; class AsyncEventEmitter implements Listenable { int _count = 0; diff --git a/lib/utils/date.dart b/lib/utils/date.dart index ccd162841..991884fa7 100644 --- a/lib/utils/date.dart +++ b/lib/utils/date.dart @@ -1,5 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; -import 'package:sit/lifecycle.dart'; +import 'package:mimir/lifecycle.dart'; bool isLeapYear(int year) { if (year % 400 == 0) return true; diff --git a/lib/utils/dio.dart b/lib/utils/dio.dart index 6bfd46b95..f3db41d89 100644 --- a/lib/utils/dio.dart +++ b/lib/utils/dio.dart @@ -1,5 +1,5 @@ import 'package:dio/dio.dart'; -import 'package:sit/utils/strings.dart'; +import 'package:mimir/utils/strings.dart'; Options disableRedirectFormEncodedOptions({ Map? headers, diff --git a/lib/utils/error.dart b/lib/utils/error.dart index fc1f7830c..a1a8de458 100644 --- a/lib/utils/error.dart +++ b/lib/utils/error.dart @@ -2,10 +2,10 @@ import 'dart:async'; import 'package:dio/dio.dart'; import 'package:flutter/cupertino.dart'; -import 'package:sit/credentials/error.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/lifecycle.dart'; -import 'package:sit/login/i18n.dart'; +import 'package:mimir/credentials/error.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/lifecycle.dart'; +import 'package:mimir/login/i18n.dart'; void debugPrintError(Object? error, [StackTrace? stackTrace]) { if (error == null) { diff --git a/lib/utils/guard_launch.dart b/lib/utils/guard_launch.dart index a574bf03b..106d884a6 100644 --- a/lib/utils/guard_launch.dart +++ b/lib/utils/guard_launch.dart @@ -1,7 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/utils/error.dart'; +import 'package:mimir/utils/error.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher.dart'; diff --git a/lib/utils/permission.dart b/lib/utils/permission.dart index 1f078956b..7c80989cc 100644 --- a/lib/utils/permission.dart +++ b/lib/utils/permission.dart @@ -2,8 +2,8 @@ import 'package:app_settings/app_settings.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/cupertino.dart'; import 'package:permission_handler/permission_handler.dart'; -import 'package:sit/design/adaptive/dialog.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; +import 'package:mimir/l10n/common.dart'; Future ensurePermission(Permission permission) async { PermissionStatus status = await permission.status; diff --git a/lib/utils/save.dart b/lib/utils/save.dart index 66bed183d..7f0af768e 100644 --- a/lib/utils/save.dart +++ b/lib/utils/save.dart @@ -3,7 +3,7 @@ import 'dart:async'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/dialog.dart'; +import 'package:mimir/design/adaptive/dialog.dart'; const _i18n = _I18n(); diff --git a/lib/utils/screenshot.dart b/lib/utils/screenshot.dart index 1265e95f3..e823675ba 100644 --- a/lib/utils/screenshot.dart +++ b/lib/utils/screenshot.dart @@ -5,7 +5,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:open_file/open_file.dart'; import 'package:rettulf/rettulf.dart'; import 'package:screenshot/screenshot.dart'; -import 'package:sit/files.dart'; +import 'package:mimir/files.dart'; Future takeWidgetScreenshot({ required BuildContext context, diff --git a/lib/widgets/captcha_box.dart b/lib/widgets/captcha_box.dart index e22f98b27..76b718791 100644 --- a/lib/widgets/captcha_box.dart +++ b/lib/widgets/captcha_box.dart @@ -2,8 +2,8 @@ import 'dart:typed_data'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; -import 'package:sit/design/adaptive/foundation.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/design/adaptive/foundation.dart'; +import 'package:mimir/l10n/common.dart'; import 'package:rettulf/rettulf.dart'; class CaptchaDialog extends StatefulWidget { diff --git a/lib/widgets/html.dart b/lib/widgets/html.dart index 9fea95628..e73bd5283 100644 --- a/lib/widgets/html.dart +++ b/lib/widgets/html.dart @@ -2,7 +2,7 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/utils/guard_launch.dart'; +import 'package:mimir/utils/guard_launch.dart'; import 'package:rettulf/rettulf.dart'; class RestyledHtmlWidget extends StatelessWidget { diff --git a/lib/widgets/image.dart b/lib/widgets/image.dart index d01ed1984..018120da7 100644 --- a/lib/widgets/image.dart +++ b/lib/widgets/image.dart @@ -3,9 +3,9 @@ import 'dart:typed_data'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; -import 'package:sit/l10n/common.dart'; +import 'package:mimir/l10n/common.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/widgets/modal_image_view.dart'; +import 'package:mimir/widgets/modal_image_view.dart'; const _i18n = CommonI18n(); diff --git a/lib/widgets/inapp_webview/page.dart b/lib/widgets/inapp_webview/page.dart index 8597ff639..e0426aff9 100644 --- a/lib/widgets/inapp_webview/page.dart +++ b/lib/widgets/inapp_webview/page.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; typedef NavigationRule = Future Function(WebUri uri); diff --git a/lib/widgets/modal_image_view.dart b/lib/widgets/modal_image_view.dart index 0cf4aa1db..be48cccea 100644 --- a/lib/widgets/modal_image_view.dart +++ b/lib/widgets/modal_image_view.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; class ModalImageViewer extends StatelessWidget { final Widget child; diff --git a/lib/widgets/not_found.dart b/lib/widgets/not_found.dart index ed3c9981e..59c3cb50b 100644 --- a/lib/widgets/not_found.dart +++ b/lib/widgets/not_found.dart @@ -1,8 +1,8 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:rettulf/rettulf.dart'; -import 'package:sit/design/widgets/common.dart'; -import 'package:sit/settings/dev.dart'; +import 'package:mimir/design/widgets/common.dart'; +import 'package:mimir/settings/dev.dart'; class NotFoundPage extends StatelessWidget { final String routeName; diff --git a/lib/widgets/search.dart b/lib/widgets/search.dart index a8209710c..d0e841892 100644 --- a/lib/widgets/search.dart +++ b/lib/widgets/search.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:rettulf/rettulf.dart'; typedef CandidateBuilder = Widget Function( diff --git a/lib/widgets/webview/injectable.dart b/lib/widgets/webview/injectable.dart index fb3995c46..0693f148f 100644 --- a/lib/widgets/webview/injectable.dart +++ b/lib/widgets/webview/injectable.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:sit/design/widgets/common.dart'; +import 'package:mimir/design/widgets/common.dart'; import 'package:universal_platform/universal_platform.dart'; import 'package:url_launcher/url_launcher_string.dart'; import 'package:webview_flutter/webview_flutter.dart'; diff --git a/lib/widgets/webview/page.dart b/lib/widgets/webview/page.dart index a658e17f1..5b329ef9b 100644 --- a/lib/widgets/webview/page.dart +++ b/lib/widgets/webview/page.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; -import 'package:sit/design/adaptive/multiplatform.dart'; -import 'package:sit/l10n/common.dart'; -import 'package:sit/utils/error.dart'; -import 'package:sit/widgets/webview/injectable.dart'; +import 'package:mimir/design/adaptive/multiplatform.dart'; +import 'package:mimir/l10n/common.dart'; +import 'package:mimir/utils/error.dart'; +import 'package:mimir/widgets/webview/injectable.dart'; import 'package:rettulf/rettulf.dart'; import 'package:share_plus/share_plus.dart'; import 'package:text_scroll/text_scroll.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index b2a949669..eb58ba07c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: sit +name: mimir description: "A multiplatform app for SIT students." # The build version numbers is incremented automatically. diff --git a/test/custom_url.dart b/test/custom_url.dart index 8402aa1f0..e9e3ec7f4 100644 --- a/test/custom_url.dart +++ b/test/custom_url.dart @@ -1,5 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/r.dart'; +import 'package:mimir/r.dart'; void main() { group("Parse URL", () { diff --git a/test/duplicate_test.dart b/test/duplicate_test.dart index 59573f255..725d2a6df 100644 --- a/test/duplicate_test.dart +++ b/test/duplicate_test.dart @@ -1,5 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/utils/format.dart'; +import 'package:mimir/utils/format.dart'; void main() { group("One file", () { diff --git a/test/game_test.dart b/test/game_test.dart index 69f7d7acc..4b423908f 100644 --- a/test/game_test.dart +++ b/test/game_test.dart @@ -1,8 +1,8 @@ import 'package:collection/collection.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/game/minesweeper/utils.dart'; -import 'package:sit/utils/list2d/impl.dart'; +import 'package:mimir/game/minesweeper/utils.dart'; +import 'package:mimir/utils/list2d/impl.dart'; import 'package:sudoku_solver_generator/sudoku_solver_generator.dart'; void main() { diff --git a/test/qrcode.dart b/test/qrcode.dart index b2a6f8eb8..1c0dfe226 100644 --- a/test/qrcode.dart +++ b/test/qrcode.dart @@ -1,6 +1,6 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/qrcode/utils.dart'; -import 'package:sit/timetable/p13n/builtin.dart'; +import 'package:mimir/qrcode/utils.dart'; +import 'package:mimir/timetable/p13n/builtin.dart'; void main() { group("Timetable palette", () { diff --git a/test/timetable_entity_test.dart b/test/timetable_entity_test.dart index fb5fe1305..3f80b6156 100644 --- a/test/timetable_entity_test.dart +++ b/test/timetable_entity_test.dart @@ -2,11 +2,11 @@ import 'dart:convert'; import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/entity/campus.dart'; -import 'package:sit/files.dart'; -import 'package:sit/school/entity/school.dart'; -import 'package:sit/timetable/entity/timetable.dart'; -import 'package:sit/timetable/entity/timetable_entity.dart'; +import 'package:mimir/entity/campus.dart'; +import 'package:mimir/files.dart'; +import 'package:mimir/school/entity/school.dart'; +import 'package:mimir/timetable/entity/timetable.dart'; +import 'package:mimir/timetable/entity/timetable_entity.dart'; import 'package:statistics/statistics.dart'; void main() { diff --git a/test/timetable_patch_test.dart b/test/timetable_patch_test.dart index 6c3376486..9be62133f 100644 --- a/test/timetable_patch_test.dart +++ b/test/timetable_patch_test.dart @@ -1,6 +1,6 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:sit/timetable/patch/builtin.dart'; -import 'package:sit/timetable/patch/entity/patch.dart'; +import 'package:mimir/timetable/patch/builtin.dart'; +import 'package:mimir/timetable/patch/entity/patch.dart'; void main() { final patch = BuiltinTimetablePatchSets.vacationShift2024;