Remove this keyword
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
|
||||
public void SetModuleMessage(string message, MessageType type)
|
||||
{
|
||||
this.message = message;
|
||||
message = message;
|
||||
classname = GetMessageType(type);
|
||||
StateHasChanged();
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ else
|
||||
{
|
||||
if (RichTextEditorMode)
|
||||
{
|
||||
content = await this.RichTextEditorHtml.GetHTML();
|
||||
content = await RichTextEditorHtml.GetHTML();
|
||||
}
|
||||
|
||||
content = content.Replace(((PageState.Alias.Path == "") ? "/~" : PageState.Alias.Path) + Constants.ContentUrl, Constants.ContentUrl);
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Modules.HtmlText.Services
|
||||
|
||||
public HtmlTextService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this.http = http;
|
||||
this.sitestate = sitestate;
|
||||
this.NavigationManager = NavigationManager;
|
||||
http = http;
|
||||
sitestate = sitestate;
|
||||
NavigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -14,7 +14,7 @@ namespace Oqtane.Modules
|
||||
|
||||
public ModuleBase()
|
||||
{
|
||||
this.logger = new Logger(this);
|
||||
logger = new Logger(this);
|
||||
}
|
||||
|
||||
[Inject]
|
||||
@ -43,7 +43,7 @@ namespace Oqtane.Modules
|
||||
|
||||
public string ModulePath()
|
||||
{
|
||||
return "Modules/" + this.GetType().Namespace + "/";
|
||||
return "Modules/" + GetType().Namespace + "/";
|
||||
}
|
||||
|
||||
// url methods
|
||||
@ -135,7 +135,7 @@ namespace Oqtane.Modules
|
||||
{
|
||||
UserId = PageState.User.UserId;
|
||||
}
|
||||
string category = this.GetType().AssemblyQualifiedName;
|
||||
string category = GetType().AssemblyQualifiedName;
|
||||
string feature = Utilities.GetTypeNameLastSegment(category, 1);
|
||||
LogFunction logfunction;
|
||||
if (string.IsNullOrEmpty(function))
|
||||
@ -170,7 +170,7 @@ namespace Oqtane.Modules
|
||||
|
||||
public Logger(ModuleBase modulebase)
|
||||
{
|
||||
this.modulebase = modulebase;
|
||||
modulebase = modulebase;
|
||||
}
|
||||
|
||||
public async Task LogTrace(string message, params object[] args)
|
||||
|
@ -19,9 +19,9 @@ namespace Oqtane.Providers
|
||||
|
||||
public IdentityAuthenticationStateProvider(NavigationManager NavigationManager, SiteState sitestate, IServiceProvider provider)
|
||||
{
|
||||
this._navigationManager = NavigationManager;
|
||||
this._siteState = sitestate;
|
||||
this._serviceProvider = provider;
|
||||
_navigationManager = NavigationManager;
|
||||
_siteState = sitestate;
|
||||
_serviceProvider = provider;
|
||||
}
|
||||
|
||||
public override async Task<AuthenticationState> GetAuthenticationStateAsync()
|
||||
|
@ -18,9 +18,9 @@ namespace Oqtane.Services
|
||||
|
||||
public AliasService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -19,10 +19,10 @@ namespace Oqtane.Services
|
||||
|
||||
public FileService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager, IJSRuntime jsRuntime)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
this._jsRuntime = jsRuntime;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
_jsRuntime = jsRuntime;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -17,9 +17,9 @@ namespace Oqtane.Services
|
||||
|
||||
public FolderService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public InstallationService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public JobLogService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this.http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public JobService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -17,9 +17,9 @@ namespace Oqtane.Services
|
||||
|
||||
public LogService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -18,9 +18,9 @@ namespace Oqtane.Services
|
||||
|
||||
public ModuleDefinitionService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public ModuleService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public NotificationService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public PackageService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public PageModuleService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -17,9 +17,9 @@ namespace Oqtane.Services
|
||||
|
||||
public PageService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public ProfileService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public RoleService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public SettingService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public SiteService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public TenantService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -18,9 +18,9 @@ namespace Oqtane.Services
|
||||
|
||||
public ThemeService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -16,9 +16,9 @@ namespace Oqtane.Services
|
||||
|
||||
public UserRoleService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -14,9 +14,9 @@ namespace Oqtane.Services
|
||||
|
||||
public UserService(HttpClient http, SiteState sitestate, NavigationManager NavigationManager)
|
||||
{
|
||||
this._http = http;
|
||||
this._siteState = sitestate;
|
||||
this._navigationManager = NavigationManager;
|
||||
_http = http;
|
||||
_siteState = sitestate;
|
||||
_navigationManager = NavigationManager;
|
||||
}
|
||||
|
||||
private string apiurl
|
||||
|
@ -11,7 +11,7 @@ namespace Oqtane.Shared
|
||||
|
||||
public Interop(IJSRuntime jsRuntime)
|
||||
{
|
||||
this._jsRuntime = jsRuntime;
|
||||
_jsRuntime = jsRuntime;
|
||||
}
|
||||
|
||||
public Task SetCookie(string name, string value, int days)
|
||||
|
@ -59,7 +59,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine(this.GetType().FullName + ": Error: API call to " + _absoluteUri + " is not mapped to a Controller");
|
||||
System.Diagnostics.Debug.WriteLine(GetType().FullName + ": Error: API call to " + _absoluteUri + " is not mapped to a Controller");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ namespace Oqtane.Themes
|
||||
|
||||
public string ThemePath()
|
||||
{
|
||||
return "Themes/" + this.GetType().Namespace + "/";
|
||||
return "Themes/" + GetType().Namespace + "/";
|
||||
}
|
||||
|
||||
public string NavigateUrl()
|
||||
|
@ -459,19 +459,19 @@
|
||||
{
|
||||
page.IsDeleted = true;
|
||||
await PageService.UpdatePageAsync(page);
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, this.GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, null, "Page Deleted {Page}", page);
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, null, "Page Deleted {Page}", page);
|
||||
NavigationManager.NavigateTo(NavigateUrl("", Reload.Site));
|
||||
}
|
||||
else // personalized page
|
||||
{
|
||||
await PageService.DeletePageAsync(page.PageId);
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, this.GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, null, "Page Deleted {Page}", page);
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, null, "Page Deleted {Page}", page);
|
||||
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, this.GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, ex, "Page Deleted {Page} {Error}", page, ex.Message);
|
||||
await logger.Log(page.PageId, null, PageState.User.UserId, GetType().AssemblyQualifiedName, "ControlPanel", LogFunction.Delete, LogLevel.Information, ex, "Page Deleted {Page} {Error}", page, ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ namespace Oqtane.Themes
|
||||
|
||||
public string LayoutPath()
|
||||
{
|
||||
return "Themes/" + this.GetType().Namespace + "/";
|
||||
return "Themes/" + GetType().Namespace + "/";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace Oqtane.Themes
|
||||
|
||||
public string ThemePath()
|
||||
{
|
||||
return "Themes/" + this.GetType().Namespace + "/";
|
||||
return "Themes/" + GetType().Namespace + "/";
|
||||
}
|
||||
|
||||
public async Task IncludeCSS(string Url)
|
||||
|
Reference in New Issue
Block a user