improved login page to be responsive, also made pretty fname remove paths now we have only 1 imp/sto/bin path -- reduces fname size which is a small help to BUG-96
This commit is contained in:
8
BUGs
8
BUGs
@@ -1,2 +1,6 @@
|
|||||||
### Next: 96
|
### Next: 97
|
||||||
BUG-94: video player no longer works on any platform/browser - just 'spins' then nothing, URL seems right, I can play the video after I download the file direct, so the file is ok too. Used to work -- maybe using Ubuntu 22.04??? (or other newer pieces - feels wrong though, this feels client side somehow - did I bork the html somehow - check git'
|
BUG-94: video player cannot handle non mp4 formats... do I care? (could just offer a download link and hope the client deals with it)
|
||||||
|
--> OR? https://jsmpeg.com/
|
||||||
|
--> OR? convert all videos to mp4/webm
|
||||||
|
|
||||||
|
BUG-96: if image is really skinny, the viewer is left-justified, should at least be centered?
|
||||||
|
|||||||
5
TODO
5
TODO
@@ -10,6 +10,8 @@
|
|||||||
all NMO's need to handle delete data and rebuild / allow recreation of content form FS (not just test, it causes a bug now / db constraint violation)
|
all NMO's need to handle delete data and rebuild / allow recreation of content form FS (not just test, it causes a bug now / db constraint violation)
|
||||||
--> need to test the 'override' when we re-ai-match (AFTER re-build from FS)
|
--> need to test the 'override' when we re-ai-match (AFTER re-build from FS)
|
||||||
|
|
||||||
|
* should I change the rotation code to use that jpeg util to reduce/remove compression loss?
|
||||||
|
|
||||||
* run_ai_on throws log line, for matching even if there are no faces, would be less noisy to not do that (or should say no faces?)
|
* run_ai_on throws log line, for matching even if there are no faces, would be less noisy to not do that (or should say no faces?)
|
||||||
|
|
||||||
* should allow context menu from View thumbs (particularly useful on search) to show other files around this one by date (maybe that folder or something?)
|
* should allow context menu from View thumbs (particularly useful on search) to show other files around this one by date (maybe that folder or something?)
|
||||||
@@ -42,7 +44,8 @@
|
|||||||
* on a phone, the files.html page header is a mess "Oldest.." line is too large to fit on 1 line (make it a hamburger?)
|
* on a phone, the files.html page header is a mess "Oldest.." line is too large to fit on 1 line (make it a hamburger?)
|
||||||
- searched for text overlaps buttons above and below
|
- searched for text overlaps buttons above and below
|
||||||
- < 10 files > is subsequently not centered
|
- < 10 files > is subsequently not centered
|
||||||
- the fodler/bin icons might be best below search then? (and on same line as XS/S, etc.)
|
- the folder/bin icons might be best below search then? (and on same line as XS/S, etc.)
|
||||||
|
* on phone login page, job* pages, etc. are all squished
|
||||||
* when search, have a way to hide deleted files
|
* when search, have a way to hide deleted files
|
||||||
-> not sure where to put this on GUI, its so busy...
|
-> not sure where to put this on GUI, its so busy...
|
||||||
|
|
||||||
|
|||||||
6
files.py
6
files.py
@@ -755,7 +755,11 @@ def view(id):
|
|||||||
return redirect("/")
|
return redirect("/")
|
||||||
else:
|
else:
|
||||||
NMO_data = FaceOverrideType.query.all()
|
NMO_data = FaceOverrideType.query.all()
|
||||||
return render_template("viewer.html", current=int(id), eids=eids, objs=objs, OPT=OPT, NMO_data=NMO_data )
|
setting = Settings.query.first()
|
||||||
|
imp_path = setting.import_path
|
||||||
|
st_path = setting.storage_path
|
||||||
|
bin_path = setting.recycle_bin_path
|
||||||
|
return render_template("viewer.html", current=int(id), eids=eids, objs=objs, OPT=OPT, NMO_data=NMO_data, imp_path=imp_path, st_path=st_path, bin_path=bin_path )
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# /view/id -> grabs data from DB and views it (POST -> set state, redirect to GET)
|
# /view/id -> grabs data from DB and views it (POST -> set state, redirect to GET)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</div class="row">
|
</div class="row">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row px-3 my-5 col-6" style="border: 3px solid #5bc0de; border-radius: 15px;">
|
<div class="row px-3 my-5 offset-lg-3 col-lg-6 col-sm-12" style="border: 3px solid #5bc0de; border-radius: 15px;">
|
||||||
<h3 class="my-3 text-center" style="color: #5bc0de">
|
<h3 class="my-3 text-center" style="color: #5bc0de">
|
||||||
{# <svg width="64" height="64" fill="currentColor"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#pa_logo" /></svg> Photo Assistant Login</h3> #}
|
{# <svg width="64" height="64" fill="currentColor"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#pa_logo" /></svg> Photo Assistant Login</h3> #}
|
||||||
<svg width="64" height="64" fill="currentColor"><use xlink:href="internal/icons.svg#pa_logo" /></svg> Photo Assistant Login</h3>
|
<svg width="64" height="64" fill="currentColor"><use xlink:href="internal/icons.svg#pa_logo" /></svg> Photo Assistant Login</h3>
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
var offset={{OPT.offset}}
|
var offset={{OPT.offset}}
|
||||||
var first_eid={{OPT.first_eid}}
|
var first_eid={{OPT.first_eid}}
|
||||||
var last_eid={{OPT.last_eid}}
|
var last_eid={{OPT.last_eid}}
|
||||||
|
var imp_path="static/Import/{{imp_path}}"
|
||||||
|
var st_path="static/Storage/{{st_path}}"
|
||||||
|
var bin_path="static/Bin/{{bin_path}}"
|
||||||
|
|
||||||
{% for id in objs %}
|
{% for id in objs %}
|
||||||
e=new Object()
|
e=new Object()
|
||||||
@@ -84,7 +87,7 @@
|
|||||||
if( fname.indexOf( "static/Import" ) == 0 )
|
if( fname.indexOf( "static/Import" ) == 0 )
|
||||||
{
|
{
|
||||||
s+='<svg width="20" height="20" fill="currentColor"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#import"/></svg>'
|
s+='<svg width="20" height="20" fill="currentColor"><use xlink:href="{{url_for('internal', filename='icons.svg')}}#import"/></svg>'
|
||||||
tmp_path=fname.replace("static/Import","" )
|
tmp_path=fname.replace(imp_path,"" )
|
||||||
}
|
}
|
||||||
if( fname.indexOf( "static/Storage" ) == 0 )
|
if( fname.indexOf( "static/Storage" ) == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user