Skip to content

Commit

Permalink
Merge pull request #65 from mineral-dart/feat-migrate-decorators
Browse files Browse the repository at this point in the history
feat: Migrate decorators to generics
  • Loading branch information
LeadcodeDev authored Nov 17, 2022
2 parents 82efe5f + 819a7f7 commit 88163bc
Show file tree
Hide file tree
Showing 227 changed files with 2,184 additions and 2,022 deletions.
2 changes: 1 addition & 1 deletion bin/mineral.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:args/args.dart';
import 'package:mineral/api.dart';
import 'package:mineral/core.dart';
import 'package:mineral/framework.dart';

Future<void> main (List<String> arguments) async {
Kernel kernel = Kernel();
Expand Down
50 changes: 0 additions & 50 deletions example/advanced/create_service.dart

This file was deleted.

12 changes: 0 additions & 12 deletions example/commands/simple_command.dart

This file was deleted.

21 changes: 0 additions & 21 deletions example/commands/sub_command.dart

This file was deleted.

22 changes: 0 additions & 22 deletions example/commands/sub_command_group.dart

This file was deleted.

13 changes: 0 additions & 13 deletions example/commands/sub_command_with_binding.dart

This file was deleted.

9 changes: 0 additions & 9 deletions example/context_menus/message_context_menu.dart

This file was deleted.

9 changes: 0 additions & 9 deletions example/context_menus/user_context_menu.dart

This file was deleted.

15 changes: 0 additions & 15 deletions example/events/button_interaction_create.dart

This file was deleted.

9 changes: 0 additions & 9 deletions example/events/guild_create.dart

This file was deleted.

9 changes: 0 additions & 9 deletions example/events/message_create.dart

This file was deleted.

33 changes: 0 additions & 33 deletions example/stores/shared_state.dart

This file was deleted.

69 changes: 0 additions & 69 deletions lib/api.dart

This file was deleted.

13 changes: 3 additions & 10 deletions lib/core.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
/// 🧡 The neuralgic heart of the application, this module gathers all the functionalities of the framework.
library core;

export 'src/internal/services/environment.dart' show Environment;

export 'src/internal/kernel.dart' show Kernel;
export 'package:mineral_ioc/ioc.dart' show ioc, Service;

export 'src/constants.dart';
export 'src/internal/kernel.dart' show Kernel;
export 'src/internal/services/environment.dart' show Environment;
export 'src/internal/services/http.dart';
export 'src/internal/entities/event.dart' show Event, Events, MineralEvent;
export 'src/internal/entities/command.dart' show Command, MineralCommand, Option, OptionType, OptionChoice, Subcommand, CommandGroup;
export 'src/internal/entities/store.dart' show Store, MineralStore;
export 'src/internal/entities/module.dart' show Module, MineralModule;
export 'src/internal/entities/context_menu.dart' show ContextMenu, MineralContextMenu;

43 changes: 43 additions & 0 deletions lib/core/api.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/// The api is the Map of all the classes, enumerations of the framework
library api;

export '../src/api/activity.dart' show Activity;
export '../src/api/application.dart' show Application;
export '../src/api/channels/category_channel.dart' show CategoryChannel;
export '../src/api/channels/forum_channel.dart' show ForumChannel;
export '../src/api/channels/guild_channel.dart' show GuildChannel;
export '../src/api/channels/partial_channel.dart' show PartialChannel, ChannelType;
export '../src/api/channels/partial_text_channel.dart' show PartialTextChannel;
export '../src/api/channels/text_based_channel.dart' show TextBasedChannel;
export '../src/api/channels/text_channel.dart' show TextChannel;
export '../src/api/channels/thread_channel.dart' show ThreadChannel;
export '../src/api/channels/voice_channel.dart' show VoiceChannel;
export '../src/api/client/client_presence.dart' show ClientPresence, GamePresence;
export '../src/api/client/mineral_client.dart' show MineralClient, ClientActivity, ClientStatus;
export '../src/api/color.dart' show Color;
export '../src/api/emoji.dart' show Emoji;
export '../src/api/guilds/guild.dart' show Guild;
export '../src/api/guilds/guild_member.dart' show GuildMember;
export '../src/api/guilds/guild_preview.dart' show GuildPreview;
export '../src/api/guilds/guild_scheduled_event.dart' show ScheduledEventStatus, ScheduledEventEntityType, GuildScheduledEvent, ScheduledEventUser;
export '../src/api/image_formater.dart' show ImageFormater;
export '../src/api/interactions/button_interaction.dart' show ButtonInteraction;
export '../src/api/interactions/command_interaction.dart' show CommandInteraction;
export '../src/api/interactions/context_message_interaction.dart' show ContextMessageInteraction;
export '../src/api/interactions/context_user_interaction.dart' show ContextUserInteraction;
export '../src/api/interactions/interaction.dart' show Interaction;
export '../src/api/interactions/modal_interaction.dart' show ModalInteraction;
export '../src/api/interactions/select_menu_interaction.dart' show SelectMenuInteraction;
export '../src/api/managers/member_role_manager.dart' show MemberRoleManager;
export '../src/api/managers/voice_manager.dart' show VoiceManager;
export '../src/api/messages/message.dart' show Message;
export '../src/api/moderation_rule.dart' show ModerationEventType, ModerationTriggerType, ModerationPresetType, ModerationActionType, ModerationTriggerMetadata, ModerationActionMetadata, ModerationAction, ModerationRule;
export '../src/api/permission_overwrite.dart' show PermissionOverwrite, PermissionOverwriteType;
export '../src/api/role.dart' show Role;
export '../src/api/status.dart' show Status, StatusType;
export '../src/api/user.dart' show User;
export '../src/api/utils.dart';
export '../src/api/webhook.dart' show Webhook;
export '../src/internal/managers/intent_manager.dart' show Intent;

typedef Snowflake = String;
14 changes: 14 additions & 0 deletions lib/core/builders.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
library builders;

export '../src/api/builders/button_builder.dart' show ButtonBuilder, ButtonStyle;
export '../src/api/builders/channel_builder.dart' show ChannelBuilder;
export '../src/api/builders/code_builder.dart' show CodeBuilder;
export '../src/api/builders/embed_builder.dart' show EmbedBuilder, Footer, Image, Thumbnail, Author, Field;
export '../src/api/builders/emoji_builder.dart' show EmojiBuilder;
export '../src/api/builders/forum_tag_builder.dart' show ForumTagBuilder;
export '../src/api/builders/message_builder.dart' show MessageBuilder;
export '../src/api/builders/modal_builder.dart' show ModalBuilder;
export '../src/api/builders/moderation_rules_builder.dart' show ModerationRulesBuilder;
export '../src/api/builders/row_builder.dart' show RowBuilder;
export '../src/api/builders/select_menu_builder.dart' show SelectMenuBuilder, SelectMenuOption, EmojiOption;
export '../src/api/builders/text_input_builder.dart' show TextInputBuilder, TextInputStyle;
3 changes: 3 additions & 0 deletions lib/core/collectors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library collectors;

export '../src/api/collectors/message_collector.dart' show MessageCollector;
Loading

0 comments on commit 88163bc

Please sign in to comment.