-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from valdisiljuconoks/develop
Merge from 'develop'
- Loading branch information
Showing
157 changed files
with
4,742 additions
and
898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
DbLocalizationProvider.AdminUI.EPiServer/AdminUISetupModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using EPiServer.Framework; | ||
using EPiServer.Framework.Initialization; | ||
using InitializationModule = EPiServer.Web.InitializationModule; | ||
|
||
namespace DbLocalizationProvider.AdminUI.EPiServer | ||
{ | ||
[InitializableModule] | ||
[ModuleDependency(typeof(InitializationModule))] | ||
public class AdminUISetupModule : IInitializableModule | ||
{ | ||
public void Initialize(InitializationEngine context) | ||
{ | ||
foreach (var role in new[] { "CmsAdmins", "WebAdmins", "LocalizationAdmins" }) | ||
UiConfigurationContext.Current.AuthorizedAdminRoles.Add(role); | ||
|
||
foreach (var role in new[] { "CmsEditors", "WebEditors", "LocalizationEditors" }) | ||
UiConfigurationContext.Current.AuthorizedEditorRoles.Add(role); | ||
|
||
// set default implementations | ||
} | ||
|
||
public void Uninitialize(InitializationEngine context) { } | ||
} | ||
} |
256 changes: 256 additions & 0 deletions
256
DbLocalizationProvider.AdminUI.EPiServer/DbLocalizationProvider.AdminUI.EPiServer.csproj
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
DbLocalizationProvider.AdminUI.EPiServer/DbLocalizationProvider.AdminUI.EPiServer.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<package> | ||
<metadata> | ||
<id>$id$</id> | ||
<version>$version$</version> | ||
<title>$title$</title> | ||
<authors>$author$</authors> | ||
<owners>$author$</owners> | ||
<licenseUrl>https://github.com/valdisiljuconoks/LocalizationProvider/blob/master/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/valdisiljuconoks/LocalizationProvider/</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>$description$</description> | ||
<releaseNotes>Inital version of DbLocalizationProvider AdminUI package for EPiServer</releaseNotes> | ||
<copyright>Copyright 2016 (c) Valdis Iljuconoks, Tech Fellow</copyright> | ||
<tags>Localization EPiServer Provider DbLocalization DbLocalizationProvider LocalizationProvider AdminUI UI</tags> | ||
<dependencies> | ||
<dependency id="DbLocalizationProvider.EPiServer" version="2.0.0" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="DbLocalizationProvider.AdminUI.EPiServer.zip" target="content\modules\_protected\DbLocalizationProvider.AdminUI.EPiServer" /> | ||
</files> | ||
</package> |
Binary file renamed
BIN
+144 KB
...dminUI/DbLocalizationProvider.AdminUI.zip → ...ocalizationProvider.AdminUI.EPiServer.zip
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
DbLocalizationProvider.AdminUI.EPiServer/MenuItemRegistration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using EPiServer.PlugIn; | ||
using EPiServer.Shell; | ||
using EPiServer.Shell.Navigation; | ||
using PlugInArea = EPiServer.PlugIn.PlugInArea; | ||
|
||
namespace DbLocalizationProvider.AdminUI.EPiServer | ||
{ | ||
[GuiPlugIn(DisplayName = "Localization Resources", UrlFromModuleFolder = "LocalizationResources", Area = PlugInArea.AdminMenu)] | ||
public class MenuItemRegistration { } | ||
|
||
[MenuProvider] | ||
public class AdminUIMenuProvider : IMenuProvider | ||
{ | ||
public IEnumerable<MenuItem> GetMenuItems() | ||
{ | ||
return new List<MenuItem> | ||
{ | ||
new UrlMenuItem("Localization", "/global/cms/localization", Paths.ToResource(typeof(MenuItemRegistration), "LocalizationResources/Main")) | ||
{ | ||
IsAvailable = ctx => UiConfigurationContext.Current.AuthorizedEditorRoles.Any(ctx.HttpContext.User.IsInRole) | ||
} | ||
}; | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
DbLocalizationProvider.AdminUI.EPiServer/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
[assembly: AssemblyTitle("DbLocalizationProvider.AdminUI.EPiServer")] | ||
[assembly: AssemblyDescription("DbLocalizationProvider management user interface for EPServer")] | ||
[assembly: Guid("aa5fcd04-8113-4f0b-8e8e-5cf365b3d245")] | ||
[assembly: AssemblyVersion("2.0.0.0")] | ||
[assembly: AssemblyFileVersion("2.0.0.0")] | ||
[assembly: AssemblyInformationalVersion("2.0.0")] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion
2
...ocalizationProvider.AdminUI/module.config → ...nProvider.AdminUI.EPiServer/module.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<module> | ||
<assemblies> | ||
<add assembly="DbLocalizationProvider.AdminUI" /> | ||
<add assembly="DbLocalizationProvider.AdminUI.EPiServer" /> | ||
</assemblies> | ||
</module> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Castle.Core" version="3.2.0" /> | ||
<package id="Castle.Windsor" version="3.2.0" /> | ||
<package id="EntityFramework" version="6.1.2" /> | ||
<package id="EPiServer.CMS.Core" version="9.0.0" /> | ||
<package id="EPiServer.CMS.UI.Core" version="9.0.0" /> | ||
<package id="EPiServer.Framework" version="9.0.0" /> | ||
<package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" /> | ||
<package id="Microsoft.AspNet.Razor" version="2.0.20710.0" /> | ||
<package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" /> | ||
<package id="Newtonsoft.Json" version="5.0.8" /> | ||
<package id="Owin" version="1.0" targetFramework="net452" /> | ||
<package id="structuremap.web-signed" version="3.1.6.186" /> | ||
<package id="structuremap-signed" version="3.1.6.186" /> | ||
</packages> |
2 changes: 1 addition & 1 deletion
2
...tionProvider.AdminUI/web.config.transform → ...er.AdminUI.EPiServer/web.config.transform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<configuration> | ||
<episerver.shell> | ||
<protectedModules> | ||
<add name="DbLocalizationProvider.AdminUI" /> | ||
<add name="DbLocalizationProvider.AdminUI.EPiServer" /> | ||
</protectedModules> | ||
</episerver.shell> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using Owin; | ||
|
||
namespace DbLocalizationProvider.AdminUI | ||
{ | ||
public static class AppBuilderExtensions | ||
{ | ||
public static void UseDbLocalizationProviderAdminUI(this IAppBuilder builder, Action<UiConfigurationContext> setup = null) | ||
{ | ||
// set default implementations | ||
|
||
setup?.Invoke(UiConfigurationContext.Current); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+13.7 KB
DbLocalizationProvider.AdminUI/ClientResources/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
Oops, something went wrong.