Skip to content

Commit

Permalink
renamed sit to mimir
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Aug 26, 2024
1 parent 36d0836 commit 4c4a0cf
Show file tree
Hide file tree
Showing 413 changed files with 1,436 additions and 1,438 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 10 additions & 10 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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})>[]);
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/bulletin/card.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
6 changes: 3 additions & 3 deletions lib/backend/bulletin/service/bulletin.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
18 changes: 8 additions & 10 deletions lib/backend/forum/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -57,9 +57,7 @@ class _ForumAppCardState extends ConsumerState<ForumAppCard> {
await guardLaunchUrl(context, R.forumUri);
}
},
label: !dev
? "敬请期待".text()
: "进入".text(),
label: !dev ? "敬请期待".text() : "进入".text(),
icon: Icon(context.icons.home),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/forum/i18n.dart
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
6 changes: 3 additions & 3 deletions lib/backend/forum/page/index.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/update/entity/artifact.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/update/i18n.dart
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
6 changes: 3 additions & 3 deletions lib/backend/update/page/update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 4 additions & 4 deletions lib/backend/update/service/update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
16 changes: 8 additions & 8 deletions lib/backend/update/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/entity/credential.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/entity/login_status.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/entity/user_type.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/i18n.dart
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
6 changes: 3 additions & 3 deletions lib/credentials/storage/credential.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/utils.dart
Original file line number Diff line number Diff line change
@@ -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})$');
Expand Down
4 changes: 2 additions & 2 deletions lib/design/adaptive/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/design/adaptive/multiplatform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/design/entity/dual_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
8 changes: 4 additions & 4 deletions lib/design/widgets/entry_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/design/widgets/list_tile.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/design/widgets/navigation.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/entity/campus.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
6 changes: 3 additions & 3 deletions lib/file_type/handle.dart
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
2 changes: 1 addition & 1 deletion lib/file_type/protocol.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/files.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions lib/game/2048/card.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lib/game/2048/entity/board.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/game/2048/entity/record.dart
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions lib/game/2048/i18n.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 2 additions & 2 deletions lib/game/2048/manager/logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
12 changes: 6 additions & 6 deletions lib/game/2048/page/game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions lib/game/2048/page/records.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Loading

0 comments on commit 4c4a0cf

Please sign in to comment.