Skip to content

Commit

Permalink
Change version to 0.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Mar 21, 2020
2 parents 4fe28e7 + f039c5f commit d26ff0b
Show file tree
Hide file tree
Showing 34 changed files with 62 additions and 189 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An abp application module that allows users to send private messages to each oth

1. Add `options.ConventionalControllers.Create(typeof(PrivateMessagingApplicationModule).Assembly);` to `Configure<AbpAspNetCoreMvcOptions>(options => { ... });` in your host module (It is usually Web project or HttpApi.Host project).

1. Add `builder.ConfigurePrivateMessaging();` after `builder.ConfigureMyProject();` to `MyProjectMigrationsDbContext.cs`.
1. Add `builder.ConfigurePrivateMessaging();` to OnModelCreating method in `MyProjectMigrationsDbContext.cs`.

1. Add EF Core migrations and update your database. See: [ABP document](https://docs.abp.io/en/abp/latest/Tutorials/Part-1?UI=MVC#add-new-migration-update-the-database).

Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.2.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions src/EasyAbp.PrivateMessaging.HttpApi/Samples/SampleController.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@
<Folder Include="wwwroot\" />
</ItemGroup>

<ItemGroup>
<_ContentIncludedByDefault Remove="Pages\PrivateMessages\PrivateMessage\CreateModal.cshtml" />
<_ContentIncludedByDefault Remove="Pages\PrivateMessages\PrivateMessage\DetailModal.cshtml" />
<_ContentIncludedByDefault Remove="Pages\PrivateMessages\PrivateMessage\Inbox.cshtml" />
<_ContentIncludedByDefault Remove="Pages\PrivateMessages\PrivateMessage\Outbox.cshtml" />
<_ContentIncludedByDefault Remove="Pages\Components\PmNotification\Default.cshtml" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

var title = count > 0 ? L["PmNotificationDropdownTitle", count] : L["PmNotificationDropdownTitleEmpty"];
}
<script>
</script>
<div class="dropdown">
<div class="dropdown" id="pmNotification">
<a class="nav-link dropdown-toggle" href="#" role="button" id="pmNotificationLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@title
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$(function() {
let pmService = easyAbp.privateMessaging.privateMessages.privateMessage;
let notificationService = easyAbp.privateMessaging.privateMessageNotifications.privateMessageNotification;
let detailModal = new abp.ModalManager(abp. appPath + 'PrivateMessages/PrivateMessage/DetailModal');
var widgetManager = new abp.WidgetManager("#main-navbar-collapse");
let detailModal = new abp.ModalManager(abp. appPath + 'PrivateMessaging/PrivateMessages/PrivateMessage/DetailModal');
var widgetManager = new abp.WidgetManager({filterForm: 'PmNotification'});

$(document.body).on('click', '#pmNotificationShowMore', function () {
document.location.href = "/PrivateMessages/PrivateMessage/Inbox"
document.location.href = "/PrivateMessaging/PrivateMessages/PrivateMessage/Inbox"
});

$(document.body).on('click', '#pmNotificationHideThese', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling;
using Volo.Abp.Modularity;

namespace EasyAbp.PrivateMessaging.Web.Pages.Components.PmNotification
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.Components.PmNotification
{
[DependsOn(typeof(SharedThemeGlobalScriptContributor))]
public class PmNotificationScriptBundleContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/Pages/Components/PmNotification/Default.js");
context.Files.AddIfNotContains("/Pages/PrivateMessaging/Components/PmNotification/Default.js");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling;
using Volo.Abp.Modularity;

namespace EasyAbp.PrivateMessaging.Web.Pages.Components.PmNotification
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.Components.PmNotification
{
[DependsOn(typeof(SharedThemeGlobalStyleContributor))]
public class PmNotificationStyleBundleContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/Pages/Components/PmNotification/Default.css");
context.Files.AddIfNotContains("/Pages/PrivateMessaging/Components/PmNotification/Default.css");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc.UI.Widgets;

namespace EasyAbp.PrivateMessaging.Web.Pages.Components.PmNotification
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.Components.PmNotification
{
[Widget(RefreshUrl = "/Widgets/PmNotification")]
[ViewComponent(Name = "PmNotification")]
public class PmNotificationViewComponent : AbpViewComponent
{
public virtual async Task<IViewComponentResult> InvokeAsync()
{
return View("~/Pages/Components/PmNotification/Default.cshtml");
return View("~/Pages/PrivateMessaging/Components/PmNotification/Default.cshtml");
}
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@page
@namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
@inherits EasyAbp.PrivateMessaging.Web.Pages.PrivateMessagingPage
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
@model CreateModalModel
@{
Layout = null;
}
<abp-dynamic-form abp-model="PrivateMessage" data-ajaxForm="true" asp-page="/PrivateMessages/PrivateMessage/CreateModal">
<abp-dynamic-form abp-model="PrivateMessage" data-ajaxForm="true" asp-page="/PrivateMessaging/PrivateMessages/PrivateMessage/CreateModal">
<abp-modal>
<abp-modal-header title="@L["CreatePrivateMessage"].Value"></abp-modal-header>
<abp-modal-body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using System.Threading.Tasks;
using EasyAbp.PrivateMessaging.PrivateMessages;
using EasyAbp.PrivateMessaging.PrivateMessages.Dtos;
using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage.InfoModels;
using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage.InfoModels;
using Microsoft.AspNetCore.Mvc;

namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
{
public class CreateModalModel : PrivateMessagingPageModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$(function () {

var createModal = new abp.ModalManager(abp.appPath + 'PrivateMessages/PrivateMessage/CreateModal');
var createModal = new abp.ModalManager(abp.appPath + 'PrivateMessaging/PrivateMessages/PrivateMessage/CreateModal');
var dataTableElement = $('#PrivateMessageTable');
var widgetManager = new abp.WidgetManager("#main-navbar-collapse");
var widgetManager = new abp.WidgetManager({filterForm: 'PmNotification'});

$('#ReplyPrivateMessage').click(function (e) {
createModal.open({toUserName: $('#PrivateMessage_CreatorUserName').val()});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@page
@namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
@inherits EasyAbp.PrivateMessaging.Web.Pages.PrivateMessagingPage
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
@model DetailModalModel
@{
Layout = null;
}

<abp-script src="/Pages/PrivateMessages/PrivateMessage/detail.js" />
<abp-script src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/detail.js" />

<abp-dynamic-form abp-model="PrivateMessage" data-ajaxForm="true" asp-page="/PrivateMessages/PrivateMessage/DetailModal">
<abp-dynamic-form abp-model="PrivateMessage" data-ajaxForm="true" asp-page="/PrivateMessaging/PrivateMessages/PrivateMessage/DetailModal">
<abp-modal>
<abp-modal-header title="@L["PrivateMessage"].Value"></abp-modal-header>
<abp-modal-body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Threading.Tasks;
using EasyAbp.PrivateMessaging.PrivateMessages;
using EasyAbp.PrivateMessaging.PrivateMessages.Dtos;
using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage.InfoModels;
using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage.InfoModels;

namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
{
public class DetailModalModel : PrivateMessagingPageModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
@page
@namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
@using EasyAbp.PrivateMessaging.Authorization
@using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
@using Microsoft.AspNetCore.Authorization
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@inherits EasyAbp.PrivateMessaging.Web.Pages.PrivateMessagingPage
@model InboxModel
@inject IPageLayout PageLayout
@inject IAuthorizationService Authorization
@section scripts
{
<abp-script src="/Pages/PrivateMessages/PrivateMessage/inbox.js" />
<abp-script src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/inbox.js" />
}
@section styles
{
<abp-style src="/Pages/PrivateMessages/PrivateMessage/common.css"/>
<abp-style src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/common.css"/>
}
@{
PageLayout.Content.Title = L["PrivateMessageInbox"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:PrivateMessage"].Value);
}

<abp-card>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
{
public class InboxModel : PrivateMessagingPageModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ $(function () {
var l = abp.localization.getResource('PrivateMessaging');

var service = easyAbp.privateMessaging.privateMessages.privateMessage;
var detailModal = new abp.ModalManager(abp.appPath + 'PrivateMessages/PrivateMessage/DetailModal');
var createModal = new abp.ModalManager(abp.appPath + 'PrivateMessages/PrivateMessage/CreateModal');
var widgetManager = new abp.WidgetManager("#main-navbar-collapse");
var detailModal = new abp.ModalManager(abp.appPath + 'PrivateMessaging/PrivateMessages/PrivateMessage/DetailModal');
var createModal = new abp.ModalManager(abp.appPath + 'PrivateMessaging/PrivateMessages/PrivateMessage/CreateModal');
var widgetManager = new abp.WidgetManager({filterForm: 'PmNotification'});

var dataTable = $('#PrivateMessageTable').DataTable(abp.libs.datatables.normalizeConfiguration({
bSort: false,
Expand Down Expand Up @@ -83,14 +83,6 @@ $(function () {
dataTable.ajax.reload();
});

detailModal.onClose(function (event, response) {
console.log(event);
console.log(response);
// _newTenantInformationModal.open({
// managerPassword: response.responseText
// });
});

$('#OutboxButton').click(function (e) {
document.location.href = 'Outbox';
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using EasyAbp.PrivateMessaging.PrivateMessages;
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form;

namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage.InfoModels
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage.InfoModels
{
public class CreatePrivateMessageInfoModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form;

namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage.InfoModels
namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage.InfoModels
{
public class PrivateMessageInfoModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
@page
@using EasyAbp.PrivateMessaging.Web.Pages.PrivateMessages.PrivateMessage
@namespace EasyAbp.PrivateMessaging.Web.Pages.PrivateMessaging.PrivateMessages.PrivateMessage
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@inherits EasyAbp.PrivateMessaging.Web.Pages.PrivateMessagingPage
@inject IPageLayout PageLayout
@model OutboxModel

@section scripts
{
<abp-script src="/Pages/PrivateMessages/PrivateMessage/outbox.js" />
<abp-script src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/outbox.js" />
}
@section styles
{
<abp-style src="/Pages/PrivateMessages/PrivateMessage/common.css"/>
<abp-style src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/common.css"/>
}
@{
PageLayout.Content.Title = L["PrivateMessageInbox"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:PrivateMessage"].Value);
}

<abp-card>
Expand Down
Loading

0 comments on commit d26ff0b

Please sign in to comment.