Skip to content

Commit

Permalink
📖Move app code to ./app/
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierra-Runis committed Jan 13, 2024
1 parent f8b92cb commit 6789256
Show file tree
Hide file tree
Showing 247 changed files with 125 additions and 127 deletions.
48 changes: 1 addition & 47 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,48 +1,2 @@
# 杂七杂八
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ 相关
*.iml
*.ipr
*.iws
.idea/

# Flutter/Dart/Pub 相关
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# 符号相关d
app.*.symbols

# 混淆相关
app.*.map.json

# Android Studio 构建
/android/app/debug
/android/app/profile
/android/app/release

# release_tool
.release_tool/*
assets/fonts/**

*.g.dart
*.freezed.dart
lib/l10n/**/*.dart
lib/common/key.dart
.release_tool/*
22 changes: 11 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
"**/.next": true,
"**/*.g.dart": true,
"**/*.freezed.dart": true,
"custom_lint.log": true,
"mercurius.iml": true,
".metadata": true,
".flutter-plugins": true,
".flutter-plugins-dependencies": true,
"build": true,
".idea": true,
".dart_tool": true,
"splitMap": true,
"lib/l10n/intl": true,
"lib/l10n/**/*.dart": true
"**/custom_lint.log": true,
"**/mercurius.iml": true,
"**/.metadata": true,
"**/.flutter-plugins": true,
"**/.flutter-plugins-dependencies": true,
"**/build": true,
"**/.idea": true,
"**/.dart_tool": true,
"**/splitMap": true,
"**/lib/l10n/intl": true,
"**/lib/l10n/**/*.dart": true
},
"commentTranslate.hover.string": true,
"commentTranslate.hover.variable": true,
Expand Down
44 changes: 44 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 杂七杂八
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ 相关
*.iml
*.ipr
*.iws
.idea/

# Flutter/Dart/Pub 相关
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# 符号相关d
app.*.symbols

# 混淆相关
app.*.map.json

# Android Studio 构建
/android/app/debug
/android/app/profile
/android/app/release

*.g.dart
*.freezed.dart
lib/l10n/**/*.dart
lib/common/key.dart
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Bold.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Demibold.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-ExtraLight.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Heavy.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Light.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Medium.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Normal.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Regular.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Semibold.ttf
Binary file not shown.
Binary file added app/assets/fonts/MiSans/MiSans-Thin.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Black.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-BlackItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Bold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-BoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-ExtraBold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-ExtraLight.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-ExtraLightItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Italic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Light.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-LightItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Medium.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-MediumItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Regular.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-SemiBold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-SemiBoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-Thin.ttf
Binary file not shown.
Binary file added app/assets/fonts/Saira/Saira-ThinItalic.ttf
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/common/app.dart → app/lib/common/app.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

import 'dart:developer' as devtools show log, inspect;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

extension CacheForExtension on AutoDisposeRef<Object?> {
/// Refresh provider each [duration].
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/database/diary.dart → app/lib/database/diary.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
part 'diary.g.dart';

@collection
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
part 'diary_image.g.dart';
part 'diary_image.freezed.dart';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

abstract class _Service {
final Isar db;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/main.dart → app/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../app/lib/index.dart';

void main() => App.run();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
part 'diary_tag.g.dart';
part 'diary_tag.freezed.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/models/enum.dart → app/lib/models/enum.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

/// 枚举类型 [DiaryMoodType]
enum DiaryMoodType {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/hitokoto.dart → app/lib/models/hitokoto.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ignore_for_file: non_constant_identifier_names

import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

part 'hitokoto.g.dart';
part 'hitokoto.freezed.dart';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class EditorPage extends StatefulHookWidget {
const EditorPage({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class GalleryPage extends ConsumerWidget {
const GalleryPage({
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/home_page.dart → app/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class HomePage extends HookConsumerWidget {
const HomePage({super.key});
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/pages/io_page.dart → app/lib/pages/io_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class IOPage extends StatelessWidget {
const IOPage({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class LanguagePage extends ConsumerWidget {
const LanguagePage({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/more_page.dart → app/lib/pages/more_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class MorePage extends StatelessWidget {
const MorePage({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class ReleasePage extends ConsumerWidget {
const ReleasePage({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/root_page.dart → app/lib/pages/root_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'root_page.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class SettingsPage extends StatelessWidget {
const SettingsPage({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class StatisticPage extends StatelessWidget {
const StatisticPage({super.key});
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class PlatformScrollBehavior extends CupertinoScrollBehavior {
const PlatformScrollBehavior();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';

class PlatformWindowManager {
static Future<void> init() async {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'color_schemes.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'current_position.g.dart';
part 'current_position.freezed.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ignore_for_file: non_constant_identifier_names

import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'github_latest_release.g.dart';
part 'github_latest_release.freezed.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'hitokoto.g.dart';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'package_info.g.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/riverpod/paths.dart → app/lib/riverpod/paths.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'paths.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'persistence.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'qweather_now.g.dart';
part 'qweather_now.freezed.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../app/lib/index.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'settings.g.dart';
part 'settings.freezed.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class ConfirmDialog extends StatelessWidget {
const ConfirmDialog({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class JsonToDialog extends StatelessWidget {
const JsonToDialog({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryListItem extends ConsumerWidget {
const DiaryListItem({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryListItemPlaceholder extends StatelessWidget {
const DiaryListItemPlaceholder({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryListView extends ConsumerWidget {
const DiaryListView({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryPageItem extends ConsumerWidget {
const DiaryPageItem({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryPageView extends ConsumerWidget {
const DiaryPageView({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../../app/lib/index.dart';

class DiaryShareButton extends StatelessWidget {
const DiaryShareButton({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorAppBar extends ConsumerWidget implements PreferredSizeWidget {
const EditorAppBar({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorAutoSaveButton extends StatefulWidget {
const EditorAutoSaveButton({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorBody extends StatelessWidget {
const EditorBody({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorImageButton extends QuillToolbarCustomButtonOptions {
const EditorImageButton({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorSaveButton extends ConsumerWidget {
const EditorSaveButton({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorTagButton extends QuillToolbarCustomButtonOptions {
const EditorTagButton({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:mercurius/index.dart';
import '../../../app/lib/index.dart';

class EditorToolbar extends StatelessWidget {
const EditorToolbar({
Expand Down
File renamed without changes.
Loading

0 comments on commit 6789256

Please sign in to comment.