add a webview for online poser

webview
Abdullah Alfaraj 2023-02-17 12:29:59 +03:00
parent 1d672ecf52
commit 7c8c97f92c
2 changed files with 29 additions and 3 deletions

View File

@ -519,6 +519,15 @@
<!-- <sp-textarea id="tool_tip" open placement="top">use this when you want to fill empty areas of the canvas</sp-textarea> --> <!-- <sp-textarea id="tool_tip" open placement="top">use this when you want to fill empty areas of the canvas</sp-textarea> -->
<!-- <sp-tooltip id="tool_tip" open placement="top">use this when you want to fill empty areas of the canvas</sp-tooltip> --> <!-- <sp-tooltip id="tool_tip" open placement="top">use this when you want to fill empty areas of the canvas</sp-tooltip> -->
<dialog>
<webview
id="webview"
width="1000px"
height="1000px"
src="https://app.justsketch.me/"
></webview>
</dialog>
<div class="container wrapper"> <div class="container wrapper">
<div class="sp-tabs"> <div class="sp-tabs">
<div class="sp-tab selected" id="sp-stable-diffusion-ui-tab"> <div class="sp-tab selected" id="sp-stable-diffusion-ui-tab">
@ -646,6 +655,7 @@
src="https://source.unsplash.com/random" src="https://source.unsplash.com/random"
/> />
</div> </div>
<hr class="line-divider" /> <hr class="line-divider" />
<div class="" id="divInitImageViewerContainer"> <div class="" id="divInitImageViewerContainer">
<!-- <img class="viewer-image" id="viewer_init_image_test" data-metadata_json_string='{"a":1}' src='https://source.unsplash.com/random' /> --> <!-- <img class="viewer-image" id="viewer_init_image_test" data-metadata_json_string='{"a":1}' src='https://source.unsplash.com/random' /> -->

View File

@ -11,12 +11,28 @@
"main": "index.html", "main": "index.html",
"manifestVersion": 5, "manifestVersion": 5,
"requiredPermissions": { "requiredPermissions": {
"webview": {
"allow": "yes",
"domains": [
"https://*.adobe.com",
"https://*.google.com",
"https://webapp.magicposer.com/"
]
},
"network": { "network": {
"domains": "all" "domains": "all"
}, },
"launchProcess": { "launchProcess": {
"schemes": ["http", "https", "mailto"], "schemes": [
"extensions": [".png", ".jpg", ".pdf"] "http",
"https",
"mailto"
],
"extensions": [
".png",
".jpg",
".pdf"
]
}, },
"clipboard": "readAndWrite", "clipboard": "readAndWrite",
"localFileSystem": "request", "localFileSystem": "request",