Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: neoncube2/flarum-private-messages
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.0
Choose a base ref
...
head repository: neoncube2/flarum-private-messages
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.2.1
Choose a head ref
  • 16 commits
  • 30 files changed
  • 2 contributors

Commits on Aug 29, 2024

  1. Copy the full SHA
    585d6ec View commit details
  2. Copy the full SHA
    9e5ad59 View commit details

Commits on Aug 31, 2024

  1. Added screenshot

    neoncube2 committed Aug 31, 2024
    Copy the full SHA
    d3df162 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6d969a0 View commit details

Commits on Sep 1, 2024

  1. Fixes for mobile.

    neoncube2 committed Sep 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d196336 View commit details
  2. Emails! :)

    neoncube2 committed Sep 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8372dfd View commit details
  3. Sort of fixed for mobile.

    neoncube2 committed Sep 1, 2024
    Copy the full SHA
    4205516 View commit details
  4. Copy the full SHA
    28b6636 View commit details

Commits on Sep 10, 2024

  1. Copy the full SHA
    92d4f1f View commit details
  2. Copy the full SHA
    31bb81d View commit details

Commits on Sep 11, 2024

  1. Copy the full SHA
    65ed6e3 View commit details

Commits on Sep 14, 2024

  1. Update extension.less

    kk14569 authored Sep 14, 2024
    Copy the full SHA
    29f4cf8 View commit details

Commits on Sep 15, 2024

  1. Merge pull request #7 from kk14569/main

    fix interface display problem: border-radius
    neoncube2 authored Sep 15, 2024
    Copy the full SHA
    2bb029f View commit details
  2. Copy the full SHA
    1ce10db View commit details
  3. Copy the full SHA
    8150c57 View commit details
  4. Committing JS dist build

    neoncube2 committed Sep 15, 2024
    Copy the full SHA
    da7403c View commit details
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,8 +4,12 @@ A [Flarum](http://flarum.org) extension for adding private messages to your foru

Private messages (PM's) are also known as "direct messages" (DM's). (e.g. "Send me a PM!" or "Send me a DM!")

![Flarum Private Messages screenshot](https://raw.githubusercontent.com/neoncube2/flarum-private-messages/main/resources/screenshot.jpg)

## Installation

composer remove kyrne/whisper --no-update
composer remove littlecxm/whisper --no-update
composer require neoncube/flarum-private-messages:"*"

## Updating
@@ -16,7 +20,7 @@ Private messages (PM's) are also known as "direct messages" (DM's). (e.g. "Send

## Links

- [Report an issue via Flarum forums](https://github.com/neoncube2/flarum-private-messages/issues)
- [Report an issue via Flarum forums](https://discuss.flarum.org/d/35388-private-messages)
- [Report an issue via Github](https://github.com/neoncube2/flarum-private-messages/issues)

## Credits
15 changes: 11 additions & 4 deletions extend.php
Original file line number Diff line number Diff line change
@@ -9,16 +9,17 @@
use Flarum\User\User;
use Neoncube\FlarumPrivateMessages\Api\Controllers;
use Neoncube\FlarumPrivateMessages\Api\Serializers\ConversationRecipientSerializer;
use Neoncube\FlarumPrivateMessages\Notifications\PrivateMessageReceivedBlueprint;
use Neoncube\FlarumPrivateMessages\Api\Serializers\MessageSerializer;
use Neoncube\FlarumPrivateMessages\Notifications\NewPrivateMessageBlueprint;

return [
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js')
->css(__DIR__ . '/resources/less/extension.less')
->route('/neoncube-private-messages/messages/{id}', 'neoncube-private-messages.messages')
->route('/neoncube-private-messages/conversations', 'neoncube-private-messages.conversation'),
->route('/conversations/{id}', 'neoncube-private-messages.messages')
->route('/conversations', 'neoncube-private-messages.conversations'),
new Extend\Locales(__DIR__ . '/resources/locale'),
// (new Extend\Model(User::class))
// ->hasMany('conversations', ConversationUser::class, 'user_id'),
@@ -38,6 +39,10 @@
->attribute('canMessage', function (ForumSerializer $serializer) {
return $serializer->getActor()->can('startConversation');
}),
(new Extend\ApiSerializer(ForumSerializer::class))
->attribute('neoncubePrivateMessagesAllowUsersToReceiveEmailNotifications', function (ForumSerializer $serializer) {
return $serializer->getActor()->can('neoncube-private-messages.allowUsersToReceiveEmailNotifications');
}),

(new Extend\ApiSerializer(CurrentUserSerializer::class))
->attribute('unreadMessages', function (CurrentUserSerializer $serializer) {
@@ -60,5 +65,7 @@
// (new Extend\ApiController(Controller\UpdateUserController::class))
// ->addInclude('conversations'),
(new Extend\Notification())
->type(PrivateMessageReceivedBlueprint::class, MessageSerializer::class, ['alert', 'email']),
->type(NewPrivateMessageBlueprint::class, MessageSerializer::class, ['email']),
(new Extend\View)
->namespace('flarum-private-messages', __DIR__.'/views'),
];
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading