Skip to content

Commit

Permalink
Merge pull request #60 from vmasanas/improvements
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
vmasanas authored Mar 12, 2022
2 parents 62e7990 + a82196b commit 2793d5b
Show file tree
Hide file tree
Showing 24 changed files with 1,177 additions and 192 deletions.
12 changes: 12 additions & 0 deletions App_LocalResources/Settings.ascx.resx
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,16 @@
<data name="Slow.Text" xml:space="preserve">
<value>Select after user &amp; role filtering</value>
</data>
<data name="plRequestAuthorization.Help" xml:space="preserve">
<value>When this option is enabled, the user being impersonated will receive an email with the details of the user doing the impersonation. The request will have to be approved before the impersonation is effective.</value>
</data>
<data name="plRequestAuthorization.Text" xml:space="preserve">
<value>Request authorization</value>
</data>
<data name="plIncludeAdminUser.Help" xml:space="preserve">
<value>Include the Administrator users in the dropdown list. Caution: doing so will give non Administrator users the option to log on as an administrator</value>
</data>
<data name="plIncludeAdminUser.Text" xml:space="preserve">
<value>Include Administrator users</value>
</data>
</root>
383 changes: 383 additions & 0 deletions App_LocalResources/SharedResources.resx

Large diffs are not rendered by default.

189 changes: 99 additions & 90 deletions App_LocalResources/ViewIdentitySwitcher.ascx.resx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
<!--
Microsoft ResX Schema
Version 2.0
Expand Down Expand Up @@ -59,155 +59,164 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Anonymous.Text" xml:space="preserve">
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Anonymous.Text" xml:space="preserve">
<value>Anonymous User</value>
</data>
<data name="ModuleHelp.Text" xml:space="preserve">
<data name="ModuleHelp.Text" xml:space="preserve">
<value>&lt;p class="normalRed"&gt;This is a user switcher module. Only to be used in development environments! Please delete the module if the site goes live!&lt;/p&gt;</value>
</data>
<data name="NoneSelected.Text" xml:space="preserve">
<data name="NoneSelected.Text" xml:space="preserve">
<value>[None Selected]</value>
</data>
<data name="Search.Text" xml:space="preserve">
<data name="Search.Text" xml:space="preserve">
<value>Filter:</value>
</data>
<data name="SwitchToIdentity.Text" xml:space="preserve">
<data name="SwitchToIdentity.Text" xml:space="preserve">
<value>Switch to:</value>
</data>
<data name="Biography.Text" xml:space="preserve">
<data name="Biography.Text" xml:space="preserve">
<value>Biography</value>
</data>
<data name="Cell.Text" xml:space="preserve">
<data name="Cell.Text" xml:space="preserve">
<value>Mobile</value>
</data>
<data name="City.Text" xml:space="preserve">
<data name="City.Text" xml:space="preserve">
<value>City</value>
</data>
<data name="cmdSearch.Text" xml:space="preserve">
<data name="cmdSearch.Text" xml:space="preserve">
<value>Filter</value>
</data>
<data name="cmdSwitch.Text" xml:space="preserve">
<data name="cmdSwitch.Text" xml:space="preserve">
<value>Switch identity</value>
</data>
<data name="Country.Text" xml:space="preserve">
<data name="Country.Text" xml:space="preserve">
<value>Country</value>
</data>
<data name="Email.Text" xml:space="preserve">
<data name="Email.Text" xml:space="preserve">
<value>Email</value>
</data>
<data name="Fax.Text" xml:space="preserve">
<data name="Fax.Text" xml:space="preserve">
<value>Fax</value>
</data>
<data name="FirstName.Text" xml:space="preserve">
<data name="FirstName.Text" xml:space="preserve">
<value>First name</value>
</data>
<data name="IM.Text" xml:space="preserve">
<data name="IM.Text" xml:space="preserve">
<value>IM</value>
</data>
<data name="LastName.Text" xml:space="preserve">
<data name="LastName.Text" xml:space="preserve">
<value>Last name</value>
</data>
<data name="MiddleName.Text" xml:space="preserve">
<data name="MiddleName.Text" xml:space="preserve">
<value>Middle name</value>
</data>
<data name="PostalCode.Text" xml:space="preserve">
<data name="PostalCode.Text" xml:space="preserve">
<value>Postal code</value>
</data>
<data name="PreferredLocale.Text" xml:space="preserve">
<data name="PreferredLocale.Text" xml:space="preserve">
<value>Preferred locale</value>
</data>
<data name="Prefix.Text" xml:space="preserve">
<data name="Prefix.Text" xml:space="preserve">
<value>Prefix</value>
</data>
<data name="Region.Text" xml:space="preserve">
<data name="Region.Text" xml:space="preserve">
<value>Region</value>
</data>
<data name="Street.Text" xml:space="preserve">
<data name="Street.Text" xml:space="preserve">
<value>Street</value>
</data>
<data name="Suffix.Text" xml:space="preserve">
<data name="Suffix.Text" xml:space="preserve">
<value>Suffix</value>
</data>
<data name="Telephone.Header" xml:space="preserve">
<data name="Telephone.Header" xml:space="preserve">
<value>Telephone</value>
</data>
<data name="Telephone.Text" xml:space="preserve">
<data name="Telephone.Text" xml:space="preserve">
<value>Telephone</value>
</data>
<data name="TimeZone.Text" xml:space="preserve">
<data name="TimeZone.Text" xml:space="preserve">
<value>Time zone</value>
</data>
<data name="Unit.Text" xml:space="preserve">
<data name="Unit.Text" xml:space="preserve">
<value>Unit</value>
</data>
<data name="Username.Text" xml:space="preserve">
<data name="Username.Text" xml:space="preserve">
<value>Username</value>
</data>
<data name="Website.Text" xml:space="preserve">
<data name="Website.Text" xml:space="preserve">
<value>Website</value>
</data>
<data name="FilterText.Text" xml:space="preserve">
<data name="FilterText.Text" xml:space="preserve">
<value>Filter:</value>
</data>
<data name="SwitchToText.Text" xml:space="preserve">
<data name="SwitchToText.Text" xml:space="preserve">
<value>Switch to:</value>
</data>
<data name="FilterIcon.Text" xml:space="preserve">
<value>Search</value>
</data>
<data name="SwitchIcon.Text" xml:space="preserve">
<value>Switch</value>
</data>
<data name="WaitingForConfirmation.Text" xml:space="preserve">
<value>Waiting for user to confirm request...</value>
</data>
</root>
24 changes: 24 additions & 0 deletions Components/ModuleInstanceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,30 @@ public class ModuleInstanceBase
/// </value>
public string SwitchToText { get; set; }

/// <summary>
/// Gets or sets the filter icon text.
/// </summary>
/// <value>
/// The filter text.
/// </value>
public string FilterIconText { get; set; }

/// <summary>
/// Gets or sets the switch to icon text.
/// </summary>
/// <value>
/// The switch to text.
/// </value>
public string SwitchIconText { get; set; }

/// <summary>
/// Message displayed while waiting for the user to confirm the request
/// </summary>
/// <value>
/// The switch to text.
/// </value>
public string WaitingForConfirmation { get; set; }

#endregion
}
}
Loading

0 comments on commit 2793d5b

Please sign in to comment.