Menü değişiklikleri
This commit is contained in:
parent
d9712403f8
commit
a35421b73a
4 changed files with 66 additions and 48 deletions
|
|
@ -27,8 +27,19 @@ public class MenuSeeder : IDataSeedContributor, ITransientDependency
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Platform
|
||||||
|
await _repository.InsertAsync(new Menu
|
||||||
|
{
|
||||||
|
Code = SeedConsts.Platform,
|
||||||
|
DisplayName = SeedConsts.Platform,
|
||||||
|
Order = 9,
|
||||||
|
IsDisabled = false,
|
||||||
|
Icon = "FcTabletAndroid"
|
||||||
|
});
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Home
|
#region Home
|
||||||
var menuHome = await _repository.InsertAsync(new Menu
|
await _repository.InsertAsync(new Menu
|
||||||
{
|
{
|
||||||
Code = AppCodes.Home,
|
Code = AppCodes.Home,
|
||||||
DisplayName = AppCodes.Home,
|
DisplayName = AppCodes.Home,
|
||||||
|
|
@ -50,30 +61,64 @@ public class MenuSeeder : IDataSeedContributor, ITransientDependency
|
||||||
DisplayName = AppCodes.Setting,
|
DisplayName = AppCodes.Setting,
|
||||||
Order = 2,
|
Order = 2,
|
||||||
IsDisabled = false,
|
IsDisabled = false,
|
||||||
Icon = "FcList",
|
Icon = "FcSettings",
|
||||||
Url = "/settings",
|
Url = "/settings",
|
||||||
RequiredPermissionName = AppCodes.Setting
|
RequiredPermissionName = AppCodes.Setting
|
||||||
});
|
});
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Platform
|
#region Saas
|
||||||
await _repository.InsertAsync(new Menu
|
var menuSaas = await _repository.InsertAsync(new Menu
|
||||||
{
|
{
|
||||||
Code = SeedConsts.Platform,
|
Code = AppCodes.Saas,
|
||||||
DisplayName = SeedConsts.Platform,
|
DisplayName = AppCodes.Saas,
|
||||||
Order = 9,
|
Order = 3,
|
||||||
IsDisabled = false,
|
IsDisabled = false,
|
||||||
Icon = "FcTabletAndroid"
|
ParentCode = null,
|
||||||
|
Icon = "FcPodiumWithAudience",
|
||||||
|
Target = null,
|
||||||
|
ElementId = null,
|
||||||
|
CssClass = null
|
||||||
});
|
});
|
||||||
#endregion
|
|
||||||
|
|
||||||
//Administrator
|
await _repository.InsertManyAsync([
|
||||||
|
new Menu
|
||||||
|
{
|
||||||
|
Code = TenantManagementPermissions.Tenants.Default,
|
||||||
|
DisplayName = TenantManagementPermissions.Tenants.Default,
|
||||||
|
Order = 1,
|
||||||
|
IsDisabled = false,
|
||||||
|
ParentCode = menuSaas.Code,
|
||||||
|
Icon = "FcDepartment",
|
||||||
|
Target = null,
|
||||||
|
ElementId = null,
|
||||||
|
CssClass = null,
|
||||||
|
Url = $"/list/{PlatformConsts.ListFormCodes.Tenants}",
|
||||||
|
RequiredPermissionName = TenantManagementPermissions.Tenants.Default
|
||||||
|
},
|
||||||
|
new Menu
|
||||||
|
{
|
||||||
|
Code = AppCodes.Branches,
|
||||||
|
DisplayName = AppCodes.Branches,
|
||||||
|
Order = 2,
|
||||||
|
IsDisabled = false,
|
||||||
|
ParentCode = menuSaas.Code,
|
||||||
|
Icon = "FcShop",
|
||||||
|
Target = null,
|
||||||
|
ElementId = null,
|
||||||
|
CssClass = null,
|
||||||
|
Url = $"/list/{PlatformConsts.ListFormCodes.Branch}",
|
||||||
|
RequiredPermissionName = AppCodes.Branches
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Administration
|
#region Administration
|
||||||
var menuAdministration = await _repository.InsertAsync(new Menu
|
var menuAdministration = await _repository.InsertAsync(new Menu
|
||||||
{
|
{
|
||||||
Code = AppCodes.Administration,
|
Code = AppCodes.Administration,
|
||||||
DisplayName = AppCodes.Administration,
|
DisplayName = AppCodes.Administration,
|
||||||
Order = 3,
|
Order = 4,
|
||||||
IsDisabled = false,
|
IsDisabled = false,
|
||||||
ParentCode = null,
|
ParentCode = null,
|
||||||
Icon = "FcOrganization",
|
Icon = "FcOrganization",
|
||||||
|
|
@ -82,38 +127,6 @@ public class MenuSeeder : IDataSeedContributor, ITransientDependency
|
||||||
CssClass = null
|
CssClass = null
|
||||||
});
|
});
|
||||||
|
|
||||||
//Tenant Management
|
|
||||||
await _repository.InsertAsync(new Menu
|
|
||||||
{
|
|
||||||
Code = TenantManagementPermissions.Tenants.Default,
|
|
||||||
DisplayName = TenantManagementPermissions.Tenants.Default,
|
|
||||||
Order = -2,
|
|
||||||
IsDisabled = false,
|
|
||||||
ParentCode = menuAdministration.Code,
|
|
||||||
Icon = "FcDepartment",
|
|
||||||
Target = null,
|
|
||||||
ElementId = null,
|
|
||||||
CssClass = null,
|
|
||||||
Url = $"/list/{PlatformConsts.ListFormCodes.Tenants}",
|
|
||||||
RequiredPermissionName = TenantManagementPermissions.Tenants.Default
|
|
||||||
});
|
|
||||||
|
|
||||||
//Branch Management
|
|
||||||
await _repository.InsertAsync(new Menu
|
|
||||||
{
|
|
||||||
Code = AppCodes.Branches,
|
|
||||||
DisplayName = AppCodes.Branches,
|
|
||||||
Order = -1,
|
|
||||||
IsDisabled = false,
|
|
||||||
ParentCode = menuAdministration.Code,
|
|
||||||
Icon = "FcShop",
|
|
||||||
Target = null,
|
|
||||||
ElementId = null,
|
|
||||||
CssClass = null,
|
|
||||||
Url = $"/list/{PlatformConsts.ListFormCodes.Branch}",
|
|
||||||
RequiredPermissionName = AppCodes.Branches
|
|
||||||
});
|
|
||||||
|
|
||||||
//Setting Management
|
//Setting Management
|
||||||
var menuSettings = await _repository.InsertAsync(new Menu
|
var menuSettings = await _repository.InsertAsync(new Menu
|
||||||
{
|
{
|
||||||
|
|
@ -461,7 +474,7 @@ public class MenuSeeder : IDataSeedContributor, ITransientDependency
|
||||||
Order = 6,
|
Order = 6,
|
||||||
IsDisabled = false,
|
IsDisabled = false,
|
||||||
ParentCode = menuAdministration.Code,
|
ParentCode = menuAdministration.Code,
|
||||||
Icon = "FcSettings",
|
Icon = "FcWorkflow",
|
||||||
Target = null,
|
Target = null,
|
||||||
ElementId = null,
|
ElementId = null,
|
||||||
CssClass = null,
|
CssClass = null,
|
||||||
|
|
|
||||||
|
|
@ -600,6 +600,12 @@
|
||||||
"en": "Post",
|
"en": "Post",
|
||||||
"tr": "Post"
|
"tr": "Post"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Saas",
|
||||||
|
"en": "Saas",
|
||||||
|
"tr": "Saas"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Administration",
|
"key": "App.Administration",
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ public static class SeedConsts
|
||||||
{
|
{
|
||||||
public const string Home = Prefix.App + ".Home";
|
public const string Home = Prefix.App + ".Home";
|
||||||
public const string Setting = Prefix.App + ".Setting";
|
public const string Setting = Prefix.App + ".Setting";
|
||||||
|
public const string Saas = Prefix.App + ".Saas";
|
||||||
public const string Administration = Prefix.App + ".Administration";
|
public const string Administration = Prefix.App + ".Administration";
|
||||||
|
|
||||||
public static class IdentityPermissions
|
public static class IdentityPermissions
|
||||||
|
|
@ -318,7 +318,6 @@ public static class SeedConsts
|
||||||
public static class Users
|
public static class Users
|
||||||
{
|
{
|
||||||
public const string Default = GroupName + ".Users";
|
public const string Default = GroupName + ".Users";
|
||||||
|
|
||||||
public const string SecurityLogs = Default + ".SecurityLog";
|
public const string SecurityLogs = Default + ".SecurityLog";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -343,8 +342,8 @@ public static class SeedConsts
|
||||||
{
|
{
|
||||||
public const string Default = Prefix.App + ".Listforms";
|
public const string Default = Prefix.App + ".Listforms";
|
||||||
|
|
||||||
public const string Wizard = Default + ".Wizard";
|
|
||||||
public const string DataSource = Default + ".DataSource";
|
public const string DataSource = Default + ".DataSource";
|
||||||
|
public const string Wizard = Default + ".Wizard";
|
||||||
public const string Listform = Default + ".Listform";
|
public const string Listform = Default + ".Listform";
|
||||||
public const string ListformField = Default + ".ListformField";
|
public const string ListformField = Default + ".ListformField";
|
||||||
public const string Chart = Default + ".Chart";
|
public const string Chart = Default + ".Chart";
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.gf7mb80njbo"
|
"revision": "0.ve4ie4jj2c8"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue