diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
index 8b5fa2014e..5bf922f012 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
@@ -34,8 +34,8 @@
"MyOrganizations": "My organizations",
"EmailNotValid": "Please enter a valid email address.",
"FeatureRequest": "Feature Request",
- "CreateArticleTitleInfo": "Title of the article to be shown on the article list.",
- "CreateArticleSummaryInfo": "A short summary of the article to be shown on the article list.",
+ "CreateArticleTitleInfo": "Title of the post to be shown on the post list.",
+ "CreateArticleSummaryInfo": "A short summary of the post to be shown on the post list.",
"CreateArticleCoverInfo": "For creating an effective article, add a cover photo. Upload 16:9 aspect ratio pictures for the best view. Maximum file size: 1MB.",
"ThisExtensionIsNotAllowed": "This extension is not allowed.",
"TheFileIsTooLarge": "The file is too large.",
@@ -100,17 +100,38 @@
"ArticleRequestMessageTitle": "Open an issue on the GitHub to request an article/tutorial you want to see on this web site.",
"ArticleRequestMessageBody": "Here, the list of the requested articles by the community. Do you want to write a requested article? Please click to the request and join to the discussion.",
"Language": "Language",
- "CreateArticleLanguageInfo": "The language in which the article is written",
+ "CreateArticleLanguageInfo": "The language for the post content.",
"VideoPost": "Video Post",
"Article": "Article",
"Read": "Read",
"CreateGithubArticleUrlInfo": "Original GitHub URL of the article.",
- "CreateVideoContentUrlInfo": "Original Youtube URL of the article.",
+ "CreateVideoContentUrlInfo": "Original Youtube URL of the post.",
"CreateExternalArticleUrlInfo": "Original External Url of the article.",
- "VideoContentForm": "Video Content Form",
- "GithubPostForm": "Github Post Form",
- "ExternalPostForm": "External Post Form",
- "PostSourceTypeChooses": "We accept three source types for the posts;",
- "Posts": "Posts"
+ "VideoContentForm": "Submit Video on YouTube",
+ "GithubPostForm": "Submit Article on GitHub",
+ "ExternalPostForm": "Submit an External Content",
+ "HowToPost": "How to Post?",
+ "Posts": "Posts",
+ "VideoUrl": "Video Url",
+ "GithubArticleUrl": "Github Article Url",
+ "ExternalArticleUrl": "External Article Url",
+ "CreatePostCoverInfo": "For creating an effective post, add a cover photo. Upload 16:9 aspect ratio pictures for the best view. Maximum file size: 1MB.",
+ "ThankYouForContribution": "Thank you for contributing to the ABP Community.",
+ "GithubArticle": "Github Article",
+ "GithubArticleSubmitStepOne": "1. Write an article on any public GitHub repository with the Markdown format. example",
+ "GithubArticleSubmitStepTwo": "2. Submit your article URL using the form.",
+ "GithubArticleSubmitStepThree": "3. Your article will be rendered in this web site.",
+ "YoutubeVideo": "Youtube Video",
+ "YoutubeVideoSubmitStepOne": "1. Publish your video on YouTube.",
+ "YoutubeVideoSubmitStepTwo": "2. Submit the video URL using the form.",
+ "YoutubeVideoSubmitStepThree": "3. Visitors will be able to watch your video content directly on this website.",
+ "ExternalContent": "External Content",
+ "ExternalContentSubmitStepOne": "1. Create a content on any public platform (medium, your own blog or anywhere you like).",
+ "ExternalContentSubmitStepTwo": "2. Submit your content URL using the form.",
+ "ExternalContentSubmitStepThree": "3. Visitors are redirected to the content on the original website.",
+ "ChooseYourContentType": "Please choose the way you want to add your content.",
+ "PostContentViaGithub": "I want to add my article with GitHub in accordance with the markdown rules.",
+ "PostContentViaYoutube": "I want to share my videos available on Youtube here.",
+ "PostContentViaExternalSource": "I want to add the content I published on another platform here."
}
}
diff --git a/docs/en/UI/Angular/Authorization.md b/docs/en/UI/Angular/Authorization.md
new file mode 100644
index 0000000000..75d6107341
--- /dev/null
+++ b/docs/en/UI/Angular/Authorization.md
@@ -0,0 +1,28 @@
+# Authorization in Angular UI
+
+OAuth is preconfigured in Angular application templates. So, when you start a project using the CLI (or Suite, for that matter), authorization already works. You can find **OAuth configuration** in the _environment.ts_ files.
+
+```js
+import { Config } from '@abp/ng.core';
+
+const baseUrl = 'http://localhost:4200';
+
+export const environment = {
+ // other options removed for sake of brevity
+
+ oAuthConfig: {
+ issuer: 'https://localhost:44305',
+ redirectUri: baseUrl,
+ clientId: 'MyProjectName_App',
+ responseType: 'code',
+ scope: 'offline_access MyProjectName',
+ },
+
+ // other options removed for sake of brevity
+} as Config.Environment;
+
+```
+
+This configuration results in an [OAuth authorization code flow with PKCE](https://tools.ietf.org/html/rfc7636) and we are using [angular-oauth2-oidc library](https://github.com/manfredsteyer/angular-oauth2-oidc#logging-in) for managing OAuth in the Angular client.
+
+According to this flow, the user is redirected to an external login page which is built with MVC. So, if you need **to customize the login page**, please follow [this community article](https://community.abp.io/articles/how-to-customize-the-login-page-for-mvc-razor-page-applications-9a40f3cd).
diff --git a/docs/en/UI/Angular/Multi-Tenancy.md b/docs/en/UI/Angular/Multi-Tenancy.md
index e7e284bb0d..7622db6de0 100644
--- a/docs/en/UI/Angular/Multi-Tenancy.md
+++ b/docs/en/UI/Angular/Multi-Tenancy.md
@@ -1,4 +1,4 @@
-# Multi Tenancy in Angular UI
+# Multi-Tenancy in Angular UI
ABP Angular UI supports the multi-tenancy. The following features related to multi-tenancy are available in the startup templates.
@@ -8,7 +8,7 @@ ABP Angular UI supports the multi-tenancy. The following features related to mul
On the page above, you can;
-- See the all tenants.
+- See all tenants.
- Create a new tenant.
- Edit an existing tenant.
- Delete a tenant.
@@ -17,9 +17,11 @@ On the page above, you can;
Tenant Switching Component
-You can switch between existing tenants by using the tenant switching component in the child pages of the `AccountLayoutComponent` (like Login page). Angular UI sends the selected tenant id to the backend as `__tenant` header on each request.
+You can switch between existing tenants by using the tenant switching box in the child pages of the MVC Account Public Module (like Login page). Angular UI gets selected tenant from `application-configuration` response and sends the tenant id to the backend as `__tenant` header on each request.
-## Domain Tenant Resolver
+## Domain/Subdomain Tenant Resolver
+
+> **Note:** If you are going to implement the steps below, you should also implement the domain/subdomain tenant resolver feature for the backend. See the [Domain/Subdomain Tenant Resolver section in Multi-Tenancy document](../../Multi-Tenancy#domain-subdomain-tenant-resolver) to learn the backend implementation.
Angular UI can get the tenant name from the app running URL. You can determine the current tenant by subdomain (like mytenant1.mydomain.com) or by the whole domain (like mytenant.com). To do this, you need to set the `application.baseUrl` property in the environment:
diff --git a/docs/en/UI/Angular/Page-Alerts.md b/docs/en/UI/Angular/Page-Alerts.md
new file mode 100644
index 0000000000..e59d620432
--- /dev/null
+++ b/docs/en/UI/Angular/Page-Alerts.md
@@ -0,0 +1,64 @@
+# Page Alerts
+
+A page alert is useful for displaying an important message to the user. The ABP Framework provides an easy way to show the following alert to the user.
+
+
+
+You can simply import `PageAlertService` from `@abp/ng.theme.shared` and utilize it as follows:
+
+```typescript
+import { PageAlertService } from '@abp/ng.theme.shared';
+
+@Component({
+ // ...
+})
+export class MyComponent {
+ constructor(private service: PageAlertService) {}
+
+ showWarning() {
+ this.service.show({
+ type: 'warning',
+ message:
+ 'We will have a service interruption between 02:00 AM and 04:00 AM at October 23, 2023!',
+ title: 'Service Interruption',
+ });
+ }
+}
+```
+
+## `SHOW`
+
+The method `show` accepts a single object that is type of `PageAlert`
+
+```typescript
+export interface PageAlert {
+ type: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
+ message: string;
+ title?: string;
+ dismissible?: boolean;
+ messageLocalizationParams?: string[];
+ titleLocalizationParams?: string[];
+}
+```
+
+* `type` (Required): Defines what type of alert will be shown
+* `message` (Required): The message who will be shown, also works with localization as well.
+* `title` (Optional): The title of the message. If it is not provided, the title will be hidden.
+* `dismissible` (Optional): Default is `true`. If enabled, a button on the top right corner will be shown to the users so that they can dismiss the message.
+* `messageLocalizationParams` and `titleLocalizationParams` (Optional): If the message and/or the title is a key for localization service and contains some parameters, these fields could be used to pass those parameters.
+
+### An example with Localization
+
+```typescript
+this.service.show({
+ type: 'danger',
+ message: 'AbpAccount::PagerInfo{0}{1}{2}',
+ messageLocalizationParams: ['10', '20', '30'],
+ title: 'AbpAccount::EntityNotFoundErrorMessage',
+ titleLocalizationParams: ['Test', 'id123'],
+});
+```
+
+
+
+
diff --git a/docs/en/UI/Angular/images/page-alert-warning-example.png b/docs/en/UI/Angular/images/page-alert-warning-example.png
new file mode 100644
index 0000000000..253a811a22
Binary files /dev/null and b/docs/en/UI/Angular/images/page-alert-warning-example.png differ
diff --git a/docs/en/UI/Angular/images/page-alert-with-params-example.png b/docs/en/UI/Angular/images/page-alert-with-params-example.png
new file mode 100644
index 0000000000..8fc5236de3
Binary files /dev/null and b/docs/en/UI/Angular/images/page-alert-with-params-example.png differ
diff --git a/docs/en/docs-nav.json b/docs/en/docs-nav.json
index 250fed91f0..517da0239f 100644
--- a/docs/en/docs-nav.json
+++ b/docs/en/docs-nav.json
@@ -754,6 +754,10 @@
"text": "Config State Service",
"path": "UI/Angular/Config-State-Service.md"
},
+ {
+ "text": "Authorization",
+ "path": "UI/Angular/Authorization.md"
+ },
{
"text": "HTTP Requests",
"path": "UI/Angular/HTTP-Requests.md"
@@ -818,6 +822,10 @@
{
"text": "Toast Overlay",
"path": "UI/Angular/Toaster-Service.md"
+ },
+ {
+ "text": "Page Alerts",
+ "path": "UI/Angular/Page-Alerts.md"
}
]
},
diff --git a/framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs b/framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs
index 7fa2038020..255e0ac89b 100644
--- a/framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs
+++ b/framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs
@@ -25,7 +25,12 @@ namespace Volo.Abp.AspNetCore.MultiTenancy
protected override Task GetTenantIdOrNameFromHttpContextOrNullAsync(ITenantResolveContext context, HttpContext httpContext)
{
- var hostName = httpContext.Request.Host.Host.RemovePreFix(ProtocolPrefixes);
+ if (!httpContext.Request.Host.HasValue)
+ {
+ return Task.FromResult(null);
+ }
+
+ var hostName = httpContext.Request.Host.Value.RemovePreFix(ProtocolPrefixes);
var extractResult = FormattedStringValueExtracter.Extract(hostName, _domainFormat, ignoreCase: true);
context.Handled = true;
diff --git a/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Localization/nl.json b/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Localization/nl.json
new file mode 100644
index 0000000000..6be7515c01
--- /dev/null
+++ b/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Localization/nl.json
@@ -0,0 +1,10 @@
+{
+ "culture": "nl",
+ "texts": {
+ "Volo.Authorization:010001": "Autorisatie mislukt! De benodigde policy is niet aan u verleend.",
+ "Volo.Authorization:010002": "Autorisatie mislukt! De benodigde policy: '{PolicyName}' is niet aan u verleend.",
+ "Volo.Authorization:010003": "Autorisatie mislukt! De benodigde policy is niet aan de opgegeven resource: '{ResourceName}' verleend.",
+ "Volo.Authorization:010004": "Autorisatie mislukt! De benodigde requirement is niet aan de opgegeven resource: '{ResourceName}' verleend.",
+ "Volo.Authorization:010005": "Autorisatie mislukt! De benodigde requirements zijn niet aan de opgegeven resource: '{ResourceName}' verleend."
+ }
+}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.BlazoriseUI/Volo.Abp.BlazoriseUI.csproj b/framework/src/Volo.Abp.BlazoriseUI/Volo.Abp.BlazoriseUI.csproj
index de793e078f..9405337b89 100644
--- a/framework/src/Volo.Abp.BlazoriseUI/Volo.Abp.BlazoriseUI.csproj
+++ b/framework/src/Volo.Abp.BlazoriseUI/Volo.Abp.BlazoriseUI.csproj
@@ -12,9 +12,9 @@
-
-
-
+
+
+
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ProjectBuildContextExtensions.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ProjectBuildContextExtensions.cs
index e793c77011..80fb6db058 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ProjectBuildContextExtensions.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ProjectBuildContextExtensions.cs
@@ -16,5 +16,10 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building
return file;
}
+
+ public static FileEntry FindFile(this ProjectBuildContext context, string filePath)
+ {
+ return context.Files.FirstOrDefault(f => f.Name == filePath);
+ }
}
-}
\ No newline at end of file
+}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs
index 7b48c780f1..942dd91067 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs
@@ -7,8 +7,8 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
public class RemoveProjectFromSolutionStep : ProjectBuildPipelineStep
{
private readonly string _projectName;
- private readonly string _solutionFilePath;
- private readonly string _projectFolderPath;
+ private string _solutionFilePath;
+ private string _projectFolderPath;
private string ProjectNameWithQuotes => $"\"{_projectName}\"";
@@ -18,12 +18,19 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
string projectFolderPath = null)
{
_projectName = projectName;
- _solutionFilePath = solutionFilePath ?? "/aspnet-core/MyCompanyName.MyProjectName.sln";
- _projectFolderPath = projectFolderPath ?? ("/aspnet-core/src/" + projectName);
+ _solutionFilePath = solutionFilePath;
+ _projectFolderPath = projectFolderPath;
}
public override void Execute(ProjectBuildContext context)
{
+ SetSolutionAndProjectPathsIfNull(context);
+
+ if (_solutionFilePath == null || _projectFolderPath == null)
+ {
+ return;
+ }
+
new RemoveFolderStep(_projectFolderPath).Execute(context);
var solutionFile = context.GetFile(_solutionFilePath);
solutionFile.NormalizeLineEndings();
@@ -75,5 +82,20 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
return null;
}
+
+ private void SetSolutionAndProjectPathsIfNull(ProjectBuildContext context)
+ {
+
+ if (_solutionFilePath == null)
+ {
+ _solutionFilePath = context.FindFile("/aspnet-core/MyCompanyName.MyProjectName.sln")?.Name ??
+ context.FindFile("/MyCompanyName.MyProjectName.sln")?.Name;
+ }
+ if (_projectFolderPath == null)
+ {
+ _projectFolderPath = context.FindFile("/aspnet-core/src/" + _projectName.EnsureEndsWith('/'))?.Name ??
+ context.FindFile("/src/" + _projectName.EnsureEndsWith('/'))?.Name;
+ }
+ }
}
}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs
index 31c8f216b4..7642a7d697 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs
@@ -1,5 +1,6 @@
using Volo.Abp.Cli.ProjectBuilding.Building.Steps;
using Volo.Abp.Cli.ProjectBuilding.Templates.App;
+using Volo.Abp.Cli.ProjectBuilding.Templates.Microservice;
using Volo.Abp.Cli.ProjectBuilding.Templates.MvcModule;
namespace Volo.Abp.Cli.ProjectBuilding.Building
@@ -25,6 +26,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building
pipeline.Steps.Add(new SolutionRenameStep());
if (context.Template.Name == AppProTemplate.TemplateName ||
+ context.Template.Name == MicroserviceProTemplate.TemplateName ||
context.Template.Name == ModuleProTemplate.TemplateName)
{
pipeline.Steps.Add(new LicenseCodeReplaceStep()); // todo: move to custom steps?
@@ -37,7 +39,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building
}
if ((context.BuildArgs.UiFramework == UiFramework.Mvc || context.BuildArgs.UiFramework == UiFramework.Blazor)
- && context.BuildArgs.MobileApp == MobileApp.None)
+ && context.BuildArgs.MobileApp == MobileApp.None && context.Template.Name != MicroserviceProTemplate.TemplateName)
{
pipeline.Steps.Add(new RemoveRootFolderStep());
}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateInfoProvider.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateInfoProvider.cs
index 2aefcfd1a9..b9308dd707 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateInfoProvider.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateInfoProvider.cs
@@ -8,6 +8,7 @@ using Volo.Abp.Cli.Http;
using Volo.Abp.Cli.ProjectBuilding.Building;
using Volo.Abp.Cli.ProjectBuilding.Templates.App;
using Volo.Abp.Cli.ProjectBuilding.Templates.Console;
+using Volo.Abp.Cli.ProjectBuilding.Templates.Microservice;
using Volo.Abp.Cli.ProjectBuilding.Templates.MvcModule;
using Volo.Abp.Cli.ProjectBuilding.Templates.Wpf;
using Volo.Abp.DependencyInjection;
@@ -49,6 +50,8 @@ namespace Volo.Abp.Cli.ProjectBuilding
return new AppTemplate();
case AppProTemplate.TemplateName:
return new AppProTemplate();
+ case MicroserviceProTemplate.TemplateName:
+ return new MicroserviceProTemplate();
case ModuleTemplate.TemplateName:
return new ModuleTemplate();
case ModuleProTemplate.TemplateName:
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
index 27cfa0468b..8f52e03203 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using NuGet.Versioning;
using Volo.Abp.Cli.Commands;
using Volo.Abp.Cli.ProjectBuilding.Building;
using Volo.Abp.Cli.ProjectBuilding.Building.Steps;
@@ -143,7 +144,8 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App
steps.Add(new RemoveEfCoreDependencyFromPublicStep());
}
- if (context.BuildArgs.ExtraProperties.ContainsKey("without-cms-kit"))
+ // We disabled cms-kit for v4.2 release.
+ if (true || context.BuildArgs.ExtraProperties.ContainsKey("without-cms-kit"))
{
steps.Add(new RemoveCmsKitStep());
}
@@ -277,7 +279,11 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App
private static void RemoveMigrations(ProjectBuildContext context, List steps)
{
- steps.Add(new RemoveFolderStep("/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations"));
+ if (string.IsNullOrWhiteSpace(context.BuildArgs.Version) ||
+ SemanticVersion.Parse(context.BuildArgs.Version) > new SemanticVersion(4,1,99))
+ {
+ steps.Add(new RemoveFolderStep("/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations"));
+ }
}
private static void CleanupFolderHierarchy(ProjectBuildContext context, List steps)
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceProTemplate.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceProTemplate.cs
new file mode 100644
index 0000000000..aef7ffec3b
--- /dev/null
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceProTemplate.cs
@@ -0,0 +1,16 @@
+namespace Volo.Abp.Cli.ProjectBuilding.Templates.Microservice
+{
+ public class MicroserviceProTemplate : MicroserviceTemplateBase
+ {
+ ///
+ /// "microservice-pro".
+ ///
+ public const string TemplateName = "microservice-pro";
+
+ public MicroserviceProTemplate()
+ : base(TemplateName)
+ {
+ DocumentUrl = null; // todo: set this
+ }
+ }
+}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceTemplateBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceTemplateBase.cs
new file mode 100644
index 0000000000..13bfe3433e
--- /dev/null
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceTemplateBase.cs
@@ -0,0 +1,74 @@
+using System.Collections.Generic;
+using JetBrains.Annotations;
+using Volo.Abp.Cli.ProjectBuilding.Building;
+using Volo.Abp.Cli.ProjectBuilding.Building.Steps;
+
+namespace Volo.Abp.Cli.ProjectBuilding.Templates.Microservice
+{
+ public abstract class MicroserviceTemplateBase : TemplateInfo
+ {
+ protected MicroserviceTemplateBase([NotNull] string name)
+ : base(name)
+ {
+ }
+
+ public override IEnumerable GetCustomSteps(ProjectBuildContext context)
+ {
+ var steps = new List();
+
+ DeleteUnrelatedProjects(context, steps);
+ RandomizeStringEncryption(context, steps);
+ UpdateNuGetConfig(context, steps);
+
+ return steps;
+ }
+
+ private static void DeleteUnrelatedProjects(ProjectBuildContext context, List steps)
+ {
+ switch (context.BuildArgs.UiFramework)
+ {
+ case UiFramework.None:
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Web"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.WebGateway"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Blazor"));
+ steps.Add(new RemoveFolderStep("/angular"));
+ break;
+
+ case UiFramework.Angular:
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Web"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.WebGateway"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Blazor"));
+ break;
+
+
+ case UiFramework.Blazor:
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Web"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.WebGateway"));
+ steps.Add(new RemoveFolderStep("/angular"));
+ break;
+
+ case UiFramework.Mvc:
+ case UiFramework.NotSpecified:
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.Blazor"));
+ steps.Add(new RemoveFolderStep("/angular"));
+ break;
+ }
+
+ if (!context.BuildArgs.PublicWebSite)
+ {
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.PublicWeb"));
+ steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.PublicWebGateway"));
+ }
+ }
+
+ private static void RandomizeStringEncryption(ProjectBuildContext context, List steps)
+ {
+ steps.Add(new RandomizeStringEncryptionStep());
+ }
+
+ private static void UpdateNuGetConfig(ProjectBuildContext context, List steps)
+ {
+ steps.Add(new UpdateNuGetConfigStep("/NuGet.Config"));
+ }
+ }
+}
diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs
index 5e8db9a346..ef8385d479 100644
--- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs
+++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs
@@ -75,7 +75,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.Module
private static void UpdateNuGetConfig(ProjectBuildContext context, List steps)
{
- steps.Add(new UpdateNuGetConfigStep("/NuGet.Config"));
+ steps.Add(new UpdateNuGetConfigStep("/aspnet-core/NuGet.Config"));
}
private void CleanupFolderHierarchy(ProjectBuildContext context, List steps)
diff --git a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Localization/nl.json b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Localization/nl.json
index 923671e885..3130094f62 100644
--- a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Localization/nl.json
+++ b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Localization/nl.json
@@ -1,23 +1,25 @@
{
"culture": "nl",
"texts": {
- "DisplayName:Abp.Mailing.DefaultFromAddress": "Standard vanaf adres",
- "DisplayName:Abp.Mailing.DefaultFromDisplayName": "Standaard vanaf weergave naam",
+ "DisplayName:Abp.Mailing.DefaultFromAddress": "Standaard vanaf adres",
+ "DisplayName:Abp.Mailing.DefaultFromDisplayName": "Standaard vanaf weergavenaam",
"DisplayName:Abp.Mailing.Smtp.Host": "Host",
"DisplayName:Abp.Mailing.Smtp.Port": "Poort",
- "DisplayName:Abp.Mailing.Smtp.UserName": "Gebruiker naam",
- "DisplayName:Abp.Mailing.Smtp.Password": "wachtwoord",
+ "DisplayName:Abp.Mailing.Smtp.UserName": "Gebruikersnaam",
+ "DisplayName:Abp.Mailing.Smtp.Password": "Wachtwoord",
"DisplayName:Abp.Mailing.Smtp.Domain": "Domein",
"DisplayName:Abp.Mailing.Smtp.EnableSsl": "SSL toestaan",
"DisplayName:Abp.Mailing.Smtp.UseDefaultCredentials": "Gebruik standaard inloggegevens",
- "Description:Abp.Mailing.DefaultFromAddress": "Standard vanaf adres",
- "Description:Abp.Mailing.DefaultFromDisplayName": "Standaard vanaf weergave naam",
+ "Description:Abp.Mailing.DefaultFromAddress": "Standaard vanaf adres",
+ "Description:Abp.Mailing.DefaultFromDisplayName": "Standaard vanaf weergavenaam",
"Description:Abp.Mailing.Smtp.Host": "De naam of het IP-adres van de host die wordt gebruikt voor SMTP-transacties.",
"Description:Abp.Mailing.Smtp.Port": "De poort die wordt gebruikt voor SMTP-transacties.",
"Description:Abp.Mailing.Smtp.UserName": "Gebruikersnaam gekoppeld aan de inloggegevens.",
"Description:Abp.Mailing.Smtp.Password": "Het wachtwoord voor de gebruikersnaam die bij de inloggegevens hoort.",
"Description:Abp.Mailing.Smtp.Domain": "Het domein of de computernaam die de inloggegevens verifieert.",
"Description:Abp.Mailing.Smtp.EnableSsl": "Of de SmtpClient Secure Sockets Layer (SSL) gebruikt om de verbinding te versleutelen.",
- "Description:Abp.Mailing.Smtp.UseDefaultCredentials": "Of de standaard inloggegevens worden verzonden met verzoeken."
+ "Description:Abp.Mailing.Smtp.UseDefaultCredentials": "Of de standaard inloggegevens worden verzonden met verzoeken.",
+ "TextTemplate:StandardEmailTemplates.Layout": "Standaard sjabloon voor e-mail lay-out",
+ "TextTemplate:StandardEmailTemplates.Message": "Eenvoudig berichtsjabloon voor e-mails"
}
}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/ExceptionHandling/Localization/nl.json b/framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/ExceptionHandling/Localization/nl.json
index f96c1f9a9c..f9e28a142e 100644
--- a/framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/ExceptionHandling/Localization/nl.json
+++ b/framework/src/Volo.Abp.ExceptionHandling/Volo/Abp/ExceptionHandling/Localization/nl.json
@@ -4,7 +4,7 @@
"InternalServerErrorMessage": "Er is een interne fout opgetreden tijdens uw verzoek!",
"ValidationErrorMessage": "Uw verzoek is niet geldig!",
"ValidationNarrativeErrorMessageTitle": "Tijdens de validatie zijn de volgende fouten gedetecteerd.",
- "DefaultErrorMessage": "er is een fout opgetreden!",
+ "DefaultErrorMessage": "Er is een fout opgetreden!",
"DefaultErrorMessageDetail": "Foutdetails niet verzonden door server.",
"DefaultErrorMessage401": "U bent niet geverifieerd!",
"DefaultErrorMessage401Detail": "U moet inloggen om deze bewerking uit te voeren.",
@@ -18,6 +18,8 @@
"401Message": "Ongeautoriseerd",
"403Message": "Verboden",
"404Message": "Pagina niet gevonden",
- "500Message": "Interne Server Fout"
+ "500Message": "Interne Server Fout",
+ "403MessageDetail": "U bent niet bevoegd om deze handeling uit te voeren!",
+ "404MessageDetail": "Sorry, op dit adres is niks gevonden."
}
-}
+}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.Features/Volo/Abp/Features/Localization/nl.json b/framework/src/Volo.Abp.Features/Volo/Abp/Features/Localization/nl.json
new file mode 100644
index 0000000000..0c43d02c08
--- /dev/null
+++ b/framework/src/Volo.Abp.Features/Volo/Abp/Features/Localization/nl.json
@@ -0,0 +1,8 @@
+{
+ "culture": "nl",
+ "texts": {
+ "Volo.Feature:010001": "Functie '{FeatureName}' is niet ingeschakeld",
+ "Volo.Feature:010002": "Vereiste functies zijn niet ingeschakeld. Al deze functies moeten zijn ingeschakeld: {FeatureNames}",
+ "Volo.Feature:010003": "Vereiste functies zijn niet ingeschakeld. Ten minste een van deze functies moet zijn ingeschakeld: {FeatureNames}"
+ }
+}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/Localization/nl.json b/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/Localization/nl.json
new file mode 100644
index 0000000000..ce321ab712
--- /dev/null
+++ b/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/Localization/nl.json
@@ -0,0 +1,15 @@
+{
+ "culture": "nl",
+ "texts": {
+ "DisplayName:Abp.Ldap.ServerHost": "Serverhost",
+ "Description:Abp.Ldap.ServerHost": "Serverhost",
+ "DisplayName:Abp.Ldap.ServerPort": "Server poort",
+ "Description:Abp.Ldap.ServerPort": "Server poort",
+ "DisplayName:Abp.Ldap.BaseDc": "Basisdomein component",
+ "Description:Abp.Ldap.BaseDc": "Basisdomein component",
+ "DisplayName:Abp.Ldap.UserName": "Gebruikersnaam",
+ "Description:Abp.Ldap.UserName": "Gebruikersnaam",
+ "DisplayName:Abp.Ldap.Password": "Wachtwoord",
+ "Description:Abp.Ldap.Password": "Wachtwoord"
+ }
+}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.Timing/Volo/Abp/Timing/Localization/nl.json b/framework/src/Volo.Abp.Timing/Volo/Abp/Timing/Localization/nl.json
new file mode 100644
index 0000000000..ae4c8c72a0
--- /dev/null
+++ b/framework/src/Volo.Abp.Timing/Volo/Abp/Timing/Localization/nl.json
@@ -0,0 +1,7 @@
+{
+ "culture": "nl",
+ "texts": {
+ "DisplayName:Abp.Timing.Timezone": "Tijdzone",
+ "Description:Abp.Timing.Timezone": "Tijdzone van applicatie"
+ }
+}
\ No newline at end of file
diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json
index 4f0906ee3e..52402db298 100644
--- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json
+++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json
@@ -30,7 +30,7 @@
"PagerPrevious": "Anterior",
"PagerFirst": "Primero",
"PagerLast": "Último",
- "PagerInfo": "Mostrando de la _START a la _END_ de _TOTAL_ entradas",
+ "PagerInfo": "Mostrando de la _START_ a la _END_ de _TOTAL_ entradas",
"PagerInfo{0}{1}{2}": "Mostrando de la {0} a la {1} de {2} entradas",
"PagerInfoEmpty": "Mostrando de la 0 a la 0 de 0 entradas",
"PagerInfoFiltered": "(filtrado desde _MAX_ entradas totales)",
diff --git a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json
index c65715f8a5..69ad662be1 100644
--- a/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json
+++ b/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json
@@ -4,9 +4,10 @@
"Languages": "Talen",
"AreYouSure": "Bent u zeker?",
"Cancel": "Annuleren",
+ "Clear": "Wissen",
"Yes": "Ja",
"No": "Nee",
- "Ok": "Ok",
+ "Ok": "Oké",
"Close": "Sluiten",
"Save": "Opslaan",
"SavingWithThreeDot": "Opslaan...",
@@ -34,6 +35,8 @@
"PagerInfoEmpty": "Toont 0 tot 0 van 0 vermeldingen",
"PagerInfoFiltered": "(gefilterd uit in totaal _MAX_ vermeldingen)",
"NoDataAvailableInDatatable": "Geen gegevens beschikbaar",
+ "Total": "totaal",
+ "Selected": "geselecteed",
"PagerShowMenuEntries": "Toon _MENU_-vermeldingen",
"DatatableActionDropdownDefaultText": "Acties",
"ChangePassword": "Verander wachtwoord",
@@ -41,6 +44,9 @@
"AreYouSureYouWantToCancelEditingWarningMessage": "U heeft nog niet-opgeslagen wijzigingen.",
"GoHomePage": "Ga naar de homepage",
"GoBack": "Ga terug",
- "Search": "Zoeken"
+ "Search": "Zoeken",
+ "ItemWillBeDeletedMessageWithFormat": "{0} wordt verwijderd!",
+ "ItemWillBeDeletedMessage": "Dit item wordt verwijderd!",
+ "ManageYourAccount": "Beheer uw account"
}
-}
+}
\ No newline at end of file
diff --git a/framework/test/Volo.Abp.AspNetCore.MultiTenancy.Tests/Volo/Abp/AspNetCore/MultiTenancy/AspNetCoreMultiTenancy_WithDomainResolver_Tests.cs b/framework/test/Volo.Abp.AspNetCore.MultiTenancy.Tests/Volo/Abp/AspNetCore/MultiTenancy/AspNetCoreMultiTenancy_WithDomainResolver_Tests.cs
index e2ac111f5d..7a7244aa69 100644
--- a/framework/test/Volo.Abp.AspNetCore.MultiTenancy.Tests/Volo/Abp/AspNetCore/MultiTenancy/AspNetCoreMultiTenancy_WithDomainResolver_Tests.cs
+++ b/framework/test/Volo.Abp.AspNetCore.MultiTenancy.Tests/Volo/Abp/AspNetCore/MultiTenancy/AspNetCoreMultiTenancy_WithDomainResolver_Tests.cs
@@ -38,7 +38,7 @@ namespace Volo.Abp.AspNetCore.MultiTenancy
services.Configure(options =>
{
- options.AddDomainTenantResolver("{0}.abp.io");
+ options.AddDomainTenantResolver("{0}.abp.io:8080");
});
});
}
@@ -46,14 +46,14 @@ namespace Volo.Abp.AspNetCore.MultiTenancy
[Fact]
public async Task Should_Use_Host_If_Tenant_Is_Not_Specified()
{
- var result = await GetResponseAsObjectAsync>("http://abp.io");
+ var result = await GetResponseAsObjectAsync>("http://abp.io:8080");
result["TenantId"].ShouldBe("");
}
[Fact]
public async Task Should_Use_Domain_If_Specified()
{
- var result = await GetResponseAsObjectAsync>("http://acme.abp.io");
+ var result = await GetResponseAsObjectAsync>("http://acme.abp.io:8080");
result["TenantId"].ShouldBe(_testTenantId.ToString());
}
@@ -62,8 +62,8 @@ namespace Volo.Abp.AspNetCore.MultiTenancy
{
Client.DefaultRequestHeaders.Add(_options.TenantKey, Guid.NewGuid().ToString());
- var result = await GetResponseAsObjectAsync>("http://acme.abp.io");
+ var result = await GetResponseAsObjectAsync>("http://acme.abp.io:8080");
result["TenantId"].ShouldBe(_testTenantId.ToString());
}
}
-}
\ No newline at end of file
+}
diff --git a/framework/test/Volo.Abp.Http.Client.Tests/Volo/Abp/Http/Localization/nl.json b/framework/test/Volo.Abp.Http.Client.Tests/Volo/Abp/Http/Localization/nl.json
new file mode 100644
index 0000000000..dfef28046b
--- /dev/null
+++ b/framework/test/Volo.Abp.Http.Client.Tests/Volo/Abp/Http/Localization/nl.json
@@ -0,0 +1,6 @@
+{
+ "culture": "nl",
+ "texts": {
+ "Volo.Abp.Http.DynamicProxying:10001": "Business-uitzondering met data: {0}"
+ }
+}
\ No newline at end of file
diff --git a/framework/test/Volo.Abp.TextTemplating.Tests/Volo/Abp/TextTemplating/Localization/nl.json b/framework/test/Volo.Abp.TextTemplating.Tests/Volo/Abp/TextTemplating/Localization/nl.json
new file mode 100644
index 0000000000..c3c0818b03
--- /dev/null
+++ b/framework/test/Volo.Abp.TextTemplating.Tests/Volo/Abp/TextTemplating/Localization/nl.json
@@ -0,0 +1,7 @@
+{
+ "culture": "nl",
+ "texts": {
+ "HelloText": "Hallo {0}",
+ "HowAreYou": "hoe is het met je?"
+ }
+}
\ No newline at end of file
diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json
index 64a1a70124..efd751859e 100644
--- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json
+++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json
@@ -3,9 +3,9 @@
"texts": {
"UserName": "Gebruikersnaam",
"EmailAddress": "E-mailadres",
- "UserNameOrEmailAddress": "Gebruikersnaam of e-mail adres",
+ "UserNameOrEmailAddress": "Gebruikersnaam of e-mailadres",
"Password": "Wachtwoord",
- "RememberMe": "Herinner me",
+ "RememberMe": "Onthoud me",
"UseAnotherServiceToLogin": "Gebruik een andere dienst om in te loggen",
"UserLockedOutMessage": "Het gebruikersaccount is geblokkeerd vanwege ongeldige inlogpogingen. Wacht even en probeer het opnieuw.",
"InvalidUserNameOrPassword": "Ongeldige gebruikersnaam of wachtwoord!",
@@ -29,17 +29,37 @@
"DisplayName:Name": "Naam",
"DisplayName:Surname": "Achternaam",
"DisplayName:Password": "Wachtwoord",
- "DisplayName:EmailAddress": "E-mail adres",
+ "DisplayName:EmailAddress": "E-mailadres",
"DisplayName:PhoneNumber": "Telefoonnummer",
"PersonalSettings": "Persoonlijke instellingen",
"PersonalSettingsSaved": "Persoonlijke instellingen opgeslagen",
- "PasswordChanged": "wachtwoord veranderd",
- "NewPasswordConfirmFailed": "Bevestig het nieuwe wachtwoord a.u.b..",
+ "PasswordChanged": "Wachtwoord veranderd",
+ "NewPasswordConfirmFailed": "Bevestig het nieuwe wachtwoord a.u.b.",
"Manage": "Beheer",
"ManageYourProfile": "Beheer uw profiel",
"DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Is zelfregistratie ingeschakeld",
"Description:Abp.Account.IsSelfRegistrationEnabled": "Of een gebruiker het account zelf kan registreren.",
"DisplayName:Abp.Account.EnableLocalLogin": "Verifieer met een lokaal account",
- "Description:Abp.Account.EnableLocalLogin": "Geeft aan of de server gebruikers toestaat zich te verifiëren met een lokaal account."
+ "Description:Abp.Account.EnableLocalLogin": "Geeft aan of de server gebruikers toestaat zich te verifiëren met een lokaal account.",
+ "LoggedOutTitle": "Uitgelogd",
+ "LoggedOutText": "U bent uitgelogd en u wordt binnen enkele ogenblikken doorgestuurd.",
+ "ReturnToText": "Klik hier om doorgestuurd te worden naar {0}",
+ "OrLoginWith": "Of log in met:",
+ "ForgotPassword": "Wachtwoord vergeten?",
+ "SendPasswordResetLink_Information": "Er wordt een link voor het opnieuw instellen van uw wachtwoord naar uw e-mailadres gestuurd. Als u binnen een paar minuten geen e-mail ontvangt, probeer het dan opnieuw.",
+ "PasswordResetMailSentMessage": "Er is een link voor het opnieuw instellen van uw wachtwoord naar uw e-mailadres gestuurd. Als u deze e-mail niet binnen 15 minuten in uw inbox ziet, zoek hem dan in uw map met ongewenste e-mail. Als u de mail daar vindt, markeer hem dan als niet ongewenst.",
+ "ResetPassword": "Wachtwoord opnieuw instellen",
+ "ConfirmPassword": "Bevestig (herhaal) het wachtwoord",
+ "ResetPassword_Information": "Voer uw nieuwe wachtwoord in.",
+ "YourPasswordIsSuccessfullyReset": "Uw wachtwoord is succesvol opnieuw ingesteld.",
+ "GoToTheApplication": "Ga naar de applicatie",
+ "BackToLogin": "Terug naar Inloggen",
+ "ProfileTab:Password": "Wachtwoord wijzigen",
+ "ProfileTab:PersonalInfo": "Persoonlijke informatie",
+ "ReturnToApplication": "Ga terug naar de applicatie",
+ "Volo.Account:InvalidEmailAddress": "Kan het opgegeven e-mailadres '{0}' niet vinden",
+ "PasswordReset": "Wachtwoord opnieuw instellen",
+ "PasswordResetInfoInEmail": "We hebben een verzoek ontvangen om uw wachtwoord opnieuw in te stellen. Als u dit verzoek heeft ingediend, klikt u op de volgende link om een nieuw wachtwoord in te stellen.",
+ "ResetMyPassword": "Reset mijn wachtwoord"
}
-}
+}
\ No newline at end of file
diff --git a/modules/blob-storing-database/src/Volo.Abp.BlobStoring.Database.Domain.Shared/Volo/Abp/BlobStoring/Database/Localization/nl.json b/modules/blob-storing-database/src/Volo.Abp.BlobStoring.Database.Domain.Shared/Volo/Abp/BlobStoring/Database/Localization/nl.json
new file mode 100644
index 0000000000..0d295d59b3
--- /dev/null
+++ b/modules/blob-storing-database/src/Volo.Abp.BlobStoring.Database.Domain.Shared/Volo/Abp/BlobStoring/Database/Localization/nl.json
@@ -0,0 +1,6 @@
+{
+ "culture": "nl",
+ "texts": {
+ "ManageYourProfile": "Beheer uw profiel"
+ }
+}
\ No newline at end of file
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/CmsKitHttpApiHostModule.cs b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/CmsKitHttpApiHostModule.cs
index 57b49409fc..d34f42aa6f 100644
--- a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/CmsKitHttpApiHostModule.cs
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/CmsKitHttpApiHostModule.cs
@@ -22,6 +22,7 @@ using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Volo.Abp.AspNetCore.Serilog;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.Autofac;
+using Volo.Abp.BlobStoring.Database.EntityFrameworkCore;
using Volo.Abp.Caching;
using Volo.Abp.Caching.StackExchangeRedis;
using Volo.Abp.EntityFrameworkCore;
@@ -47,7 +48,8 @@ namespace Volo.CmsKit
typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule),
- typeof(AbpAspNetCoreSerilogModule)
+ typeof(AbpAspNetCoreSerilogModule),
+ typeof(BlobStoringDatabaseEntityFrameworkCoreModule)
)]
public class CmsKitHttpApiHostModule : AbpModule
{
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/EntityFrameworkCore/CmsKitHttpApiHostMigrationsDbContext.cs b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/EntityFrameworkCore/CmsKitHttpApiHostMigrationsDbContext.cs
index c31c977ebe..d833e84caa 100644
--- a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/EntityFrameworkCore/CmsKitHttpApiHostMigrationsDbContext.cs
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/EntityFrameworkCore/CmsKitHttpApiHostMigrationsDbContext.cs
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
+using Volo.Abp.BlobStoring.Database.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
namespace Volo.CmsKit.EntityFrameworkCore
@@ -16,6 +17,7 @@ namespace Volo.CmsKit.EntityFrameworkCore
base.OnModelCreating(modelBuilder);
modelBuilder.ConfigureCmsKit();
+ modelBuilder.ConfigureBlobStoring();
}
}
}
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.Designer.cs b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.Designer.cs
new file mode 100644
index 0000000000..28e6976776
--- /dev/null
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.Designer.cs
@@ -0,0 +1,531 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+using Volo.CmsKit.EntityFrameworkCore;
+
+namespace Volo.CmsKit.Migrations
+{
+ [DbContext(typeof(CmsKitHttpApiHostMigrationsDbContext))]
+ [Migration("20201231111745_Initial")]
+ partial class Initial
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .UseIdentityColumns()
+ .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
+ .HasAnnotation("ProductVersion", "5.0.1");
+
+ modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContainerId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Content")
+ .HasMaxLength(2147483647)
+ .HasColumnType("varbinary(max)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ContainerId");
+
+ b.HasIndex("TenantId", "ContainerId", "Name");
+
+ b.ToTable("AbpBlobs");
+ });
+
+ modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Name");
+
+ b.ToTable("AbpBlobContainers");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Comments.Comment", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("RepliedCommentId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Text")
+ .IsRequired()
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "RepliedCommentId");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId");
+
+ b.ToTable("CmsComments");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Contents.Content", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(2147483647)
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId");
+
+ b.ToTable("CmsContents");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Pages.Page", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Url")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Url");
+
+ b.ToTable("CmsPages");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Ratings.Rating", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("StarCount")
+ .HasColumnType("smallint");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId", "CreatorId");
+
+ b.ToTable("CmsRatings");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Reactions.UserReaction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ReactionName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("nvarchar(32)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId", "ReactionName");
+
+ b.HasIndex("TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName");
+
+ b.ToTable("CmsUserReactions");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Tags.EntityTag", b =>
+ {
+ b.Property("EntityId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("TagId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("EntityId", "TagId");
+
+ b.HasIndex("TenantId", "EntityId", "TagId");
+
+ b.ToTable("CmsEntityTags");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Tags.Tag", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("nvarchar(32)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Name");
+
+ b.ToTable("CmsTags");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Users.CmsUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("Email")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)")
+ .HasColumnName("Email");
+
+ b.Property("EmailConfirmed")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("EmailConfirmed");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Name")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)")
+ .HasColumnName("Name");
+
+ b.Property("PhoneNumber")
+ .HasMaxLength(16)
+ .HasColumnType("nvarchar(16)")
+ .HasColumnName("PhoneNumber");
+
+ b.Property("PhoneNumberConfirmed")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("PhoneNumberConfirmed");
+
+ b.Property("Surname")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)")
+ .HasColumnName("Surname");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("UserName")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)")
+ .HasColumnName("UserName");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Email");
+
+ b.HasIndex("TenantId", "UserName");
+
+ b.ToTable("CmsUsers");
+ });
+
+ modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
+ {
+ b.HasOne("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", null)
+ .WithMany()
+ .HasForeignKey("ContainerId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.cs b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.cs
new file mode 100644
index 0000000000..55f1ed7245
--- /dev/null
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/20201231111745_Initial.cs
@@ -0,0 +1,309 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace Volo.CmsKit.Migrations
+{
+ public partial class Initial : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.CreateTable(
+ name: "AbpBlobContainers",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_AbpBlobContainers", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsComments",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ EntityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ Text = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false),
+ RepliedCommentId = table.Column(type: "uniqueidentifier", nullable: true),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsComments", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsContents",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ EntityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ Value = table.Column(type: "nvarchar(max)", maxLength: 2147483647, nullable: false),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsContents", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsEntityTags",
+ columns: table => new
+ {
+ TagId = table.Column(type: "uniqueidentifier", nullable: false),
+ EntityId = table.Column(type: "nvarchar(450)", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsEntityTags", x => new { x.EntityId, x.TagId });
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsPages",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
+ Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
+ Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsPages", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsRatings",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ EntityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ StarCount = table.Column(type: "smallint", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsRatings", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsTags",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ EntityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ Name = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsTags", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsUserReactions",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ EntityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
+ ReactionName = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsUserReactions", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "CmsUsers",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
+ Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
+ Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
+ Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
+ EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false),
+ PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true),
+ PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_CmsUsers", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "AbpBlobs",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ ContainerId = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
+ Content = table.Column(type: "varbinary(max)", maxLength: 2147483647, nullable: true),
+ ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_AbpBlobs", x => x.Id);
+ table.ForeignKey(
+ name: "FK_AbpBlobs_AbpBlobContainers_ContainerId",
+ column: x => x.ContainerId,
+ principalTable: "AbpBlobContainers",
+ principalColumn: "Id",
+ onDelete: ReferentialAction.Cascade);
+ });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_AbpBlobContainers_TenantId_Name",
+ table: "AbpBlobContainers",
+ columns: new[] { "TenantId", "Name" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_AbpBlobs_ContainerId",
+ table: "AbpBlobs",
+ column: "ContainerId");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_AbpBlobs_TenantId_ContainerId_Name",
+ table: "AbpBlobs",
+ columns: new[] { "TenantId", "ContainerId", "Name" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsComments_TenantId_EntityType_EntityId",
+ table: "CmsComments",
+ columns: new[] { "TenantId", "EntityType", "EntityId" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsComments_TenantId_RepliedCommentId",
+ table: "CmsComments",
+ columns: new[] { "TenantId", "RepliedCommentId" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsContents_TenantId_EntityType_EntityId",
+ table: "CmsContents",
+ columns: new[] { "TenantId", "EntityType", "EntityId" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsEntityTags_TenantId_EntityId_TagId",
+ table: "CmsEntityTags",
+ columns: new[] { "TenantId", "EntityId", "TagId" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsPages_TenantId_Url",
+ table: "CmsPages",
+ columns: new[] { "TenantId", "Url" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsRatings_TenantId_EntityType_EntityId_CreatorId",
+ table: "CmsRatings",
+ columns: new[] { "TenantId", "EntityType", "EntityId", "CreatorId" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsTags_TenantId_Name",
+ table: "CmsTags",
+ columns: new[] { "TenantId", "Name" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsUserReactions_TenantId_CreatorId_EntityType_EntityId_ReactionName",
+ table: "CmsUserReactions",
+ columns: new[] { "TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsUserReactions_TenantId_EntityType_EntityId_ReactionName",
+ table: "CmsUserReactions",
+ columns: new[] { "TenantId", "EntityType", "EntityId", "ReactionName" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsUsers_TenantId_Email",
+ table: "CmsUsers",
+ columns: new[] { "TenantId", "Email" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_CmsUsers_TenantId_UserName",
+ table: "CmsUsers",
+ columns: new[] { "TenantId", "UserName" });
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropTable(
+ name: "AbpBlobs");
+
+ migrationBuilder.DropTable(
+ name: "CmsComments");
+
+ migrationBuilder.DropTable(
+ name: "CmsContents");
+
+ migrationBuilder.DropTable(
+ name: "CmsEntityTags");
+
+ migrationBuilder.DropTable(
+ name: "CmsPages");
+
+ migrationBuilder.DropTable(
+ name: "CmsRatings");
+
+ migrationBuilder.DropTable(
+ name: "CmsTags");
+
+ migrationBuilder.DropTable(
+ name: "CmsUserReactions");
+
+ migrationBuilder.DropTable(
+ name: "CmsUsers");
+
+ migrationBuilder.DropTable(
+ name: "AbpBlobContainers");
+ }
+ }
+}
diff --git a/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/CmsKitHttpApiHostMigrationsDbContextModelSnapshot.cs b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/CmsKitHttpApiHostMigrationsDbContextModelSnapshot.cs
new file mode 100644
index 0000000000..cd29086668
--- /dev/null
+++ b/modules/cms-kit/host/Volo.CmsKit.HttpApi.Host/Migrations/CmsKitHttpApiHostMigrationsDbContextModelSnapshot.cs
@@ -0,0 +1,529 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+using Volo.CmsKit.EntityFrameworkCore;
+
+namespace Volo.CmsKit.Migrations
+{
+ [DbContext(typeof(CmsKitHttpApiHostMigrationsDbContext))]
+ partial class CmsKitHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot
+ {
+ protected override void BuildModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .UseIdentityColumns()
+ .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
+ .HasAnnotation("ProductVersion", "5.0.1");
+
+ modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContainerId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Content")
+ .HasMaxLength(2147483647)
+ .HasColumnType("varbinary(max)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ContainerId");
+
+ b.HasIndex("TenantId", "ContainerId", "Name");
+
+ b.ToTable("AbpBlobs");
+ });
+
+ modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Name");
+
+ b.ToTable("AbpBlobContainers");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Comments.Comment", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("RepliedCommentId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Text")
+ .IsRequired()
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "RepliedCommentId");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId");
+
+ b.ToTable("CmsComments");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Contents.Content", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(2147483647)
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId");
+
+ b.ToTable("CmsContents");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Pages.Page", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Url")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Url");
+
+ b.ToTable("CmsPages");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Ratings.Rating", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("EntityId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("EntityType")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("StarCount")
+ .HasColumnType("smallint");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "EntityType", "EntityId", "CreatorId");
+
+ b.ToTable("CmsRatings");
+ });
+
+ modelBuilder.Entity("Volo.CmsKit.Reactions.UserReaction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property