Skip to content

Commit 8818ded

Browse files
Added package as project (for easier debugging)
1 parent 2a7a929 commit 8818ded

File tree

20 files changed

+1227
-50
lines changed

20 files changed

+1227
-50
lines changed

tests/DeveloperTools.SandboxSite/DeveloperTools.SandboxSite.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@
8888
<Reference Include="EPiServer.Data.Cache, Version=11.12.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL">
8989
<HintPath>..\..\packages\EPiServer.Framework.11.12.0\lib\net461\EPiServer.Data.Cache.dll</HintPath>
9090
</Reference>
91-
<Reference Include="EPiServer.DeveloperTools, Version=3.4.1.0, Culture=neutral, processorArchitecture=MSIL">
92-
<HintPath>..\..\packages\EPiServer.DeveloperTools.3.4.1\lib\net461\EPiServer.DeveloperTools.dll</HintPath>
93-
</Reference>
9491
<Reference Include="EPiServer.Enterprise, Version=11.12.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL">
9592
<HintPath>..\..\packages\EPiServer.CMS.Core.11.12.0\lib\net461\EPiServer.Enterprise.dll</HintPath>
9693
</Reference>
@@ -417,9 +414,6 @@
417414
<Content Include="modules\_protected\CMS\web.config" />
418415
<Content Include="modules\_protected\CMS\CMS.zip" />
419416
<Content Include="module.config" />
420-
<Content Include="modules\_protected\EPiServer.DeveloperTools\Web.config" />
421-
<Content Include="modules\_protected\EPiServer.DeveloperTools\module.config" />
422-
<Content Include="modules\_protected\EPiServer.DeveloperTools\EPiServer.DeveloperTools.zip" />
423417
<None Include="packages.config" />
424418
<Content Include="Views\_viewstart.cshtml" />
425419
<Content Include="Views\VideoFile\Index.cshtml" />
@@ -466,6 +460,9 @@
466460
<DependentUpon>Web.config</DependentUpon>
467461
</None>
468462
</ItemGroup>
463+
<ItemGroup>
464+
<Folder Include="modules\_protected\EPiServer.DeveloperTools\Views\" />
465+
</ItemGroup>
469466
<ProjectExtensions>
470467
<VisualStudio>
471468
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">

tests/DeveloperTools.SandboxSite/Web.config

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22

33
<configuration>
44
<configSections>
5-
<section name="entityFramework"
6-
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
7-
requirePermission="false" />
5+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
86
<section name="episerver" type="EPiServer.Configuration.EPiServerSection, EPiServer.Configuration" />
97
<section name="episerver.framework" type="EPiServer.Framework.Configuration.EPiServerFrameworkSection, EPiServer.Framework.AspNet" restartOnExternalChanges="true" />
108
<section name="episerver.shell" type="EPiServer.Shell.Configuration.EPiServerShellSection, EPiServer.Shell" />
@@ -22,8 +20,7 @@
2220
<system.web>
2321
<httpRuntime targetFramework="4.7.2" requestValidationMode="2.0" />
2422
<compilation debug="true" targetFramework="4.7.2" optimizeCompilations="true" />
25-
<pages validateRequest="false" enableEventValidation="true"
26-
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" enableViewState="false">
23+
<pages validateRequest="false" enableEventValidation="true" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" enableViewState="false">
2724
<namespaces>
2825
<add namespace="System.Web.Helpers" />
2926
<add namespace="System.Web.Mvc" />
@@ -40,8 +37,7 @@
4037
<add tagPrefix="EPiServer" namespace="EPiServer.Framework.Web.WebControls" assembly="EPiServer.Framework.AspNet" />
4138
</controls>
4239
</pages>
43-
<globalization culture="en-US" uiCulture="en" requestEncoding="utf-8" responseEncoding="utf-8"
44-
resourceProviderFactoryType="EPiServer.Framework.Localization.LocalizationServiceResourceProviderFactory, EPiServer.Framework.AspNet" />
40+
<globalization culture="en-US" uiCulture="en" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Framework.Localization.LocalizationServiceResourceProviderFactory, EPiServer.Framework.AspNet" />
4541
<caching>
4642
<outputCacheSettings>
4743
<outputCacheProfiles>
@@ -71,9 +67,7 @@
7167
<add name="FrameworkName" type="System.String" />
7268
</properties>
7369
<providers>
74-
<add name="DefaultProfileProvider"
75-
type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
76-
connectionStringName="EPiServerDB" applicationName="/" />
70+
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="EPiServerDB" applicationName="/" />
7771
</providers>
7872
</profile>
7973
<membership>
@@ -256,8 +250,7 @@
256250
</assemblyBinding>
257251
</runtime>
258252
<episerver>
259-
<applicationSettings httpCacheability="Public" pageValidateTemplate="false" uiShowGlobalizationUserInterface="true" uiUrl="~/EPiServer/CMS/" urlRebaseKind="ToRootRelative"
260-
uiEditorCssPaths="~/Static/css/Editor.css" uiSafeHtmlTags="b,i,u,br,em,strong,p,a,img,ol,ul,li" />
253+
<applicationSettings httpCacheability="Public" pageValidateTemplate="false" uiShowGlobalizationUserInterface="true" uiUrl="~/EPiServer/CMS/" urlRebaseKind="ToRootRelative" uiEditorCssPaths="~/Static/css/Editor.css" uiSafeHtmlTags="b,i,u,br,em,strong,p,a,img,ol,ul,li" />
261254
<imageEditor windowWidth="900" windowHeight="600" enabled="true">
262255
<sizePresets>
263256
<preset name="320*240" width="320" height="240" />
@@ -281,13 +274,11 @@
281274
</virtualRoles>
282275
<virtualPathProviders>
283276
<clear />
284-
<add name="ProtectedModules" virtualPath="~/EPiServer/" physicalPath="Modules\_Protected"
285-
type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />
277+
<add name="ProtectedModules" virtualPath="~/EPiServer/" physicalPath="Modules\_Protected" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />
286278
</virtualPathProviders>
287279
<localization fallbackBehavior="Echo, MissingMessage, FallbackCulture" fallbackCulture="en">
288280
<providers>
289-
<add virtualPath="~/Resources/LanguageFiles" name="languageFiles"
290-
type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider, EPiServer.Framework.AspNet" />
281+
<add virtualPath="~/Resources/LanguageFiles" name="languageFiles" type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider, EPiServer.Framework.AspNet" />
291282
</providers>
292283
</localization>
293284
</episerver.framework>
@@ -319,18 +310,11 @@
319310
<system.webServer>
320311
<handlers>
321312
<clear />
322-
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader"
323-
preCondition="integratedMode,runtimeVersionv4.0" />
324-
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
325-
preCondition="integratedMode,runtimeVersionv4.0" />
326-
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
327-
preCondition="integratedMode,runtimeVersionv4.0" />
328-
<add name="WebServiceHandlerFactory-Integrated-4.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG"
329-
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
330-
preCondition="integratedMode,runtimeVersionv4.0" />
331-
<add name="svc-Integrated-4.0" path="*.svc" verb="*"
332-
type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
333-
preCondition="integratedMode,runtimeVersionv4.0" />
313+
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode,runtimeVersionv4.0" />
314+
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
315+
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
316+
<add name="WebServiceHandlerFactory-Integrated-4.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
317+
<add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
334318
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer.Framework.AspNet" />
335319
</handlers>
336320
</system.webServer>
@@ -356,15 +340,10 @@
356340
<system.webServer>
357341
<handlers>
358342
<clear />
359-
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader"
360-
preCondition="integratedMode,runtimeVersionv4.0" />
361-
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
362-
preCondition="integratedMode,runtimeVersionv4.0" />
363-
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
364-
preCondition="integratedMode,runtimeVersionv4.0" />
365-
<add name="WebServiceHandlerFactory-Integrated-4.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG"
366-
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
367-
preCondition="integratedMode,runtimeVersionv4.0" />
343+
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode,runtimeVersionv4.0" />
344+
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
345+
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
346+
<add name="WebServiceHandlerFactory-Integrated-4.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
368347
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer.Framework.AspNet" />
369348
</handlers>
370349
</system.webServer>
@@ -392,9 +371,7 @@
392371
</protectedModules>
393372
</episerver.shell>
394373
<connectionStrings>
395-
<add name="EPiServerDB"
396-
connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|EPiServerDB_0d3ce289.mdf;Initial Catalog=EPiServerDB_0d3ce289;Connection Timeout=60;Integrated Security=True;MultipleActiveResultSets=True"
397-
providerName="System.Data.SqlClient" />
374+
<add name="EPiServerDB" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|EPiServerDB_0d3ce289.mdf;Initial Catalog=EPiServerDB_0d3ce289;Connection Timeout=60;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
398375
</connectionStrings>
399376
<location path="Views/Plugins">
400377
<system.web>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
@using DeveloperTools.Models
2+
@using EPiServer.Shell
3+
@inherits System.Web.Mvc.WebViewPage<DeveloperTools.Models.ContentTypeAnalyzerModel>
4+
5+
@{
6+
Layout = Paths.ToResource("EPiServer.DeveloperTools", "Views/Shared/DevToolsMaster.cshtml");
7+
}
8+
9+
<div class="epi-contentArea">
10+
<h1 class="EP-prefix">Content Type Analyzer</h1>
11+
<p>
12+
Show content type Synchronization status during initialization (if the content type be changed from admin you need to start the site to see changes).
13+
</p>
14+
</div>
15+
<div class="epi-formArea">
16+
<table cellpadding="0" cellspacing="0" border="0" class="display" id="theList">
17+
<thead>
18+
<tr>
19+
<th align="left">Type</th>
20+
<th align="left">DisplayName</th>
21+
<th align="left">Name</th>
22+
<th align="left">SynchronizationStatus</th>
23+
<th align="left">Conflicts</th>
24+
<th align="left">Description</th>
25+
26+
</tr>
27+
</thead>
28+
<tbody>
29+
@foreach (var m in Model.ContentTypes)
30+
{
31+
<tr>
32+
<td>@m.Type</td>
33+
<td>@m.DisplayName</td>
34+
<td>@m.Name</td>
35+
<td @(m.HasConflict ? "bgcolor=red" : "")>@m.State</td>
36+
<td>
37+
@if (m.HasConflict)
38+
{
39+
<ul>
40+
@foreach (var c in m.Conflicts)
41+
{
42+
<li>@c.Name - Code = "@c.ContentTypeModelValue" vs DB = "@c.ContentTypeValue"</li>
43+
}
44+
</ul>
45+
}
46+
</td>
47+
<td>@m.Description</td>
48+
</tr>
49+
}
50+
</tbody>
51+
</table>
52+
</div>
53+
54+
@section Scripts {
55+
<script>
56+
$(document).ready(function () {
57+
$('#theList').dataTable(
58+
{
59+
"aaSorting": [[1, "desc"]],
60+
"bPaginate": false,
61+
"bLengthChange": false,
62+
"bFilter": true,
63+
"bSort": true,
64+
"bInfo": false,
65+
"bAutoWidth": true
66+
});
67+
});
68+
</script>
69+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
@using DeveloperTools.Models
2+
@using EPiServer.Shell
3+
@inherits System.Web.Mvc.WebViewPage<DeveloperTools.Models.IOCModel>
4+
5+
@{
6+
Layout = Paths.ToResource("EPiServer.DeveloperTools", "Views/Shared/DevToolsMaster.cshtml");
7+
}
8+
9+
<div class="epi-contentArea">
10+
<h1 class="EP-prefix">IoC Container</h1>
11+
<p>
12+
Dumps all types registered in the StructureMap container used by EPiServer.
13+
</p>
14+
</div>
15+
<div class="epi-formArea">
16+
<table cellpadding="0" cellspacing="0" border="0" class="display" id="theList">
17+
<thead>
18+
<tr>
19+
<th align="left">PluginType</th>
20+
<th align="left">ConcreteType</th>
21+
<th align="left">Scope</th>
22+
<th>Is Default</th>
23+
</tr>
24+
</thead>
25+
<tbody>
26+
@foreach (var entry in Model.IOCEntries)
27+
{
28+
<tr>
29+
<td>@entry.PluginType</td>
30+
<td>@entry.ConcreteType</td>
31+
<td>@entry.Scope</td>
32+
<td>@entry.IsDefault</td>
33+
</tr>
34+
}
35+
</tbody>
36+
</table>
37+
</div>
38+
39+
@if (Model.LoadingErrors.Any())
40+
{
41+
<b>Retrieval errors:</b>
42+
<ul>
43+
@foreach (var message in Model.LoadingErrors)
44+
{
45+
<li>@message<br/>________________________________________________________________</li>
46+
}
47+
</ul>
48+
}
49+
50+
@section Scripts {
51+
<script>
52+
$(document).ready(function () {
53+
$('#theList').dataTable(
54+
{
55+
"aaSorting": [[1, "desc"]],
56+
"bPaginate": false,
57+
"bLengthChange": false,
58+
"bFilter": true,
59+
"bSort": true,
60+
"bInfo": false,
61+
"bAutoWidth": true
62+
});
63+
});
64+
</script>
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
@using System.Collections
2+
@using DeveloperTools.Models
3+
@using EPiServer.Shell
4+
@inherits System.Web.Mvc.WebViewPage<DeveloperTools.Models.AssembliesModel>
5+
6+
@{
7+
Layout = Paths.ToResource("EPiServer.DeveloperTools", "Views/Shared/DevToolsMaster.cshtml");
8+
}
9+
10+
<div class="epi-contentArea">
11+
<h1 class="EP-prefix">Loaded Assemblies</h1>
12+
<p>
13+
Dumps all loaded assemblies in the current AppDomain
14+
</p>
15+
</div>
16+
<div class="epi-formArea">
17+
<table cellpadding="0" cellspacing="0" border="0" class="display" id="theList">
18+
<thead>
19+
<tr>
20+
<th align="left">Name</th>
21+
<th align="left">AssemblyVersion</th>
22+
<th align="left">FileVersion</th>
23+
<th>Location</th>
24+
</tr>
25+
</thead>
26+
<tbody>
27+
@foreach (var entry in Model.Assemblies)
28+
{
29+
<tr>
30+
<td>@entry.Name</td>
31+
<td>@entry.AssemblyVersion</td>
32+
<td>@entry.FileVersion</td>
33+
<td>@entry.Location</td>
34+
</tr>
35+
}
36+
</tbody>
37+
</table>
38+
<br/>
39+
<h2 class="EP-prefix">Environment Variables</h2>
40+
@{ var variables = Environment.GetEnvironmentVariables(); }
41+
<pre><table cellpadding="0" cellspacing="0" border="0" class="display">
42+
@foreach (DictionaryEntry entry in variables)
43+
{
44+
<tr>
45+
<td>@entry.Key</td>
46+
<td>@entry.Value</td>
47+
</tr>
48+
}
49+
</table></pre>
50+
51+
<h2 class="EP-prefix">Misc</h2>
52+
<pre><table cellpadding="0" cellspacing="0" border="0" class="display">
53+
<tr>
54+
<td>Response.Filter</td>
55+
<td>@Request.Filter.ToString()</td>
56+
</tr>
57+
<tr>
58+
<td>Request.ApplicationPath</td>
59+
<td>@Request.ApplicationPath</td>
60+
</tr>
61+
<tr>
62+
<td>Request.PhysicalApplicationPath</td>
63+
<td>@Request.PhysicalApplicationPath</td>
64+
</tr>
65+
<tr>
66+
<td>Request.PhysicalPath</td>
67+
<td>@Request.PhysicalPath</td>
68+
</tr>
69+
<tr>
70+
<td>Request.UrlReferrer</td>
71+
<td>@Request.UrlReferrer</td>
72+
</tr>
73+
<tr>
74+
<td>Request.UserLanguages</td>
75+
<td>@string.Join(",", Request.UserLanguages ?? new string[0])</td>
76+
</tr>
77+
</table></pre>
78+
</div>
79+
80+
@section Scripts {
81+
<script>
82+
$(document).ready(function () {
83+
$('#theList').dataTable(
84+
{
85+
"aaSorting": [[0, "asc"]],
86+
"bPaginate": false,
87+
"bLengthChange": false,
88+
"bFilter": true,
89+
"bSort": true,
90+
"bInfo": false,
91+
"bAutoWidth": true
92+
});
93+
});
94+
</script>
95+
}

0 commit comments

Comments
 (0)