Browse Source
Merge pull request #8653 from abpframework/auto-merge/rel-4-3/312
Merge branch dev with rel-4.3
pull/8655/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
32 additions and
6 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateSwitchEntityFrameworkCoreToMongoDbStep.cs
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/details.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js
-
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js
|
|
|
@ -1,4 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Linq; |
|
|
|
using Volo.Abp.Cli.Commands; |
|
|
|
using Volo.Abp.Cli.ProjectBuilding.Building; |
|
|
|
|
|
|
|
namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
@ -193,6 +195,30 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
"MyProjectNameEntityFrameworkCoreCollectionFixtureBase", |
|
|
|
"MyProjectNameMongoDbCollectionFixtureBase" |
|
|
|
); |
|
|
|
|
|
|
|
if (context.BuildArgs.PublicWebSite) |
|
|
|
{ |
|
|
|
ChangeProjectReference( |
|
|
|
context, |
|
|
|
"/aspnet-core/src/MyCompanyName.MyProjectName.Web.Public/MyCompanyName.MyProjectName.Web.Public.csproj", |
|
|
|
"EntityFrameworkCore.DbMigrations", |
|
|
|
"MongoDB" |
|
|
|
); |
|
|
|
|
|
|
|
ChangeNamespaceAndKeyword( |
|
|
|
context, |
|
|
|
"/aspnet-core/src/MyCompanyName.MyProjectName.Web.Public/MyProjectNameWebPublicModule.cs", |
|
|
|
"MyCompanyName.MyProjectName.EntityFrameworkCore", |
|
|
|
"MyCompanyName.MyProjectName.MongoDB", |
|
|
|
"MyProjectNameEntityFrameworkCoreDbMigrationsModule", |
|
|
|
"MyProjectNameMongoDbModule" |
|
|
|
); |
|
|
|
|
|
|
|
ChangeConnectionStringToMongoDb( |
|
|
|
context, |
|
|
|
"/aspnet-core/src/MyCompanyName.MyProjectName.Web.Public/appsettings.json" |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void ChangeProjectReference( |
|
|
|
|
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
data: "author.userName", |
|
|
|
render: function (data) { |
|
|
|
if (data !== null) { |
|
|
|
return GetFilterableDatatableContent('#Author', data); |
|
|
|
return GetFilterableDatatableContent('#Author', $.fn.dataTable.render.text().display(data)); //prevent against possible XSS
|
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
@ -97,7 +97,7 @@ |
|
|
|
data: "text", |
|
|
|
orderable: false, |
|
|
|
render: function (data) { |
|
|
|
data = data || ""; |
|
|
|
data = $.fn.dataTable.render.text().display(data || ""); |
|
|
|
|
|
|
|
var maxChars = 64; |
|
|
|
|
|
|
|
|
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
data: "author.userName", |
|
|
|
render: function (data) { |
|
|
|
if (data !== null) { |
|
|
|
return GetFilterableDatatableContent('#Author', data); |
|
|
|
return GetFilterableDatatableContent('#Author', $.fn.dataTable.render.text().display(data)); //prevent against possible XSS
|
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
@ -99,7 +99,7 @@ |
|
|
|
data: "entityType", |
|
|
|
render: function (data) { |
|
|
|
if (data !== null) { |
|
|
|
return GetFilterableDatatableContent('#EntityType', data); |
|
|
|
return GetFilterableDatatableContent('#EntityType', $.fn.dataTable.render.text().display(data)); |
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
@ -109,7 +109,7 @@ |
|
|
|
data: "text", |
|
|
|
orderable: false, |
|
|
|
render: function (data) { |
|
|
|
data = data || ""; |
|
|
|
data = $.fn.dataTable.render.text().display(data || ""); |
|
|
|
|
|
|
|
var maxChars = 64; |
|
|
|
|
|
|
|
|
|
|
|
@ -84,7 +84,7 @@ |
|
|
|
title: l('RoleName'), |
|
|
|
data: 'name', |
|
|
|
render: function (data, type, row) { |
|
|
|
var name = '<span>' + data + '</span>'; |
|
|
|
var name = '<span>' + $.fn.dataTable.render.text().display(data) + '</span>'; //prevent against possible XSS
|
|
|
|
if (row.isDefault) { |
|
|
|
name += |
|
|
|
'<span class="badge badge-pill badge-success ml-1">' + |
|
|
|
|