diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index 2d76024a3b..565e298c46 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -1303,13 +1303,6 @@ autoDoc.aspx - - editDatatype.aspx - ASPXCodeBehind - - - editDatatype.aspx - BrowseRepository.aspx ASPXCodeBehind @@ -1349,13 +1342,6 @@ getXsltStatus.asmx Component - - viewCacheItem.aspx - ASPXCodeBehind - - - viewCacheItem.aspx - xsltChooseExtension.aspx ASPXCodeBehind @@ -2101,11 +2087,7 @@ - - ASPXCodeBehind - - diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx deleted file mode 100644 index 59bcdc1625..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx +++ /dev/null @@ -1,16 +0,0 @@ -<%@ Page MasterPageFile="../../masterpages/umbracoPage.Master" Title="View Cache item" Language="c#" Codebehind="viewCacheItem.aspx.cs" AutoEventWireup="True" - Inherits="umbraco.cms.presentation.developer.viewCacheItem" %> -<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %> - - - -
- Cache Alias: - Label -
-
- Cache Value: - Label -
-
-
\ No newline at end of file diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.cs deleted file mode 100644 index a78a8d24da..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Web; -using umbraco.BasePages; - -namespace umbraco.cms.presentation.developer -{ - /// - /// Summary description for viewCacheItem. - /// - public partial class viewCacheItem : UmbracoEnsuredPage - { - public viewCacheItem() - { - CurrentApp = BusinessLogic.DefaultApps.developer.ToString(); - } - - protected void Page_Load(object sender, EventArgs e) - { - Panel1.Text = ui.Text("viewCacheItem"); - var cacheKey = Request.QueryString["key"]; - LabelCacheAlias.Text = cacheKey; - var cacheItem = ApplicationContext.ApplicationCache.GetCacheItem(cacheKey); - LabelCacheValue.Text = cacheItem != null ? cacheItem.ToString() : "Cache item isn't in cache anymore!"; - } - - } -} \ No newline at end of file diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.designer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.designer.cs deleted file mode 100644 index 0ab936c516..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Cache/viewCacheItem.aspx.designer.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3053 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation.developer { - - - public partial class viewCacheItem { - - /// - /// Panel1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.UmbracoPanel Panel1; - - /// - /// LabelCacheAlias control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label LabelCacheAlias; - - /// - /// LabelCacheValue control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label LabelCacheValue; - } -} diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx deleted file mode 100644 index 86066a5c63..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx +++ /dev/null @@ -1,27 +0,0 @@ -<%@ Page Language="c#" MasterPageFile="../../masterpages/umbracoPage.Master" Title="Edit data type" - CodeBehind="editDatatype.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.developer.editDatatype" %> - -<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %> - - - - - - - - - - - - - - - - - - - diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.cs deleted file mode 100644 index 0423ce1f24..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.cs +++ /dev/null @@ -1,144 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Web.UI; -using System.Web.UI.WebControls; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using umbraco.cms.presentation.Trees; -using umbraco.interfaces; - -namespace umbraco.cms.presentation.developer -{ - public partial class editDatatype : BasePages.UmbracoEnsuredPage - { - public editDatatype() - { - CurrentApp = BusinessLogic.DefaultApps.developer.ToString(); - - } - protected ImageButton save; - - private int _id = 0; - private IDataPrevalue _prevalue; - private IDataTypeDefinition _dataTypeDefinition; - - protected void Page_Load(object sender, EventArgs e) - { - pp_name.Text = ui.Text("name"); - pp_renderControl.Text = ui.Text("renderControl"); - pane_settings.Text = ui.Text("settings"); - pp_guid.Text = ui.Text("guid"); - - _id = int.Parse(Request.QueryString["id"]); - - _dataTypeDefinition = ApplicationContext.Services.DataTypeService.GetDataTypeDefinitionById(_id); - - if (IsPostBack == false) - { - txtName.Text = _dataTypeDefinition.Name; - - //get the legacy data types - var datatypes = DataTypesResolver.Current.DataTypes - .ToDictionary(df => df.Id, df => "(legacy) " + df.DataTypeName); - - //get the new property editors - var propEditors = PropertyEditorResolver.Current.PropertyEditors - .ToDictionary(pe => pe.Id, pe => pe.Name); - - //join the lists - var combined = propEditors.Concat(datatypes); - - foreach (var item in combined) - { - var li = new ListItem - { - - Text = item.Value, - Value = item.Key.ToString() - }; - - //SJ Fixes U4-2488 Edit datatype: Media Picker appears incorrectly - //Apparently in some installs the media picker rendercontrol is installed twice with - //the exact same ID so we need to check for duplicates - if (ddlRenderControl.Items.Contains(li)) - continue; - - if (_dataTypeDefinition.ControlId != default(Guid) && li.Value == _dataTypeDefinition.ControlId.ToString()) - { - li.Selected = true; - } - - ddlRenderControl.Items.Add(li); - } - - ClientTools - .SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree().Tree.Alias) - .SyncTree("-1,init," + _id.ToString(CultureInfo.InvariantCulture), false); - - } - - if (_dataTypeDefinition.ControlId != default(Guid)) - { - litGuid.Text = _dataTypeDefinition.ControlId.ToString(); - } - - Panel1.Text = ui.Text("edit") + " datatype: " + _dataTypeDefinition.Name; - InsertPrevalueEditor(); - } - - private void InsertPrevalueEditor() - { - try - { - if (ddlRenderControl.SelectedIndex >= 0) - { - var o = DataTypesResolver.Current.GetById(new Guid(ddlRenderControl.SelectedValue)); - - o.DataTypeDefinitionId = _dataTypeDefinition.Id; - _prevalue = o.PrevalueEditor; - - if (o.PrevalueEditor.Editor != null) - plcEditorPrevalueControl.Controls.Add(o.PrevalueEditor.Editor); - } - else - { - plcEditorPrevalueControl.Controls.Add(new LiteralControl("No editor control selected")); - } - } - catch { } - - } - - protected void save_click(object sender, ImageClickEventArgs e) - { - // save prevalues; - if (_prevalue != null) - _prevalue.Save(); - - _dataTypeDefinition.ControlId = new Guid(ddlRenderControl.SelectedValue); - _dataTypeDefinition.Name = txtName.Text; - - ApplicationContext.Services.DataTypeService.Save(_dataTypeDefinition, UmbracoUser.Id); - - ClientTools.ShowSpeechBubble(speechBubbleIcon.save, ui.Text("speechBubbles", "dataTypeSaved"), ""); - ClientTools.SyncTree("-1,init," + _id.ToString(CultureInfo.InvariantCulture), true); - } - - override protected void OnInit(EventArgs e) - { - save = Panel1.Menu.NewImageButton(); - save.ID = "save"; - save.Click += save_click; - save.ImageUrl = SystemDirectories.Umbraco + "/images/editor/save.gif"; - - Panel1.hasMenu = true; - - base.OnInit(e); - } - } -} diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.designer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.designer.cs deleted file mode 100644 index 9d1d8fc550..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.designer.cs +++ /dev/null @@ -1,105 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation.developer { - - - public partial class editDatatype { - - /// - /// Panel1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.UmbracoPanel Panel1; - - /// - /// pane_control control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.Pane pane_control; - - /// - /// pp_name control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.PropertyPanel pp_name; - - /// - /// txtName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtName; - - /// - /// pp_renderControl control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.PropertyPanel pp_renderControl; - - /// - /// ddlRenderControl control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlRenderControl; - - /// - /// pp_guid control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.PropertyPanel pp_guid; - - /// - /// litGuid control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal litGuid; - - /// - /// pane_settings control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.Pane pane_settings; - - /// - /// plcEditorPrevalueControl control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder plcEditorPrevalueControl; - } -}