├── CHANGELOG.md ├── LICENSE ├── composer.json ├── extend.php ├── js ├── admin.js ├── dist │ ├── admin.js │ ├── admin.js.map │ ├── forum.js │ └── forum.js.map ├── forum.js ├── package.json ├── src │ ├── @types │ │ └── shims.d.ts │ ├── admin │ │ ├── extend.ts │ │ └── index.tsx │ ├── common │ │ ├── extend.ts │ │ └── query │ │ │ └── posts │ │ │ └── MentionedGambit.ts │ └── forum │ │ ├── addComposerAutocomplete.js │ │ ├── addMentionedByList.js │ │ ├── addPostMentionPreviews.js │ │ ├── addPostQuoteButton.js │ │ ├── addPostReplyAction.js │ │ ├── components │ │ ├── GroupMentionedNotification.js │ │ ├── MentionedByModal.tsx │ │ ├── MentionsDropdownItem.tsx │ │ ├── MentionsUserPage.ts │ │ ├── PostMentionedNotification.js │ │ └── UserMentionedNotification.js │ │ ├── extend.ts │ │ ├── extenders │ │ └── Mentionables.ts │ │ ├── forum.js │ │ ├── fragments │ │ ├── AutocompleteDropdown.js │ │ └── PostQuoteButton.js │ │ ├── index.js │ │ ├── mentionables │ │ ├── GroupMention.tsx │ │ ├── MentionableModel.ts │ │ ├── MentionableModels.tsx │ │ ├── PostMention.tsx │ │ ├── TagMention.tsx │ │ ├── UserMention.tsx │ │ └── formats │ │ │ ├── AtMentionFormat.ts │ │ │ ├── HashMentionFormat.ts │ │ │ ├── MentionFormat.ts │ │ │ └── MentionFormats.ts │ │ ├── state │ │ └── MentionedByModalState.ts │ │ └── utils │ │ ├── getCleanDisplayName.js │ │ ├── reply.js │ │ ├── selectedText.js │ │ └── textFormatter.js ├── tsconfig.json └── webpack.config.js ├── less ├── admin.less └── forum.less ├── locale └── en.yml ├── migrations ├── 2015_05_11_000000_create_mentions_posts_table.php ├── 2015_05_11_000000_create_mentions_users_table.php ├── 2018_06_27_102000_rename_mentions_posts_to_post_mentions_post.php ├── 2018_06_27_102100_rename_mentions_users_to_post_mentions_user.php ├── 2018_06_27_102200_change_post_mentions_post_rename_mentions_id_to_mentions_post_id.php ├── 2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php ├── 2018_06_27_102400_change_post_mentions_user_rename_mentions_id_to_mentions_user_id.php ├── 2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php ├── 2021_04_19_000000_set_default_settings.php ├── 2022_05_20_000005_add_created_at_to_post_mentions_post_table.php ├── 2022_05_20_000006_add_created_at_to_post_mentions_user_table.php └── 2022_10_21_000000_create_post_mentions_group_table.php ├── src ├── Api │ └── PostResourceFields.php ├── ConfigureMentions.php ├── Filter │ ├── MentionedFilter.php │ └── MentionedPostFilter.php ├── Formatter │ ├── EagerLoadMentionedModels.php │ ├── FormatGroupMentions.php │ ├── FormatPostMentions.php │ ├── FormatTagMentions.php │ ├── FormatUserMentions.php │ ├── UnparsePostMentions.php │ ├── UnparseTagMentions.php │ └── UnparseUserMentions.php ├── Job │ └── SendMentionsNotificationsJob.php ├── Listener │ ├── UpdateMentionsMetadataWhenInvisible.php │ └── UpdateMentionsMetadataWhenVisible.php └── Notification │ ├── GroupMentionedBlueprint.php │ ├── PostMentionedBlueprint.php │ └── UserMentionedBlueprint.php └── views └── emails ├── html ├── groupMentioned.blade.php ├── postMentioned.blade.php └── userMentioned.blade.php └── plain ├── groupMentioned.blade.php ├── postMentioned.blade.php └── userMentioned.blade.php /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/LICENSE -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/composer.json -------------------------------------------------------------------------------- /extend.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/extend.php -------------------------------------------------------------------------------- /js/admin.js: -------------------------------------------------------------------------------- 1 | export * from './src/admin'; 2 | -------------------------------------------------------------------------------- /js/dist/admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/dist/admin.js -------------------------------------------------------------------------------- /js/dist/admin.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/dist/admin.js.map -------------------------------------------------------------------------------- /js/dist/forum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/dist/forum.js -------------------------------------------------------------------------------- /js/dist/forum.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/dist/forum.js.map -------------------------------------------------------------------------------- /js/forum.js: -------------------------------------------------------------------------------- 1 | export * from './src/forum'; 2 | -------------------------------------------------------------------------------- /js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/package.json -------------------------------------------------------------------------------- /js/src/@types/shims.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/@types/shims.d.ts -------------------------------------------------------------------------------- /js/src/admin/extend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/admin/extend.ts -------------------------------------------------------------------------------- /js/src/admin/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/admin/index.tsx -------------------------------------------------------------------------------- /js/src/common/extend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/common/extend.ts -------------------------------------------------------------------------------- /js/src/common/query/posts/MentionedGambit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/common/query/posts/MentionedGambit.ts -------------------------------------------------------------------------------- /js/src/forum/addComposerAutocomplete.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/addComposerAutocomplete.js -------------------------------------------------------------------------------- /js/src/forum/addMentionedByList.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/addMentionedByList.js -------------------------------------------------------------------------------- /js/src/forum/addPostMentionPreviews.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/addPostMentionPreviews.js -------------------------------------------------------------------------------- /js/src/forum/addPostQuoteButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/addPostQuoteButton.js -------------------------------------------------------------------------------- /js/src/forum/addPostReplyAction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/addPostReplyAction.js -------------------------------------------------------------------------------- /js/src/forum/components/GroupMentionedNotification.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/GroupMentionedNotification.js -------------------------------------------------------------------------------- /js/src/forum/components/MentionedByModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/MentionedByModal.tsx -------------------------------------------------------------------------------- /js/src/forum/components/MentionsDropdownItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/MentionsDropdownItem.tsx -------------------------------------------------------------------------------- /js/src/forum/components/MentionsUserPage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/MentionsUserPage.ts -------------------------------------------------------------------------------- /js/src/forum/components/PostMentionedNotification.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/PostMentionedNotification.js -------------------------------------------------------------------------------- /js/src/forum/components/UserMentionedNotification.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/components/UserMentionedNotification.js -------------------------------------------------------------------------------- /js/src/forum/extend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/extend.ts -------------------------------------------------------------------------------- /js/src/forum/extenders/Mentionables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/extenders/Mentionables.ts -------------------------------------------------------------------------------- /js/src/forum/forum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/forum.js -------------------------------------------------------------------------------- /js/src/forum/fragments/AutocompleteDropdown.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/fragments/AutocompleteDropdown.js -------------------------------------------------------------------------------- /js/src/forum/fragments/PostQuoteButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/fragments/PostQuoteButton.js -------------------------------------------------------------------------------- /js/src/forum/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/index.js -------------------------------------------------------------------------------- /js/src/forum/mentionables/GroupMention.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/GroupMention.tsx -------------------------------------------------------------------------------- /js/src/forum/mentionables/MentionableModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/MentionableModel.ts -------------------------------------------------------------------------------- /js/src/forum/mentionables/MentionableModels.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/MentionableModels.tsx -------------------------------------------------------------------------------- /js/src/forum/mentionables/PostMention.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/PostMention.tsx -------------------------------------------------------------------------------- /js/src/forum/mentionables/TagMention.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/TagMention.tsx -------------------------------------------------------------------------------- /js/src/forum/mentionables/UserMention.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/UserMention.tsx -------------------------------------------------------------------------------- /js/src/forum/mentionables/formats/AtMentionFormat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/formats/AtMentionFormat.ts -------------------------------------------------------------------------------- /js/src/forum/mentionables/formats/HashMentionFormat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/formats/HashMentionFormat.ts -------------------------------------------------------------------------------- /js/src/forum/mentionables/formats/MentionFormat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/formats/MentionFormat.ts -------------------------------------------------------------------------------- /js/src/forum/mentionables/formats/MentionFormats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/mentionables/formats/MentionFormats.ts -------------------------------------------------------------------------------- /js/src/forum/state/MentionedByModalState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/state/MentionedByModalState.ts -------------------------------------------------------------------------------- /js/src/forum/utils/getCleanDisplayName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/utils/getCleanDisplayName.js -------------------------------------------------------------------------------- /js/src/forum/utils/reply.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/utils/reply.js -------------------------------------------------------------------------------- /js/src/forum/utils/selectedText.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/utils/selectedText.js -------------------------------------------------------------------------------- /js/src/forum/utils/textFormatter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/src/forum/utils/textFormatter.js -------------------------------------------------------------------------------- /js/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/js/tsconfig.json -------------------------------------------------------------------------------- /js/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('flarum-webpack-config')(); 2 | -------------------------------------------------------------------------------- /less/admin.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /less/forum.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/less/forum.less -------------------------------------------------------------------------------- /locale/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/locale/en.yml -------------------------------------------------------------------------------- /migrations/2015_05_11_000000_create_mentions_posts_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2015_05_11_000000_create_mentions_posts_table.php -------------------------------------------------------------------------------- /migrations/2015_05_11_000000_create_mentions_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2015_05_11_000000_create_mentions_users_table.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102000_rename_mentions_posts_to_post_mentions_post.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102000_rename_mentions_posts_to_post_mentions_post.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102100_rename_mentions_users_to_post_mentions_user.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102100_rename_mentions_users_to_post_mentions_user.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102200_change_post_mentions_post_rename_mentions_id_to_mentions_post_id.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102200_change_post_mentions_post_rename_mentions_id_to_mentions_post_id.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102400_change_post_mentions_user_rename_mentions_id_to_mentions_user_id.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102400_change_post_mentions_user_rename_mentions_id_to_mentions_user_id.php -------------------------------------------------------------------------------- /migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php -------------------------------------------------------------------------------- /migrations/2021_04_19_000000_set_default_settings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2021_04_19_000000_set_default_settings.php -------------------------------------------------------------------------------- /migrations/2022_05_20_000005_add_created_at_to_post_mentions_post_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2022_05_20_000005_add_created_at_to_post_mentions_post_table.php -------------------------------------------------------------------------------- /migrations/2022_05_20_000006_add_created_at_to_post_mentions_user_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2022_05_20_000006_add_created_at_to_post_mentions_user_table.php -------------------------------------------------------------------------------- /migrations/2022_10_21_000000_create_post_mentions_group_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/migrations/2022_10_21_000000_create_post_mentions_group_table.php -------------------------------------------------------------------------------- /src/Api/PostResourceFields.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Api/PostResourceFields.php -------------------------------------------------------------------------------- /src/ConfigureMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/ConfigureMentions.php -------------------------------------------------------------------------------- /src/Filter/MentionedFilter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Filter/MentionedFilter.php -------------------------------------------------------------------------------- /src/Filter/MentionedPostFilter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Filter/MentionedPostFilter.php -------------------------------------------------------------------------------- /src/Formatter/EagerLoadMentionedModels.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/EagerLoadMentionedModels.php -------------------------------------------------------------------------------- /src/Formatter/FormatGroupMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/FormatGroupMentions.php -------------------------------------------------------------------------------- /src/Formatter/FormatPostMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/FormatPostMentions.php -------------------------------------------------------------------------------- /src/Formatter/FormatTagMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/FormatTagMentions.php -------------------------------------------------------------------------------- /src/Formatter/FormatUserMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/FormatUserMentions.php -------------------------------------------------------------------------------- /src/Formatter/UnparsePostMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/UnparsePostMentions.php -------------------------------------------------------------------------------- /src/Formatter/UnparseTagMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/UnparseTagMentions.php -------------------------------------------------------------------------------- /src/Formatter/UnparseUserMentions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Formatter/UnparseUserMentions.php -------------------------------------------------------------------------------- /src/Job/SendMentionsNotificationsJob.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Job/SendMentionsNotificationsJob.php -------------------------------------------------------------------------------- /src/Listener/UpdateMentionsMetadataWhenInvisible.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Listener/UpdateMentionsMetadataWhenInvisible.php -------------------------------------------------------------------------------- /src/Listener/UpdateMentionsMetadataWhenVisible.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Listener/UpdateMentionsMetadataWhenVisible.php -------------------------------------------------------------------------------- /src/Notification/GroupMentionedBlueprint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Notification/GroupMentionedBlueprint.php -------------------------------------------------------------------------------- /src/Notification/PostMentionedBlueprint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Notification/PostMentionedBlueprint.php -------------------------------------------------------------------------------- /src/Notification/UserMentionedBlueprint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/src/Notification/UserMentionedBlueprint.php -------------------------------------------------------------------------------- /views/emails/html/groupMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/html/groupMentioned.blade.php -------------------------------------------------------------------------------- /views/emails/html/postMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/html/postMentioned.blade.php -------------------------------------------------------------------------------- /views/emails/html/userMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/html/userMentioned.blade.php -------------------------------------------------------------------------------- /views/emails/plain/groupMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/plain/groupMentioned.blade.php -------------------------------------------------------------------------------- /views/emails/plain/postMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/plain/postMentioned.blade.php -------------------------------------------------------------------------------- /views/emails/plain/userMentioned.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flarum/mentions/HEAD/views/emails/plain/userMentioned.blade.php --------------------------------------------------------------------------------