mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2026-04-16 21:40:10 +00:00
Remove unneeded replace
This commit is contained in:
@@ -187,6 +187,6 @@ find_and_replace('code/pp/pp.js','"templates/?type="','"templates/index.html?typ
|
||||
find_and_replace('code/pp/pp.js','"https://f000.backblazeb2.com/file/"', '"templates/file/"')
|
||||
|
||||
#Force enable Remove BG, and any other options that are disabled on self-hosted instances (much more brittle to changes than the other replacements)
|
||||
find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true;')
|
||||
#find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true;')
|
||||
# Having ? in static sites doesn't really work
|
||||
#find_and_replace("templates/index.html",'sch.split("?");','sch.split("#");')
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -204,11 +204,11 @@
|
||||
|
||||
async function askPermissions() {
|
||||
if(dir) {
|
||||
if(await dir.requestPermission({mode:"readwrite"})!="granted") { send("1","You must give Photopea access to some folder."); return; }
|
||||
if(await dir.requestPermission({mode:"readwrite"})!="granted") { send("1","You must give us access to some folder."); return; }
|
||||
}
|
||||
else {
|
||||
try { dir = await window.showDirectoryPicker(); }
|
||||
catch(e) { send("1","You must give Photopea access to some folder."); return; }
|
||||
catch(e) { console.log(e); send("1","You must give us access to some folder."); return; }
|
||||
locStor.fset = dir;
|
||||
|
||||
var os = locStor.db["transaction"](["rsrc"], "readwrite")["objectStore"]("rsrc");
|
||||
|
||||
@@ -165,7 +165,8 @@
|
||||
while(j < 25 && ii < out.length)
|
||||
{
|
||||
//could just check names from metadata, probably faster than .includes
|
||||
if(thumbnailExtenstions.includes(out[ii][0].split('.').pop()))
|
||||
var pts = out[ii][0].split('.');
|
||||
if(pts.length>1 && thumbnailExtenstions.includes(pts.pop()))
|
||||
{
|
||||
out[ii].push(response.result.entries[j].thumbnail)
|
||||
++j
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -37,14 +37,14 @@
|
||||
function showCap() {_showCap(true);} function hideCap() {_showCap(false);}
|
||||
function _showCap(vis){
|
||||
document.getElementById("cap").setAttribute("style", vis?"":"display:none;");
|
||||
localStorage.setItem("capShown", ""+vis);
|
||||
window["locStor"].setItem("capShown", ""+vis);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="theme0">
|
||||
<!---->
|
||||
<div id="cap">
|
||||
<div id="cap" style="display:none;">
|
||||
<span style="position:absolute;right:0;top:0;font-size:7em;margin:0 0.2em;cursor:pointer;" onclick="hideCap()">✕</span>
|
||||
<img style="width:8em; height:8em; margin-top:1em;" src="promo/icon512.png" alt="Photopea logo" />
|
||||
<h1>Photopea: advanced photo editor</h1>
|
||||
@@ -60,21 +60,11 @@
|
||||
</div>
|
||||
<!---->
|
||||
|
||||
<script>if(localStorage.getItem("capShown")=="false" || window.self != window.top) hideCap();</script>
|
||||
|
||||
<script src="code/ext/ext.js"></script>
|
||||
<script src="code/dbs/DBS.js"></script>
|
||||
<script src="code/pp/pp.js"></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
|
||||
<script async src="https:#/gtag/js?id=G-49YR1RB5KP"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag("js", new Date()); gtag('config', 'G-49YR1RB5KP'); //gtag("config", "UA-4249565-37");
|
||||
</script>
|
||||
|
||||
<script>if(window["locStor"].getItem("capShown")=="false" || window.self != window.top) {} else showCap();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -251,18 +251,15 @@
|
||||
.alertcont
|
||||
{
|
||||
position:absolute;
|
||||
width:50%;
|
||||
left:25%;
|
||||
max-width:700px;
|
||||
width:100%;
|
||||
/*pointer-events:none;*/
|
||||
z-index: 10;
|
||||
margin-top:1em;
|
||||
margin-top:5.5em;
|
||||
}
|
||||
|
||||
.alertpanel
|
||||
{
|
||||
font-size: 1.4em;
|
||||
margin-bottom:1em;
|
||||
background-color:#ffffff;
|
||||
color: #000000;
|
||||
padding:0.4em;
|
||||
@@ -270,6 +267,9 @@
|
||||
text-align:center;
|
||||
text-shadow:none;
|
||||
box-shadow: rgba(0,0,0,0.5) 0 0 1em;
|
||||
|
||||
width:50%; max-width:700px;
|
||||
margin: 0px auto 1em auto;
|
||||
}
|
||||
.tpanel { /* temporary panel */
|
||||
transition: all 0.2s cubic-bezier(0.240, 0.575, 0.665, 1.565);
|
||||
|
||||
@@ -11,10 +11,8 @@
|
||||
|
||||
<title>PSD Templates</title>
|
||||
<meta name="description" content="Free PSD Templates">
|
||||
<script>fetch("//www.photopea.com/papi/event.php?id=web_Templates");</script>
|
||||
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-4249565-47"></script>
|
||||
<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-4249565-47'); </script>
|
||||
|
||||
<script src="templates.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user