Skip to content
Permalink
Browse files

Almost have jobs working.

  • Loading branch information...
michaellwest committed May 16, 2019
1 parent e7bfb5b commit ca65cfa63dec8cce3fedb80cf401a643dd8c487b
Showing with 72 additions and 64 deletions.
  1. +1 −27 Cognifide.PowerShell.Sitecore8/Cognifide.PowerShell.Sitecore8.csproj
  2. +4 −0 Cognifide.PowerShell.Sitecore8/Services/SpeJobOptions.cs
  3. +4 −0 Cognifide.PowerShell.Sitecore92/Services/SpeJobOptions.cs
  4. +9 −9 Cognifide.PowerShell/App_Config/Include/Cognifide.PowerShell.config
  5. +3 −3 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Client/Applications/FieldEditor.cs
  6. +1 −1 ....PowerShell.Sitecore8 → Cognifide.PowerShell}/Client/Applications/ImmediateDebugWindowLauncher.cs
  7. +1 −1 ...owerShell.Sitecore8 → Cognifide.PowerShell}/Client/Applications/SessionElevationWindowLauncher.cs
  8. +1 −1 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Client/Commands/EditIseSettings.cs
  9. +1 −1 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Client/Commands/ExecuteFieldEditor.cs
  10. +3 −3 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Client/Commands/WebEditScriptCommand.cs
  11. +28 −0 Cognifide.PowerShell/Cognifide.PowerShell.csproj
  12. +0 −1 Cognifide.PowerShell/Integrations/Pipelines/PageEditorExperienceButtonScript.cs
  13. +1 −1 ...werShell.Sitecore8 → Cognifide.PowerShell}/Integrations/Pipelines/PageEditorNotificationScript.cs
  14. +1 −1 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Utility/DateConverter.cs
  15. +1 −1 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/Utility/UrlHandleWrapper.cs
  16. +1 −0 Cognifide.PowerShell/packages.config
  17. 0 ...ifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/Console.css
  18. 0 ...ifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/Dialogs.css
  19. 0 ...ifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/Gallery.css
  20. 0 ...nifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/IFrame.css
  21. 0 ...fide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/ListView.css
  22. 0 ...nifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/Runner.css
  23. 0 ...PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/ScriptBrowser.css
  24. 0 ...owerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/VariablePrompt.css
  25. 0 ...nifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/c3.min.css
  26. 0 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/flex.css
  27. 0 {Cognifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/ise.css
  28. 0 ...werShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.qtip.min.css
  29. 0 ...werShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.terminal.css
  30. 0 ...PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.ui.all.css
  31. 0 ...l.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.ui.autocomplete.css
  32. 0 ...owerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.ui.base.css
  33. 0 ...owerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.ui.core.css
  34. 0 ...werShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/jquery.ui.theme.css
  35. 0 ...ifide.PowerShell.Sitecore8 → Cognifide.PowerShell}/sitecore modules/PowerShell/Styles/reports.css
  36. +2 −0 Cognifide.PowerShell/sitecore modules/Styles/jquery.qtip.min.css
  37. +3 −2 Post_Build.ps1
  38. +7 −12 deploy.json
@@ -76,43 +76,16 @@
<Compile Include="..\Cognifide.PowerShell\Version.cs">
<Link>Version.cs</Link>
</Compile>
<Compile Include="Client\Applications\FieldEditor.cs" />
<Compile Include="Client\Applications\SessionElevationWindowLauncher.cs" />
<Compile Include="Client\Applications\ImmediateDebugWindowLauncher.cs" />
<Compile Include="Client\Commands\EditIseSettings.cs" />
<Compile Include="Client\Commands\ExecuteFieldEditor.cs" />
<Compile Include="Client\Commands\WebEditScriptCommand.cs" />
<Compile Include="Integrations\Pipelines\PageEditorNotificationScript.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\SpeJobManager.cs" />
<Compile Include="Services\SpeJobOptions.cs" />
<Compile Include="Utility\DateConverter.cs" />
<Compile Include="Utility\UrlHandleWrapper.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cognifide.PowerShell\Cognifide.PowerShell.csproj">
<Project>{fac57610-989c-4d7e-8d58-ccc914688096}</Project>
<Name>Cognifide.PowerShell</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="sitecore modules\PowerShell\Styles\c3.min.css" />
<Content Include="sitecore modules\PowerShell\Styles\Console.css" />
<Content Include="sitecore modules\PowerShell\Styles\Dialogs.css" />
<Content Include="sitecore modules\PowerShell\Styles\Gallery.css" />
<Content Include="sitecore modules\PowerShell\Styles\ise.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.qtip.min.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.terminal.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.all.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.autocomplete.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.base.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.core.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.theme.css" />
<Content Include="sitecore modules\PowerShell\Styles\ListView.css" />
<Content Include="sitecore modules\PowerShell\Styles\reports.css" />
<Content Include="sitecore modules\PowerShell\Styles\Runner.css" />
<Content Include="sitecore modules\PowerShell\Styles\VariablePrompt.css" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
@@ -132,6 +105,7 @@
<Visible>false</Visible>
</SitecoreModuleFiles>
</ItemGroup>
<ItemGroup />
<PropertyGroup>
<ScriptLocation Condition=" '$(ScriptLocation)'=='' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\Post_Build.ps1'))</ScriptLocation>
</PropertyGroup>
@@ -21,6 +21,10 @@ public class SpeJobOptions : IJobOptions
public string SiteName { get; set; }
public object[] Parameters { get; set; }

public SpeJobOptions(string jobName, string category, string siteName, object obj, string methodName) : this(jobName, category, siteName, obj, methodName, null)
{
}

public SpeJobOptions(string jobName, string category, string siteName, object obj, string methodName, object[] parameters)
{
this.JobName = jobName;
@@ -21,6 +21,10 @@ public class SpeJobOptions : IJobOptions
public string SiteName { get; set; }
public object[] Parameters { get; set; }

public SpeJobOptions(string jobName, string category, string siteName, object obj, string methodName) : this(jobName, category, siteName, obj, methodName, null)
{
}

public SpeJobOptions(string jobName, string category, string siteName, object obj, string methodName, object[] parameters)
{
this.JobName = jobName;
@@ -35,11 +35,11 @@
</command>
-->
<command name="ise:executefieldeditor"
type="Cognifide.PowerShell.VersionSpecific.Client.Commands.ExecuteFieldEditor, Cognifide.PowerShell.VersionSpecific" />
type="Cognifide.PowerShell.Client.Commands.ExecuteFieldEditor, Cognifide.PowerShell" />
<command name="ise:editsettings"
type="Cognifide.PowerShell.VersionSpecific.Client.Commands.EditIseSettings,Cognifide.PowerShell.VersionSpecific" />
type="Cognifide.PowerShell.Client.Commands.EditIseSettings,Cognifide.PowerShell" />
<command name="powershell:fieldeditor"
type="Cognifide.PowerShell.VersionSpecific.Client.Applications.FieldEditor, Cognifide.PowerShell.VersionSpecific" />
type="Cognifide.PowerShell.Client.Applications.FieldEditor, Cognifide.PowerShell" />
<command name="ise:debug" type="Cognifide.PowerShell.Client.Commands.RuntimeQueryState,Cognifide.PowerShell" />
<command name="ise:debugaction" type="Cognifide.PowerShell.Client.Commands.DebugQueryState,Cognifide.PowerShell" />
<command name="ise:immediatewindow" type="Cognifide.PowerShell.Client.Commands.DebugQueryState,Cognifide.PowerShell" />
@@ -49,7 +49,7 @@
<command name="pslvnav:previous" type="Cognifide.PowerShell.Client.Commands.ListViewPagingQueryState,Cognifide.PowerShell" />
<command name="pslvnav:next" type="Cognifide.PowerShell.Client.Commands.ListViewPagingQueryState,Cognifide.PowerShell" />
<command name="pslv:filter" type="Cognifide.PowerShell.Client.Commands.ListViewFilterQueryState,Cognifide.PowerShell" />
<command name="webedit:script" type="Cognifide.PowerShell.VersionSpecific.Client.Commands.WebEditScriptCommand,Cognifide.PowerShell.VersionSpecific" />
<command name="webedit:script" type="Cognifide.PowerShell.Client.Commands.WebEditScriptCommand,Cognifide.PowerShell" />
<command name="item:elevatescriptedit" type="Cognifide.PowerShell.Core.Settings.Authorization.ElevateSessionState,Cognifide.PowerShell" />
<command name="item:dropelevatescriptedit" type="Cognifide.PowerShell.Core.Settings.Authorization.DropElevatedSessionState,Cognifide.PowerShell" />
</commands>
@@ -59,10 +59,10 @@
</event>
</events>
<typeMappings>
<mapping name="IUrlHandleWrapper" type="Cognifide.PowerShell.VersionSpecific.Utility.UrlHandleWrapper, Cognifide.PowerShell.VersionSpecific" />
<mapping name="IDateConverter" type="Cognifide.PowerShell.VersionSpecific.Utility.DateConverter, Cognifide.PowerShell.VersionSpecific" />
<mapping name="IImmediateDebugWindowLauncher" type="Cognifide.PowerShell.VersionSpecific.Client.Applications.ImmediateDebugWindowLauncher, Cognifide.PowerShell.VersionSpecific" />
<mapping name="ISessionElevationWindowLauncher" type="Cognifide.PowerShell.VersionSpecific.Client.Applications.SessionElevationWindowLauncher, Cognifide.PowerShell.VersionSpecific" />
<mapping name="IUrlHandleWrapper" type="Cognifide.PowerShell.Utility.UrlHandleWrapper, Cognifide.PowerShell" />
<mapping name="IDateConverter" type="Cognifide.PowerShell.Utility.DateConverter, Cognifide.PowerShell" />
<mapping name="IImmediateDebugWindowLauncher" type="Cognifide.PowerShell.Client.Applications.ImmediateDebugWindowLauncher, Cognifide.PowerShell" />
<mapping name="ISessionElevationWindowLauncher" type="Cognifide.PowerShell.Client.Applications.SessionElevationWindowLauncher, Cognifide.PowerShell" />
<mapping name="IJobOptions" type="Cognifide.PowerShell.VersionSpecific.Services.SpeJobOptions, Cognifide.PowerShell.VersionSpecific" />
<mapping name="IJobManager" type="Cognifide.PowerShell.VersionSpecific.Services.SpeJobManager, Cognifide.PowerShell.VersionSpecific" />
</typeMappings>
@@ -246,7 +246,7 @@
type="Cognifide.PowerShell.Core.Settings.Authorization.ContentEditorSecurityWarning, Cognifide.PowerShell" />
</getContentEditorWarnings>
<getPageEditorNotifications>
<processor type="Cognifide.PowerShell.VersionSpecific.Integrations.Pipelines.PageEditorNotificationScript, Cognifide.PowerShell.VersionSpecific"/>
<processor type="Cognifide.PowerShell.Integrations.Pipelines.PageEditorNotificationScript, Cognifide.PowerShell"/>
</getPageEditorNotifications>
<getLookupSourceItems>
<processor
@@ -6,21 +6,21 @@
using System.Web;
using Cognifide.PowerShell.Core.Extensions;
using Sitecore;
using Sitecore.Collections;
using Sitecore.Configuration;
using Sitecore.Data;
using Sitecore.Data.Fields;
using Sitecore.Data.Items;
using Sitecore.Data.Managers;
using Sitecore.Diagnostics;
using Sitecore.Jobs;
using Sitecore.Shell.Applications.WebEdit;
using Sitecore.Shell.Framework.Commands;
using Sitecore.Text;
using Sitecore.Web.UI.Sheer;
using JobManager = Sitecore.Jobs.JobManager;
using Page = Sitecore.Web.UI.HtmlControls.Page;
using Sitecore.Collections;

namespace Cognifide.PowerShell.VersionSpecific.Client.Applications
namespace Cognifide.PowerShell.Client.Applications
{
[Serializable]
public class FieldEditor : Command
@@ -2,7 +2,7 @@
using Sitecore.Text;
using Sitecore.Web.UI.Sheer;

namespace Cognifide.PowerShell.VersionSpecific.Client.Applications
namespace Cognifide.PowerShell.Client.Applications
{
public class ImmediateDebugWindowLauncher : IImmediateDebugWindowLauncher
{
@@ -2,7 +2,7 @@
using Sitecore.Text;
using Sitecore.Web.UI.Sheer;

namespace Cognifide.PowerShell.VersionSpecific.Client.Applications
namespace Cognifide.PowerShell.Client.Applications
{
public class SessionElevationWindowLauncher : ISessionElevationWindowLauncher
{
@@ -6,7 +6,7 @@
using Sitecore.Shell.Framework.Commands;
using Sitecore.Web.UI.Sheer;

namespace Cognifide.PowerShell.VersionSpecific.Client.Commands
namespace Cognifide.PowerShell.Client.Commands
{
[Serializable]
public class EditIseSettings : ExecuteFieldEditor
@@ -16,7 +16,7 @@
using Sitecore.Web.UI.HtmlControls;
using Sitecore.Web.UI.Sheer;

namespace Cognifide.PowerShell.VersionSpecific.Client.Commands
namespace Cognifide.PowerShell.Client.Commands
{
[Serializable]
public class ExecuteFieldEditor : Command
@@ -1,11 +1,11 @@
using Sitecore;
using System.Globalization;
using Sitecore;
using Sitecore.Shell.Applications.WebEdit.Commands;
using Sitecore.Shell.Framework.Commands;
using Sitecore.Text;
using Sitecore.Web.UI.Sheer;
using System.Globalization;

namespace Cognifide.PowerShell.VersionSpecific.Client.Commands
namespace Cognifide.PowerShell.Client.Commands
{
#pragma warning disable 612
public class WebEditScriptCommand : WebEditCommand
@@ -115,6 +115,9 @@
<HintPath>..\packages\Sitecore.ContentSearch.Linq.NoReferences.8.2.170728\lib\NET452\Sitecore.ContentSearch.Linq.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Sitecore.ExperienceEditor, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.ExperienceEditor.NoReferences.8.2.170728\lib\NET452\Sitecore.ExperienceEditor.dll</HintPath>
</Reference>
<Reference Include="Sitecore.Kernel, Version=10.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.Kernel.NoReferences.8.2.170728\lib\NET452\Sitecore.Kernel.dll</HintPath>
<Private>False</Private>
@@ -165,11 +168,17 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Client\Applications\FieldEditor.cs" />
<Compile Include="Client\Applications\ImmediateDebugWindowLauncher.cs" />
<Compile Include="Client\Applications\PowerShellReports.cs" />
<Compile Include="Client\Applications\PowerShellSessionElevation.cs" />
<Compile Include="Client\Applications\SessionElevationWindowLauncher.cs" />
<Compile Include="Client\Commands\EditIseSettings.cs" />
<Compile Include="Client\Commands\ExecuteFieldEditor.cs" />
<Compile Include="Client\Commands\MenuItems\AddMaster.cs" />
<Compile Include="Client\Commands\SelectUser.cs" />
<Compile Include="Client\Commands\Selectlanguage.cs" />
<Compile Include="Client\Commands\WebEditScriptCommand.cs" />
<Compile Include="Client\Controls\LanguageHistory.cs" />
<Compile Include="Client\Controls\BucketlistExtended.cs" />
<Compile Include="Client\Controls\Marquee.cs" />
@@ -527,6 +536,7 @@
<Compile Include="Integrations\Pipelines\LoggedInScript.cs" />
<Compile Include="Integrations\Pipelines\LoggingInScript.cs" />
<Compile Include="Integrations\Pipelines\LogoutScript.cs" />
<Compile Include="Integrations\Pipelines\PageEditorNotificationScript.cs" />
<Compile Include="Integrations\Pipelines\PipelineProcessor.cs" />
<Compile Include="Integrations\Processors\BaseScriptedDataSource.cs" />
<Compile Include="Integrations\Processors\ScriptedDataSource.cs" />
@@ -554,6 +564,8 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Templates.cs" />
<Compile Include="Texts.cs" />
<Compile Include="Utility\DateConverter.cs" />
<Compile Include="Utility\UrlHandleWrapper.cs" />
<Compile Include="Version.cs" />
</ItemGroup>
<ItemGroup>
@@ -655,6 +667,22 @@
<Content Include="sitecore modules\PowerShell\Scripts\VariablePrompt.js" />
<Content Include="sitecore modules\PowerShell\Services\PowerShellWebService.asmx" />
<Content Include="sitecore modules\PowerShell\Services\RemoteAutomation.asmx" />
<Content Include="sitecore modules\PowerShell\Styles\c3.min.css" />
<Content Include="sitecore modules\PowerShell\Styles\Console.css" />
<Content Include="sitecore modules\PowerShell\Styles\Dialogs.css" />
<Content Include="sitecore modules\PowerShell\Styles\Gallery.css" />
<Content Include="sitecore modules\PowerShell\Styles\ise.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.qtip.min.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.terminal.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.all.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.autocomplete.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.base.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.core.css" />
<Content Include="sitecore modules\PowerShell\Styles\jquery.ui.theme.css" />
<Content Include="sitecore modules\PowerShell\Styles\ListView.css" />
<Content Include="sitecore modules\PowerShell\Styles\reports.css" />
<Content Include="sitecore modules\PowerShell\Styles\Runner.css" />
<Content Include="sitecore modules\PowerShell\Styles\VariablePrompt.css" />
<Content Include="sitecore\shell\version\Modules\Sitecore PowerShell Extensions.version" />
</ItemGroup>
<ItemGroup>
@@ -6,7 +6,6 @@
using Cognifide.PowerShell.Core.Settings.Authorization;
using Cognifide.PowerShell.Core.Utility;
using Sitecore;
using Sitecore.Collections;
using Sitecore.Data;
using Sitecore.Data.Fields;
using Sitecore.Data.Items;
@@ -10,7 +10,7 @@
using Sitecore.Diagnostics;
using Sitecore.Pipelines.GetPageEditorNotifications;

namespace Cognifide.PowerShell.VersionSpecific.Integrations.Pipelines
namespace Cognifide.PowerShell.Integrations.Pipelines
{
public class PageEditorNotificationScript
{
@@ -2,7 +2,7 @@
using Cognifide.PowerShell.Core.VersionDecoupling.Interfaces;
using Sitecore;

namespace Cognifide.PowerShell.VersionSpecific.Utility
namespace Cognifide.PowerShell.Utility
{
class DateConverter : IDateConverter
{
@@ -1,7 +1,7 @@
using Cognifide.PowerShell.Core.VersionDecoupling.Interfaces;
using Sitecore.Web;

namespace Cognifide.PowerShell.VersionSpecific.Utility
namespace Cognifide.PowerShell.Utility
{
class UrlHandleWrapper : IUrlHandleWrapper
{
@@ -12,6 +12,7 @@
<package id="Sitecore.Client.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.ContentSearch.Linq.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.ContentSearch.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.ExperienceEditor.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.Kernel.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.Logging.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />
<package id="Sitecore.Mvc.NoReferences" version="8.2.170728" targetFramework="net452" developmentDependency="true" />

0 comments on commit ca65cfa

Please sign in to comment.
You can’t perform that action at this time.