Change JavaScript namespace from interop to Oqtane
This commit is contained in:
parent
a4ed06f2fc
commit
97df673609
|
@ -24,7 +24,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.createQuill",
|
"Oqtane.RichTextEditor.createQuill",
|
||||||
quillElement, toolbar, readOnly,
|
quillElement, toolbar, readOnly,
|
||||||
placeholder, theme, debugLevel);
|
placeholder, theme, debugLevel);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
@ -40,7 +40,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string>(
|
return _jsRuntime.InvokeAsync<string>(
|
||||||
"interop.getQuillText",
|
"Oqtane.RichTextEditor.getQuillText",
|
||||||
quillElement);
|
quillElement);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -54,7 +54,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string>(
|
return _jsRuntime.InvokeAsync<string>(
|
||||||
"interop.getQuillHTML",
|
"Oqtane.RichTextEditor.getQuillHTML",
|
||||||
quillElement);
|
quillElement);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -68,7 +68,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string>(
|
return _jsRuntime.InvokeAsync<string>(
|
||||||
"interop.getQuillContent",
|
"Oqtane.RichTextEditor.getQuillContent",
|
||||||
quillElement);
|
quillElement);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -82,7 +82,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.loadQuillContent",
|
"Oqtane.RichTextEditor.loadQuillContent",
|
||||||
quillElement, content);
|
quillElement, content);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.enableQuillEditor", quillElement, mode);
|
"Oqtane.RichTextEditor.enableQuillEditor", quillElement, mode);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -111,7 +111,7 @@ namespace Oqtane.Modules.Controls
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.insertQuillImage",
|
"Oqtane.RichTextEditor.insertQuillImage",
|
||||||
quillElement, imageUrl);
|
quillElement, imageUrl);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.setCookie",
|
"Oqtane.Interop.setCookie",
|
||||||
name, value, days);
|
name, value, days);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string>(
|
return _jsRuntime.InvokeAsync<string>(
|
||||||
"interop.getCookie",
|
"Oqtane.Interop.getCookie",
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -46,7 +46,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.updateTitle",
|
"Oqtane.Interop.updateTitle",
|
||||||
title);
|
title);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.includeMeta",
|
"Oqtane.Interop.includeMeta",
|
||||||
id, attribute, name, content);
|
id, attribute, name, content);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.includeLink",
|
"Oqtane.Interop.includeLink",
|
||||||
id, rel, url, type, integrity, crossorigin);
|
id, rel, url, type, integrity, crossorigin);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.includeScript",
|
"Oqtane.Interop.includeScript",
|
||||||
id, src, content, location, integrity, crossorigin);
|
id, src, content, location, integrity, crossorigin);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.includeLink",
|
"Oqtane.Interop.includeLink",
|
||||||
id, "stylesheet", url, "text/css");
|
id, "stylesheet", url, "text/css");
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.removeElementsById",
|
"Oqtane.Interop.removeElementsById",
|
||||||
prefix, first, last);
|
prefix, first, last);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string>(
|
return _jsRuntime.InvokeAsync<string>(
|
||||||
"interop.getElementByName",
|
"Oqtane.Interop.getElementByName",
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -151,7 +151,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.submitForm",
|
"Oqtane.Interop.submitForm",
|
||||||
path, fields);
|
path, fields);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return _jsRuntime.InvokeAsync<string[]>(
|
return _jsRuntime.InvokeAsync<string[]>(
|
||||||
"interop.getFiles",
|
"Oqtane.Interop.getFiles",
|
||||||
id);
|
id);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -180,7 +180,7 @@ namespace Oqtane.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeAsync<object>(
|
_jsRuntime.InvokeAsync<object>(
|
||||||
"interop.uploadFiles",
|
"Oqtane.Interop.uploadFiles",
|
||||||
posturl, folder, id);
|
posturl, folder, id);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
window.interop = {
|
var Oqtane = Oqtane || {};
|
||||||
|
|
||||||
|
Oqtane.Interop = {
|
||||||
setCookie: function (name, value, days) {
|
setCookie: function (name, value, days) {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
d.setTime(d.getTime() + (days * 24 * 60 * 60 * 1000));
|
d.setTime(d.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
window.interop = {
|
var Oqtane = Oqtane || {};
|
||||||
|
|
||||||
|
Oqtane.RichTextEditor = {
|
||||||
createQuill: function (
|
createQuill: function (
|
||||||
quillElement, toolBar, readOnly,
|
quillElement, toolBar, readOnly,
|
||||||
placeholder, theme, debugLevel) {
|
placeholder, theme, debugLevel) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user