Merge pull request #5915 from sbwalker/dev
synchronize static assets with .NET MAUI
This commit is contained in:
@@ -273,6 +273,11 @@ app {
|
|||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-editor-resizable {
|
||||||
|
resize: vertical;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.app-logo .navbar-brand {
|
.app-logo .navbar-brand {
|
||||||
padding: 5px 20px 5px 20px;
|
padding: 5px 20px 5px 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ Oqtane.Interop = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
includeScript: function (id, src, integrity, crossorigin, type, content, location, dataAttributes) {
|
includeScript: function (id, src, integrity, crossorigin, type, content, location, dataAttributes) {
|
||||||
var script;
|
var script = null;
|
||||||
if (src !== "") {
|
if (src !== "") {
|
||||||
script = document.querySelector("script[src=\"" + CSS.escape(src) + "\"]");
|
script = document.querySelector("script[src=\"" + CSS.escape(src) + "\"]");
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@ Oqtane.Interop = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (script !== null) {
|
if (script instanceof HTMLScriptElement) {
|
||||||
script.remove();
|
script.remove();
|
||||||
script = null;
|
script = null;
|
||||||
}
|
}
|
||||||
@@ -516,5 +516,17 @@ Oqtane.Interop = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
createCredential: async function (optionsResponse) {
|
||||||
|
const optionsJson = JSON.parse(optionsResponse);
|
||||||
|
const options = PublicKeyCredential.parseCreationOptionsFromJSON(optionsJson);
|
||||||
|
const credential = await navigator.credentials.create({ publicKey: options });
|
||||||
|
return JSON.stringify(credential);
|
||||||
|
},
|
||||||
|
requestCredential: async function (optionsResponse) {
|
||||||
|
const optionsJson = JSON.parse(optionsResponse);
|
||||||
|
const options = PublicKeyCredential.parseRequestOptionsFromJSON(optionsJson);
|
||||||
|
const credential = await navigator.credentials.get({ publicKey: options, undefined });
|
||||||
|
return JSON.stringify(credential);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user