mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2025-07-01 10:25:32 +00:00
Add some files that I missed. Credit to @minimeee
This commit is contained in:
parent
acda078189
commit
e1d427c0f6
@ -29,11 +29,15 @@ urls = [
|
||||
"code/storages/deviceStorage.html",
|
||||
"code/storages/googledriveStorage.html",
|
||||
"code/storages/dropboxStorage.html",
|
||||
"rsrc/basic/fa_basic.csh",
|
||||
"img/nft.png",
|
||||
["templates/?type=0&rsrc=","templates/index.html"],
|
||||
"templates/templates.js",
|
||||
"templates/templates.css"
|
||||
"templates/templates.css",
|
||||
"plugins/gallery.json",
|
||||
"plugins/gallery.html",
|
||||
"img/wows_logo.png",
|
||||
"promo/icon512.png"
|
||||
|
||||
]
|
||||
|
||||
|
||||
|
BIN
_vendor/certifi/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/certifi/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/certifi/__pycache__/core.cpython-311.pyc
Normal file
BIN
_vendor/certifi/__pycache__/core.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/api.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/api.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/cd.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/cd.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/constant.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/constant.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/legacy.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/legacy.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/md.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/md.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/models.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/models.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/utils.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/utils.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/charset_normalizer/__pycache__/version.cpython-311.pyc
Normal file
BIN
_vendor/charset_normalizer/__pycache__/version.cpython-311.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
_vendor/idna/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/idna/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/idna/__pycache__/core.cpython-311.pyc
Normal file
BIN
_vendor/idna/__pycache__/core.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/idna/__pycache__/idnadata.cpython-311.pyc
Normal file
BIN
_vendor/idna/__pycache__/idnadata.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/idna/__pycache__/intranges.cpython-311.pyc
Normal file
BIN
_vendor/idna/__pycache__/intranges.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/idna/__pycache__/package_data.cpython-311.pyc
Normal file
BIN
_vendor/idna/__pycache__/package_data.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/__version__.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/__version__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/_internal_utils.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/_internal_utils.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/adapters.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/adapters.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/api.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/api.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/auth.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/auth.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/certs.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/certs.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/compat.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/compat.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/cookies.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/cookies.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/exceptions.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/exceptions.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/hooks.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/hooks.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/models.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/models.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/packages.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/packages.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/sessions.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/sessions.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/status_codes.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/status_codes.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/structures.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/structures.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/requests/__pycache__/utils.cpython-311.pyc
Normal file
BIN
_vendor/requests/__pycache__/utils.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/_dist_ver.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/_dist_ver.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/_monitor.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/_monitor.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/_tqdm_pandas.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/_tqdm_pandas.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/cli.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/cli.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/gui.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/gui.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/std.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/std.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/utils.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/utils.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/tqdm/__pycache__/version.cpython-311.pyc
Normal file
BIN
_vendor/tqdm/__pycache__/version.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/_collections.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/_collections.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/_version.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/_version.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/connection.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/connection.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/connectionpool.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/connectionpool.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/exceptions.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/exceptions.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/fields.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/fields.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/filepost.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/filepost.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/poolmanager.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/poolmanager.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/request.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/request.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/__pycache__/response.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/__pycache__/response.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/contrib/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/contrib/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
_vendor/urllib3/contrib/__pycache__/socks.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/contrib/__pycache__/socks.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/packages/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/packages/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/packages/__pycache__/six.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/packages/__pycache__/six.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/connection.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/connection.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/proxy.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/proxy.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/queue.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/queue.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/request.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/request.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/response.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/response.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/retry.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/retry.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/ssl_.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/ssl_.cpython-311.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/ssltransport.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/ssltransport.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/timeout.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/timeout.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/url.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/url.cpython-311.pyc
Normal file
Binary file not shown.
BIN
_vendor/urllib3/util/__pycache__/wait.cpython-311.pyc
Normal file
BIN
_vendor/urllib3/util/__pycache__/wait.cpython-311.pyc
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
www.photopea.com/img/wows_logo.png
Normal file
BIN
www.photopea.com/img/wows_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
File diff suppressed because one or more lines are too long
142
www.photopea.com/plugins/gallery.html
Normal file
142
www.photopea.com/plugins/gallery.html
Normal file
@ -0,0 +1,142 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0" />
|
||||
|
||||
<style>
|
||||
body { background-color:#474747; overflow:hidden; }
|
||||
label { color:white; font-family:sans-serif; font-size:0.8em; }
|
||||
img { margin-right:4px; cursor:pointer; }
|
||||
button { padding:0 4px; }
|
||||
#cont {
|
||||
margin-top:4px;
|
||||
overflow-y: scroll;
|
||||
/* for Firefox: */
|
||||
scrollbar-color: #222222 rgba(0,0,0, 0.2 );
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
#cont::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
#cont::-webkit-scrollbar-thumb {
|
||||
background: #222222;
|
||||
margin:2px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var imgs = [], hits = [], done=0;
|
||||
|
||||
var UNS = location.href.indexOf("uns")!=-1, PAGE=1, sTop=-1, cont, keyws;
|
||||
|
||||
function update(page) {
|
||||
cont = document.getElementById("cont");
|
||||
keyws = document.getElementById("keyws");
|
||||
if(page==null) { PAGE=1; hits=[]; sTop=-1; }
|
||||
else { PAGE = page; sTop=cont.scrollTop; }
|
||||
|
||||
var ikey = keyws.value;
|
||||
if(document.getElementById("isolated").checked) ikey += " isolated";
|
||||
ikey = ikey.trim();
|
||||
console.log(JSON.stringify(ikey));
|
||||
|
||||
var url;
|
||||
if(!UNS) {
|
||||
url = "https://pixabay.com/api/?image_type=photo"+(ikey==""?"":"&q="+encodeURIComponent(ikey))+"&per_page="+100+"&page="+PAGE+"&key=10554583-a5eacb61c2e61105fdfb6eb88&safesearch=true";
|
||||
}
|
||||
else {
|
||||
//var keys = ["lake", "mountains", "tree"]; if(ikey=="") ikey=keys[Math.floor(Math.random()*keys.length)];
|
||||
url = "https://api.unsplash.com/search/photos?per_page="+30+"&query="+encodeURIComponent(ikey)+"&page="+PAGE;
|
||||
}
|
||||
var fnam = "gallery"+(UNS?"1":"");
|
||||
if(ikey=="") {
|
||||
if(!UNS && Math.random()<0.005) url="gallery.php?url="+encodeURIComponent(url)+"&fnam="+fnam;//+"&r="+Math.random();
|
||||
else url=fnam+".json";
|
||||
}
|
||||
console.log(url);
|
||||
|
||||
|
||||
var req = new XMLHttpRequest();
|
||||
req.open("GET", url, true);
|
||||
if(UNS) req.setRequestHeader("Authorization", "Client-ID 3twt3nS_LYzp4nViMBB3tmWU0F-wyHUpgfrG1nIuiYs");
|
||||
req.onload = imgsLoaded.bind(this);
|
||||
req.onerror = function(e) { console.log(e.target.response); }
|
||||
req.send();
|
||||
}
|
||||
function imgsLoaded(e) {
|
||||
//console.log(e.target.response);
|
||||
var obj = JSON.parse(e.target.response); //console.log(obj);
|
||||
var list = obj["hits"]?obj["hits"]:obj["results"];
|
||||
|
||||
hits = hits.concat(list);
|
||||
|
||||
var iw = window.innerWidth-29, th=100;
|
||||
cont.setAttribute("style","height:"+(window.innerHeight-42)+"px;");
|
||||
while(cont.firstChild) cont.removeChild(cont.firstChild);
|
||||
cont.scrollTop = 0;
|
||||
|
||||
//for(var i=0; i<hits.length; i++) if(hits[i]["user_id"]==6314823) hits.splice(i,1);
|
||||
var heis = [];
|
||||
for(var i=0; i<hits.length; ) {
|
||||
var totw = 0, j=i;
|
||||
while(j<hits.length) {
|
||||
var hit = hits[j], w=hit["previewWidth"], h=hit["previewHeight"];
|
||||
if(w==null) { w=hit["width"]; h=hit["height"]; }
|
||||
|
||||
var nw=w*(th/h);
|
||||
if(j<=i+1 || totw+nw < iw) { totw+=nw; j++; }
|
||||
else break;
|
||||
}
|
||||
var num = j-i;
|
||||
while(i<j) {
|
||||
heis.push(Math.min(th*2,th*((iw-num*4)/totw))); i++;
|
||||
}
|
||||
}
|
||||
|
||||
imgs=[];
|
||||
|
||||
for(var i=0; i<hits.length; i++) {
|
||||
var hit = hits[i];
|
||||
var img = document.createElement("img");
|
||||
img.setAttribute("src",hit["previewURL"]?hit["previewURL"]:hit["urls"]["thumb"]);
|
||||
img.setAttribute("height",heis[i]+"px");
|
||||
img.addEventListener("click", imgClick);
|
||||
cont.appendChild(img);
|
||||
imgs.push(img);
|
||||
}
|
||||
if(sTop!=-1) cont.scrollTop=sTop;
|
||||
|
||||
cont.appendChild(document.createElement("br"));
|
||||
var more = document.createElement("button");
|
||||
more.onclick = function(e) { update(PAGE+1); }
|
||||
more.textContent="Load More";
|
||||
if(keyws.value!="") cont.appendChild(more);
|
||||
|
||||
console.log(hits);
|
||||
}
|
||||
function imgClick(e) {
|
||||
var ind = imgs.indexOf(e.currentTarget);
|
||||
var hit = hits[ind]; console.log(hit);
|
||||
var url = hit["largeImageURL"]; if(url==null) url = hit["urls"]["full"];
|
||||
var x = "app.open(\""+url+"\",null,true);";
|
||||
window.parent.postMessage(x, "*");
|
||||
}
|
||||
function msg(e) { alert("These images come from www."+(UNS?"Unsplash":"PixaBay")+".com and are free to use for any purpose."); }
|
||||
|
||||
window.onresize = update;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="update()">
|
||||
<div style="height:22px; overflow:hidden;">
|
||||
<button onclick="msg()">?</button>
|
||||
<label>Keywords:</label> <input type="text" id="keyws" onchange="update()" value=""></input>
|
||||
<input type="checkbox" id="isolated" style="vertical-align:middle;" onchange="update()" /> <label for="isolated">Isolated</label>
|
||||
</div>
|
||||
|
||||
<div id="cont"></div>
|
||||
</body>
|
||||
</html>
|
1
www.photopea.com/plugins/gallery.json
Normal file
1
www.photopea.com/plugins/gallery.json
Normal file
File diff suppressed because one or more lines are too long
BIN
www.photopea.com/promo/icon512.png
Normal file
BIN
www.photopea.com/promo/icon512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Loading…
x
Reference in New Issue
Block a user