mirror of https://github.com/abpframework/abp.git
54 changed files with 223 additions and 348 deletions
@ -1,25 +0,0 @@ |
|||
using Volo.Abp.Authorization.Permissions; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Blogging.Localization; |
|||
|
|||
namespace Volo.Blogging.Admin |
|||
{ |
|||
public class BloggingAdminPermissionDefinitionProvider : PermissionDefinitionProvider |
|||
{ |
|||
public override void Define(IPermissionDefinitionContext context) |
|||
{ |
|||
var bloggingGroup = context.AddGroup(BloggingAdminPermissions.GroupName, L("Permission:BloggingAdmin")); |
|||
|
|||
var blogs = bloggingGroup.AddPermission(BloggingAdminPermissions.Blogs.Default, L("Permission:Blogs")); |
|||
blogs.AddChild(BloggingAdminPermissions.Blogs.Management, L("Permission:Management")); |
|||
blogs.AddChild(BloggingAdminPermissions.Blogs.Update, L("Permission:Edit")); |
|||
blogs.AddChild(BloggingAdminPermissions.Blogs.Delete, L("Permission:Delete")); |
|||
blogs.AddChild(BloggingAdminPermissions.Blogs.Create, L("Permission:Create")); |
|||
} |
|||
|
|||
private static LocalizableString L(string name) |
|||
{ |
|||
return LocalizableString.Create<BloggingResource>(name); |
|||
} |
|||
} |
|||
} |
|||
@ -1,23 +0,0 @@ |
|||
using Volo.Abp.Reflection; |
|||
|
|||
namespace Volo.Blogging.Admin |
|||
{ |
|||
public class BloggingAdminPermissions |
|||
{ |
|||
public const string GroupName = "Blogging.Admin"; |
|||
|
|||
public static class Blogs |
|||
{ |
|||
public const string Default = GroupName + ".Blog"; |
|||
public const string Management = Default + ".Management"; |
|||
public const string Delete = Default + ".Delete"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Create = Default + ".Create"; |
|||
} |
|||
|
|||
public static string[] GetAll() |
|||
{ |
|||
return ReflectionHelper.GetPublicConstantsRecursively(typeof(BloggingAdminPermissions)); |
|||
} |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "cs", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blogování", |
|||
"Permission:Blogs": "Blogy", |
|||
"Permission:Management": "Správa", |
|||
"Permission:Edit": "Upravit", |
|||
"Permission:Create": "Vytvořit", |
|||
"Permission:Delete": "Smazat" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "de", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Management": "Verwaltung", |
|||
"Permission:Edit": "Bearbeiten", |
|||
"Permission:Create": "Erstellen", |
|||
"Permission:Delete": "Löschen" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "en", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blogging", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Management": "Management", |
|||
"Permission:Edit": "Edit", |
|||
"Permission:Create": "Create", |
|||
"Permission:Delete": "Delete" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "nl", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Management": "Beheer", |
|||
"Permission:Edit": "Bewerk", |
|||
"Permission:Create": "Maak aan", |
|||
"Permission:Delete": "Verwijder" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "pl-PL", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogi", |
|||
"Permission:Management": "Zarządzanie", |
|||
"Permission:Edit": "Edytuj", |
|||
"Permission:Create": "Utwórz", |
|||
"Permission:Delete": "Usuń" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "pt-BR", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Management": "Gerenciamento", |
|||
"Permission:Edit": "Editar", |
|||
"Permission:Create": "Criar", |
|||
"Permission:Delete": "Excluir" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "sl", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogi", |
|||
"Permission:Management": "Upravljanje", |
|||
"Permission:Edit": "Urejanje", |
|||
"Permission:Create": "Ustvarjanje", |
|||
"Permission:Delete": "Brisanje" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Bloglar", |
|||
"Permission:Management": "Yönetme", |
|||
"Permission:Edit": "Düzenle", |
|||
"Permission:Create": "Ekle", |
|||
"Permission:Delete": "Sil" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "vi", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Management": "Quản lý", |
|||
"Permission:Edit": "Sửa", |
|||
"Permission:Create": "Tạo", |
|||
"Permission:Delete": "Xóa" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "博客", |
|||
"Permission:Blogs": "博客", |
|||
"Permission:Management": "管理", |
|||
"Permission:Edit": "编辑", |
|||
"Permission:Create": "创建", |
|||
"Permission:Delete": "删除" |
|||
} |
|||
} |
|||
@ -1,11 +0,0 @@ |
|||
{ |
|||
"culture": "zh-Hant", |
|||
"texts": { |
|||
"Permission:BloggingAdmin": "部落格", |
|||
"Permission:Blogs": "部落格", |
|||
"Permission:Management": "管理", |
|||
"Permission:Edit": "標及", |
|||
"Permission:Create": "新增", |
|||
"Permission:Delete": "刪除" |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait /> |
|||
</Weavers> |
|||
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
|||
<xs:element name="Weavers"> |
|||
<xs:complexType> |
|||
<xs:all> |
|||
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
|||
<xs:complexType> |
|||
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:all> |
|||
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
|||
<xs:annotation> |
|||
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
|||
<xs:annotation> |
|||
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
|||
</xs:annotation> |
|||
</xs:attribute> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:schema> |
|||
@ -0,0 +1,18 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>netstandard2.0</TargetFramework> |
|||
<AssemblyName>Volo.Blogging.Application.Contracts.Shared</AssemblyName> |
|||
<PackageId>Volo.Blogging.Application.Contracts.Shared</PackageId> |
|||
<RootNamespace /> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Blogging.Domain.Shared\Volo.Blogging.Domain.Shared.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Ddd.Application\Volo.Abp.Ddd.Application.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,15 @@ |
|||
using Volo.Abp.Application; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Blogging |
|||
{ |
|||
[DependsOn(typeof(BloggingDomainSharedModule), |
|||
typeof(AbpDddApplicationModule))] |
|||
public class BloggingApplicationContractsSharedModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "cs", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogy", |
|||
"Permission:Posts": "Příspěvky", |
|||
"Permission:Tags": "Tagy", |
|||
"Permission:Comments": "Komentáře" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "de", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Posts": "Beitr�ge", |
|||
"Permission:Tags": "Tags", |
|||
"Permission:Comments": "Kommentare" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "en", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Posts": "Posts", |
|||
"Permission:Tags": "Tags", |
|||
"Permission:Comments": "Comments" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "nl", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Posts": "Posts", |
|||
"Permission:Tags": "Tags", |
|||
"Permission:Comments": "Kommentaar" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "pl-PL", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogi", |
|||
"Permission:Posts": "Posty", |
|||
"Permission:Tags": "Tagi", |
|||
"Permission:Comments": "Komentarze" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "pt-BR", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Posts": "Postagens", |
|||
"Permission:Tags": "Etiquetas", |
|||
"Permission:Comments": "Comentários" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "sl", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogi", |
|||
"Permission:Posts": "Objave", |
|||
"Permission:Tags": "Oznake", |
|||
"Permission:Comments": "Komentarji" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Bloglar", |
|||
"Permission:Posts": "Yazılar", |
|||
"Permission:Tags": "Etiketler", |
|||
"Permission:Comments": "Yorumlar" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "vi", |
|||
"texts": { |
|||
"Permission:Blogging": "Blog", |
|||
"Permission:Blogs": "Blogs", |
|||
"Permission:Posts": "Bài viết", |
|||
"Permission:Tags": "Thẻ", |
|||
"Permission:Comments": "Bình luận" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "zh-Hans", |
|||
"texts": { |
|||
"Permission:Blogging": "博客", |
|||
"Permission:Blogs": "博客", |
|||
"Permission:Posts": "帖子", |
|||
"Permission:Tags": "标签", |
|||
"Permission:Comments": "评论" |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
{ |
|||
"culture": "zh-Hant", |
|||
"texts": { |
|||
"Permission:Blogging": "部落格", |
|||
"Permission:Blogs": "部落格", |
|||
"Permission:Posts": "文章", |
|||
"Permission:Tags": "標籤", |
|||
"Permission:Comments": "評論" |
|||
} |
|||
} |
|||
Loading…
Reference in new issue