Skip to content

Commit

Permalink
feat: write core entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
LeadcodeDev committed Sep 9, 2024
1 parent cf87b64 commit 7ec4a56
Show file tree
Hide file tree
Showing 339 changed files with 1,855 additions and 1,758 deletions.
234 changes: 125 additions & 109 deletions lib/api.dart

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions lib/api/common/commands/command_declaration.dart

This file was deleted.

8 changes: 0 additions & 8 deletions lib/api/common/commands/command_definition.dart

This file was deleted.

6 changes: 0 additions & 6 deletions lib/api/common/managers/message_manager.dart

This file was deleted.

23 changes: 0 additions & 23 deletions lib/api/private/channels/private_group_channel.dart

This file was deleted.

17 changes: 0 additions & 17 deletions lib/api/server/channels/server_channel.dart

This file was deleted.

15 changes: 15 additions & 0 deletions lib/container.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
library container;

import 'package:mineral/src/infrastructure/internals/container/ioc_container.dart';
import 'package:mineral/src/infrastructure/internals/environment/environment.dart' as env_service;
import 'package:mineral/src/infrastructure/services/logger/logger.dart' as logger_service;

export 'package:mineral/src/infrastructure/internals/container/ioc_container.dart' show ioc;

mixin InjectLogger {
logger_service.LoggerContract get logger => ioc.resolve<logger_service.LoggerContract>();
}

mixin InjectEnvironment {
env_service.EnvContract get env => ioc.resolve<env_service.EnvContract>();
}
14 changes: 0 additions & 14 deletions lib/core/container.dart

This file was deleted.

97 changes: 0 additions & 97 deletions lib/domains/events/event.dart

This file was deleted.

7 changes: 0 additions & 7 deletions lib/domains/events/types/listenable_event.dart

This file was deleted.

71 changes: 36 additions & 35 deletions lib/events.dart
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
/// Events library;
library events;

export 'package:mineral/domains/events/contracts/common/ready_event.dart';
export 'package:mineral/domains/events/contracts/private/private_button_click_event.dart';
export 'package:mineral/domains/events/contracts/private/private_channel_create_event.dart';
export 'package:mineral/domains/events/contracts/private/private_channel_delete_event.dart';
export 'package:mineral/domains/events/contracts/private/private_channel_pins_update_event.dart';
export 'package:mineral/domains/events/contracts/private/private_channel_update_event.dart';
export 'package:mineral/domains/events/contracts/private/private_dialog_submit_event.dart';
export 'package:mineral/domains/events/contracts/private/private_message_create_event.dart';
export 'package:mineral/domains/events/contracts/private/private_text_select_event.dart';
export 'package:mineral/domains/events/contracts/private/private_user_select_event.dart';
export 'package:mineral/domains/events/contracts/server/server_ban_add_event.dart';
export 'package:mineral/domains/events/contracts/server/server_ban_remove_event.dart';
export 'package:mineral/domains/events/contracts/server/server_button_click_event.dart';
export 'package:mineral/domains/events/contracts/server/server_channel_create_event.dart';
export 'package:mineral/domains/events/contracts/server/server_channel_delete_event.dart';
export 'package:mineral/domains/events/contracts/server/server_channel_pins_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_channel_select_event.dart';
export 'package:mineral/domains/events/contracts/server/server_channel_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_create_event.dart';
export 'package:mineral/domains/events/contracts/server/server_delete_event.dart';
export 'package:mineral/domains/events/contracts/server/server_dialog_submit_event.dart';
export 'package:mineral/domains/events/contracts/server/server_emojis_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_member_add_event.dart';
export 'package:mineral/domains/events/contracts/server/server_member_remove_event.dart';
export 'package:mineral/domains/events/contracts/server/server_member_select_event.dart';
export 'package:mineral/domains/events/contracts/server/server_member_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_message_create_event.dart';
export 'package:mineral/domains/events/contracts/server/server_presence_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_role_select_event.dart';
export 'package:mineral/domains/events/contracts/server/server_roles_create_event.dart';
export 'package:mineral/domains/events/contracts/server/server_roles_remove_event.dart';
export 'package:mineral/domains/events/contracts/server/server_roles_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_stickers_update_event.dart';
export 'package:mineral/domains/events/contracts/server/server_text_select_event.dart';
export 'package:mineral/domains/events/contracts/server/server_update_event.dart';
export 'package:mineral/src/domains/events/contracts/common/ready_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_button_click_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_channel_create_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_channel_delete_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_channel_pins_update_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_channel_update_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_dialog_submit_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_message_create_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_text_select_event.dart';
export 'package:mineral/src/domains/events/contracts/private/private_user_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_ban_add_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_ban_remove_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_button_click_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_channel_create_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_channel_delete_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_channel_pins_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_channel_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_channel_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_create_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_delete_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_dialog_submit_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_emojis_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_member_add_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_member_remove_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_member_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_member_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_message_create_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_presence_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_role_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_create_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_remove_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_stickers_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_text_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_update_event.dart';
Loading

0 comments on commit 7ec4a56

Please sign in to comment.